/* Ternus Distribution — brand tokens: deep maroon + gold, cream ground.
   Sourced from the company's own collateral (AI Ternus Distribution.pdf). */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --maroon-900: #33080f;
  --maroon-800: #4c0f1a;
  --maroon-700: #641524;
  --maroon-600: #7a1c2c;
  --gold-300: #ecd68f;
  --gold-400: #ddbb5c;
  --gold-500: #c9a227;
  --gold-600: #a9841c;
  --cream-50: #fdf9f0;
  --cream-100: #f8f0dd;
  --cream-200: #efe2c0;
  --ink-900: #241512;
  --ink-600: #5c4b45;
  --white: #ffffff;

  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --brand: var(--maroon-700);
  --brand-strong: var(--maroon-800);
  --hairline: rgba(100, 21, 36, 0.16);
  --shadow: 0 24px 60px -30px rgba(76, 15, 26, 0.35);

  --radius-card: 16px;
  --radius-input: 8px;
  --nav-height: 76px;
}

/* Dark maroon palette is the only theme: every "@media all" block below used to be
   prefers-color-scheme: dark. The cream values in :root above are now just the fallback. */
@media all {
  :root {
    color-scheme: dark;
    --bg: #1c0a0e;
    --bg-alt: #241014;
    --surface: #2b1117;
    --text: var(--cream-100);
    --text-muted: #d3bdae;
    --accent: var(--gold-400);
    --accent-strong: var(--gold-300);
    --brand: var(--maroon-600);
    --brand-strong: var(--maroon-700);
    --hairline: rgba(221, 187, 92, 0.18);
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 65%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:active::after { opacity: 0.7; transform: scale(1); transition: opacity 0s, transform 0s; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .btn::after { display: none; }
}

.btn-primary {
  background: var(--brand);
  color: var(--cream-50);
  box-shadow: 0 14px 30px -12px rgba(76, 15, 26, 0.55);
}
.btn-primary:hover { background: var(--brand-strong); box-shadow: 0 20px 40px -14px rgba(76, 15, 26, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-mark small {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
/* Header only: same face and colour as the hero headline's "Health, Wellness & Happiness" */
.brand-motto {
  display: block;
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--accent);
}
.site-nav .brand-mark span { white-space: nowrap; }
@media (max-width: 360px) {
  .site-nav .brand-mark { gap: 8px; }
  .brand-motto { font-size: 0.7rem; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after { transition: none; }
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
}

.nav-contact { display: none; }

@media (max-width: 860px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-contact { display: block; }
}

/* Six links need about 1200px beside the brand: the header runs a little wider than the page (1320px) and the links collapse below 1270px */
.site-nav .wrap { max-width: 1320px; }
@media (max-width: 1270px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav-links.is-open a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--hairline);
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .tagline-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  max-width: 15ch;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--brand);
}
@media all {
  .hero-copy h1 em { color: var(--accent); }
}
.hero-copy p.lede {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px dashed var(--hairline);
}
.hero-visual .glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 68%);
  filter: blur(10px);
}
.hero-visual figure {
  position: relative;
  margin: 0;
  width: min(360px, 80%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.hero-visual figure img {
  width: 100%;
  height: 100%;
/* disabled
  border-radius: 50%;
*/
  object-fit: cover;
}
.hero-visual figcaption {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--cream-50);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual figure { width: min(260px, 60%); }
}

/* ---------- Section shell ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h1, .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }

/* ---------- About / Story ---------- */
/* Faded info-bg.png behind the section; fades out at top and bottom edges */
.about-section { position: relative; }
.about-section > .wrap { position: relative; z-index: 1; }
.about-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
/* 130% tall so main.js can drift it ±10% for parallax without showing edges */
.about-bg img { position: relative; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
@media all { .about-bg { opacity: 0.11; } }

/* ---------- Meet Our Directors ---------- */
.director-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
}
.director-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.director-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 15%;
  border-bottom: 3px solid var(--accent);
}
.dc-body { padding: 24px 24px 28px; }
.dc-body h3 { font-size: 1.35rem; }
.dc-role {
  display: block;
  margin: 6px 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}
.dc-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.dc-body blockquote {
  margin: 20px 0 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.about-copy p:last-child { margin-bottom: 0; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.stat-card .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--brand);
  font-weight: 800;
}
@media all { .stat-card .stat-num { color: var(--accent); } }
.stat-card .stat-label {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text);
}
.stat-card .stat-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .stat-card { position: static; }
}

/* ---------- Mission & Vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 64px;
}
.mv-card {
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.mv-card.mission {
  background: var(--brand);
  color: var(--cream-50);
}
.mv-card.vision {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
}
.mv-card .mv-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.mv-card.mission .mv-icon { background: rgba(255,255,255,0.16); color: var(--gold-300); }
.mv-card.vision .mv-icon { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-strong); }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.mv-card.mission h3 { color: var(--cream-50); }
.mv-card.mission p { color: var(--cream-100); }
.mv-card.vision p { color: var(--text-muted); }

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

.values-list { display: flex; flex-direction: column; }
.value-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.value-row:last-child { border-bottom: 1px solid var(--hairline); }
.value-row .v-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.3rem;
}
@media all { .value-row .v-icon { color: var(--accent); } }
.value-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-row p { color: var(--text-muted); max-width: 60ch; }

@media (max-width: 640px) {
  .value-row { grid-template-columns: 44px 1fr; gap: 16px; }
  .value-row .v-icon { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* ---------- Director's message ---------- */
.director-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: center;
}
.director-photo { position: relative; display: flex; justify-content: center; }
.director-photo figure {
  margin: 0;
  width: min(320px, 100%);
  aspect-ratio: 1/1;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(150deg, var(--accent), var(--gold-600));
  box-shadow: var(--shadow);
}
.director-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
}
.director-copy .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 10px;
}
.director-copy p {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 16px;
}
.director-copy p:last-of-type { margin-bottom: 0; }
.director-sig {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.director-sig strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
}
.director-sig span {
  font-size: 0.9rem;
  color: var(--accent-strong);
  font-weight: 600;
}

@media (max-width: 860px) {
  .director-grid { grid-template-columns: 1fr; text-align: center; }
  .director-sig { text-align: left; }
}

/* ---------- Why Nirvana band ---------- */
.why-band {
  background: var(--brand);
  color: var(--cream-50);
  border-radius: var(--radius-card);
  padding: 72px 48px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-band .why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
}
.why-band h2 { color: var(--cream-50); font-size: clamp(1.9rem, 3vw, 2.5rem); }
.why-band p {
  margin: 18px auto 0;
  color: var(--cream-100);
  font-size: 1.08rem;
  max-width: 56ch;
}
.why-pillars {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.why-pillars span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(236, 214, 143, 0.3);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-300);
}
.why-band .btn-primary {
  margin-top: 32px;
  background: var(--accent);
  color: var(--maroon-900);
  box-shadow: none;
}
.why-band .btn-primary:hover { background: var(--gold-400); }

@media (max-width: 640px) {
  .why-band { padding: 48px 28px; }
}

/* ---------- Product cards (Memberships) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr; /* every plan card as tall as the tallest, including the lone last one */
  gap: 28px;
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}
/* Odd plan out (Universe) sits centered on its own row at normal card width: (100% - gap) / 2 */
@media (min-width: 761px) {
  .product-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 28px) / 2);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  position: relative;
  padding: 32px 28px;
  background-image: var(--p-grad), linear-gradient(135deg, var(--gold-300), var(--gold-600) 45%, var(--gold-300));
  background-clip: padding-box, border-box;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.2s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.product-card:hover { transform: translateY(-3px); filter: brightness(1.05); }
.product-card:active { transform: translateY(-1px) scale(0.99); }
.product-card > * { position: relative; z-index: 1; }

.product-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.product-top img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.product-top .p-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.product-tagline { font-size: 0.96rem; color: rgba(255, 255, 255, 0.88); max-width: 42ch; }

.product-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.product-badges span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Pins badges and the hint to the bottom, so they line up across cards with shorter taglines */
.product-card .product-badges { margin-top: auto; padding-top: 18px; }

.product-open-hint {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}
.product-open-hint i { font-size: 1.05rem; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-open-hint i { transform: translateX(3px); }

/* ---------- Product modal (dialog) ---------- */
dialog.product-modal {
  margin: auto;
  border: 2px solid transparent;
  padding: 0;
  border-radius: var(--radius-card);
  width: min(94vw, 720px);
  max-height: 86vh;
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--gold-300), var(--gold-600) 45%, var(--gold-300));
  background-clip: padding-box, border-box;
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
  overflow: hidden;
}
dialog.product-modal::backdrop {
  background: rgba(20, 8, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-transparency: reduce) {
  dialog.product-modal::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 8, 10, 0.82); }
}

.modal-card { display: flex; flex-direction: column; max-height: 86vh; }
.modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 32px 60px 28px 28px;
  background: var(--p-grad);
  color: #fff;
}
.modal-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.modal-header > * { position: relative; z-index: 1; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.3); }
.modal-close:active { transform: scale(0.94); }

.modal-body { padding: 28px 28px 32px; overflow-y: auto; }

.product-eligibility {
  font-weight: 600;
  color: var(--p-accent);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}
@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; }
}
.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.benefit-row i { color: var(--p-accent); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }

.product-voucher {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.92rem;
}
.product-footnote {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.product-cta { margin-top: 26px; }

/* Product theme tokens, sourced from each plan's own collateral */
.theme-pearl  { --p-grad: linear-gradient(135deg, #3a3f47, #8b8f96 45%, #6b1220 100%); --p-accent: #6b1220; --p-accent-soft: rgba(107, 18, 32, 0.12); }
.theme-ocean  { --p-grad: linear-gradient(135deg, #0d2547, #2f5fa8 55%, #9fb8dd 100%); --p-accent: #1b3a6b; --p-accent-soft: rgba(27, 58, 107, 0.12); }
.theme-star   { --p-grad: linear-gradient(135deg, #4c0f1a, #7a1c2c 55%, #ddbb5c 100%); --p-accent: #a9841c; --p-accent-soft: rgba(169, 132, 28, 0.14); }
.theme-galaxy { --p-grad: linear-gradient(135deg, #2b1608, #7a4a1e 55%, #e3c07f 100%); --p-accent: #8a5a22; --p-accent-soft: rgba(138, 90, 34, 0.14); }
.theme-universe { --p-grad: linear-gradient(135deg, #1b1131, #402060 50%, #7d5aa3 80%, #e0c090 100%); --p-accent: #4b2a75; --p-accent-soft: rgba(75, 42, 117, 0.12); }

@media all {
  .theme-pearl  { --p-accent: #e3a6b4; --p-accent-soft: rgba(227, 166, 180, 0.16); }
  .theme-ocean  { --p-accent: #8fb4e8; --p-accent-soft: rgba(143, 180, 232, 0.16); }
  .theme-star   { --p-accent: #e8cf7a; --p-accent-soft: rgba(232, 207, 122, 0.16); }
  .theme-galaxy { --p-accent: #e3c07f; --p-accent-soft: rgba(227, 192, 127, 0.16); }
  .theme-universe { --p-accent: #e0c090; --p-accent-soft: rgba(224, 192, 144, 0.16); }
}

/* ---------- Page header (Memberships / Contact) ---------- */
.page-header {
  padding: 72px 0 40px;
  text-align: center;
}
.page-header h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.page-header p { margin-top: 16px; color: var(--text-muted); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  margin-bottom: 40px;
}
.contact-panel {
  background: var(--brand);
  color: var(--cream-50);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid rgba(236, 214, 143, 0.22);
}
.contact-item:first-child { border-top: 0; padding-top: 0; }
.contact-item:last-child { padding-bottom: 0; }
.c-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.c-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gold-300); margin-bottom: 4px; }
.c-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--cream-50);
  overflow-wrap: anywhere;
}
a.c-value { transition: color 0.2s ease; }
a.c-value:hover { color: var(--gold-300); }
.c-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-300);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.c-link:hover { border-color: var(--gold-300); }

/* Gold gradient frame, same treatment as the plan dialogs */
.contact-map {
  padding: 3px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600) 45%, var(--gold-300));
  box-shadow: var(--shadow);
  min-height: 420px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 414px;
  border: 0;
  border-radius: calc(var(--radius-card) - 3px);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 32px 26px; }
  .contact-map, .contact-map iframe { min-height: 340px; }
}
@media (max-width: 480px) {
  .contact-panel { padding: 28px 20px; }
  .contact-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .c-icon { width: 40px; height: 40px; font-size: 1.05rem; }
  .c-value { font-size: 1.1rem; }
  a.c-value[href^="mailto"] { font-size: 0.98rem; overflow-wrap: normal; }
}

/* ---------- Application form ---------- */
.app-form { --danger: #ff7a6b; } /* clearly red on the maroon panels, about 6.9:1 contrast */
.app-form [hidden] { display: none; }
.app-form fieldset { min-width: 0; margin: 0; }
.app-noscript { text-align: center; margin-bottom: 32px; }

/* Same plan gradient and gold border as the plan cards; flat maroon until a plan is chosen */
.plan-panel {
  position: relative;
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  background-image: var(--p-grad, linear-gradient(var(--brand), var(--brand))), linear-gradient(135deg, var(--gold-300), var(--gold-600) 45%, var(--gold-300));
  background-clip: padding-box, border-box;
  color: #fff;
  box-shadow: var(--shadow);
}
.plan-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
.plan-panel > * { position: relative; z-index: 1; }
.plan-panel .p-name { color: inherit; }
.plan-fields-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.field { display: grid; gap: 8px; align-content: start; font-size: 0.9rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.app-form input:not([type="file"], [type="radio"], [type="checkbox"]),
.app-form select,
.app-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: var(--radius-input);
  color: var(--text);
  font: 400 1rem/1.4 'Work Sans', system-ui, sans-serif;
  scroll-margin-top: calc(var(--nav-height) + 48px);
  transition: border-color 0.2s ease;
}
.app-form option { background: var(--surface); color: var(--text); }
.app-form input:hover,
.app-form select:hover,
.app-form textarea:hover { border-color: var(--p-accent, var(--accent)); }
.app-form input:focus-visible,
.app-form select:focus-visible,
.app-form textarea:focus-visible {
  outline: 2px solid var(--p-accent, var(--accent));
  outline-offset: 1px;
}
.app-form input:user-invalid,
.app-form select:user-invalid,
.app-form textarea:user-invalid { border-color: var(--danger); }
.plan-panel input,
.plan-panel select { background: rgba(0, 0, 0, 0.38) !important; border-color: rgba(255, 255, 255, 0.4) !important; color: #fff !important; }

.plan-fields { padding: 0; border: 0; }
/* Book Teleconsultation and the claim form's Nirvana Details: five fields in the plan panel, the Nirvana ID taking two columns */
.member-fields { row-gap: 20px; margin-top: 4px; }
.member-id { grid-column: span 2; }
/* Nirvana ID "TC00 0000 0000": a fixed TC inside the first box, then boxes of 2, 4 and 4 digits */
.id-group { display: grid; grid-template-columns: minmax(92px, 3fr) 4fr 4fr; gap: 10px; }
.id-first { position: relative; display: block; }
.id-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 600 1rem/1 'Work Sans', system-ui, sans-serif; letter-spacing: 0.12em; color: var(--accent); pointer-events: none; }
.app-form .id-group input { padding-left: 12px; padding-right: 12px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.app-form .id-group .id-first input { padding-left: 42px; }
@media (max-width: 360px) {
  .id-group { gap: 6px; grid-template-columns: minmax(76px, 3fr) 4fr 4fr; }
  .app-form .id-group input, .id-prefix { letter-spacing: 0.04em; }
  .app-form .id-group .id-first input { padding-left: 36px; }
}
.plan-panel .id-group.is-invalid { box-shadow: none !important; }
.plan-panel .id-group.is-invalid input { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.app-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 40px;
  margin-top: 64px;
  align-items: start;
}
.app-head { position: sticky; top: calc(var(--nav-height) + 24px); }
.app-head h2 { font-size: 1.6rem; }
.app-head p { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

.app-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-wide { grid-column: 1 / -1; }

.applicant { position: relative; animation: applicant-in 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.applicant + .applicant { margin-top: 24px; }
@keyframes applicant-in { from { opacity: 0; transform: translateY(16px); } }
/* float pulls the legend off the fieldset's border and into the panel */
.applicant legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--p-accent, var(--accent));
}
.applicant-row { clear: both; display: flex; flex-wrap: wrap; gap: 20px; }
.applicant-name { flex: 1 1 280px; }
.applicant-dob { margin-top: 20px; }
.applicant-dob input { max-width: 240px; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--danger); font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.field-error i { margin-top: 2px; font-size: 1.05rem; flex-shrink: 0; }
.applicant-dob:has(.field-error:not([hidden])) input { border-color: var(--danger); }
.purchaser-choice .choice { min-width: 88px; font-size: 0.9rem; font-weight: 600; }
.applicant-remove {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-input);
  color: var(--text-muted);
  font: 600 0.88rem 'Work Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
}
.applicant-remove:hover { color: var(--danger); }
.add-applicant { margin-top: 24px; }

.choice-group { display: flex; gap: 8px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice:hover { border-color: var(--p-accent, var(--accent)); }
.choice:has(input:checked) { background: var(--p-accent, var(--accent)); border-color: transparent; color: var(--maroon-900); }
.choice:has(input:focus-visible) { outline: 2px solid var(--p-accent, var(--accent)); outline-offset: 1px; }

/* Ruled lines make one textarea read as separate address lines; line height sets the spacing */
.app-form textarea.ruled {
  display: block;
  height: 134px;
  padding: 0 14px;
  line-height: 44px;
  resize: none;
  background-image: repeating-linear-gradient(transparent 0 43px, color-mix(in srgb, var(--accent) 34%, transparent) 43px 44px);
  background-attachment: local;
}
.address-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 20px; }

.upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.app-panel > .upload-grid:first-child { margin-top: 0; }
/* The real file input covers the tile, so click, keyboard and drag-and-drop all work natively */
.upload { --tile: 4 / 3; position: relative; display: block; font-size: 0.86rem; }
/* A lone upload (address proof, signature) runs the panel's full width */
.upload-grid:has(> :only-child) { grid-template-columns: 1fr; }
.upload:only-child { --tile: 4 / 1; }
.upload input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: var(--tile);
  opacity: 0;
  cursor: pointer;
  scroll-margin-top: calc(var(--nav-height) + 48px);
}
.upload-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--tile);
  background: var(--bg);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-input);
  color: var(--p-accent, var(--accent));
  font-size: 1.6rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.upload:hover .upload-media { border-color: var(--p-accent, var(--accent)); transform: translateY(-2px); }
.upload:has(input:focus-visible) .upload-media { outline: 2px solid var(--p-accent, var(--accent)); outline-offset: 2px; }
.upload:has(input:user-invalid) .upload-media,
.upload.is-error .upload-media { border-color: var(--danger); }
.upload.has-file .upload-media { border-style: solid; }
.upload.has-file .upload-media i { display: none; }
.upload-media img { width: 100%; height: 100%; object-fit: contain; }
.upload-media img:not([src]) { display: none; }
.upload-media .upload-pdf { display: none; }
.upload.is-pdf .upload-media .upload-pdf { display: block; font-size: 2.6rem; }
.upload-label { display: block; margin-top: 10px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.upload small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.84rem; overflow-wrap: anywhere; }
.upload.is-error small { color: var(--danger); }

.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* Prices: Playfair's default old-style figures read badly in amounts, so force lining ones */
.plan-total strong,
.pay-amount strong,
.pay-total strong,
.qr-pay strong { font-family: 'Playfair Display', serif; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.plan-panel .product-top { flex-wrap: wrap; }
.plan-total { margin: 0 0 0 auto; text-align: right; line-height: 1.2; }
.plan-total strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; }
.plan-total span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.pay-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: -6px; }
.pay-amount strong { font-size: 1.9rem; }
.pay-amount span { color: var(--text-muted); font-size: 0.9rem; }
.pay-total {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 12px;
  padding: 16px 20px;
  border-radius: var(--radius-input);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-muted);
}
.pay-total strong { font-size: 1.6rem; }
.qr-modal .modal-body .qr-pay { margin-top: 18px; color: var(--text); font-size: 1.05rem; }
.qr-pay strong { font-size: 1.35rem; }
.payment-step { display: grid; gap: 16px; justify-items: start; align-content: start; min-width: 0; }
.payment-step h3 { font-size: 1.3rem; color: var(--p-accent, var(--accent)); }
.payment-step .upload { --tile: 16 / 9; width: 100%; }

dialog.qr-modal { width: min(94vw, 440px); }
.qr-modal .modal-header { padding: 24px 60px 24px 24px; }
.qr-modal .p-name,
.terms-modal .p-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }

.consent { display: flex; align-items: flex-start; gap: 14px; line-height: 1.55; cursor: pointer; }
.consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--p-accent, var(--accent)); cursor: pointer; }
.consent input:user-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }
.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--p-accent, var(--accent));
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
/* The 8 consent sections, listed under the one checkbox and lined up with its text */
.consent-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 20px 0 0 36px;
  padding: 0;
  list-style: none;
}
.consent-terms .link-button { text-align: left; font-size: 0.95rem; line-height: 1.4; }

/* Privacy Notice and the consent sections: long text, so readable spacing and full ink */
dialog.terms-modal { width: min(94vw, 680px); }
.terms-modal .modal-body { font-size: 0.97rem; line-height: 1.65; color: var(--text); }
.terms-modal .modal-body > * + * { margin-top: 14px; }
.terms-modal h3 { margin: 24px 0 6px; font-size: 1.1rem; }
.terms-modal .modal-body > h3:first-child { margin-top: 0; }
.terms-modal h3 + p { margin-top: 0; }
.terms-modal ol, .terms-modal ul { padding-left: 1.3em; }
.terms-modal li + li { margin-top: 10px; }
.terms-modal strong { color: #fff; }
.qr-modal .modal-body { padding: 24px; }
/* QR codes need a white quiet zone around them to scan reliably */
.qr-modal .modal-body img { width: 100%; height: auto; padding: 14px; background: #fff; border-radius: var(--radius-input); }
.qr-modal .modal-body p { margin-top: 16px; color: var(--text-muted); font-size: 0.95rem; }

.app-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 56px; justify-content: flex-end; }
.app-submit p { flex: 1 1 320px; color: var(--accent-strong); font-weight: 500; }
.app-submit p.is-error { color: var(--danger); }
/* Fields left empty or wrong when Submit is pressed (main.js adds .is-invalid) */
.app-form input.is-invalid,
.app-form select.is-invalid,
.app-form textarea.is-invalid,
.plan-panel .is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.upload.is-invalid .upload-media { border-color: var(--danger); border-style: solid; }
.upload.is-invalid .upload-label,
.consent.is-invalid span { color: var(--danger); }
.choice-group.is-invalid .choice { border-color: var(--danger); }
.consent.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
/* Radios and checkboxes too: when the browser jumps to one, keep it clear of the sticky header */
.app-form input { scroll-margin-top: calc(var(--nav-height) + 48px); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.app-success { max-width: 640px; margin: 0 auto; text-align: center; }
.app-success:focus { outline: none; }
.app-success-icon { display: block; font-size: 3rem; color: var(--accent); line-height: 1; }
.app-success h2 { margin: 16px 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.app-success p { color: var(--text-muted); margin-bottom: 28px; }
.app-success strong { color: var(--text); font-size: 1.1rem; letter-spacing: 0.04em; }
.app-submit .btn:disabled { opacity: 0.45; box-shadow: none; pointer-events: none; }

@media (max-width: 900px) {
  .app-block { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .app-head { position: static; }
}
@media (max-width: 760px) {
  .plan-fields-row { grid-template-columns: 1fr; }
  .member-id { grid-column: auto; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .plan-panel, .app-panel { padding: 24px 20px; }
  .upload:only-child { --tile: 5 / 2; }
  .app-grid, .address-row, .payment-grid { grid-template-columns: 1fr; }
  .consent-terms { grid-template-columns: 1fr; margin-left: 0; }
  .plan-total { margin-left: 0; width: 100%; text-align: left; }
  .pay-total { justify-content: flex-start; }
  .applicant-remove { top: 18px; right: 12px; }
  .applicant-dob input { max-width: none; }
  .applicant-row > [data-relation] { flex: 1 1 100%; }
  .app-submit .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(221, 187, 92, 0.05) 0px, rgba(221, 187, 92, 0.05) 1px, transparent 1px, transparent 15px),
    repeating-linear-gradient(45deg, rgba(221, 187, 92, 0.035) 0px, rgba(221, 187, 92, 0.035) 1px, transparent 1px, transparent 15px),
    var(--maroon-900);
  color: var(--cream-100);
  padding: 64px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 187, 92, 0.55), transparent);
}
@media all { .site-footer { background: repeating-linear-gradient(135deg, rgba(221, 187, 92, 0.06) 0px, rgba(221, 187, 92, 0.06) 1px, transparent 1px, transparent 15px), repeating-linear-gradient(45deg, rgba(221, 187, 92, 0.04) 0px, rgba(221, 187, 92, 0.04) 1px, transparent 1px, transparent 15px), #12060a; } }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(236, 214, 143, 0.18);
}
.footer-brand .brand-mark { color: var(--cream-50); }
.footer-brand p {
  margin-top: 16px;
  color: rgba(248, 240, 221, 0.72);
  max-width: 42ch;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  position: relative;
  display: inline-block;
  color: rgba(248, 240, 221, 0.78);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-col a:hover { color: var(--gold-300); }
.footer-col a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .footer-col a::after { transition: none; }
}

.footer-legal {
  padding: 44px 0;
  border-bottom: 1px solid rgba(236, 214, 143, 0.18);
}
.footer-legal .legal-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-300);
  margin-bottom: 18px;
}
.footer-legal .legal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.footer-legal p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(248, 240, 221, 0.75);
}
.footer-legal p + p { margin-top: 14px; }
.footer-legal .legal-note {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--gold-300);
  font-style: italic;
}
@media (max-width: 760px) {
  .footer-top, .footer-legal .legal-body { grid-template-columns: 1fr; }
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(248, 240, 221, 0.55);
  flex-wrap: wrap;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  section { padding: 64px 0; }
}
