/* ══════════════════════════════════════════════════════════════
   FACCO — hero.css  v6.0
   Hero · Logo frame · Material board · Partners · Scroll cue
   Zone: DARK — luôn nền tối dù OS đang dùng light mode
══════════════════════════════════════════════════════════════ */

.hero {
  position: relative; z-index: 5;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--hh) + 36px); padding-bottom: 24px;
  background:
    radial-gradient(ellipse at 14% 22%, rgba(138,110,56,.12), transparent 38%),
    radial-gradient(ellipse at 86% 14%, rgba(184,50,40,.09), transparent 34%),
    linear-gradient(158deg, #111010 0%, #1a1714 55%, #111010 100%);
  overflow: hidden;
}

.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 72% 36%, rgba(236,227,211,.045), transparent 36%),
    radial-gradient(circle at 26% 66%, rgba(138,110,56,.055), transparent 42%);
}

.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 52px; align-items: center;
}

/* Eyebrow */
.hero__eyebrow {
  font-family: var(--fb); font-size: 10px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-w); margin-bottom: 28px; padding-right: .32em;
  opacity: 0; animation: fadeUp 1s ease both .18s;
}

/* ── LOGO FRAME ── */
.logo-frame {
  position: relative; padding: 15px 30px;
  display: inline-block; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1.1s ease both .42s;
}
.logo-frame::before {
  content: ''; position: absolute; inset: -15px;
  border: 1px solid rgba(138,110,56,.10);
}
.logo-frame::after {
  content: ''; position: absolute; inset: -7px;
  border: .5px solid rgba(138,110,56,.30);
}
.logo-frame__corner { position: absolute; width: 12px; height: 12px; }
.logo-frame__corner--tl { top: -1px; left: -1px;   border-top: 2px solid var(--gold-w); border-left: 2px solid var(--gold-w); }
.logo-frame__corner--tr { top: -1px; right: -1px;  border-top: 2px solid var(--gold-w); border-right: 2px solid var(--gold-w); }
.logo-frame__corner--bl { bottom: -1px; left: -1px;  border-bottom: 2px solid var(--gold-w); border-left: 2px solid var(--gold-w); }
.logo-frame__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold-w); border-right: 2px solid var(--gold-w); }

.logo-box {
  background: linear-gradient(135deg, var(--red), #892319);
  padding: 12px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 228px; box-shadow: var(--sh-red);
}
.logo-box__name {
  font-family: var(--fd); font-size: 40px; font-weight: 600;
  letter-spacing: .26em; color: white; line-height: 1;
}
.logo-box__sub {
  font-family: var(--fb); font-size: 8px; font-weight: 500;
  letter-spacing: .22em; color: rgba(255,255,255,.80); text-transform: uppercase;
}
.logo-box__stripe {
  width: 100%; height: 6px;
  background: rgba(0,0,0,.16);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.logo-box__stripe span {
  font-family: var(--fb); font-size: 6px; letter-spacing: .18em;
  color: rgba(255,255,255,.58);
}

/* Logo PNG thật trong hero (thay logo-box text) */
.logo-frame--img { padding: 8px; background: transparent; }
.logo-frame__img {
  display: block; width: clamp(220px, 22vw, 320px); height: auto;
  filter: drop-shadow(0 8px 28px rgba(184,50,40,.28));
}

/* Hero text */
.hero__vline {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold-l), transparent);
  margin: 0 0 20px;
  opacity: 0; animation: scaleYIn 1.1s ease both .72s;
  transform: scaleY(0); transform-origin: top;
}
.hero__brand {
  font-family: var(--fd); font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 400; font-style: italic;
  letter-spacing: .02em; color: var(--dk-t);
  line-height: .95; max-width: 13ch;
  opacity: 0; animation: fadeUp 1s ease both .92s;
}
.hero__tagline {
  max-width: 520px;
  font-family: var(--fb); font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300; letter-spacing: .01em;
  color: var(--dk-d); margin-top: 16px; line-height: 1.78;
  opacity: 0; animation: fadeUp 1s ease both 1.08s;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px;
  opacity: 0; animation: fadeUp 1s ease both 1.22s;
}

/* Metrics */
.hero__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 26px;
  opacity: 0; animation: fadeUp 1s ease both 1.36s;
}
.hero__metric {
  padding: 14px 16px;
  border: 1px solid rgba(138,110,56,.12);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(8px);
}
.hero__metric strong {
  display: block; font-family: var(--fd); font-size: 24px; font-weight: 500;
  color: var(--dk-t); letter-spacing: .08em; margin-bottom: 2px;
}
.hero__metric span {
  font-family: var(--fb); font-size: 12px; font-weight: 300;
  color: var(--dk-m); letter-spacing: .01em;
}

/* Partners */
.partners-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  max-width: 800px; margin-top: 24px; padding-top: 16px;
  border-top: .5px solid rgba(138,110,56,.12);
  opacity: 0; animation: fadeUp 1s ease both 1.50s;
}
.partners-strip__label {
  font-family: var(--fb); font-size: 9px; font-weight: 500;
  letter-spacing: .20em; color: var(--dk-m); text-transform: uppercase;
}
.partners-strip__name {
  font-family: var(--fd); font-size: 15px; font-weight: 400;
  letter-spacing: .11em; color: rgba(236,227,211,.60);
  transition: color var(--tn);
}
.partners-strip__name:hover { color: var(--dk-t); }

/* ── HERO BOARD (right panel) ── */
.hero-board { position: relative; z-index: 2; }
.hero-board__panel {
  position: relative; padding: 24px;
  border: 1px solid rgba(138,110,56,.14);
  background: linear-gradient(168deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), rgba(16,14,12,.68);
  box-shadow: var(--sh-lg); backdrop-filter: blur(14px);
}
.hero-board__header,
.hero-board__footer {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.hero-board__eyebrow {
  font-family: var(--fb); font-size: 9px; font-weight: 500;
  letter-spacing: .20em; color: var(--gold-w); text-transform: uppercase;
}
.hero-board__jp { font-family: var(--fj); font-size: 10px; letter-spacing: .20em; color: var(--dk-m); }
.hero-board__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 18px 0; }

/* Material swatches */
.hero-swatch {
  min-height: 168px; padding: 15px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(138,110,56,.08);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform var(--tn);
}
.hero-swatch:hover { transform: scale(1.02); }
.hero-swatch::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-swatch--stone { background: linear-gradient(145deg, #d4cabb, #b4a896); }
.hero-swatch--mist  { background: linear-gradient(145deg, #c9d1d6, #92a0ac); }
.hero-swatch--earth { background: linear-gradient(145deg, #cbb59b, #94755f); }
.hero-swatch--wood  { background: linear-gradient(145deg, #baa88f, #7f6852); }
.hero-swatch__tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--fb); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(42,32,24,.58);
}
.hero-swatch h3 {
  position: relative; z-index: 2;
  font-family: var(--fd); font-size: 20px; font-weight: 500;
  color: #2a2018; letter-spacing: .04em;
}
.hero-swatch p {
  position: relative; z-index: 2; margin-top: 3px;
  font-family: var(--fb); font-size: 12px; font-weight: 300;
  color: rgba(42,32,24,.70); max-width: 22ch;
}
.hero-board__footer-label {
  display: block; margin-bottom: 4px;
  font-family: var(--fb); font-size: 9px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dk-m);
}
.hero-board__footer p { font-family: var(--fb); color: var(--dk-d); font-size: 13px; }
.hero-board__link {
  align-self: center;
  font-family: var(--fb); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; color: var(--gold-w); text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin: 36px auto 0;
  opacity: 0; animation: fadeUp 1s ease both 1.66s;
}
.scroll-cue__text {
  font-family: var(--fb); font-size: 9px; font-weight: 500;
  letter-spacing: .30em; color: var(--gold-m); text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-m), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE FIXES — Hero (≤ 860px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--hh) + 28px);
    padding-bottom: 40px;
  }
  .hero__shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Logo frame nhỏ lại trên mobile */
  .logo-frame--img { padding: 4px; margin-bottom: 18px; }
  .logo-frame__img { width: 180px; }

  /* Hero brand: bỏ giới hạn ch hẹp, chỉnh font + spacing để chữ Việt không vỡ */
  .hero__brand {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.18;
    max-width: 100%;
    word-spacing: .02em;
    letter-spacing: 0;
  }
  .hero__tagline {
    font-size: 14px;
    line-height: 1.66;
    max-width: 100%;
  }
  .hero__eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero__vline { display: none; }

  /* CTA stacked full-width cho dễ tap */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .hero__actions .btn { width: 100%; }

  /* Metrics 2 cột compact thay vì 3 */
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
  }
  .hero__metric { padding: 11px 12px; }
  .hero__metric strong { font-size: 18px; }
  .hero__metric span { font-size: 11px; line-height: 1.4; }
  .hero__meta > .hero__metric:nth-child(3) { grid-column: 1 / -1; }

  /* Partners strip nhỏ và gọn */
  .partners-strip { gap: 8px 14px; margin-top: 18px; padding-top: 14px; }
  .partners-strip__name { font-size: 13px; }

  /* Hero board — ẩn trên mobile để hero gọn, nội dung chính nổi bật */
  .hero-board { display: none; }

  /* Scroll cue — ẩn trên mobile */
  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--hh) + 18px); }
  .logo-frame__img { width: 150px; }
  .hero__brand { font-size: clamp(26px, 8vw, 34px); }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta > .hero__metric:nth-child(3) { grid-column: auto; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE OVERFLOW FIX — Hero typography (2026-05-06)
   Giữ chữ Việt đẹp, không bị cắt mép phải trên mobile/tablet nhỏ.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
  .hero {
    overflow-x: hidden;
  }
  .hero__content {
    min-width: 0;
    max-width: 100%;
  }
  .hero__brand {
    max-width: min(100%, 12.5ch);
    padding-right: .08em;
    font-size: clamp(31px, 9.2vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  .hero__tagline {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .hero__brand {
    max-width: min(100%, 11.8ch);
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.10;
  }
  .hero__eyebrow {
    max-width: 100%;
    line-height: 1.7;
    letter-spacing: .18em;
  }
}

@media (max-width: 380px) {
  .hero__brand {
    max-width: 100%;
    font-size: clamp(28px, 8.5vw, 32px);
    line-height: 1.12;
  }
}
