/* ===== Homepage So.projects ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hp {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--sx-cream); color: var(--sx-ink); font-family: var(--sx-font);
}
body.hp a { color: inherit; }

/* Header */
.hp-header { position: relative; }
.hp-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px 0;
  display: flex; align-items: center; gap: 16px; position: relative; z-index: 3;
}
.hp-logo { height: 44px; width: auto; display: block; }
.hp-nav { margin-left: auto; margin-right: 150px; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.hp-nav a { text-decoration: none; padding: 4px 2px; }
.hp-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-nav .dot { opacity: .7; }
.hp-bunting { position: absolute; right: 20px; top: 50px; width: clamp(200px, 24vw, 270px); height: auto; z-index: 1; pointer-events: none; }

/* Hero */
.hp-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 24px 64px; display: flex; flex-direction: column; justify-content: center; }
.hp-hero > * { min-width: 0; }
.hp-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }
.hp-hero-text h1 {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif; font-weight: 700;
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.5px; margin: 40px 0 14px;
}
.hp-hero-text p { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.45; margin: 0 0 34px; max-width: 34ch; }
.hp-cta {
  display: inline-block; background: var(--sx-orange); color: var(--sx-ink) !important; text-decoration: none;
  font-size: 18px; padding: 10px 24px; border-radius: 999px; transition: transform .15s, filter .15s;
}
.hp-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hp-hero-art img { width: 100%; max-width: 440px; display: block; margin: 0 auto; mix-blend-mode: multiply; }

/* Tiles thương hiệu */
.hp-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; scroll-margin-top: 20px; }
.hp-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--sx-teal); color: #fff !important; text-decoration: none;
  border-radius: 16px; padding: 18px 20px; min-height: 92px;
  transition: transform .15s, box-shadow .15s;
}
.hp-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(45,58,69,.22); }
.hp-tile-text { flex: 1; min-width: 0; }
.hp-tile-name { font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.hp-tile-tag { font-size: 17px; margin-top: 8px; opacity: .95; }
.hp-tile-img { height: 84px; width: auto; max-width: 100px; object-fit: contain; margin-right: 40px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.hp-tile-go {
  position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sx-orange); color: var(--sx-ink); display: flex; align-items: center; justify-content: center; font-size: 19px;
}

/* ---- Tablet/Mobile ---- */
@media (max-width: 820px) {
  .hp-nav { margin-right: 0; }
  .hp-bunting { display: block; right: -4px; top: 10px; width: min(52vw, 230px); z-index: 0; opacity: .95; }
  .hp-header .sx-burger { position: relative; z-index: 3; }
  .hp-hero { grid-template-columns: 1fr; text-align: left; }
  .hp-hero-text h1 { margin-top: 16px; }
  .hp-hero-art { order: -1; }
  .hp-hero-art img { max-width: 320px; }
}
@media (max-width: 640px) {
  .sx-burger { display: block; margin-left: auto; color: var(--sx-ink); }
  .hp-nav {
    position: absolute; top: 100%; right: 16px; left: 16px; margin: 6px 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fffdf7; border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.16);
    padding: 6px; display: none;
  }
  .sx-nav-open .hp-nav { display: flex; }
  .hp-nav .dot { display: none; }
  .hp-nav a { padding: 12px 14px; border-radius: 10px; font-size: 17px; }
  .hp-nav a:active { background: #f1ead8; }
  .hp-main { padding: 0 18px 44px; justify-content: flex-start; }
  .hp-hero-art img { max-width: 270px; }
  .hp-tile-img { height: 58px; margin-right: 34px; }
  .hp-tile-tag { font-size: 15px; }
}

/* Ẩn badge "Powered by Netlify" (Netlify tự chèn) */
#nl-badge-frame { display: none !important; }
