/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #707070;
  background: #F3EFE3;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --gold-1:    #C47641;
  --gold-2:    #DAB383;
  --gold-3:    #E4D0AC;
  --gold-4:    #F3EFE3;
  --brown:     #603A17;
  --brown-btn: #833C0B;
  --gray:      #707070;
  --white:     #FFFFFF;
  --green-2:   #C7CAB5;

  --font-h: 'Fahkwang', serif;
  --font-b: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 3px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

#site-header.scrolled {
  background: rgba(243, 239, 227, 0.94);
  border-bottom-color: var(--gold-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 160px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Desktop: nav right-aligned, mirrors logo padding */
.main-nav {
  position: fixed;
  top: 0; right: 160px;
  left: auto; transform: none;
  height: 94px;
  display: flex;
  align-items: center;
  z-index: 101;
  pointer-events: auto;
}

.main-nav a {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 22px;
  color: var(--gold-1);
  padding: 1px 24px;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--brown); }

.main-nav a.active {
  color: var(--brown);
  border: 1px solid var(--brown);
  border-radius: 100px;
  padding: 5px 22px;
}

/* ═══════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════ */
#banner {
  position: relative;
  width: 100%;
  min-height: 1088px;
  overflow: hidden;

  /* Four-layer background: cream top fade, cream bottom fade, left white veil, hero photo */
  background:
    linear-gradient(to bottom, #F3EFE3 0%, rgba(243,239,227,0) 29%),
    linear-gradient(to bottom, rgba(243,239,227,0) 71%, #F3EFE3 100%),
    linear-gradient(to right,  rgba(255,255,255,0.70) 0%, rgba(255,255,255,0) 62%),
    url("../assets/images/hero-bg.jpg") center / cover no-repeat;
}

/* ── Hero text block ── */
.hero-content {
  position: absolute;
  top: 292px;
  left: 124px;
  width: 560px;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* STANDARDIZED: Hero H1 — 52px */
.hero-heading {
  font-family: var(--font-h);
  font-size: 52px;
  font-weight: 400;
  line-height: 62px;
  letter-spacing: 0.16em;
  color: var(--brown);
}

/* STANDARDIZED: Hero tagline — 44px */
.hero-tagline {
  font-family: var(--font-b);
  font-size: 44px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: 0.16em;
  color: var(--brown);
}

.hero-body {
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 0.18em;
  color: var(--brown);
}

/* ── CTA Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 232px;
  height: 48px;
  background: var(--gold-3);
  border-radius: 24px;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--brown-btn);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-2);
  color: var(--white);
}

/* ── Mission / Vision cards ── */
.mission-cards {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
  width: max-content;
}

.glass-card {
  width: 470px;
  min-height: 140px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
}

/* STANDARDIZED: Section H2 — 36px */
.card-title {
  font-family: var(--font-h);
  font-size: 36px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: 0.08em;
  color: var(--gold-1);
}

/* STANDARDIZED: Body — 16px */
.card-body {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: 0.16em;
  color: var(--brown);
}

/* ═══════════════════════════════════════════
   PRODUCTS SECTION
═══════════════════════════════════════════ */
#products {
  position: relative;
  width: 100%;
  background:
    linear-gradient(to bottom, transparent 84%, #E8C8A0 100%),
    linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
    url("../assets/images/products-bg.jpg") center / cover no-repeat;
}

.products-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 124px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.products-heading-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* STANDARDIZED: Page H1 — 44px */
.section-title {
  font-family: var(--font-h);
  font-size: 44px;
  font-weight: 400;
  line-height: 54px;
  letter-spacing: 0.16em;
  color: var(--gold-1);
}

/* ── Product tag pills ── */
.product-tags {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.glass-pill {
  padding: 20px 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.40);
  font-family: var(--font-b);
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: 0.18em;
  color: var(--brown);
  white-space: nowrap;
}

/* ── Three pillars ── */
.three-pillars {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* STANDARDIZED: Sub-heading H3 — 28px */
.pillar-text {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.pillar-divider {
  width: 1px;
  height: 36px;
  background: var(--brown);
  opacity: 0.25;
  flex-shrink: 0;
}

/* ── BNB Family culture ── */
.culture-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 740px;
}

/* STANDARDIZED: Page H1 — 44px */
.culture-title {
  font-family: var(--font-h);
  font-size: 44px;
  font-weight: 400;
  line-height: 54px;
  letter-spacing: 0.16em;
  color: var(--gold-1);
}

/* STANDARDIZED: Lead — 18px */
.culture-body {
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 0.18em;
  color: var(--brown);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#footer {
  background: var(--gold-2);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1030px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
}

/* ── Contact header ── */
.contact-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-title {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.contact-header p {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 0.18em;
  color: var(--white);
}

/* ── Contact form row ── */
.contact-form-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.form-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 248px;
}

.form-input {
  width: 100%;
  height: 34px;
  padding: 0 16px;
  border-radius: 34px;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder { color: rgba(255,255,255,0.65); }
.form-input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.30);
}

.form-textarea {
  flex: 1;
  min-width: 260px;
  max-width: 470px;
  height: 102px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  outline: none;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-textarea::placeholder { color: rgba(255,255,255,0.65); }
.form-textarea:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.30);
}

.btn-submit {
  align-self: flex-end;
  width: 120px;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: var(--gold-3);
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--brown-btn);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--white);
  color: var(--brown);
}

/* ── Footer bottom ── */
.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-info {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-b); font-size: 13px; font-weight: 300;
  letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.75);
}
.footer-info-label { color: var(--white); font-weight: 400; }
.footer-info-label::after { content: ':  '; }
.footer-info a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; }
.footer-info a:hover { color: var(--white); }

.footer-right {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 22px;
  color: var(--white);
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.70; }

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-legal a {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.40);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-legal a:hover { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.90); }

.copyright {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════
   NAV BACKDROP (mobile overlay)
═══════════════════════════════════════════ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   NAV CLOSE BUTTON (mobile × inside overlay)
═══════════════════════════════════════════ */
.nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--brown);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ═══════════════════════════════════════════
   HAMBURGER TOGGLE BUTTON
═══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-1);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ─── ≤1200px: large tablet / laptop ─── */
@media (max-width: 1200px) {
  .header-inner { padding: 22px 80px; }
  .main-nav { right: 80px; height: 88px; }

  #banner { background-position: 70% center; }

  .hero-content { left: 80px; }

  .mission-cards {
    gap: 32px;
    width: calc(100% - 80px);
    left: 40px;
    transform: none;
  }

  .glass-card { width: auto; flex: 1; }

  .products-inner { padding: 80px 80px; }
  .hero-heading { font-size: 42px; line-height: 52px; }
  .hero-tagline { font-size: 36px; line-height: 46px; }
}

/* ─── ≤900px: tablet portrait ─── */
@media (max-width: 900px) {
  .header-inner { padding: 20px 40px; }
  .main-nav { right: 40px; height: 84px; }
  .main-nav a { padding: 1px 12px; font-size: 15px; }

  #banner { min-height: 980px; }
  .hero-content { left: 40px; width: calc(100% - 80px); top: 160px; }
  .hero-heading { font-size: 34px; line-height: 44px; }
  .hero-tagline { font-size: 28px; line-height: 38px; }
  .hero-body { font-size: 16px; line-height: 26px; }
  .hero-text-block { gap: 36px; }

  .mission-cards {
    flex-direction: column;
    bottom: 40px;
    left: 40px;
    width: calc(100% - 80px);
    gap: 16px;
  }
  .card-title { font-size: 28px; line-height: 38px; }

  #products {
    background:
      linear-gradient(to bottom, transparent 74%, #E8C8A0 100%),
      linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
      url("../assets/images/products-bg.jpg") center / cover no-repeat;
  }

  .products-inner { padding: 64px 40px; gap: 48px; }
  .products-heading-block { gap: 36px; }
  .section-title, .culture-title { font-size: 36px; line-height: 46px; }
  .glass-pill { font-size: 18px; padding: 14px 22px; }
  .three-pillars { gap: 20px; }
  .pillar-text { font-size: 24px; line-height: 34px; }
  .culture-body { font-size: 17px; line-height: 28px; }

  .contact-form-row { flex-direction: column; }
  .form-inputs-col { flex: none; width: 100%; }
  .form-textarea { width: 100%; max-width: 100%; }
  .btn-submit { align-self: flex-start; }
}

/* ─── ≤640px: mobile — hamburger replaces inline nav ─── */
@media (max-width: 640px) {
  .header-inner { padding: 16px 24px; }
  #site-header {
    background: rgba(243, 239, 227, 0.96);
    border-bottom-color: var(--gold-3);
  }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: none;
    height: auto;
    background: #F3EFE3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    z-index: 102;
  }

  .nav-close { display: flex; }

  .main-nav a {
    font-family: var(--font-h);
    font-size: 24px;
    padding: 10px 0;
    letter-spacing: 0.2em;
    color: var(--brown);
    border-bottom: 1px solid rgba(96, 58, 23, 0.15);
    width: 200px;
    text-align: center;
    transition: color 0.2s;
  }

  .main-nav a:hover { color: var(--gold-1); }

  #banner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 80px 0 40px;
    background:
      linear-gradient(to bottom, #F3EFE3 0%, rgba(243,239,227,0) 16%),
      linear-gradient(to bottom, rgba(243,239,227,0) 78%, #F3EFE3 100%),
      linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
      url("../assets/images/hero-bg.jpg") 65% center / cover no-repeat;
  }

  .hero-content {
    position: static;
    width: auto;
    top: auto; left: auto;
    padding: 24px 24px 36px;
    flex: 1;
  }

  .hero-text-block { gap: 24px; }
  .hero-text-group { gap: 10px; }
  .hero-heading { font-size: 28px; line-height: 36px; letter-spacing: 0.14em; }
  .hero-tagline { font-size: 22px; line-height: 30px; letter-spacing: 0.14em; }
  .hero-body { font-size: 15px; line-height: 24px; letter-spacing: 0.14em; }

  .mission-cards {
    position: static;
    flex-direction: column;
    width: auto;
    bottom: auto; left: auto;
    transform: none;
    padding: 0 24px;
    gap: 14px;
  }

  .glass-card { width: auto; min-height: auto; }
  .card-title { font-size: 24px; line-height: 32px; }
  .card-body { font-size: 14px; line-height: 22px; letter-spacing: 0.14em; }

  #products {
    background-color: #E8C8A0;
    background-image:
      linear-gradient(to bottom, transparent 80%, #E8C8A0 98%),
      linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
      url("../assets/images/products-bg_mobile.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .products-inner { padding: 48px 24px; gap: 36px; }
  .products-heading-block { gap: 28px; }
  .section-title, .culture-title { font-size: 28px; line-height: 36px; letter-spacing: 0.14em; }
  .product-tags { gap: 12px; }
  .glass-pill { font-size: 15px; padding: 12px 18px; white-space: normal; }
  .three-pillars { gap: 16px; justify-content: center; }
  .pillar-divider { display: none; }
  .pillar-text { font-size: 22px; line-height: 30px; }
  .culture-block { max-width: 100%; }
  .culture-body { font-size: 16px; line-height: 26px; letter-spacing: 0.14em; }

  /* Footer */
  .footer-inner { padding: 0 24px; gap: 32px; }
  .footer-nav { gap: 20px; }
  .footer-legal { gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-right { align-items: flex-start; }
  .footer-legal { justify-content: flex-start; }
}

/* ─── ≤480px: small mobile ─── */
@media (max-width: 480px) {
  .header-inner { padding: 14px 20px; }
  .logo-img { height: 36px; }

  #banner { padding: 72px 0 36px; }
  .hero-content { padding: 20px 20px 32px; }
  .hero-heading { font-size: 24px; line-height: 32px; }
  .hero-tagline { font-size: 18px; line-height: 26px; }
  .hero-body { font-size: 14px; line-height: 22px; letter-spacing: 0.12em; }
  .btn-primary { width: 100%; max-width: 220px; }

  .mission-cards { padding: 0 20px; }
  .card-title { font-size: 22px; line-height: 30px; }
  .card-body { font-size: 13px; line-height: 20px; letter-spacing: 0.12em; }

  .products-inner { padding: 40px 20px; }
  .section-title, .culture-title { font-size: 24px; line-height: 32px; }
  .glass-pill { font-size: 14px; padding: 10px 16px; }
  .pillar-text { font-size: 20px; line-height: 28px; }
  .culture-body { font-size: 15px; line-height: 24px; letter-spacing: 0.12em; }

  .footer-inner { padding: 0 20px; }
  .contact-title { font-size: 18px; }
  .footer-nav { gap: 14px; flex-wrap: wrap; }
  .footer-nav a { font-size: 14px; }
  .footer-legal { gap: 12px; }
  .footer-legal a { font-size: 12px; }
  .copyright { font-size: 11px; letter-spacing: 0.1em; }
}
