/*
 * VIVANA design system.
 *
 * Hand-authored and authoritative. This replaces the generated stylesheet from
 * the original design export: the repositioning inverted the site from
 * dark-dominant glass to a light, navy-anchored layout, which is a structural
 * change rather than a recolour.
 *
 * PALETTE  (from the brand sheet, with one addition)
 *   Deep Navy      #062847   header, footer, dark sections, headings
 *   Dark Navy      #082E50   cards and darker sections
 *   VIVANA Teal    #0099A8   brand colour: fills, icons, decoration
 *   Teal Ink       #007F8B   ADDED. Same hue, 17% darker. Used wherever teal
 *                            carries TEXT on a light background, because
 *                            #0099A8 on off-white is 3.29:1 and fails WCAG AA.
 *                            #007F8B reaches 4.58:1 and passes. Nobody reads
 *                            them as different brand colours.
 *   Bright Turquoise #00AEB8 highlights, icons, details
 *   Soft Aqua      #DDF4F3   light section bands
 *   Coral          #FF7C72   selected CTAs and small accents only. Always
 *                            carries a NAVY label: white on coral is 2.51:1
 *                            and fails; navy on coral is 5.97:1 and passes.
 *   Off-White      #F8FBFA   main page background
 *   White          #FFFFFF   cards, text on dark
 *   Dark Text      #0A2946   body copy
 */

/* ------------------------------------------------------------------ tokens */

:root {
  --navy-900: #062847;
  --navy-800: #082E50;
  --teal: #0099A8;
  --teal-ink: #007F8B;
  --turquoise: #00AEB8;
  --aqua: #DDF4F3;
  --coral: #FF7C72;
  --off-white: #F8FBFA;
  --white: #FFFFFF;
  --ink: #0A2946;

  --ink-soft: rgba(10, 41, 70, 0.72);
  --ink-faint: rgba(10, 41, 70, 0.55);
  --line: rgba(6, 40, 71, 0.12);
  --line-strong: rgba(6, 40, 71, 0.2);

  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.78);
  --on-dark-faint: rgba(255, 255, 255, 0.58);
  --line-dark: rgba(255, 255, 255, 0.16);

  --shadow-sm: 0 2px 8px -2px rgba(6, 40, 71, 0.1);
  --shadow: 0 18px 40px -24px rgba(6, 40, 71, 0.3);
  --shadow-lg: 0 34px 70px -32px rgba(6, 40, 71, 0.35);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(56px, 8vw, 112px);

  color-scheme: light;
}

/* --------------------------------------------------------------- baseline */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-ink); text-decoration: none; }
a:hover { color: var(--navy-900); text-decoration: underline; }

::selection { background: var(--aqua); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy-900);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 300; }
h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 300; }
h3 { font-size: clamp(21px, 1.9vw, 26px); }

p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Skip link: visible only when focused. */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy-900); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-pill); z-index: 999;
}
.skip:focus { left: 16px; top: 16px; }

/* -------------------------------------------------------------- typography */

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 14px;
}

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-900);
}

/*
 * Two tiers.
 *
 * Eight nav items, a language selector and a CTA need about 1320px on one
 * row, which no laptop gives us. Splitting brand + actions from the nav lets
 * the nav have the full container width, so it stays a real horizontal menu
 * down to ~950px instead of collapsing into a hamburger on every desktop.
 */
.header-top .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
}

.header-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header-nav .wrap { display: flex; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--white); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 32px; object-fit: contain; }
.brand span {
  font-family: var(--serif); font-size: 21px;
  letter-spacing: 0.28em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

.nav a {
  padding: 12px 14px;
  color: var(--on-dark-soft); font-size: 14.5px; font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--white); text-decoration: none; border-bottom-color: var(--turquoise); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--coral); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }

/* Language switcher */
.lang-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat right 13px center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  color: var(--white);
  font: inherit; font-size: 13.5px;
  padding: 9px 32px 9px 14px;
  cursor: pointer;
}
.lang-select option { color: var(--ink); background: var(--white); }

/* Revealed by the responsive block near the foot of this file. */
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  color: var(--white);
  padding: 10px 14px;
  font: inherit; font-size: 14.5px; cursor: pointer;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, box-shadow 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Primary: teal-ink fill so the white label clears 4.5:1. */
.btn-primary { background: var(--teal-ink); color: var(--white); box-shadow: 0 12px 28px -14px rgba(0, 127, 139, 0.9); }
.btn-primary:hover { background: #006C77; color: var(--white); }

/* Accent: coral with a NAVY label. White on coral fails contrast. */
.btn-accent { background: var(--coral); color: var(--navy-900); box-shadow: 0 12px 28px -14px rgba(255, 124, 114, 0.9); }
.btn-accent:hover { background: #FF6A5F; color: var(--navy-900); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy-900); }
.btn-outline:hover { background: var(--white); border-color: var(--teal-ink); color: var(--navy-900); }

.btn-on-dark { background: var(--white); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--aqua); color: var(--navy-900); }

.btn-ghost-dark { background: transparent; border-color: var(--line-dark); color: var(--white); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Compact button for the header row, where space is tightest. */
.header-actions .btn { padding: 11px 20px; font-size: 14.5px; }

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(38px, 5vw, 68px); }

.band-white { background: var(--white); }
.band-off { background: var(--off-white); }
.band-aqua { background: var(--aqua); }

.band-navy { background: var(--navy-900); color: var(--on-dark); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .eyebrow { color: var(--turquoise); }
.band-navy .body, .band-navy .lede { color: var(--on-dark-soft); }
.band-navy a { color: var(--turquoise); }
.band-navy a:hover { color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head .lede { margin-top: 18px; }

/* -------------------------------------------------------------------- hero */

.hero {
  background: var(--navy-900);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 9vw, 120px);
}

/* Decorative wash. Purely presentational, so it is hidden from assistive tech. */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -20%; height: 130%;
  background:
    radial-gradient(48% 60% at 22% 24%, rgba(0, 174, 184, 0.28), transparent 68%),
    radial-gradient(42% 52% at 82% 30%, rgba(0, 153, 168, 0.22), transparent 72%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero .eyebrow { color: var(--turquoise); }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lede { color: var(--on-dark-soft); margin-top: 22px; max-width: 56ch; }

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.35;
  color: var(--turquoise);
  margin-top: 26px;
  max-width: 30ch;
}

.hero .btn-row { margin-top: 38px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.page-hero { background: var(--navy-900); color: var(--on-dark); padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .lede { color: var(--on-dark-soft); margin-top: 20px; }
.page-hero .lede + .lede { margin-top: 14px; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }

.card .rule { width: 40px; height: 3px; border-radius: 3px; background: var(--teal); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

.band-aqua .card { border-color: rgba(6, 40, 71, 0.08); }

.card-dark { background: var(--navy-800); border-color: rgba(255, 255, 255, 0.1); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--on-dark-soft); }
.card-dark .rule { background: var(--turquoise); }

/* Numbered offering cards */
.offering {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 36px);
  box-shadow: var(--shadow-sm);
}
.offering-number {
  font-family: var(--serif); font-size: 40px; line-height: 1;
  color: var(--teal); min-width: 2ch;
}
.offering h3 { margin-bottom: 10px; }
.offering p { color: var(--ink-soft); font-size: 16.5px; }
.offering .audience {
  display: inline-block; margin-top: 14px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--aqua); color: var(--navy-900);
  font-size: 13.5px; font-weight: 600;
}

/* --------------------------------------------------------------- statistic */

.stat-block { text-align: center; max-width: 34ch; margin-inline: auto; }
.stat-number {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 7vw, 88px); line-height: 1;
  color: var(--teal-ink);
}
.band-navy .stat-number { color: var(--turquoise); }
.stat-label { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); }
.band-navy .stat-label { color: var(--on-dark-soft); }
.stat-source { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }
.band-navy .stat-source { color: var(--on-dark-faint); }

/* ------------------------------------------------------- language ring */

.lotus-ring { position: relative; width: 100%; aspect-ratio: 1; max-width: 760px; margin: 0 auto; }
.lotus-ring .ring-line {
  position: absolute; top: 50%; left: 50%; width: min(74%, 560px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 50%;
}
.lotus-ring img {
  position: absolute; top: 50%; left: 50%; width: min(34%, 250px);
  transform: translate(-50%, -50%);
}

.petal {
  position: absolute; top: 50%; left: 50%;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: clamp(12.5px, 1.1vw, 15px); font-weight: 600;
  color: var(--navy-900); white-space: nowrap;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background 0.3s;
}
.petal:hover { border-color: var(--teal); background: var(--aqua); text-decoration: none; }
.petal[aria-current="true"] { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }

/* Simple stacked list on small screens, where a ring cannot fit. */
.lang-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ------------------------------------------------------------------- lists */

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: ""; flex: none; margin-top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}

/* ---------------------------------------------------------------- partners */

.partner {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.partner-logo {
  width: 88px; height: 88px; flex: none; border-radius: 16px;
  overflow: hidden; background: var(--aqua);
  display: flex; align-items: center; justify-content: center;
}
.partner h3 { font-size: 20px; }
.partner p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  padding: 10px 18px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); font-size: 14.5px; color: var(--ink-soft);
  background: var(--white);
}

/* ----------------------------------------------------------------- founder */

.founder-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.founder-quotes {
  display: flex; flex-direction: column; gap: 4px; margin-top: 30px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.3vw, 31px); line-height: 1.25;
  color: var(--navy-900);
}
.founder-quotes span:last-child { color: var(--teal-ink); }

/* ------------------------------------------------------------------- forms */

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }

.field input, .field select, .field textarea {
  width: 100%; padding: 14px 17px;
  /* 16px minimum stops iOS zooming the page on focus. */
  font: inherit; font-size: 16px;
  color: var(--ink); background: var(--off-white);
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--teal-ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C4362B; }

.field-error { display: block; margin-top: 6px; font-size: 14px; color: #C4362B; }
.form-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 15.5px; min-height: 1.4em; }
.form-status[data-tone="error"] { color: #C4362B; }
.form-status[data-tone="success"] { color: var(--teal-ink); font-weight: 600; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ banner */

.banner {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 56px); text-align: center;
}
.banner h2 { color: var(--white); font-size: clamp(24px, 3vw, 40px); }

.cta-panel {
  background: var(--navy-900); color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4.4vw, 62px);
  display: grid; grid-template-columns: 1.3fr auto;
  gap: clamp(24px, 4vw, 48px); align-items: center;
}
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: var(--on-dark-soft); margin-top: 14px; }

.note {
  background: var(--aqua); border-radius: var(--radius);
  padding: 20px 24px; font-size: 15px; color: var(--ink-soft);
}

/* --------------------------------------------------------------- resources */

.res-category { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 34px; }
.res-category:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.res-category h3 { margin-bottom: 6px; }
.res-count { font-size: 14px; color: var(--ink-faint); }

.res-item {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-top: 12px;
  transition: border-color 0.25s, transform 0.25s;
}
.res-item:hover { border-color: var(--teal); transform: translateY(-2px); text-decoration: none; }
.res-item h4 { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--navy-900); margin: 0; }
.res-item p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.res-meta { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

.res-empty { font-size: 15px; color: var(--ink-faint); font-style: italic; margin-top: 10px; }

.article-body { max-width: 68ch; }
.article-body h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 40px 0 14px; }
.article-body h3 { margin: 30px 0 10px; }
.article-body p { margin-bottom: 18px; color: var(--ink-soft); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink-soft); }
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy-900); color: var(--on-dark-soft); padding-block: clamp(44px, 6vw, 72px) 34px; }
.site-footer h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
                  text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer a { color: var(--on-dark-soft); font-size: 15px; }
.site-footer a:hover { color: var(--white); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-legal {
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px; line-height: 1.7; color: var(--on-dark-faint);
}
.footer-legal p + p { margin-top: 10px; }

/* ------------------------------------------------------------- animation */

@keyframes vvRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
[data-reveal] { animation: vvRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@supports (animation-timeline: view()) {
  [data-reveal] { animation-timeline: view(); animation-range: entry 3% cover 20%; }
}

/* ----------------------------------------------------------------- scripts */

/* Non-Latin scripts need their own faces and looser leading. */
html[data-vv-script="ar"] body, html[data-vv-script="ar"] body * { font-family: 'Noto Sans Arabic', sans-serif !important; letter-spacing: normal !important; }
html[data-vv-script="ur"] body, html[data-vv-script="ur"] body * { font-family: 'Noto Nastaliq Urdu', serif !important; letter-spacing: normal !important; line-height: 2 !important; }
html[data-vv-script="bn"] body, html[data-vv-script="bn"] body * { font-family: 'Noto Sans Bengali', sans-serif !important; letter-spacing: normal !important; }
html[data-vv-script="gu"] body, html[data-vv-script="gu"] body * { font-family: 'Noto Sans Gujarati', sans-serif !important; letter-spacing: normal !important; }
html[data-vv-script="pa"] body, html[data-vv-script="pa"] body * { font-family: 'Noto Sans Gurmukhi', sans-serif !important; letter-spacing: normal !important; }

html[dir="rtl"] .nav { margin-inline-start: auto; }
html[dir="rtl"] .offering { grid-template-columns: auto 1fr; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid, .founder-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 950px) {
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 8px 18px;
  }
  .header-nav.is-open { display: block; }
  .header-nav .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav a[aria-current="page"] { border-bottom-color: var(--coral); }
  .nav-toggle { display: inline-flex; }
  .header-top { position: relative; }
  .site-header { position: sticky; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .brand span { font-size: 18px; letter-spacing: 0.2em; }
  .lang-select { padding: 8px 30px 8px 11px; font-size: 13.5px; }
  .offering { grid-template-columns: 1fr; gap: 12px; }
  .offering-number { font-size: 32px; }
  .partner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

/* Honour a reduced-motion preference: keep the layout, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .site-footer, .btn, .form-card { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ==========================================================================
 * MOTION: the water language
 *
 * The brand mark is a lotus and the palette is teal and aqua, so movement on
 * this site behaves like water: a ripple spreads from wherever you touched,
 * sections meet along a wave rather than a hard edge, and things settle
 * rather than snap.
 *
 * Every effect below is suppressed under prefers-reduced-motion — a
 * full-screen ripple is exactly the kind of motion that triggers vestibular
 * discomfort, and this is a health site.
 * ========================================================================== */

/* --------------------------------------------------- page transition ripple */

.vv-wave {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  /* Expands from the point that was clicked; JS sets --wx / --wy. */
  --wx: 50%;
  --wy: 50%;
  background:
    radial-gradient(circle at var(--wx) var(--wy),
      rgba(0, 174, 184, 0.97) 0%,
      rgba(0, 153, 168, 0.95) 34%,
      rgba(6, 40, 71, 0.97) 100%);
  clip-path: circle(0% at var(--wx) var(--wy));
  will-change: clip-path, opacity;
}

/* Two rings run ahead of the fill, so it reads as water rather than a wipe. */
.vv-wave::before,
.vv-wave::after {
  content: "";
  position: absolute;
  top: var(--wy);
  left: var(--wx);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid rgba(221, 244, 243, 0.6);
  opacity: 0;
  transform: scale(0);
}

/* Leaving: ripple opens out and covers the page. */
html.vv-leaving .vv-wave {
  visibility: visible;
  opacity: 1;
  animation: vvRippleOut 620ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
html.vv-leaving .vv-wave::before { animation: vvRing 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
html.vv-leaving .vv-wave::after  { animation: vvRing 620ms cubic-bezier(0.22, 1, 0.36, 1) 90ms forwards; }

/* Arriving: the ripple recedes, revealing the new page. */
html.vv-entering .vv-wave {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at 50% 50%);
  animation: vvRippleIn 700ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Content drifts up as the water recedes — the page surfacing. */
html.vv-entering main {
  animation: vvSurface 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vvRippleOut {
  from { clip-path: circle(0% at var(--wx) var(--wy)); }
  to   { clip-path: circle(150% at var(--wx) var(--wy)); }
}

@keyframes vvRippleIn {
  from { clip-path: circle(150% at 50% 50%); opacity: 1; }
  80%  { opacity: 1; }
  to   { clip-path: circle(0% at 50% 50%); opacity: 0; visibility: hidden; }
}

@keyframes vvRing {
  0%   { opacity: 0.85; transform: scale(0); }
  100% { opacity: 0; transform: scale(190); }
}

@keyframes vvSurface {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- click ripple */

/* Buttons and petals get their own small ripple, so a press feels answered
   even when it does not navigate. */
.btn, .petal, .res-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.vv-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: vvTouch 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: -1;
}

/* On light surfaces a white ripple is invisible; tint it instead. */
.btn-outline .vv-ripple,
.btn-on-dark .vv-ripple,
.petal .vv-ripple,
.res-item .vv-ripple {
  background: rgba(0, 153, 168, 0.28);
}

@keyframes vvTouch {
  to { transform: scale(2.6); opacity: 0; }
}

/* --------------------------------------------------------- wave dividers */

/*
 * The navy hero meets the light page along a wave rather than a straight cut.
 * The fill is the off-white body colour, because the band after a hero is
 * always band-off (see the alternation in sections/render.php).
 */
.hero, .page-hero {
  position: relative;
  padding-bottom: calc(clamp(60px, 9vw, 120px) + 40px);
}

.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 5vw, 78px);
  background: var(--off-white);
  /* A gentle double crest. */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,52 C240,104 420,4 720,40 C1020,76 1200,116 1440,58 L1440,100 L0,100 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,52 C240,104 420,4 720,40 C1020,76 1200,116 1440,58 L1440,100 L0,100 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

/* The CTA panel is navy on light; give it a soft caustic shimmer. */
.cta-panel, .banner {
  position: relative;
  overflow: hidden;
}

.cta-panel::after, .banner::after {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(0, 174, 184, 0.3), transparent 70%),
    radial-gradient(36% 44% at 80% 70%, rgba(0, 153, 168, 0.24), transparent 72%);
  pointer-events: none;
  animation: vvDrift 26s ease-in-out infinite;
}

.cta-panel > *, .banner > * { position: relative; z-index: 1; }

@keyframes vvDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

/* The hero lotus floats, like something resting on water. */
.hero img[src*="lotus"] {
  animation: vvFloat 7s ease-in-out infinite;
}

@keyframes vvFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1.2deg); }
}

/* ------------------------------------------------------------ scrolling */

html {
  /* Anchors must clear the sticky two-tier header. */
  scroll-padding-top: 130px;
}

@media (max-width: 950px) {
  html { scroll-padding-top: 90px; }
}

/* Cards settle rather than snap. */
.card, .offering, .partner, .res-item {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

/* A thin waterline showing how far down the page you are. */
.vv-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 998;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-ink), var(--turquoise), var(--aqua));
  pointer-events: none;
}

html[dir="rtl"] .vv-progress { transform-origin: 100% 50%; }

@supports (animation-timeline: scroll(root)) {
  .vv-progress {
    animation: vvFill 1s linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes vvFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .vv-wave,
  .vv-ripple,
  .vv-progress { display: none !important; }

  .hero img[src*="lotus"],
  .cta-panel::after,
  .banner::after { animation: none !important; }

  html.vv-entering main { animation: none !important; }

  html { scroll-behavior: auto; }
}
