@charset "UTF-8";
/* =============================================================================
   Sri Ramakrishna International Residential School
   Design system + components. BEM naming, CSS custom properties, no inline CSS.

   01 Tokens        06 Header          11 Timeline
   02 Reset         07 Hero            12 Accordion
   03 Typography    08 Cards           13 Gallery & lightbox
   04 Layout        09 Stats           14 Footer
   05 Buttons       10 Forms           15 Motion / print
   ========================================================================== */

/* ── 01 TOKENS ────────────────────────────────────────────────────────────── */

:root {
  /* Brand ------------------------------------------------------------------ */
  --c-primary:        #0E4D3A;   /* dark green   — 9.30:1 on --c-bg (AAA)     */
  --c-primary-hover:  #155D46;
  --c-primary-deep:   #093226;
  --c-gold:           #C89B3C;   /* temple gold  — decorative only, 2.43:1    */
  --c-gold-soft:      #E3C888;
  --c-bg:             #FAF9F6;
  --c-surface:        #FFFFFF;
  --c-accent:         #E7F4EF;
  --c-accent-deep:    #D3EAE0;

  /* Secondary — terracotta. The warm counterweight to the green: it carries
     admissions, contact and "act now" surfaces. 5.07:1 on --c-bg (AA).       */
  --c-secondary:       #B04E24;
  --c-secondary-hover: #C55D2F;
  --c-secondary-deep:  #7E3415;
  --c-secondary-soft:  #FBEDE5;
  --c-secondary-tint:  #F3D9C9;
  --c-secondary-lit:   #E9A178;  /* legible on dark green                     */

  /* Tertiary — lake blue. The cool tone: academics, facts, data. 7.6:1.      */
  --c-tertiary:        #1F5673;
  --c-tertiary-hover:  #2A6A8C;
  --c-tertiary-deep:   #123B52;
  --c-tertiary-soft:   #E7F1F6;
  --c-tertiary-tint:   #CDE1EC;
  --c-tertiary-lit:    #8FC4DE;  /* legible on dark green                     */

  /* Text ------------------------------------------------------------------- */
  --c-text:           #1A1A1A;
  --c-text-soft:      #6B7280;   /* 4.59:1 on --c-bg — hold at >=16px         */
  --c-text-invert:    #FFFFFF;
  --c-text-invert-sf: rgba(255, 255, 255, .74);

  /* Lines & shadow --------------------------------------------------------- */
  --c-line:           rgba(14, 77, 58, .10);
  --c-line-strong:    rgba(14, 77, 58, .18);
  --shadow-sm:  0 1px 2px rgba(16, 40, 32, .04), 0 2px 8px rgba(16, 40, 32, .04);
  --shadow-md:  0 2px 4px rgba(16, 40, 32, .04), 0 12px 28px rgba(16, 40, 32, .07);
  --shadow-lg:  0 4px 8px rgba(16, 40, 32, .05), 0 24px 56px rgba(16, 40, 32, .11);

  /* Type ------------------------------------------------------------------- */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kn:      "Noto Sans Kannada", "Nirmala UI", "Tunga", sans-serif;

  /* Fluid scale — display headings tighten as they grow (see README).        */
  --fs-h1:      clamp(2.5rem, 1.6rem + 3.6vw, 4rem);      /* 40 → 64 */
  --fs-h2:      clamp(2rem, 1.45rem + 2.2vw, 3rem);       /* 32 → 48 */
  --fs-h3:      clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);   /* 24 → 36 */
  --fs-h4:      clamp(1.25rem, 1.1rem + .6vw, 1.75rem);   /* 20 → 28 */
  --fs-body:    1.125rem;                                  /* 18 */
  --fs-small:   1rem;                                      /* 16 */
  --fs-caption: .875rem;                                   /* 14 */
  --fs-eyebrow: .8125rem;                                  /* 13 */

  --lh-display: 1.08;
  --lh-heading: 1.22;
  --lh-body:    1.6;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* Space — 8pt ------------------------------------------------------------ */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3rem;
  --sp-9: 4rem;    --sp-10: 5rem;   --sp-11: 6.5rem; --sp-12: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Shell ------------------------------------------------------------------ */
  --max-page:   1440px;
  --container:  1320px;
  --gutter:     clamp(1.25rem, .75rem + 2vw, 2.5rem);
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;
  --radius-pill: 999px;

  --header-h:   84px;
  --announce-h: 0px;              /* measured by site.js */
  --header-top: 0px;              /* driven by site.js as the announce scrolls */
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --dur:        .38s;

  /* Stacking order. The header must outrank the drawer: the hamburger lives in
     the header and doubles as the drawer's close button, so a drawer painted
     over it would be impossible to dismiss. */
  --z-announce: 90;
  --z-backdrop: 150;
  --z-drawer:   160;
  --z-header:   200;
  --z-modal:    300;
}

@media (max-width: 640px) { :root { --header-h: 68px; } }

/* ── 02 RESET ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `overflow-x: hidden` turns <body> into a scroll container, which silently
     breaks position:sticky descendants on several mobile browsers. `clip`
     suppresses the sideways scroll without creating one. */
  overflow-x: clip;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* Long unbroken strings (emails, URLs) must not widen the page on a phone. */
p, li, td, th, h1, h2, h3, h4, a, address { overflow-wrap: break-word; }

body[data-lang="kn"] { font-family: var(--font-kn), var(--font-body); }
body[data-lang="kn"] h1, body[data-lang="kn"] h2,
body[data-lang="kn"] h3, body[data-lang="kn"] h4 { font-family: var(--font-kn), var(--font-display); }
body[data-lang="kn"] { --lh-display: 1.28; --lh-heading: 1.4; }

/* Pinned rather than merely `overflow: hidden` — iOS ignores the latter and
   scrolls the page behind the drawer. site.js restores the offset on release. */
body.is-locked {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

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

/* <picture> is a plain wrapper — it must inherit the box its <img> is sized
   against, otherwise object-fit on the image has nothing to fill. */
.hero__media picture,
.page-hero__media picture { display: block; width: 100%; height: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.u-dark :focus-visible, .site-header--solid .site-nav :focus-visible { outline-color: var(--c-gold-soft); }

::selection { background: var(--c-accent-deep); color: var(--c-primary-deep); }

/* ── 03 TYPOGRAPHY ────────────────────────────────────────────────────────── */

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--c-primary);
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: -.03em; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-display); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: var(--fw-bold); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); font-weight: var(--fw-bold); letter-spacing: -.01em; }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-primary-hover); }

strong, b { font-weight: var(--fw-semibold); }
small { font-size: var(--fs-small); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-gold));
  border-radius: 2px;
  flex: none;
}
.u-dark .eyebrow { color: var(--c-gold-soft); }

.lead {
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--c-text-soft);
  max-width: 62ch;
}
.u-dark .lead { color: var(--c-text-invert-sf); }

.prose p, .prose li { color: var(--c-text-soft); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h3, .prose h4 { color: var(--c-primary); margin-top: var(--sp-7); }

/* ── 04 LAYOUT ────────────────────────────────────────────────────────────── */

.page { max-width: var(--max-page); margin-inline: auto; background: var(--c-bg); }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow { width: min(880px, 100% - var(--gutter) * 2); }
.container--wide   { width: min(1560px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--accent { background: var(--c-accent); }
.section--surface { background: var(--c-surface); }
.section--warm { background: var(--c-secondary-soft); }
.section--cool { background: var(--c-tertiary-soft); }
.section--dark {
  background:
    radial-gradient(90ch 70ch at 12% 0%,   rgba(176, 78, 36, .34), transparent 62%),
    radial-gradient(80ch 60ch at 92% 100%, rgba(31, 86, 115, .40), transparent 60%),
    var(--c-primary-deep);
  color: var(--c-text-invert);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-text-invert); }

.section__head { max-width: 62ch; margin-bottom: var(--sp-9); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-6); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

@media (max-width: 900px) {
  .grid--split { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack--lg > * + * { margin-top: var(--sp-6); }

/* Utilities ---------------------------------------------------------------- */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.u-center { text-align: center; }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-8 { margin-top: var(--sp-8); }
.u-gold { color: var(--c-gold); }
.u-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.skip-link {
  position: absolute;
  left: var(--sp-4); top: -100px;
  z-index: 1000;
  background: var(--c-primary);
  color: var(--c-text-invert);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--c-text-invert); }

.rule {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-gold) 60%, var(--c-tertiary));
  border: 0; border-radius: 2px;
  margin: var(--sp-5) 0;
}

/* ── 05 BUTTONS ───────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-text-invert);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 1rem 1.75rem;
  min-height: 52px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -.005em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--c-primary-hover); color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-primary);
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong);
}
.btn--ghost:hover { --btn-bg: var(--c-accent); --btn-fg: var(--c-primary-deep); box-shadow: inset 0 0 0 1.5px var(--c-primary); }

.btn--gold { --btn-bg: var(--c-gold); --btn-fg: #2A1D06; }
.btn--gold:hover { --btn-bg: var(--c-gold-soft); --btn-fg: #2A1D06; }

.btn--warm { --btn-bg: var(--c-secondary); --btn-fg: var(--c-text-invert); }
.btn--warm:hover { --btn-bg: var(--c-secondary-hover); --btn-fg: var(--c-text-invert); }

.btn--cool { --btn-bg: var(--c-tertiary); --btn-fg: var(--c-text-invert); }
.btn--cool:hover { --btn-bg: var(--c-tertiary-hover); --btn-fg: var(--c-text-invert); }

/* Light sweep that follows the pointer across any button (see site.js). */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(255, 255, 255, .26), transparent 65%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn--ghost::before, .btn--light::before {
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(14, 77, 58, .10), transparent 65%);
}

.btn--light { --btn-bg: var(--c-surface); --btn-fg: var(--c-primary); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--c-primary-deep); }

.btn--onglass {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: var(--c-text-invert);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38);
  backdrop-filter: blur(8px);
}
.btn--onglass:hover { --btn-bg: rgba(255, 255, 255, .22); --btn-fg: var(--c-text-invert); }

.btn--sm { min-height: 42px; padding: .5rem 1.125rem; font-size: var(--fs-caption); }
.btn--block { width: 100%; }

/* Ripple, injected by site.js --------------------------------------------- */
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: currentColor;
  opacity: .22;
  pointer-events: none;
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--c-primary);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.u-dark .link-arrow { color: var(--c-gold-soft); }

/* ── 06 HEADER ────────────────────────────────────────────────────────────── */

.announce {
  position: relative;
  z-index: var(--z-announce);
  background: var(--c-primary-deep);
  color: var(--c-text-invert);
  font-size: var(--fs-caption);
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: .625rem 0;
  text-align: center;
}
.announce__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-gold);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.announce__link {
  color: var(--c-gold-soft);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 200, 136, .45);
}
.announce__link:hover { color: #fff; border-color: #fff; }

/* Genuinely fixed rather than sticky: sticky is fragile inside a clipped or
   transformed ancestor and fails outright on some mobile browsers. site.js
   drives --header-top so the bar rides down with the announce strip at the top
   of the page and then pins to 0 once that strip has scrolled away. */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
/* The header is out of flow, so this keeps the document height honest — every
   existing hero offset is measured against a header that occupies space. */
.site-header__spacer { height: var(--header-h); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* Transparent over hero, glass once scrolled ------------------------------ */
.site-header--float { background: transparent; }
.site-header--solid {
  background: rgba(250, 249, 246, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 30px rgba(16, 40, 32, .06);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header--solid { background: rgba(250, 249, 246, .98); }
}

/* backdrop-filter makes an element the containing block for *fixed* children.
   The drawer lives inside this header, so while the glass filter is on, the
   drawer resolves `inset: … 0 0 auto` against an 84px-tall header instead of
   the viewport and collapses to a sliver — the bug that made the mobile menu
   look broken on every interior page (where the header is always solid).
   site.js drops this class in while the drawer is open. */
.site-header--nav-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(250, 249, 246, .98);
}

/* min-width:0 lets the brand shrink instead of pushing the CTA off-screen. */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; min-width: 0; }
/* The school mark is a 300x120 landscape lockup — give it a matching box. */
.brand__mark { width: 72px; height: 40px; object-fit: contain; object-position: left center; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  color: var(--c-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: .625rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.site-header--float .brand__name { color: var(--c-text-invert); }
.site-header--float .brand__sub  { color: var(--c-text-invert-sf); }

.site-nav__list { display: flex; align-items: center; gap: 0; list-style: none; }
.site-nav__link {
  display: block;
  padding: .625rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav__link:hover { background: var(--c-accent); color: var(--c-primary); }
.site-nav__link[aria-current="page"] { color: var(--c-primary); font-weight: var(--fw-semibold); }
.site-nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; width: 18px;
  margin: 3px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-gold));
}
/* Underline grows out from the centre on hover. */
.site-nav__link { position: relative; }
.site-nav__link::before {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--c-secondary);
  transform: translateX(-50%);
  transition: width .28s var(--ease);
}
.site-nav__link:hover::before { width: 55%; }
.site-header--float .site-nav__link::before { background: var(--c-gold-soft); }
.site-header--float .site-nav__link { color: rgba(255, 255, 255, .88); }
.site-header--float .site-nav__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header--float .site-nav__link[aria-current="page"] { color: #fff; }

/* Fees / FAQ / Apply live in the drawer on small screens, and in the footer on
   desktop — the brief specifies exactly eight primary nav items. */
.site-nav__item--secondary { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--c-accent); }
.lang-switch__btn {
  padding: .3125rem .625rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.lang-switch__btn[aria-current="true"] { background: var(--c-surface); box-shadow: var(--shadow-sm); }
.site-header--float .lang-switch { background: rgba(255, 255, 255, .15); }
.site-header--float .lang-switch__btn { color: #fff; }
.site-header--float .lang-switch__btn[aria-current="true"] { background: rgba(255, 255, 255, .92); color: var(--c-primary); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--c-primary); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.site-header--float .nav-toggle__bar { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Eight primary items plus the brand and CTA need ~1100px of room; below that
   the nav becomes a drawer rather than wrapping or clipping. */
/* Drawer close button — only ever shown inside the open drawer. */
.site-nav__close {
  display: none;
  align-items: center; gap: var(--sp-2);
  margin: 0 0 var(--sp-4) auto;
  padding: .625rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-primary);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  min-height: 44px;
}
.site-nav__close:hover { background: var(--c-secondary-soft); color: var(--c-secondary-deep); }

@media (max-width: 1150px) {
  /* The drawer clears the fixed header rather than sliding under it, and sits
     below the header in the stack so the hamburger stays tappable throughout. */
  .site-nav {
    position: fixed;
    inset: calc(var(--header-top) + var(--header-h)) 0 0 auto;
    width: min(400px, 86vw);
    z-index: var(--z-drawer);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-6) var(--sp-6) var(--sp-9);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .site-nav__close { display: inline-flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    padding: var(--sp-4) var(--sp-2);
    min-height: 48px;                       /* comfortable touch target */
    display: flex; align-items: center;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    color: var(--c-text) !important;
    background: none !important;
  }
  .site-nav__link::before { display: none; }   /* hover underline is desktop-only */
  .site-nav__link[aria-current="page"] { color: var(--c-primary) !important; font-weight: var(--fw-bold); }
  .site-nav__link[aria-current="page"]::after { margin: 0 0 0 var(--sp-3); width: 14px; }
  .site-nav__item--secondary { display: block; }
  .site-nav__item--secondary:first-of-type { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 2px solid var(--c-gold); }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--apply { display: none; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: var(--z-backdrop);
    background: rgba(9, 50, 38, .5);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
}
@media (min-width: 1151px) {
  .nav-backdrop { display: none; }
  /* Guarantee the desktop bar is never left in a drawer state by a resize. */
  .site-nav { transform: none !important; visibility: visible !important; }
}

/* Tablet: the eight-item bar needs less air before it becomes a drawer. */
@media (min-width: 1151px) and (max-width: 1320px) {
  .site-nav__link { padding-inline: .45rem; font-size: .8125rem; }
  .site-header__actions { gap: var(--sp-2); }
}

@media (max-width: 640px) {
  .brand__mark { width: 52px; height: 30px; }
  .brand__name { font-size: .875rem; }
  .brand__sub { display: none; }
  .announce__inner { font-size: .75rem; gap: var(--sp-2); padding: .5rem 0; }
  .announce__link { white-space: nowrap; }
}
@media (max-width: 420px) {
  .lang-switch__btn { padding: .3125rem .5rem; }
  .brand__name { font-size: .8125rem; }
  .site-header__actions { gap: var(--sp-1); }
}

/* ── 07 HERO ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* The linear scrim is what makes the headline legible and is already heavy;
     the warm/cool tints only colour it, they must not darken it further. */
  background:
    radial-gradient(70ch 50ch at 88% 12%, rgba(176, 78, 36, .11), transparent 70%),
    radial-gradient(60ch 46ch at 4% 88%, rgba(31, 86, 115, .10), transparent 68%),
    linear-gradient(180deg, rgba(9, 50, 38, .74) 0%, rgba(9, 50, 38, .40) 34%, rgba(9, 50, 38, .60) 72%, rgba(9, 50, 38, .86) 100%);
}

/* Pointer spotlight — a warm light follows the cursor across the hero art. */
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%),
                              rgba(227, 200, 136, .20), rgba(176, 78, 36, .10) 45%, transparent 70%);
  transition: opacity .5s var(--ease);
}
.hero:hover .hero__glow { opacity: 1; }
.hero__inner { padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-11); }
.hero__content { max-width: 20ch; }
.hero .eyebrow { color: var(--c-gold-soft); }
.hero__title { color: var(--c-text-invert); max-width: 15ch; }
.hero__line { display: block; }
.hero__line--accent { color: var(--c-gold-soft); }
.hero__sub {
  margin-top: var(--sp-5);
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--c-text-invert-sf);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.hero__content { max-width: none; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: var(--sp-6);
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: var(--c-text-invert-sf);
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(to bottom, transparent, var(--c-gold-soft)); }
.hero__scroll-line::after {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-gold); margin: 0 0 0 -2px;
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-42px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero__scroll { display: none; }
  /* Lift the hero copy clear of the fixed WhatsApp / call buttons. */
  .hero__inner { padding-bottom: calc(var(--sp-11) + 4.5rem); }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Compact page banner (interior pages) ------------------------------------ */
.page-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-9);
  background: var(--c-primary-deep);
  color: var(--c-text-invert);
  isolation: isolate;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; opacity: .3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60ch 40ch at 92% 8%,  rgba(176, 78, 36, .40), transparent 62%),
    radial-gradient(52ch 36ch at 2% 96%,  rgba(31, 86, 115, .42), transparent 60%),
    linear-gradient(120deg, rgba(9, 50, 38, .94), rgba(9, 50, 38, .68));
}
/* Colour band anchoring the banner to the page below it. */
.page-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary) 38%, var(--c-gold) 62%, var(--c-tertiary));
}
.page-hero h1 { color: var(--c-text-invert); max-width: 22ch; }
.page-hero .eyebrow { color: var(--c-gold-soft); }
.page-hero .lead { margin-top: var(--sp-5); color: var(--c-text-invert-sf); }

.breadcrumb { margin-bottom: var(--sp-5); font-size: var(--fs-caption); }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; color: var(--c-text-invert-sf); }
.breadcrumb__list li + li::before { content: "/"; margin-right: var(--sp-2); opacity: .5; }
.breadcrumb a { color: var(--c-text-invert-sf); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ── 08 CARDS ─────────────────────────────────────────────────────────────── */

.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: var(--sp-7);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--c-accent);
  color: var(--c-primary);
  margin-bottom: var(--sp-5);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { margin-bottom: var(--sp-3); }
.card__text { color: var(--c-text-soft); font-size: var(--fs-small); }

/* Colour rotation ---------------------------------------------------------
   Card grids repeat the same icon tile a dozen times a page. Rotating the
   tint across green → terracotta → blue by position keeps the palette varied
   without asking every template to name a colour. */
.grid > *:nth-child(3n + 2) .card__icon,
.grid > *:nth-child(3n + 2) .contact-tile__icon {
  background: var(--c-secondary-soft); color: var(--c-secondary);
}
.grid > *:nth-child(3n + 3) .card__icon,
.grid > *:nth-child(3n + 3) .contact-tile__icon {
  background: var(--c-tertiary-soft); color: var(--c-tertiary);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); }
.card__icon { transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }

/* A hairline of brand colour appears along the top edge on hover. */
.card { position: relative; overflow: hidden; }
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover::after, .card:focus-within::after { transform: scaleX(1); }
.grid > *:nth-child(3n + 3) .card::after {
  background: linear-gradient(90deg, var(--c-tertiary), var(--c-primary), var(--c-tertiary-lit));
}

.card--flat { box-shadow: none; background: var(--c-accent); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line-strong); }

.card--quote { display: flex; flex-direction: column; gap: var(--sp-5); }
.card--quote .card__text { font-size: var(--fs-body); color: var(--c-text); }
.card__mark { font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--c-secondary); }
.card__person { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.card__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--c-primary); color: var(--c-text-invert);
  font-family: var(--font-display); font-weight: var(--fw-bold);
}
.card__name { font-weight: var(--fw-semibold); font-size: var(--fs-small); color: var(--c-text); }
.card__role { font-size: var(--fs-caption); color: var(--c-text-soft); }

/* Media / feature figure --------------------------------------------------- */
.figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.figure:hover img { transform: scale(1.045); }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 16 / 10; }
.figure__badge {
  position: absolute; left: var(--sp-5); bottom: var(--sp-5);
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--c-primary);
}

.quote-block {
  padding-left: var(--sp-6);
  border-left: 3px solid var(--c-gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  line-height: 1.4;
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  letter-spacing: -.015em;
}
.quote-block__by { display: block; margin-top: var(--sp-3); font-family: var(--font-body); font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--c-text-soft); letter-spacing: 0; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill-list li {
  padding: .4375rem .9375rem; border-radius: var(--radius-pill);
  background: var(--c-accent); color: var(--c-primary);
  font-size: var(--fs-caption); font-weight: var(--fw-medium);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.pill-list li:nth-child(3n + 2) { background: var(--c-secondary-soft); color: var(--c-secondary-deep); }
.pill-list li:nth-child(3n + 3) { background: var(--c-tertiary-soft);  color: var(--c-tertiary-deep); }
.pill-list li:hover { transform: translateY(-3px) scale(1.04); }

.check-list { list-style: none; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); font-size: var(--fs-small); color: var(--c-text-soft); line-height: 1.55; }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230E4D3A'%3E%3Cpath d='M8.1 13.4 5 10.3l1.1-1.1 2 2 5.8-5.8L15 6.5z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.u-dark .check-list li { color: var(--c-text-invert-sf); }

/* ── 09 STATS ─────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--sp-6); }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--c-text-invert-sf); }
.section--dark .stat + .stat { position: relative; }

/* Same rotation idea as the cards, in the tints that survive a dark ground. */
.stats > *:nth-child(3n + 2) .stat__value { color: var(--c-secondary-lit); }
.stats > *:nth-child(3n + 3) .stat__value { color: var(--c-tertiary-lit); }
.stat { transition: transform var(--dur) var(--ease); }
.stat:hover { transform: translateY(-4px); }

/* ── 10 FORMS ─────────────────────────────────────────────────────────────── */

.form { display: grid; gap: var(--sp-5); }
.form__section { display: grid; gap: var(--sp-5); }
.form__legend {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  padding: 0;
  margin-bottom: var(--sp-2);
}
.form fieldset { border: 0; padding: 0; margin: 0; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-5); }
.form__note { font-size: var(--fs-caption); color: var(--c-text-soft); }
.form__divider { height: 1px; background: var(--c-line); border: 0; margin: var(--sp-3) 0; }

/* Panelled form ------------------------------------------------------------
   A twenty-odd field application reads as a wall unless each stage is its own
   surface. Every fieldset becomes a numbered card; the columns are declared
   rather than auto-fit so a three-field row never leaves a stranded orphan. */
.form--panelled { gap: var(--sp-6); }

/* `.form fieldset { padding: 0 }` above outranks a lone class, so the panel
   qualifies itself the same way. */
.form fieldset.form-panel {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-7);
  border: 0;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (max-width: 560px) { .form fieldset.form-panel { padding: var(--sp-5); } }
.form-panel:focus-within { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.form-panel::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--c-primary);
}
.form-panel:nth-of-type(3n + 2)::after { background: var(--c-secondary); }
.form-panel:nth-of-type(3n + 3)::after { background: var(--c-tertiary); }

.form-panel__head {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.form-panel__num {
  flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-primary);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1rem;
  transition: transform var(--dur) var(--ease);
}
.form-panel:nth-of-type(3n + 2) .form-panel__num { background: var(--c-secondary-soft); color: var(--c-secondary); }
.form-panel:nth-of-type(3n + 3) .form-panel__num { background: var(--c-tertiary-soft);  color: var(--c-tertiary); }
.form-panel:focus-within .form-panel__num { transform: scale(1.08) rotate(-6deg); }
.form-panel__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--fw-bold); color: var(--c-primary); line-height: 1.25; }
.form-panel__hint  { font-size: var(--fs-caption); color: var(--c-text-soft); margin-top: 2px; }
.form-panel__body  { display: grid; gap: var(--sp-5); }

/* Declared column counts — they collapse to one column on narrow screens. */
.form__row { display: grid; gap: var(--sp-5); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.form__row--3 { --cols: 3; }
.form__row--1 { --cols: 1; }
@media (max-width: 860px) { .form__row { --cols: 2 !important; } }
@media (max-width: 560px) { .form__row { --cols: 1 !important; } }

/* Submit bar sticks to the bottom so the CTA is never a scroll away. */
.form__actions {
  position: sticky; bottom: var(--sp-4);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-md);
}
.form__actions .btn { flex: 1 1 240px; }
.form__actions .form__note { flex: 1 1 220px; margin: 0; }
@supports not (backdrop-filter: blur(1px)) { .form__actions { background: var(--c-surface); } }

/* Floating label ----------------------------------------------------------
   `.field` is a <p>, so the global `p + p { margin-top }` was pushing every
   field after the first down by a step and breaking row alignment. */
.field { position: relative; display: block; margin: 0; }
.field + .field { margin-top: 0; }
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 1.5rem 1rem .625rem;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-size: var(--fs-small);
  color: var(--c-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.field__textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7280'%3E%3Cpath d='M8 11 3.5 6.5 4.6 5.4 8 8.8l3.4-3.4 1.1 1.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-accent);
}
.field__label {
  position: absolute;
  left: 1rem; top: 1rem;
  font-size: var(--fs-small);
  color: var(--c-text-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field__textarea:focus + .field__label,
.field__textarea:not(:placeholder-shown) + .field__label,
.field__select + .field__label,
/* date/time inputs never match :placeholder-shown, and their native
   "dd-mm-yyyy" hint sits exactly where an un-floated label would — so these
   two always start floated. Same for selects, which show their own
   placeholder option. */
.field__input[type="date"] + .field__label,
.field__input[type="time"] + .field__label,
.field__input[type="month"] + .field__label {
  transform: translateY(-.6875rem) scale(.76);
  color: var(--c-primary);
  font-weight: var(--fw-medium);
}
.field__select:focus + .field__label,
.field__input[type="date"]:focus + .field__label { color: var(--c-secondary); }

/* Native date pickers render their own text — keep it clear of the label. */
.field__input[type="date"],
.field__input[type="time"],
.field__input[type="month"] { min-height: 58px; }
.field__input[type="date"]::-webkit-datetime-edit { padding-top: 2px; }
.field__input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; transition: opacity .2s var(--ease);
}
.field__input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* The placeholder option is a prompt, not data — grey it, colour the rest. */
.field__select option[value=""] { color: var(--c-text-soft); }

/* Focus ring picks up the terracotta so the active field is unmistakable. */
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px var(--c-secondary-soft);
}
.field { transition: transform .2s var(--ease); }
.field__req { color: #B3261E; margin-left: 2px; }
.field__error { display: block; margin-top: var(--sp-2); font-size: var(--fs-caption); color: #B3261E; font-weight: var(--fw-medium); }
.field--invalid .field__input,
.field--invalid .field__select,
.field--invalid .field__textarea { border-color: #B3261E; }
.field--invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }

/* A radio group is a whole control, not a text field — give it the same box
   height and border as its neighbours so rows line up. */
.field-group,
.form fieldset.field-group {
  padding: .875rem 1rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--c-line-strong);
  background: var(--c-bg);
}
.field-group__title { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--c-text-soft); margin-bottom: var(--sp-3); letter-spacing: .04em; text-transform: uppercase; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip span {
  display: inline-flex; align-items: center; min-height: 46px;
  padding: .625rem 1.25rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-surface);
  font-size: var(--fs-small); cursor: pointer;
  transition: all .2s var(--ease);
}
.radio-chip span:hover { border-color: var(--c-secondary); transform: translateY(-2px); }
.radio-chip input:checked + span {
  border-color: var(--c-secondary); background: var(--c-secondary-soft);
  color: var(--c-secondary-deep); font-weight: var(--fw-semibold);
  box-shadow: 0 0 0 3px rgba(176, 78, 36, .12);
}
.radio-chip input:focus-visible + span { outline: 3px solid var(--c-secondary); outline-offset: 3px; }

/* Consent sits alone at the end — make it a surface, not stray text. */
.checkbox { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-small); color: var(--c-text-soft); cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-secondary); flex: none; }
.consent-box {
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius);
  background: var(--c-secondary-soft);
  border: 1.5px solid var(--c-secondary-tint);
  transition: border-color .2s var(--ease);
}
.consent-box:focus-within { border-color: var(--c-secondary); }
.consent-box.field--invalid { background: #FDECEA; border-color: #B3261E; }

.honeypot { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  border-left: 4px solid;
}
.alert--error   { background: #FDECEA; border-color: #B3261E; color: #7A1A14; }
.alert--success { background: var(--c-accent); border-color: var(--c-primary); color: var(--c-primary-deep); }
.alert--info    { background: #FFF7E6; border-color: var(--c-gold); color: #6B4E10; }
.alert--warm    { background: var(--c-secondary-soft); border-color: var(--c-secondary); color: var(--c-secondary-deep); }
.alert--cool    { background: var(--c-tertiary-soft);  border-color: var(--c-tertiary);  color: var(--c-tertiary-deep); }

/* ── 11 TIMELINE & PROCESS ────────────────────────────────────────────────── */

.timeline { position: relative; list-style: none; display: grid; gap: var(--sp-6); padding-left: var(--sp-8); }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--c-gold), var(--c-accent-deep));
}
.timeline__item { position: relative; }
.timeline::before {
  background: linear-gradient(to bottom, var(--c-secondary), var(--c-gold) 45%, var(--c-tertiary));
}
.timeline__item::before {
  content: ""; position: absolute; left: calc(var(--sp-8) * -1 + 9px); top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-surface); border: 3px solid var(--c-gold);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.timeline__item:nth-child(3n + 2)::before { border-color: var(--c-secondary); }
.timeline__item:nth-child(3n + 3)::before { border-color: var(--c-tertiary); }
.timeline__item:hover::before { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(176, 78, 36, .14); }
.timeline__time {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}
.timeline__title { font-size: 1.125rem; font-weight: var(--fw-bold); font-family: var(--font-display); color: var(--c-primary); }
.timeline__text { font-size: var(--fs-small); color: var(--c-text-soft); margin-top: var(--sp-1); }
.section--dark .timeline__title { color: var(--c-text-invert); }
.section--dark .timeline__text { color: var(--c-text-invert-sf); }
.section--dark .timeline__item::before { background: var(--c-primary-deep); }

.steps { list-style: none; counter-reset: step; display: grid; gap: var(--sp-5); }
.step { display: flex; gap: var(--sp-5); counter-increment: step; }
.step__num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary); color: var(--c-text-invert);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.0625rem;
}
.step__num::before { content: counter(step); }
.step__num { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.step:nth-child(3n + 2) .step__num { background: var(--c-secondary); }
.step:nth-child(3n + 3) .step__num { background: var(--c-tertiary); }
.step:nth-child(3n + 2) .step__title { color: var(--c-secondary-deep); }
.step:nth-child(3n + 3) .step__title { color: var(--c-tertiary-deep); }
.step:hover .step__num { transform: scale(1.1) rotate(-8deg); box-shadow: var(--shadow-md); }
.step__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: var(--fw-bold); color: var(--c-primary); margin-bottom: var(--sp-2); }
.step__text { font-size: var(--fs-small); color: var(--c-text-soft); }

.factbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.factbar__item { background: var(--c-surface); padding: var(--sp-6); }
.factbar__label { font-size: var(--fs-caption); letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-soft); font-weight: var(--fw-semibold); }
.factbar__value { margin-top: var(--sp-2); font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-bold); color: var(--c-primary); }
.factbar__item { transition: background-color .3s var(--ease); }
.factbar__item:nth-child(3n + 2) .factbar__value { color: var(--c-secondary); }
.factbar__item:nth-child(3n + 3) .factbar__value { color: var(--c-tertiary); }
.factbar__item:hover { background: var(--c-accent); }
.factbar__item:nth-child(3n + 2):hover { background: var(--c-secondary-soft); }
.factbar__item:nth-child(3n + 3):hover { background: var(--c-tertiary-soft); }

/* ── 12 ACCORDION & TABS ──────────────────────────────────────────────────── */

.accordion { display: grid; gap: var(--sp-3); }
.accordion__item { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  line-height: 1.4;
}
.accordion__trigger:hover { background: var(--c-accent); }
.accordion__icon { flex: none; width: 24px; height: 24px; position: relative; margin-top: 3px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; border-radius: 2px; background: var(--c-secondary);
  transition: transform .3s var(--ease);
}
.accordion__item { border-left: 3px solid transparent; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.accordion__item:nth-child(3n + 1) { border-left-color: var(--c-primary); }
.accordion__item:nth-child(3n + 2) { border-left-color: var(--c-secondary); }
.accordion__item:nth-child(3n + 3) { border-left-color: var(--c-tertiary); }
.accordion__item:hover { transform: translateX(3px); }
.accordion__trigger:hover { background: var(--c-secondary-soft); }
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__body { padding: 0 var(--sp-6) var(--sp-6); color: var(--c-text-soft); font-size: var(--fs-small); }

.tabs__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.tabs__tab {
  padding: .625rem 1.25rem; border-radius: var(--radius-pill);
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--c-text-soft);
  border: 1.5px solid transparent; transition: all .2s var(--ease);
}
.tabs__tab:hover { color: var(--c-secondary-deep); background: var(--c-secondary-soft); transform: translateY(-2px); }
.tabs__tab[aria-selected="true"] {
  background: linear-gradient(120deg, var(--c-primary), var(--c-tertiary));
  color: var(--c-text-invert); font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-sm);
}
.tabs__tab[aria-selected="true"]:hover { color: var(--c-text-invert); }
.tabs__panel[hidden] { display: none; }

/* ── 13 GALLERY & LIGHTBOX ────────────────────────────────────────────────── */

.masonry { columns: 3 300px; column-gap: var(--sp-5); }
.masonry__item { break-inside: avoid; margin-bottom: var(--sp-5); }

.photo {
  position: relative; display: block; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: zoom-in;
}
.photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo__caption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-8) var(--sp-5) var(--sp-4);
  background: linear-gradient(to top, rgba(9, 50, 38, .88), transparent);
  color: #fff; font-size: var(--fs-caption); font-weight: var(--fw-medium);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.photo:hover .photo__caption, .photo:focus-visible .photo__caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; place-items: center;
  background: rgba(9, 50, 38, .94);
  padding: var(--sp-5);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox__figure { max-width: min(1200px, 94vw); max-height: 88vh; display: grid; gap: var(--sp-4); }
.lightbox__img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__caption { text-align: center; color: rgba(255, 255, 255, .86); font-size: var(--fs-small); }
.lightbox__count { display: block; margin-top: var(--sp-1); font-size: var(--fs-caption); color: rgba(255, 255, 255, .55); }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1;
  backdrop-filter: blur(6px);
  transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__btn--close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__btn--prev  { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .masonry { columns: 1; }
  .lightbox__btn--prev { left: var(--sp-3); }
  .lightbox__btn--next { right: var(--sp-3); }
  .photo__caption { opacity: 1; transform: none; }
}

/* Fee table ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--c-surface); }
.table { min-width: 720px; font-size: var(--fs-small); }
.table th, .table td { padding: var(--sp-4) var(--sp-5); text-align: left; }
.table thead th {
  background: linear-gradient(115deg, var(--c-primary-deep), var(--c-primary) 45%, var(--c-tertiary));
  color: var(--c-text-invert);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-caption); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr + tr { border-top: 1px solid var(--c-line); }
.table tbody tr:hover { background: var(--c-accent); }
.table td:first-child { font-weight: var(--fw-semibold); color: var(--c-primary); white-space: nowrap; }
.table .is-total { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--c-primary); font-variant-numeric: tabular-nums; }
.table td { font-variant-numeric: tabular-nums; color: var(--c-text-soft); }

/* Contact tiles ------------------------------------------------------------ */
.contact-tile { display: flex; gap: var(--sp-4); padding: var(--sp-6); background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; }
.contact-tile__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-accent); color: var(--c-primary); }
.contact-tile__icon svg { width: 22px; height: 22px; }
.contact-tile__label { font-size: var(--fs-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-soft); font-weight: var(--fw-semibold); margin-bottom: var(--sp-2); }
.contact-tile a { display: block; font-size: var(--fs-small); font-weight: var(--fw-medium); text-decoration: none; }
.contact-tile a:hover { text-decoration: underline; }

.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--c-accent); }
.map-frame iframe { display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; }

/* Floating actions --------------------------------------------------------- */
.floaters { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 90; display: grid; gap: var(--sp-3); }
.floater {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.floater:hover { transform: scale(1.07); box-shadow: var(--shadow-lg); }
.floater svg { width: 26px; height: 26px; }
.floater--wa { background: #25D366; color: #fff; }
.floater--call { background: var(--c-secondary); color: #fff; }
.floater--top { background: var(--c-surface); color: var(--c-tertiary); opacity: 0; visibility: hidden; }

/* A soft halo pulses out of the call button so it reads as "tap me". */
.floater--call::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(176, 78, 36, .5);
  animation: halo 2.8s var(--ease) infinite;
  pointer-events: none;
}
.floater { position: relative; }
@keyframes halo {
  0%   { box-shadow: 0 0 0 0 rgba(176, 78, 36, .45); }
  70%  { box-shadow: 0 0 0 16px rgba(176, 78, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 78, 36, 0); }
}
.floater--top[data-visible="true"] { opacity: 1; visibility: visible; }
@media (max-width: 560px) { .floaters { right: var(--sp-4); bottom: var(--sp-4); } .floater { width: 50px; height: 50px; } }

/* Announcement modal ------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; place-items: center; padding: var(--sp-5); background: rgba(9, 50, 38, .6); backdrop-filter: blur(4px); }
.modal[data-open="true"] { display: grid; }
.modal__box {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--c-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn .42s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__head { position: relative; padding: var(--sp-7) var(--sp-7) var(--sp-5); background: var(--c-primary-deep); color: var(--c-text-invert); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal__head h2 { color: var(--c-gold-soft); font-size: var(--fs-h4); }
.modal__sub { font-size: var(--fs-caption); color: var(--c-text-invert-sf); margin-top: var(--sp-2); }
.modal__close { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.25rem; display: grid; place-items: center; }
.modal__close:hover { background: rgba(255, 255, 255, .28); }
.modal__body { padding: var(--sp-6) var(--sp-7) var(--sp-7); }
.modal__body p { font-size: var(--fs-small); color: var(--c-text-soft); }
.modal__exam { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); background: #FFF7E6; border-left: 4px solid var(--c-gold); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: #6B4E10; }
.modal__phones { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.modal__phones a { padding: .4375rem .875rem; border-radius: var(--radius-pill); background: var(--c-accent); font-size: var(--fs-caption); font-weight: var(--fw-semibold); text-decoration: none; }

/* ── 14 FOOTER ────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  background:
    radial-gradient(80ch 50ch at 6% 0%,  rgba(176, 78, 36, .26), transparent 60%),
    radial-gradient(70ch 46ch at 96% 60%, rgba(31, 86, 115, .30), transparent 58%),
    var(--c-primary-deep);
  color: var(--c-text-invert-sf);
  padding-top: var(--sp-10);
  font-size: var(--fs-small);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary) 38%, var(--c-gold) 62%, var(--c-tertiary));
}
.site-footer h2, .site-footer h3 { color: var(--c-text-invert); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: var(--sp-8); padding-bottom: var(--sp-9); }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-7); } }

.site-footer__title { font-family: var(--font-display); font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-soft); margin-bottom: var(--sp-5); }
.site-footer__list { list-style: none; display: grid; gap: var(--sp-3); }
.site-footer__list a { color: var(--c-text-invert-sf); text-decoration: none; transition: color .2s var(--ease); }
.site-footer__list a:hover { color: #fff; }
.site-footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.site-footer__brand img { width: 54px; height: 54px; object-fit: contain; }
.site-footer__brand span { font-family: var(--font-display); font-weight: var(--fw-bold); color: #fff; font-size: 1rem; line-height: 1.25; }

.newsletter { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.newsletter input {
  flex: 1; min-width: 0;
  padding: .8125rem 1rem; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07); color: #fff;
  font-size: var(--fs-caption);
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter input:focus { outline: none; border-color: var(--c-gold); background: rgba(255, 255, 255, .12); }

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: var(--c-gold); color: var(--c-primary-deep); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; }

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  font-size: var(--fs-caption);
}
.site-footer__bar a { color: var(--c-gold-soft); text-decoration: none; }
.site-footer__bar a:hover { color: #fff; text-decoration: underline; }

/* ── 15 MOTION / PRINT ────────────────────────────────────────────────────── */

/* Scroll reveals ---------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal="blur"]  { transform: translateY(16px); filter: blur(9px); }
[data-reveal="rise"]  { transform: translateY(46px) scale(.97); }

[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* Stagger: children of a marked container come in one after another, so a
   card grid arrives as a sequence instead of a single block. */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .66s var(--ease), transform .66s var(--ease);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: .20s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: .28s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: .36s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: .44s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: .52s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: .60s; }
[data-stagger].is-visible > *:nth-child(n + 9) { transition-delay: .68s; }

/* Parallax ---------------------------------------------------------------- */
/* site.js writes --py; the element only ever translates, so it never triggers
   layout. Depth comes from the speed attribute, not from separate rules. */
[data-parallax-layer] {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}
.parallax-figure { overflow: hidden; border-radius: var(--radius); }
.parallax-figure img { transform: scale(1.16) translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* Pointer-reactive --------------------------------------------------------- */
/* Tilt: site.js writes --rx/--ry from the cursor's position over the card.
   The hover lift travels in --lift so tilt and lift compose in one transform
   instead of one clobbering the other. */
/* The transform lands on :hover rather than on the element itself. Most
   tilting cards also carry [data-reveal], whose `.is-visible { transform:
   none }` would cancel a base-level tilt — and at rest the reveal should own
   the transform anyway. On hover the tilt takes over; on leave it eases back
   to the resting transform. */
[data-tilt] {
  transition: transform .35s var(--ease), box-shadow var(--dur) var(--ease);
  transform-style: preserve-3d;
}
[data-tilt]:hover {
  transform: perspective(900px)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
             translate3d(0, var(--lift, 0px), 0);
}
[data-tilt].is-tilting { transition: transform .08s linear, box-shadow var(--dur) var(--ease); }
.card[data-tilt]:hover        { --lift: -6px; }
.figure[data-tilt]:hover      { --lift: -6px; }
.contact-tile[data-tilt]:hover { --lift: -5px; }
.photo[data-tilt]:hover       { --lift: -4px; }

/* Magnetic: the element leans toward the cursor as it approaches. */
[data-magnetic] { transition: transform .35s var(--ease); }
[data-magnetic]:hover { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
[data-magnetic].is-pulling { transition: transform .12s linear; }

/* Spotlight: a soft light tracks the cursor across a dark band. */
.section--dark, .site-footer { position: relative; isolation: isolate; }
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%),
                              rgba(227, 200, 136, .16), rgba(31, 86, 115, .12) 45%, transparent 72%);
}
[data-spotlight]:hover::after { opacity: 1; }

/* Hover depth for anything that should feel touchable. */
.figure { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.figure:hover, .contact-tile:hover { box-shadow: var(--shadow-lg); }
.social-row a:hover { transform: translateY(-3px) scale(1.1); }
.contact-tile { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.contact-tile__icon { transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.contact-tile:hover .contact-tile__icon { transform: rotate(-8deg) scale(1.1); }

/* Ambient drift on decorative art so a still page still breathes. */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
[data-float] { animation: floatY 6.5s ease-in-out infinite; }
[data-float="slow"] { animation-duration: 9s; }

/* Announce bar text slides in on load. */
@keyframes slideDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
.announce { animation: slideDown .6s var(--ease) both; }

/* Coarse pointers get none of the hover-driven work. */
@media (hover: none), (pointer: coarse) {
  [data-tilt], [data-magnetic] { transform: none !important; }
  [data-spotlight]::after, .hero__glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
  [data-parallax-layer], .parallax-figure img { transform: none !important; }
  [data-tilt], [data-magnetic] { transform: none !important; }
  .figure:hover img, .photo:hover img { transform: none; }
  .floater--call::after, [data-float] { animation: none; }
}

/* ── 16 RESPONSIVE REFINEMENTS ────────────────────────────────────────────── */

/* Laptop (≤1280px) — the eight-item nav is tight; ease the shell in. */
@media (max-width: 1280px) {
  :root { --container: 1140px; }
}

/* Tablet (≤1024px) ---------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-y: clamp(3.25rem, 2rem + 5vw, 5.5rem); }
  .grid--split { gap: var(--sp-7); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(min(50% - 1rem, 180px), 1fr)); }
  .masonry { columns: 2 260px; }
  .map-frame iframe { height: clamp(280px, 46vw, 400px); }
}

/* Large phone / small tablet (≤768px) --------------------------------------- */
@media (max-width: 768px) {
  :root { --radius: 14px; --radius-lg: 20px; }
  .section__head { margin-bottom: var(--sp-7); }
  .card { padding: var(--sp-6); }
  .factbar { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: var(--sp-7); }
  .step { gap: var(--sp-4); }
  .step__num { width: 40px; height: 40px; font-size: .9375rem; }
  .accordion__trigger { padding: var(--sp-4) var(--sp-5); font-size: 1rem; }
  .accordion__body { padding: 0 var(--sp-5) var(--sp-5); }
}

/* Phone (≤560px) ------------------------------------------------------------ */
@media (max-width: 560px) {
  .factbar { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .stat { padding: var(--sp-4) var(--sp-2); }
  .card { padding: var(--sp-5); }
  .card__icon { width: 48px; height: 48px; margin-bottom: var(--sp-4); }
  .contact-tile { padding: var(--sp-5); }
  .quote-block { padding-left: var(--sp-4); }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__tab { flex: none; }
  .lightbox__btn { width: 44px; height: 44px; }
  .modal__head, .modal__body { padding-inline: var(--sp-5); }

  /* Action rows stack full width; inline buttons (newsletter, header) keep
     their intrinsic size. */
  .hero__actions, .form__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .form__actions .btn,
  .section--dark .container > div > .btn { width: 100%; }
  .form__actions .btn, .form__actions .form__note { flex: 1 1 auto; }
  .form__actions .form__note { text-align: center; }
}

/* Anything that is tapped needs a finger-sized target. */
@media (pointer: coarse) {
  .site-nav__link, .site-footer__list a, .breadcrumb a,
  .lang-switch__btn, .contact-tile a { min-height: 44px; display: flex; align-items: center; }
  .site-footer__list { gap: var(--sp-1); }
  .link-arrow { min-height: 44px; }
}

/* The sticky form bar and the floating call buttons must not collide. */
@media (max-width: 900px) {
  .form__actions { bottom: calc(var(--sp-4) + 4.25rem); }
}
@media (max-width: 560px) {
  .floaters { gap: var(--sp-2); }
  .floater { width: 46px; height: 46px; }
  .floater svg { width: 22px; height: 22px; }
}

/* Short landscape phones: a 100svh hero leaves no room for anything else. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 460px; }
  .hero__scroll { display: none; }
}

@media print {
  .site-header, .site-footer, .floaters, .announce, .modal, .hero__scroll, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
