/* ============================================
   RESPONSIVE — Mobile First Fixes
   Breakpoints: 991px (tablet), 767px (large mobile), 480px (mobile), 375px (small)
   ============================================ */

/* ---- TABLET: max 991px ---- */

@media (min-width:1800px) {
.hero-dots-wrap {
  left: 25%;
}
}

@media (max-width:1800px) {
.hero-content {
  margin:0 0 0;
}
}

@media(max-width:1599px) {
.hero-title {
  font-size: 52px;
  line-height: 58px;
}
.hero-sub {
  font-size: 21px;
 }

.hero-l {
  padding: 60px 24px 48px 32px;
}
.hero-dots-wrap {
  left:34px;
}

}


@media(max-width:1279px) {
.hero-title {
  font-size: 46px;
  line-height: 50px;
}

.about-photo {
  padding-left:32px;
}

}

@media(max-width:1023px){
 .hero-title {
  font-size: 42px;
  line-height: 50px;
}
.hero-sub {
  font-size: 18px;
} 
}


@media (max-width: 991px) {

  /* NAVBAR */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 8px 20px 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 99998;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    font-size: 17px;
    padding: 11px 16px;
    border-radius: 0;
    margin-left: 0;
    border-bottom: 1px solid #f5efe8;
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu a.active {
    border-radius: 6px;
    border-bottom: none;
  }
  .nav-hamburger { display: flex; }

  /* HERO SLIDER */
  .hero-slide {
    flex-direction: column;
    min-height: auto;
  }
  .hero-l {
    flex: none;
    width: 100%;
    padding: 44px 36px 36px;
    order: 2;
  }
  .hero-r {
    flex: none;
    width: 100%;
    height: 320px;
    order: 1;
    position: relative;
  }
  .hero-r img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  .hero-sub { font-size: 18px; }

  /* ABOUT */
  .about-grid { flex-direction: column; }
  .about-text { flex: none; width: 100%; }
.about-photo {
  flex: none;
  width: 100%;
  padding-left: 0;
  margin-top: 32px;
  height: anchor-size;
  overflow: hidden;
  max-width: 400px;
  margin: 40px auto 0;
}
  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* BRANDS — 3 cards in one row at tablet */
  .brand-row { flex-wrap: nowrap; gap: 12px; }
  .brand-row .brand-card { width: calc(33.333% - 8px); flex: 1; }
  .brand-row .brand-card:last-child { width: calc(33.333% - 8px); max-width: none; margin: 0; }

  /* PILLARS — 3 in one row at tablet */
  .pillars-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .pillar { width: calc(33.333% - 11px); max-width: none; padding: 12px 12px; }

  /* CONTACT */
  .contact-row { flex-direction: column; gap: 36px; }
  .contact-l, .contact-r { flex: none; width: 100%; }
  .contact-r { padding-top: 0; }

  /* JADE MAP */
  .jade-map-band { margin-top: -80px; padding: 0 16px 80px; }


.hero-r {
  height: auto;
  padding: 36% 0;
}

.nav-menu a {
  width: 100%;
}
.nav-menu a.active {
  background: transparent !important;
  padding: 11px 16px;
  color: #6C4C2B !important;
  border-bottom: 1px solid #f5efe8;
}
.hero-dots-wrap {
  left: 36px;
  bottom: 30px;
}
.hero-slider {
  padding-bottom: 40px;
}

.pillar-name {
  font-size: 24px;
}


  .legal-layout { flex-direction: column; gap: 0; }
  .legal-sidebar {
    position: static;
    flex: none;
    width: 100%;
    padding: 24px 0 0;
    overflow-x: auto;
  }
  .legal-sidebar ul {
    display: flex;
    flex-direction: row;
    border-left: none;
    border-bottom: 2px solid #f0e8e0;
    white-space: nowrap;
    gap: 0;
    overflow-x: auto;
  }
  .legal-sidebar ul li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    margin-left: 0;
    padding: 10px 18px;
    font-size: 14px;
  }
  .legal-sidebar ul li a:hover,
  .legal-sidebar ul li a.active {
    border-left: none;
    border-bottom: 3px solid #6C4C2B;
    background: transparent;
  }
  .legal-content { padding: 36px 0 70px; }
  .legal-section h2 { font-size: 28px; }
  .legal-hero-inner h1 { font-size: 36px; }

}


/* ---- LARGE MOBILE: max 767px ---- */
@media (max-width: 767px) {

  /* NAVBAR */
  .brand-logo img {
  width: 80px;
  height: 70px;
}
  .topnav { padding: 10px 0; }
  #home, #about, #brands, #jade, #pillars, #contact { scroll-margin-top: 76px; }

  /* HERO */
  #home { padding-top: 80px; }
  .hero-r { height: 260px; }
  .hero-l { padding: 32px 24px 40px; }
  .hero-title { font-size: 2rem; line-height: 1.18; margin-bottom: 16px; }
  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .hero-cta { font-size: 17px; padding: 11px 32px 13px; }

  /* ABOUT */
  #about { padding: 70px 0 80px; }
  .sec-h { font-size: 36px; }
  .about-lead { font-size: 15px; }
  .about-text { padding: 22px 20px; }

  /* BRANDS — keep row layout, just adjust padding at 767px */
  #brands { padding: 70px 0 80px; }

  /* JADE */
  #jade { padding: 80px 0 0; }
  .jade-box { padding: 22px 24px 16px; }
  .jade-map-band { margin-top: -60px; }

  /* PILLARS */
  #pillars { padding: 70px 0; }
  .pillar-name { font-size: 22px; margin-bottom: 16px; }

  /* CONTACT */
  #contact { padding: 70px 0 60px; }
  .c-title { font-size: 38px; }

  /* FOOTER */
  .footer-bar { flex-direction: column; gap: 10px; text-align: center; }
  footer a { margin: 0 10px; }

footer a {
  font-size: 16px;
}

.hero-title br {
  display: none;
}

}


/* ---- 639px: BRANDS & PILLARS → single column ---- */
@media (max-width: 639px) {

  /* BRANDS — single column */
  .brand-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .brand-row .brand-card {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
  }
  .brand-row .brand-card img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  /* PILLARS — single column */
  .pillars-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .pillar {
    width: 100% !important;
    max-width: 380px !important;
    padding: 12px 20px;
  }
  .pillar-name { font-size: 24px; margin-bottom: 20px; }

.legal-sidebar ul li a {
  padding: 10px 11px;
  font-size: 14px;
}


}


/* ---- MOBILE: max 480px ---- */
@media (max-width: 480px) {

  .hero-r { height: 220px; }
  .hero-title { font-size: 1.75rem; }
  .hero-l { padding: 28px 18px 60px; }

  .sec-h { font-size: 30px; }
  .about-text { padding: 18px 16px; }
.about-photo {
  /* height: 220px; */
  max-width: 100%;
}

  .jade-box { max-width: 100%; padding: 18px 18px 14px; }
  .jade-map-band { margin-top: -40px; padding: 0 8px 60px; }

  .c-title { font-size: 32px; }
  .f-cols { flex-direction: column; gap: 20px; }
  .pillar-name { font-size: 20px; }
}


@media (max-width: 479px) {
.legal-sidebar ul li a {
  padding: 10px 7px;
  font-size: 13px;
}

}
@media (max-width: 419px) {
.legal-sidebar ul {
  border-bottom: 0;
  flex-wrap: wrap;
}
.legal-sidebar ul li {
  padding: 0;
  width: 50%;
  text-align: center;
}
}
/* ---- SMALL MOBILE: max 375px ---- */
@media (max-width: 375px) {

  .hero-title { font-size: 1.55rem; }
  .hero-r { height: 190px; }
  .hero-l { padding: 22px 16px 56px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { font-size: 15px; padding: 10px 26px 12px; }

  .sec-h { font-size: 26px; }
  .about-text { padding: 16px 14px; }
  .c-title { font-size: 28px; }
  .c-eyebrow { font-size: 15px; }
}


/* Brand card base styling for mobile screens */
@media (max-width: 991px) {
  .brand-row .brand-card img {
    max-width: 100%;
    height: auto;
  }
  /* Section padding tighten */
  .cx { padding: 0 16px; }
  #about .cx { padding: 0 16px; }
}


/* Fix text overflow on small screens */
@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .cx, #about .cx { padding: 0 18px; }
  section { overflow-x: hidden; }
  
  /* Contact text fix */
  .contact-l, .contact-r { 
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .c-title { margin-bottom: 24px; }
  .c-p, .c-ul li, .f-val { font-size: 15px; }
  
  /* Pillars map overflow */
  .jade-map-band img { max-width: 100%; }
}
