/* ==========================================================================
   IDEA PERABOT — design system.
   Plain CSS, no build step. Sections:
     1. Tokens      2. Reset/base     3. Layout      4. Header/nav
     5. Buttons     6. Hero           7. Sections    8. Category cards
     9. Catalogue  10. Features      11. Gallery    12. Bands/CTA
    13. Forms      14. Footer        15. Lightbox   16. Utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Warm, showroom-neutral palette. Walnut + brass on a paper ground. */
  --ink:        #241f1b;
  --ink-soft:   #4a423b;
  --muted:      #7b6f65;
  --line:       #e6ded4;
  --line-soft:  #f0eae2;
  --paper:      #fbf8f4;
  --card:       #ffffff;
  --walnut:     #6b4429;
  --walnut-dk:  #4e3120;
  --brass:      #b98a3e;
  --brass-soft: #f3e7d2;
  --wa:         #25d366;
  --wa-dk:      #1da851;

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;

  --shadow-sm:  0 1px 2px rgba(36, 31, 27, .06), 0 2px 6px rgba(36, 31, 27, .04);
  --shadow:     0 2px 6px rgba(36, 31, 27, .06), 0 12px 28px rgba(36, 31, 27, .08);
  --shadow-lg:  0 8px 20px rgba(36, 31, 27, .10), 0 28px 60px rgba(36, 31, 27, .14);

  --display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset / base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--walnut); text-decoration: none; }
a:hover { color: var(--walnut-dk); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brass-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 4. Header / nav ---------------------------------------------- */
/* Three zones: brand | nav (desktop only) | actions (always visible: language
   switch, WhatsApp, and the menu button below 1200px). Bahasa Melayu labels
   are the longest, so every width is sized for them. Breakpoints are in em
   (sizes below are at the default 16px) so a visitor who enlarges the
   browser's font size gets the drawer sooner instead of a clipped header. The WhatsApp rules use
   .btn.header-cta so they outrank the generic .btn rules in section 5. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-plain {
  background: rgba(251, 248, 244, .96);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); max-width: 75rem; }

.brand { display: flex; align-items: center; margin-right: auto; flex: none; }
.brand__name {
  font-family: var(--display); font-size: 1.32rem; font-weight: 700;
  letter-spacing: .085em; text-transform: uppercase; color: var(--ink); line-height: 1; white-space: nowrap;
}
.brand__mark { color: var(--brass); }

.site-header.is-over .brand__name,
.site-header.is-over .nav__link { color: #fff; }
.site-header.is-over .nav-toggle span { background: #fff; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 28px); }
.nav__link {
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brass); transition: right .28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--ink); }
.site-header.is-over .nav__link[aria-current="page"] { color: #fff; }
/* The logo already goes home on desktop; the menu drawer shows the link. */
.nav__link--home { display: none; }
/* Drawer-only block (language switch for the narrowest phones). */
.nav__extras { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Language switch — a two-option segmented control, BM first. */
.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.lang__btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; line-height: 1;
  color: var(--ink-soft); background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang__btn:hover { color: var(--ink); background: var(--line-soft); }
.lang__btn.is-active,
.lang__btn.is-active:hover { background: var(--ink); color: #fff; }
.site-header.is-over .lang {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px); box-shadow: none;
}
.site-header.is-over .lang__btn { color: #fff; }
.site-header.is-over .lang__btn:hover { background: rgba(255, 255, 255, .18); }
.site-header.is-over .lang__btn.is-active,
.site-header.is-over .lang__btn.is-active:hover { background: #fff; color: var(--ink); }

/* The header's WhatsApp button: the one action every page wants. */
.btn.header-cta {
  padding: 12px 20px; font-size: .93rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .38);
}
.btn.header-cta:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, .5); }
.btn.header-cta svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Below 1200px the links move into a drawer; language + WhatsApp stay in the bar.
   (The Malay links need ~1170px inline; measured, not guessed.)
   74.9375em = 1199px; keep in step with the matchMedia in main.js. */
@media (max-width: 74.9375em) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    transform: translateY(-120%);
    /* hidden from keyboard + screen readers when closed, AFTER the slide-out */
    visibility: hidden; transition: transform .34s var(--ease), visibility 0s linear .34s;
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
  .nav__link,
  .site-header.is-over .nav__link { color: var(--ink); padding: 15px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"],
  .site-header.is-over .nav__link[aria-current="page"] { color: var(--walnut); font-weight: 600; }
  .nav__link--home { display: block; }
}

/* Phones: the WhatsApp button becomes a round icon, everything tightens, and
   the menu button's tap area overhangs the gutter so its bars line up with
   the page edge. Brand, BM|EN, WhatsApp and menu all fit down to 360px. */
@media (max-width: 39.9375em) {   /* 639px */
  .header-bar { gap: 10px; }
  .header-actions { gap: 6px; }
  .btn.header-cta { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .btn.header-cta span { display: none; }
  .btn.header-cta svg { width: 22px; height: 22px; }
  .nav-toggle { margin-right: -10px; }
  .lang__btn { min-width: 34px; height: 28px; padding: 0 8px; }
}
@media (max-width: 29.9375em) { .brand__name { font-size: 1.1rem; letter-spacing: .06em; } }
@media (max-width: 23.375em) { .brand__name { font-size: 1rem; letter-spacing: .05em; } }

/* Below 360px (old small phones) the language switch moves into the drawer. */
@media (max-width: 22.4375em) {   /* 359px */
  .header-actions .lang { display: none; }
  .nav__extras {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 2px 4px;
  }
  .nav__extras-label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--walnut-dk); color: #fff; box-shadow: var(--shadow); }

.btn--wa { background: var(--wa); color: #06331a; }
.btn--wa:hover { background: var(--wa-dk); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brass-soft); color: var(--ink); }

.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }

.btn--sm { padding: 10px 17px; font-size: .86rem; }
.btn--block { width: 100%; }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 7vw, 86px);
  color: #fff; overflow: hidden; background: var(--walnut-dk);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20, 15, 11, .88) 0%, rgba(20, 15, 11, .52) 42%, rgba(20, 15, 11, .18) 72%, rgba(20, 15, 11, .32) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .34em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__lede { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: rgba(255, 255, 255, .9); max-width: 58ch; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__meta {
  margin-top: clamp(26px, 4vw, 44px); padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px);
}
.hero__meta div { min-width: 120px; }
.hero__meta dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 4px; }
.hero__meta dd { margin: 0; font-size: .98rem; font-weight: 600; color: #fff; }

.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); margin-bottom: .9em;
}
.hero .eyebrow { color: var(--brass-soft); }

/* ---------- 7. Sections -------------------------------------------------- */
.section { padding: clamp(54px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--paper { background: var(--paper); }
.section--card { background: #fff; }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .82); }
.section--ink h2, .section--ink h3 { color: #fff; }

.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.04rem; }

.page-head {
  padding: calc(var(--header-h) + clamp(38px, 6vw, 70px)) 0 clamp(26px, 4vw, 48px);
  background: linear-gradient(180deg, var(--brass-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }

/* ---------- 8. Category cards -------------------------------------------- */
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card__media { aspect-ratio: 4 / 3; background: var(--line-soft); overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body { padding: 18px 20px 22px; }
.cat-card__body h3 { margin-bottom: .25em; }
.cat-card__body p { color: var(--muted); font-size: .93rem; margin: 0; }
.cat-card__more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: .86rem; font-weight: 600; color: var(--walnut);
}
.cat-card__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(4px); }

/* ---------- 9. Catalogue -------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.chip {
  appearance: none; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--walnut); color: var(--walnut); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search {
  position: relative; display: flex; align-items: center; min-width: min(230px, 100%); flex: 1 1 230px;
}
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  font: inherit; font-size: .92rem; width: 100%;
  padding: 11px 15px 11px 40px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.search input:focus { border-color: var(--walnut); outline: none; box-shadow: 0 0 0 4px var(--brass-soft); }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(16px, 2.2vw, 26px); }

.model {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.model__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--line-soft);
  cursor: zoom-in; overflow: hidden;
}
.model__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.model:hover .model__media img { transform: scale(1.04); }
.model__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.model__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.model__code {
  font-family: var(--display); font-size: 1.24rem; font-weight: 700;
  letter-spacing: .02em; margin: 0 0 3px;
}
.model__code span { color: var(--muted); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--sans); display: block; font-weight: 600; margin-bottom: 2px; }
.model__desc { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.model__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.model__specs li {
  font-size: .76rem; font-weight: 600; color: var(--ink-soft);
  background: var(--line-soft); border-radius: 6px; padding: 5px 9px;
}
.model__actions { margin-top: auto; display: flex; gap: 8px; }
.model__actions .btn { flex: 1; }

.price-note {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--brass-soft); border: 1px solid #e7d4b2; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 30px; color: var(--ink-soft); font-size: .96rem;
}
.price-note svg { width: 22px; height: 22px; color: var(--brass); flex: none; margin-top: 2px; }
.price-note strong { color: var(--ink); }

.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}

/* ---------- 10. Features -------------------------------------------------- */
.feature { text-align: left; }
.feature__icon {
  display: block; width: 46px; height: 46px; margin-bottom: 16px;
  color: var(--walnut); background: var(--brass-soft); border-radius: 12px; padding: 10px;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.section--ink .feature__icon { background: rgba(255, 255, 255, .1); color: var(--brass); }
.section--ink .feature p { color: rgba(255, 255, 255, .72); }

.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
}
.step h3 { font-size: 1.08rem; margin-bottom: .2em; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- 11. Gallery --------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.gallery__item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--line-soft); cursor: zoom-in; border: 0; padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (max-width: 620px) { .gallery__item--wide { grid-column: span 1; aspect-ratio: 1; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 12. Bands / CTA ----------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--walnut-dk) 0%, var(--walnut) 100%);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .84); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 820px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; color: var(--ink); line-height: 1; }
.section--ink .stat__num { color: #fff; }
.stat__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- 13. Forms ----------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .97rem; width: 100%;
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--walnut); box-shadow: 0 0 0 4px var(--brass-soft);
}
.field__hint { font-size: .81rem; color: var(--muted); }
.form__note { font-size: .86rem; color: var(--muted); }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--walnut); flex: none; margin-top: 3px; }
.contact-list dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-weight: 500; }

.map-frame {
  border: 0; width: 100%; height: 380px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--line-soft);
}

/* ---------- 14. Footer ---------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: clamp(46px, 6vw, 76px) 0 28px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer__brand .brand__name { color: #fff; font-size: 1.5rem; }
.footer__brand p { font-size: .94rem; margin-top: 14px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s var(--ease);
}
.socials a:hover { background: var(--brass); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom {
  margin-top: clamp(30px, 4vw, 52px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.credit a { color: rgba(255, 255, 255, .8); }

/* ---------- 15. Lightbox -------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(18, 14, 11, .92); padding: clamp(16px, 4vw, 56px);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(1100px, 100%); max-height: 84vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vw, 30px);
  text-align: center; color: rgba(255, 255, 255, .86); font-size: .92rem; padding-inline: 20px;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(10px, 2vw, 26px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 26px); }
@media (max-width: 620px) { .lightbox__nav { top: auto; bottom: 16px; } }

body.no-scroll { overflow: hidden; }

/* ---------- 16. Utilities ------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(26px, 4vw, 44px); }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Scroll reveal — scoped to html.js so a JS failure can never blank the page. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .lightbox, .btn, .site-footer { display: none !important; }
  body { background: #fff; }
}
