/* =========================================================
   BESTAR - B2B Foreign Trade Apparel Manufacturer Website
   Color palette:
     --navy        #10243E   (BE deep navy / charcoal)
     --navy-2      #1B3556   (hover / secondary)
     --gold        #C58A2E   (STAR accent)
     --gold-2      #B07622   (hover)
     --cream       #F4EFE7   (warm off-white background)
     --cream-2     #EAE3D6   (alternate cream)
     --gray-100    #F8F7F5   (light surface)
     --gray-300    #E1DCD3   (hairline / divider)
     --gray-500    #8B8479   (muted text)
     --gray-700    #5A554C   (body secondary)
     --ink         #1F1A12   (body text)
   ========================================================= */

:root {
  --navy: #10243E;
  --navy-2: #1B3556;
  --gold: #C58A2E;
  --gold-2: #B07622;
  --cream: #F4EFE7;
  --cream-2: #EAE3D6;
  --gray-100: #F8F7F5;
  --gray-300: #E1DCD3;
  --gray-500: #8B8479;
  --gray-700: #5A554C;
  --ink: #1F1A12;
  --shadow-sm: 0 1px 2px rgba(16, 36, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 36, 62, 0.08);
  --container: 1240px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", "Helvetica Neue", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Source Han Serif SC", Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--gray  { background: var(--gray-100); }
.section--navy  { background: var(--navy); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream); }

.section-head { margin-bottom: 36px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { max-width: 720px; }

/* =========================================================
   HEADER — REISS-style minimal navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 231, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-300);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
}
.logo svg { height: 34px; width: auto; }

/* REISS-style: logo left, menu hugging close to its right — both flush left */
.main-nav {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
}
.main-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .25s ease, left .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
  left: 0;
}
.main-nav a:hover { color: var(--gold); }

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-icons .lang {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.hamburger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 28px; height: 22px;
  flex-direction: column; justify-content: space-between;
}
.hamburger span {
  height: 2px; background: var(--navy); display: block; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(520px, 75vh, 720px);
  overflow: hidden;
  background: var(--cream-2);
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(244, 239, 231, 0.45) 0%, rgba(244, 239, 231, 0) 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content .copy {
  max-width: 440px;
  margin-left: 48%;
  padding: 0;
}
.hero-content h1 {
  color: var(--navy);
  margin: 12px 0 18px;
}
.hero-content .lead {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin: 0 0 32px;
  max-width: 460px;
}
.hero--compact { height: clamp(360px, 50vh, 480px); }
/* Man / Woman hero: the model's head sits near the top edge, so keep the top
   anchored and let any vertical crop fall on the lower body instead. */
.hero--man img,
.hero--woman img { object-position: left top; }
/* Accessories hero: copy block shifted right of the still life, and a
   light cream veil fades the photo so the navy text stays readable. */
.hero--accessories .hero-content .copy {
  margin-left: 52%;
  max-width: min(440px, 42vw);
}
.hero--accessories::after { background: none; }
/* About hero: the atelier image fills the frame, so the copy block is
   shifted further right onto the clean empty area — no veil, no overlay. */
.hero--about .hero-content .copy {
  margin-left: auto;
  margin-right: 2.5%;
  max-width: min(420px, 34vw);
}
.hero--about::after { background: none; }

/* ---------- Home hero slider (knitwear) ---------- */
.hero-slider {
  height: clamp(540px, 80vh, 780px);
  background: var(--cream);
}
.hero-slider .hero-slides,
.hero-slider .hero-slide {
  position: absolute; inset: 0;
}
.hero-slider .hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.hero-slider .hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slider .hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Moved here from the inline style so responsive rules can override it. */
  object-position: center 10%;
}
.hero-slider::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(244, 239, 231, 0.10) 0%,
    rgba(244, 239, 231, 0.00) 42%,
    rgba(244, 239, 231, 0.00) 55%,
    rgba(244, 239, 231, 0.82) 80%,
    rgba(244, 239, 231, 0.97) 100%);
}
.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-slider .hero-content .copy {
  max-width: 44%;
  margin-left: 0;
  padding: 0 clamp(28px, 5vw, 72px) 0 24px;
}
.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  right: clamp(28px, 5vw, 72px);
  display: flex;
  gap: 10px;
}
.hero-dots .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}
.hero-dots .dot:hover { transform: scale(1.2); }
.hero-dots .dot.is-active { background: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--navy); color: var(--cream); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: #fff; }
.btn--solid { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* =========================================================
   PRODUCT GRID — REISS-style large image cards
   ========================================================= */

/* --- Homepage category cards (Woman / Man / Accessories), REISS-style full bleed --- */
.section--flush { padding: 0; }
.section--flush .container { max-width: none; padding: 0; }

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.home-category-grid .prod-card {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  overflow: hidden;
}
.home-category-grid .prod-card .img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-2);
}
/* Bottom veil so the overlaid category name stays readable */
.home-category-grid .prod-card .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 36, 62, 0) 55%, rgba(16, 36, 62, 0.55) 100%);
}
.home-category-grid .prod-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .6s ease;
}
.home-category-grid .prod-card:hover .img img {
  transform: scale(1.03);
}
/* Category name overlaid at the lower-left of the image */
.home-category-grid .prod-card .meta {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 24px 28px;
  text-align: left;
  z-index: 2;
}
.home-category-grid .prod-card .name {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0;
  color: #FFFFFF;
}
.home-category-grid .prod-card .cat,
.home-category-grid .prod-card .desc,
.home-category-grid .prod-card .inquire {
  display: none;
}

/* --- Full-width category card (Accessories), spans both columns --- */
.home-category-grid .prod-card--wide {
  grid-column: 1 / -1;
}
.home-category-grid .prod-card--wide .img {
  aspect-ratio: 16 / 9;
}

/* --- Product listing grid (Man / Woman pages) — same REISS full-bleed
       layout as the homepage category grid --- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.prod-card {
  position: relative;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.prod-card:hover {
  transform: none;
  box-shadow: none;
  border-color: none;
}
.prod-card .img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-2);
}
/* Bottom veil so the overlaid product name stays readable */
.prod-card .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 36, 62, 0) 55%, rgba(16, 36, 62, 0.55) 100%);
}
.prod-card .img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .6s ease;
}
.prod-card:hover .img img {
  transform: scale(1.03);
}
/* Product info overlaid at the lower-left of the image */
.prod-card .meta {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 24px 28px;
  text-align: left;
  z-index: 2;
}
.prod-card .cat {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.prod-card .name {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0;
  color: #FFFFFF;
}
.prod-card .desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.prod-card .inquire {
  display: none;
}

/* ---------- Capability grid (unchanged) ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.capability {
  padding: 32px 28px;
  background: #fff;
  border-top: 3px solid var(--gold);
}
.capability .icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 18px;
}
.capability h3 { color: var(--navy); margin-bottom: 10px; }
.capability p { color: var(--gray-700); margin: 0; font-size: 0.95rem; }

/* ---------- Certifications ---------- */
.certs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: center;
  justify-items: center;
}
.certs-row .cert {
  width: 100%;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.certs-row .cert img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  filter: none;
}

/* ---------- Contact QR + email ---------- */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 720px;
  margin: 0 auto;
}
.qr-card {
  background: #ffffff;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--gray-300);
}
.qr-card .qr-img {
  width: 180px; height: 180px;
  background: #ffffff;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  border: 1px solid var(--gray-200);
}
.qr-card .qr-img img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.qr-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.email-block {
  text-align: center;
  margin-top: 56px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--gray-300);
}
.email-block .label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-700);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.email-block a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Company info block ---------- */
.company-info {
  background: #fff;
  padding: 36px 40px;
  border-left: 3px solid var(--gold);
}
.company-info dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.company-info dd {
  margin: 0 0 24px;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}
.company-info dd:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 60px 0 28px;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; color: var(--cream); }
.footer-grid .brand-block p {
  font-size: 0.9rem;
  color: rgba(244, 239, 231, 0.78);
  margin: 14px 0 0;
  line-height: 1.7;
}
.footer-grid .brand-block .logo { color: var(--cream); }
.footer-grid .brand-block .logo svg { height: 30px; }
.footer-bar {
  border-top: 1px solid rgba(244, 239, 231, 0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(244, 239, 231, 0.6);
}

/* ---------- Mobile drawer ---------- */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--cream);
  z-index: 60;
  padding: 32px 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mobile-close {
  align-self: flex-end;
  background: none; border: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-700);
  cursor: pointer;
  margin-bottom: 12px;
}
.mobile-nav a {
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-300);
}
.mobile-nav a.active { color: var(--gold); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.trust-strip .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
  letter-spacing: 0.05em;
}
.trust-strip .item strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Form (Contact page) ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  border: 1px solid var(--gray-300);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 24px; }

/* ---------- Product detail (unchanged) ---------- */
.product-detail { padding: 52px 0 86px; background: #fff; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--gray-700); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.back-link:hover { color: var(--gold); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 72px; align-items: start; }
.detail-layout--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.detail-main-image { background: var(--gray-100); aspect-ratio: 4 / 5; overflow: hidden; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.detail-thumb { padding: 0; border: 1px solid var(--gray-300); background: var(--gray-100); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--navy); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-copy { padding-top: 12px; }
.detail-copy h1 { font-size: clamp(2.4rem, 4vw, 4.6rem); line-height: 1.02; margin: 12px 0 20px; }
.detail-intro { color: var(--gray-700); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }
.detail-rule { border-top: 1px solid var(--gray-300); margin: 30px 0; }
.detail-specs { display: grid; grid-template-columns: 130px 1fr; gap: 11px 18px; margin: 0 0 42px; font-size: .9rem; }
.detail-specs dt { color: var(--gray-700); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 600; }
.detail-specs dd { margin: 0; color: var(--ink); }
.size-guide h2 { font-size: 1.6rem; margin-bottom: 5px; }
.size-guide > p { color: var(--gray-700); font-size: .82rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.size-guide table { width: 100%; border-collapse: collapse; min-width: 430px; font-size: .82rem; }
.size-guide th, .size-guide td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--gray-300); }
.size-guide thead th { color: var(--gray-700); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.size-guide tbody th { color: var(--navy); }
.detail-contact { padding-top: 82px; }
.detail-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 240px)) minmax(260px, 1fr); gap: 22px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.detail-contact-grid .qr-card { padding: 24px; }
.detail-email { border: 1px solid var(--gray-300); background: #fff; padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.detail-email .label { color: var(--gray-700); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.detail-email a { color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; margin: 10px 0; overflow-wrap: anywhere; }
.detail-email p { color: var(--gray-700); font-size: .83rem; margin: 0; }


/* ---------- Responsive ---------- */
/* Hero transition band (1025-1200px): as the viewport narrows, the photo is
   enlarged by height and the subject drifts right. Push the copy further
   right, shrink the type a little, and lay a cream veil behind the text. */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-content .copy { margin-left: 53%; max-width: min(390px, 38vw); }
  .hero--accessories .hero-content .copy,
  .hero--about .hero-content .copy {
    margin-left: 53%;
    margin-right: 0;
    max-width: min(390px, 38vw);
  }
  .hero-content h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .hero-content .lead { font-size: .96rem; margin-bottom: 24px; }
  .hero.hero--compact::after,
  .hero.hero-slider::after {
    background: linear-gradient(90deg,
      rgba(244, 239, 231, 0.28) 0%,
      rgba(244, 239, 231, 0) 38%,
      rgba(244, 239, 231, 0.55) 62%,
      rgba(244, 239, 231, 0.88) 82%,
      rgba(244, 239, 231, 0.96) 100%);
  }
  .hero-slider .hero-content .copy { max-width: 40%; }
}

/* Hero compact band (<=1024px): all five pages switch to one shared
   "image on top / copy below" layout. The text sits on a cream bottom veil,
   so it cannot collide with a face at any viewport aspect ratio. */
@media (max-width: 1024px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .col-4 { grid-column: 1 / -1; margin-top: 12px; }
  .certs-row { gap: 36px; }

  .hero--compact { height: clamp(420px, 58vh, 520px); }
  .hero-slider { height: clamp(520px, 80vh, 680px); }
  .hero img,
  .hero-slider .hero-slide img { object-position: left top; }
  .hero::after,
  .hero.hero--compact::after,
  .hero.hero-slider::after {
    z-index: 1;
    background: linear-gradient(180deg,
      rgba(244, 239, 231, 0) 20%,
      rgba(244, 239, 231, 0.18) 36%,
      rgba(244, 239, 231, 0.72) 50%,
      rgba(244, 239, 231, 0.96) 64%,
      rgba(244, 239, 231, 1) 76%);
  }
  .hero-content {
    z-index: 2;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 56px;
  }
  .hero-slider .hero-content {
    z-index: 3;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 56px;
  }
  .hero-content .copy,
  .hero--about .hero-content .copy,
  .hero--accessories .hero-content .copy,
  .hero-slider .hero-content .copy {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    max-width: 760px;
    overflow-wrap: break-word;
  }
  .hero-content .lead {
    max-width: 560px;
    margin-bottom: 26px;
    overflow-wrap: break-word;
  }
  .hero-dots { bottom: 18px; right: 24px; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-icons .lang { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-icons { gap: 8px; }

  .section { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* Hero layout is handled once, in the <=1024px block above. */
  .capability-grid { grid-template-columns: 1fr; }

  /* Product grid: single column on mobile, tight REISS gaps */
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .home-category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Full-width card: back to normal flow, taller ratio on mobile */
  .home-category-grid .prod-card--wide {
    grid-column: auto;
  }
  .home-category-grid .prod-card--wide .img {
    aspect-ratio: 4 / 3;
  }

  /* Overlaid category name: tighter padding on mobile */
  .home-category-grid .prod-card .meta,
  .prod-grid .prod-card .meta {
    padding: 16px 20px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .form-row { grid-template-columns: 1fr; }

  .detail-layout { grid-template-columns: 1fr; gap: 42px; }
  .detail-copy { padding-top: 0; }
  .detail-contact-grid { grid-template-columns: 1fr 1fr; }
  .detail-email { grid-column: 1 / -1; }

  /* Certifications: 2 per row on mobile */
  .certs-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .certs-row .cert { max-width: 140px; }
  .certs-row .cert img { max-height: 90px; }

  /* Contact QR: stack */
  .contact-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .qr-card { padding: 24px; }

}
@media (max-width: 480px) {
  /* Hero: tighter type and bottom spacing on phones. */
  .hero--compact { height: clamp(420px, 62vh, 500px); }
  .hero-content,
  .hero-slider .hero-content { padding-bottom: 44px; }
  .hero-content h1 { font-size: clamp(1.7rem, 7.2vw, 2.2rem); max-width: 100%; }
  .hero-content .lead { font-size: .92rem; max-width: 100%; margin-bottom: 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .detail-contact-grid { grid-template-columns: 1fr; }
  .detail-email { grid-column: auto; }

  .footer-bar { flex-direction: column; align-items: flex-start; }
}