/* ============================================
   AL-BASSIRA INSTITUTE — STYLESHEET
   ============================================ */


/* ============================================
   DESIGN TOKENS
   Pulled from the existing Al-Bassira brand:
   deep espresso browns, antique gold, warm cream
   ============================================ */
:root {
  /* ============================================
     COLOR SYSTEM — usage rules
     ============================================
     Follow these rules whenever picking a color.
     Every token has ONE intended role.

     ── SURFACES (backgrounds) ──
     --cream         primary LIGHT surface (default page bg)
     --cream-2       secondary light surface (alternating sections, form bg)
     --parchment     tertiary light surface (quote, assessment)
     --espresso      primary DARK surface (hero, footer, page-header, modules-preview)
     --espresso-2    secondary dark surface (CTA bands)
     --espresso-3    tertiary dark surface (cards on dark)

     ── TEXT ON LIGHT SURFACES ──
     --espresso      headings (h1–h4)
     --ink           body text (p, paragraphs)
     --ink-soft      secondary text, captions, descriptions
     --gold-deep     accents on light: eyebrows, drop caps, currency,
                     decorative ornaments, required asterisk, contact icons.
                     (Passes AAA at 7.98:1 on cream — DO NOT use --gold here:
                     gold on cream is 2.09:1, fails WCAG AA)

     ── TEXT ON DARK SURFACES ──
     --cream         headings, body text
     rgba(245,239,227,0.7)  secondary/muted text on dark
     --gold          accents on dark: eyebrows, kickers, emphasis, numerals,
                     decorative monograms, links, hover states.
                     (Passes AAA at 7.58:1 on espresso — DO NOT use --gold-deep
                     here: gold-deep on espresso is 1.99:1, fails WCAG AA)
     --gold-soft     alternative accent on dark when slightly brighter pop needed

     ── BORDERS & DIVIDERS ──
     --line          default 1px borders, subtle dividers (gold @ 22%)
     --line-strong   emphasized borders, hover states (gold @ 50%)

     ── DECORATIVE / NON-INFORMATIONAL ──
     Pure decorative elements (watermarks, ornament backgrounds, very large
     numerals that don't carry meaning) MAY use --gold at low opacity (0.05–0.20)
     on either surface — contrast rules don't apply when the element conveys
     no information.

     ── INTERACTIVE STATES ──
     hover           border-color: --gold (on dark) | --gold-deep (on light)
     focus           border-color: --gold-deep + outline-offset for keyboards
     active          background tint of accent at 6–10% opacity

     ── QUICK REFERENCE TABLE ──
     | Element             | On Light       | On Dark        |
     |---------------------|----------------|----------------|
     | h1–h4               | --espresso     | --cream        |
     | body p              | --ink-soft     | rgba(cream,.7) |
     | eyebrow / kicker    | --gold-deep    | --gold         |
     | drop cap / numeral  | --gold-deep    | --gold         |
     | required *          | --gold-deep    | --gold         |
     | currency / price    | --gold-deep    | --gold         |
     | divider line        | --line         | --line         |
     | CTA primary text    | --cream        | --gold         |
     | CTA primary bg      | --espresso     | --gold         |

     If you ever need to use --gold on light, the element MUST be either:
     (a) decoration with no informational role, OR
     (b) backed by a dark fill (e.g. .excursion-price has espresso bg).
     ============================================ */

  /* Core palette */
  --espresso: #1C140D;        /* primary dark surface */
  --espresso-2: #2A1E15;      /* secondary dark surface */
  --espresso-3: #3A2A1E;      /* tertiary dark surface (cards) */
  --cocoa: #4A3524;           /* warm dark accent */
  --gold: #C9A24C;            /* accent FOR DARK surfaces only */
  --gold-soft: #D9B868;       /* brighter gold variant (dark surfaces) */
  --gold-deep: #5C441A;       /* accent FOR LIGHT surfaces only (AAA) */
  --cream: #F5EFE3;           /* primary light surface */
  --cream-2: #EDE4D1;         /* secondary light surface */
  --parchment: #E8DDC4;       /* tertiary light surface */
  --ink: #2B1F13;             /* body text on light */
  --ink-soft: #5C4B38;        /* secondary text on light */
  --line: rgba(201, 162, 76, 0.22);     /* dividers */
  --line-strong: rgba(201, 162, 76, 0.5); /* emphasized borders */
  --error: #b3241a;                     /* form validation, urgent flags */

  /* Spacing scale (8px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Type scale */
  --f-display: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --f-editorial: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-arabic: 'Aref Ruqaa', 'Amiri', serif;
  --f-arabic-body: 'Amiri', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv11";
}

/* ============================================
   ACCESSIBILITY — focus-visible, skip-link, motion
   ============================================ */

/* Visible keyboard focus ring (WCAG 2.4.7).
   Only shows for keyboard nav, not mouse clicks. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark surfaces use brighter gold-soft so it's still visible */
.page-header :focus-visible,
.hero :focus-visible,
.modules-preview :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible,
#page-legal :focus-visible {
  outline-color: var(--gold-soft);
}

/* Skip-to-main-content link (WCAG 2.4.1).
   Hidden until focused — first keyboard tab reveals it. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--espresso);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 1100;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* Respect prefers-reduced-motion (vestibular safety) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print stylesheet — for users who print pricing or privacy policy */
@media print {
  /* Hide chrome that doesn't print well */
  .nav, .footer, .wa-float, .cookie-banner, .skip-link,
  .page-header-ba, .hero-ba, .modules-preview::before,
  .hero-bg, .cta-band, .quote-section,
  body::before, body::after {
    display: none !important;
  }
  /* Force light backgrounds — saves ink, looks like a printed brochure */
  body, .page, .page-header, #page-legal,
  .modules-preview, .footer {
    background: #fff !important;
    color: #000 !important;
  }
  h1, h2, h3, h4, h5, h6, p, li, td, th {
    color: #000 !important;
  }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .page { display: block !important; padding: 0 !important; }
  /* Avoid orphaned headings */
  h1, h2, h3, h4 { page-break-after: avoid; }
  img { max-width: 100% !important; }
}

/* ============================================
   TEXTURES & PATTERNS
   - Paper grain: SVG noise applied across cream/dark surfaces (very subtle)
   - Zellige: 8-point Moroccan star pattern, applied to specific dark sections
   - Calligraphic accent: Arabic-letter watermarks already exist
   ============================================ */

/* Paper grain — applied to body so it covers the whole document, very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.34  0 0 0 0 0.21  0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Soft warm vignette across cream surfaces */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(201, 162, 76, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(74, 53, 36, 0.04) 0%, transparent 45%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============================================
   NAVIGATION — top bar
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 20, 13, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 162, 76, 0.15);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  justify-content: center;
}

.brand-sub {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.72);
  border-radius: 2px;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

/* Make the anchor fill the entire nav-link so the whole area is clickable.
   Without this, only the text itself is a hit target — clicks on the
   padding around the text fall through and do nothing. */
.nav-link > a {
  display: inline-block;
  padding: 10px 14px;
  color: inherit;
}

.nav-link:hover { color: var(--gold); }

.nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: inline-block;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
  background: var(--gold);
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

/* Hamburger — hidden on desktop, shown ≤900px */
.nav-burger {
  display: none;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(201, 162, 76, 0.3);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color 0.2s ease;
}
.nav-burger:hover { border-color: var(--gold); }
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile-only drawer Apply CTA — hidden on desktop, styled once */
.nav-cta-mobile {
  display: none;
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--gold);
  color: var(--espresso);
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  border: none;
  list-style: none;
}

/* ============================================
   PAGE SYSTEM — only one page visible at a time
   ============================================ */
.page { display: block; animation: fadeUp 0.5s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }

p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

.lead {
  font-family: var(--f-editorial);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
  font-style: italic;
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
  position: relative;
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 162, 76, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(143, 110, 46, 0.08) 0%, transparent 50%);
}

/* hero-bg — single watermark via .hero-ba, no tiled pattern */

/* hero-ba — removed from hero per spec */
.hero-ba {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 80px;
  width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-kicker-text {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  color: var(--cream);
  font-weight: 400;
  max-width: 900px;
  margin-bottom: 40px;
}

.hero h1 .em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(201, 162, 76, 0.2);
  max-width: 780px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 162, 76, 0.9);
  margin-bottom: 8px;
}

.hero-meta-value {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--cream);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  background: var(--gold);
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(201, 162, 76, 0.4);
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 76, 0.08);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  border: 1px solid var(--gold-deep);
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}

.btn-ghost-light:hover {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   SECTION BASE
   ============================================ */
section { position: relative; }

.section {
  padding: 120px 0;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-header .eyebrow {
  margin-bottom: 24px;
}

.section-dark {
  background: var(--espresso);
  color: var(--cream);
}

.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: rgba(245, 239, 227, 0.7); }
.section-dark .lead { color: var(--cream); }

/* ============================================
   OVERVIEW SECTION
   ============================================ */
.overview {
  padding: 140px 0 100px;
  background: var(--cream);
  position: relative;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  align-items: start;
}

.overview-left {
  position: sticky;
  top: 120px;
}

.overview-question {
  font-family: var(--f-editorial);
  font-size: clamp(36px, 4vw, 54px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  color: var(--espresso);
  margin-bottom: 32px;
}

.overview-question::first-letter {
  color: var(--espresso);
  font-size: 1.5em;
  font-weight: 500;
  font-family: var(--f-editorial);
  font-style: italic;
}

.overview-text p + p { margin-top: 20px; }

.overview-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.overview-signature-arabic {
  font-family: var(--f-arabic);
  font-size: 42px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.overview-signature-trans {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================
   RHYTHM BAR — mornings/afternoons/evenings
   ============================================ */
.rhythm {
  padding: 100px 0;
  background: var(--cream-2);
  position: relative;
}

/* ============================================
   WHO JOINS AL-BASSIRA — sits between Overview and Rhythm
   ============================================ */
.who-joins {
  padding: 100px 0;
  background: var(--cream);
  border-top: 1px solid rgba(92, 68, 26, 0.08);
}
.who-joins h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.rhythm-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}

.rhythm-item:last-child { border-right: none; }

.rhythm-num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--gold-deep);
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.rhythm-title {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--espresso);
  margin-bottom: 12px;
  font-weight: 500;
}

.rhythm-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================
   MODULES (core learning units) preview
   ============================================ */
.modules-preview {
  padding: 140px 0;
  background: var(--espresso);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.modules-preview::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 430px;
  background-image: url("../images/ba-watermark.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0);
  mix-blend-mode: multiply;
  opacity: 0.07;
  right: -80px;
  bottom: -140px;
  pointer-events: none;
  z-index: 1;
}

/* modules-preview — single watermark via ::before, no second tiled pattern */

.modules-preview > * { position: relative; z-index: 2; }

.modules-preview .section-header h2 { color: var(--cream); }
.modules-preview .eyebrow { color: var(--gold); }

.modules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(201, 162, 76, 0.2);
  position: relative;
  z-index: 1;
}

.module-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 36px 32px;
  border-bottom: 1px solid rgba(201, 162, 76, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-row:nth-child(odd) { border-right: 1px solid rgba(201, 162, 76, 0.15); }

.module-row:hover {
  background: rgba(201, 162, 76, 0.06);
}

.module-num {
  font-family: var(--f-editorial);
  font-size: 36px;
  color: var(--gold);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  padding-top: 4px;
}

.module-name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.module-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 239, 227, 0.65);
}

/* ============================================
   TESTIMONIAL / QUOTE SECTION
   ============================================ */
.quote-section {
  padding: 160px 0;
  background: var(--parchment);
  text-align: center;
  position: relative;
}

.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.quote-section::before { top: 60px; }
.quote-section::after { bottom: 60px; }

.quote-mark {
  font-family: var(--f-display);
  font-size: 120px;
  color: var(--gold-deep);
  line-height: 0.5;
  margin-bottom: 24px;
  font-style: italic;
  opacity: 0.85;
}

.quote-text {
  font-family: var(--f-editorial);
  font-size: clamp(26px, 3vw, 42px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  color: var(--espresso);
  max-width: 900px;
  margin: 0 auto 32px;
}

.quote-text .em { color: var(--gold-deep); }

/* ============================================
   CTA FOOTER BAND
   ============================================ */
.cta-band {
  padding: 120px 0;
  background: var(--espresso-2);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* cta-band — clean, no tiled pattern */

.cta-band > * { position: relative; z-index: 2; }

.cta-band h2 { color: var(--cream); margin-bottom: 24px; }
.cta-band p { max-width: 600px; margin: 0 auto 40px; color: rgba(245, 239, 227, 0.7); }
.cta-band .eyebrow { color: var(--gold-soft); }

/* Price comparison: current price prominent, previous price struck through and muted.
   Standard pattern used by Apple, Aesop, NYT subscriptions, e-commerce schemas. */
.price-current {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.price-was {
  color: rgba(245, 239, 227, 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-weight: 400;
  font-size: 0.78em;
  margin-left: 0.3em;
  white-space: nowrap;
}

/* ============================================
   SITE FOOTER
   ============================================ */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(201, 162, 76, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 64px;
}

.footer-brand-logo {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.footer-brand-text {
  margin-bottom: 24px;
}

.footer-brand-sub {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--f-editorial);
  font-style: italic;
  color: rgba(245, 239, 227, 0.7);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 76, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--espresso);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.footer-col h5 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(245, 239, 227, 0.72);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col a:hover { color: var(--gold); }

/* Begin Application — emphasized footer link in gold */
.footer-col a.footer-cta {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-col a.footer-cta:hover { color: var(--gold-soft); }

/* Safety net: any element wired to onclick should look clickable */
[onclick] { cursor: pointer; }


.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(201, 162, 76, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245, 239, 227, 0.72);
  letter-spacing: 0.05em;
}

/* ============================================
   PAGE HEADER (used on interior pages)
   ============================================ */
.page-header {
  background: var(--espresso);
  color: var(--cream);
  padding: 160px 0 140px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 162, 76, 0.15);
  /* Force every interior page header to occupy the same vertical space.
     Pages with shorter headlines pad up to match the longest one (Program). */
  min-height: 640px;
  display: flex;
  align-items: center;
}

/* page-header optional photo background — sits behind the watermark and content,
   darkened so the headline keeps its contrast. Mirrors the hero-bg pattern. */
.page-header-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  opacity: 0.42;
  filter: brightness(0.78) saturate(0.9);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

.page-header .eyebrow { color: var(--gold); margin-bottom: 28px; }
.page-header h1 {
  color: var(--cream);
  max-width: 900px;
  margin-bottom: 28px;
  font-weight: 400;
  /* Override global h1 (clamp 48–96px) — interior page headlines run long
     and the global size overflows the header band. Keep authoritative but
     contained. */
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.page-header h1 .em { font-style: italic; color: var(--gold); }
.page-header .lead { color: rgba(245, 239, 227, 0.82); max-width: 720px; }

.page-header-ba {
  /* Editorial seal: anchored bottom-right, partly bleeding off the edge,
     low opacity so it sits behind content as ornament rather than
     competing with the headline. */
  position: absolute;
  right: -120px;
  bottom: -100px;
  width: 480px;
  height: 320px;
  background-image: url("../images/ba-watermark.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.08;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  font-size: 0;
  color: transparent;
}

/* ============================================
   PRACTICAL INFO PAGE — long-form article layout
   ============================================ */
.prose {
  padding: 100px 0 140px;
  background: var(--cream);
}

.prose-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.prose-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}

.prose-toc h5,
.prose-toc .toc-heading {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
  font-weight: 500;
}

.prose-toc ul { list-style: none; }

.prose-toc li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.prose-toc li:last-child { border-bottom: 1px solid var(--line); }
.prose-toc li:hover { color: var(--espresso); }

.prose-toc .num {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 13px;
  min-width: 20px;
}

.prose-body h2 {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-top: 48px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  /* Override global h2 (clamp 36–64px, line-height 1.08) — these are
     numbered section headings inside body prose, not display headlines. */
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--espresso);
}

.prose-body h2:first-child { padding-top: 0; }

.prose-body h2 .section-num {
  font-family: var(--f-editorial);
  font-size: 16px;
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
}

.prose-body p { margin-bottom: 20px; font-size: 17px; line-height: 1.75; }
.prose-body p + p { margin-top: 0; }

.prose-body strong { color: var(--espresso); font-weight: 600; }

.prose-body .pullquote {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--espresso);
  padding: 32px 0;
  margin: 32px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-weight: 300;
}

.prose-body ul.clean {
  list-style: none;
  margin-bottom: 20px;
}

.prose-body ul.clean li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.prose-body ul.clean li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.info-card {
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  padding: 28px 32px;
  margin: 32px 0;
}

.info-card h4,
.info-card h5 {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--espresso);
  margin-bottom: 10px;
  font-weight: 500;
}

.info-card p {
  font-size: 15px;
  margin: 0;
  color: var(--ink-soft);
}

/* ============================================
   EXCURSIONS PAGE
   ============================================ */
.excursions {
  padding: 100px 0 140px;
  background: var(--cream);
}

.excursion-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.excursion-card:first-child { padding-top: 0; }
.excursion-card:last-child { border-bottom: none; }

.excursion-card.reverse { direction: rtl; }
.excursion-card.reverse > * { direction: ltr; }

.excursion-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--espresso);
  overflow: hidden;
}
.excursion-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom-up gradient scrim so the label reads on any photo, bright or dark.
   Pseudo-element keeps the markup clean — no extra <div> needed. */
.excursion-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 10, 6, 0.85) 0%,
    rgba(15, 10, 6, 0.55) 30%,
    rgba(15, 10, 6, 0.15) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
}


.excursion-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold);
}

/* Gradient illustrations for each trip */
.viz-chefchaouen { background: linear-gradient(135deg, #1e3a5f 0%, #4a6b8a 40%, #7a9bbc 100%); }
.viz-skoura { background: linear-gradient(160deg, var(--espresso-3) 0%, #7a5a3e 50%, #b08a5e 100%); }
.viz-rabat { background: linear-gradient(140deg, #2a1f14 0%, #5a3a28 50%, #8a6a48 100%); }
.viz-volubilis { background: linear-gradient(180deg, #8a7050 0%, var(--gold) 60%, #8a6e3a 100%); }

.excursion-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
}

.excursion-visual-label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  color: var(--cream);
  z-index: 3;
  /* small text-shadow as belt-and-braces in case photo is very busy in the
     bottom-left corner even after the scrim */
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.excursion-visual-num {
  font-family: var(--f-editorial);
  font-size: 13px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  /* gold can wash out on cream-heavy photos — bump weight slightly for body */
  font-weight: 500;
}

.excursion-visual-title {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--cream);
  line-height: 1.1;
  max-width: 90%;
  font-weight: 500;
}

.excursion-content h3 {
  font-family: var(--f-display);
  font-size: 44px;
  margin-bottom: 16px;
  font-weight: 500;
}

.excursion-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.excursion-meta-item {
  display: flex;
  flex-direction: column;
}

.excursion-meta-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.excursion-meta-value {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  font-weight: 500;
}

.excursion-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 16px;
  background: var(--espresso);
  color: var(--gold);
  margin-bottom: 24px;
  font-family: var(--f-display);
  font-size: 22px;
  border-radius: 2px;
}

.excursion-price .per {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 162, 76, 0.7);
}

.excursion-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.excursion-includes {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.excursion-include-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.excursion-include-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================
   PROGRAM PAGE
   ============================================ */
.program-overview {
  padding: 100px 0 80px;
  background: var(--cream);
}
.program-overview h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.program-intro { padding: 80px 0; background: var(--cream-2); }

.program-modules {
  padding: 80px 0;
  background: var(--cream);
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.module-card {
  background: var(--cream);
  padding: 48px 40px;
  transition: all 0.3s;
  cursor: pointer;
}

.module-card:hover {
  background: var(--cream-2);
}

.module-card-num {
  font-family: var(--f-editorial);
  font-size: 14px;
  color: var(--gold-deep);
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.module-card h3 {
  font-family: var(--f-display);
  font-size: 30px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--espresso);
}

.module-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================
   A TYPICAL DAY — daily schedule
   ============================================ */
.typical-day {
  padding: 100px 0;
  background: var(--cream);
}
.day-schedule {
  max-width: 820px;
  margin: 60px auto 0;
  border-top: 1px solid rgba(92, 68, 26, 0.18);
}
.day-row {
  display: grid;
  grid-template-columns: 160px 220px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(92, 68, 26, 0.18);
}
.day-time {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.day-block {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  font-weight: 500;
}
.day-note {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.day-friday-note {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 40px auto 0;
  font-style: italic;
}
@media (max-width: 700px) {
  .day-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .day-time { font-size: 14px; }
  .day-block { font-size: 19px; }
}

/* ============================================
   WEEKLY SYLLABUS CARDS
   ============================================ */
.syllabus {
  padding: 120px 0;
  background: var(--cream-2);
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.week-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.week-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.week-card-header {
  padding: 32px 36px 24px;
  background: var(--espresso);
  color: var(--cream);
  position: relative;
}

.week-card-num {
  font-family: var(--f-editorial);
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.week-card-header h3 {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.15;
}

.week-card-body {
  padding: 32px 36px 40px;
}

.week-card-body ul { list-style: none; }

.week-card-body li {
  padding: 12px 0 12px 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.week-card-body li:last-child { border-bottom: none; }

.week-card-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ============================================
   READING MATERIALS 3-column
   ============================================ */
.reading {
  padding: 120px 0;
  background: var(--cream);
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.reading-card {
  background: var(--cream-2);
  padding: 40px 32px;
  border-top: 2px solid var(--gold);
  transition: transform 0.3s;
}

.reading-card:hover { transform: translateY(-4px); }

.reading-level {
  font-family: var(--f-editorial);
  font-size: 14px;
  color: var(--gold-deep);
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reading-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--espresso);
  margin-bottom: 24px;
  font-weight: 500;
}

.reading-card ul { list-style: none; }

.reading-card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.reading-card li:last-child { border-bottom: none; }

/* ============================================
   ASSESSMENT TABLE
   ============================================ */
.assessment {
  padding: 120px 0;
  background: var(--parchment);
}

.assessment-table {
  margin-top: 60px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
}

.assessment-row {
  display: grid;
  grid-template-columns: 2fr 1fr 3fr;
  border-bottom: 1px solid var(--line);
}

.assessment-row:last-child { border-bottom: none; }

.assessment-row.head {
  background: var(--espresso);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

.assessment-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.assessment-row.head .assessment-cell {
  border-right-color: rgba(201, 162, 76, 0.2);
}

.assessment-cell:last-child { border-right: none; }

.assessment-method {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  font-weight: 500;
}

.assessment-weight {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--gold-deep);
  font-weight: 500;
}

.assessment-detail {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  align-self: center;
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-intro { padding: 100px 0 60px; background: var(--cream); }

.pricing-grid {
  padding: 60px 0 120px;
  background: var(--cream);
}

.packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

.package {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.package:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

.package.featured {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--gold);
  transform: scale(1.02);
}

.package.featured:hover { transform: scale(1.02) translateY(-6px); }

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--espresso);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}

.package-header {
  padding: 32px 28px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.package.featured .package-header {
  border-bottom-color: rgba(201, 162, 76, 0.25);
}

.package-letter {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-style: italic;
}

.package.featured .package-letter { color: var(--gold); }

.package h3 {
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 500;
}

.package.featured h3 { color: var(--cream); }

.package-price {
  font-family: var(--f-display);
  font-size: 48px;
  color: var(--espresso);
  font-weight: 500;
  line-height: 1;
}

.package.featured .package-price { color: var(--gold); }

.package-price .currency { font-size: 28px; color: var(--gold-deep); }
.package.featured .package-price .currency { color: var(--gold); }

.package-price-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.package.featured .package-price-sub { color: rgba(245, 239, 227, 0.7); }

.package-body {
  flex: 1;
  padding: 28px;
}

.package-body ul { list-style: none; }

.package-body li {
  padding: 12px 0 12px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.package.featured .package-body li {
  color: rgba(245, 239, 227, 0.8);
  border-bottom-color: rgba(201, 162, 76, 0.15);
}

.package-body li:last-child { border-bottom: none; }

.package-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.package-body li.excluded {
  color: var(--ink-soft);
  opacity: 0.4;
  text-decoration: line-through;
}

.package-body li.excluded::before { background: var(--ink-soft); }

.package-cta {
  padding: 24px 28px 32px;
}

.package-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
}

.package-btn:hover {
  background: var(--gold);
  color: var(--espresso);
}

.package.featured .package-btn {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
}

.package.featured .package-btn:hover {
  background: var(--gold-soft);
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-section {
  padding: 100px 0 100px;
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 100px;
}

.team-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 20, 13, 0.08);
  border-color: rgba(201, 162, 76, 0.5);
}

.team-card-portrait {
  aspect-ratio: 1 / 1;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 162, 76, 0.2);
}
.team-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-portrait .team-monogram {
  font-family: var(--f-display);
  font-size: 84px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.team-card-portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 162, 76, 0.18);
  pointer-events: none;
}

.team-card-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.team-card-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.team-card-role {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.team-card-bio {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 18px;
}
.team-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.team-card-tag {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 6px 12px;
  background: rgba(201, 162, 76, 0.1);
  border: 1px solid rgba(201, 162, 76, 0.25);
  border-radius: 2px;
}

/* Closing band — cream-2 (warm parchment) so it separates from the dark footer below */
.team-closing {
  background: var(--cream-2);
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.team-closing .container-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.team-closing .eyebrow {
  justify-content: center;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.team-closing h3 {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.team-closing p {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  .team-section { padding: 64px 0 64px; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-card-body { padding: 24px 22px 26px; }
  .team-card-name { font-size: 20px; }
  .team-closing { padding: 64px 0; }
  .team-closing h3 { font-size: 26px; }
}

/* Trips table */
.trips-table {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 0 48px;
}

.trips-table h3 {
  text-align: center;
  margin-bottom: 40px;
}

.trip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.trip-row:last-child { border-bottom: none; }

.trip-row.bundle {
  background: var(--cream-2);
  padding: 32px 32px;
  margin-top: 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.trip-name {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  margin-bottom: 4px;
  font-weight: 500;
}

.trip-detail {
  font-size: 14px;
  color: var(--ink-soft);
}

.trip-price {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ============================================
   APPLY / FORM PAGE
   ============================================ */
.apply {
  padding: 100px 0 140px;
  background: var(--cream);
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.apply-sidebar h3 {
  font-family: var(--f-display);
  font-size: 38px;
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.apply-sidebar .em { color: var(--gold-deep); font-style: italic; }

.apply-sidebar p { margin-bottom: 20px; font-size: 16px; }

.apply-notice {
  margin-top: 40px;
  padding: 24px;
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.apply-deadline {
  margin-top: 32px;
  padding: 32px;
  background: var(--espresso);
  color: var(--cream);
  border-radius: 2px;
}

.apply-deadline-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.apply-deadline-date {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 4px;
}

.apply-deadline-note {
  font-size: 13px;
  color: rgba(245, 239, 227, 0.65);
}

/* Form */
.form {
  background: var(--cream-2);
  padding: 56px 56px;
  border-top: 2px solid var(--gold);
}

.form-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
  font-weight: 500;
}

.form h3 {
  font-family: var(--f-display);
  font-size: 28px;
  margin-bottom: 40px;
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-field label .req { color: var(--gold-deep); margin-left: 2px; }

.form-field input,
.form-field select {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--espresso);
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  border-bottom-color: var(--gold);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F6E2E' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 18px;
  padding-right: 28px;
  cursor: pointer;
}

/* ---------- Custom select (replaces native <select> with styled dropdown) ---------- */
.cs {
  position: relative;
  font-family: var(--f-body);
  font-size: 15px;
}
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--espresso);
  font-family: var(--f-body);
  font-size: 15px;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color 0.2s;
}
.cs-trigger:hover { border-bottom-color: var(--gold-deep); }
.cs.is-open .cs-trigger,
.cs-trigger:focus { border-bottom-color: var(--gold); }
.cs-value { color: var(--espresso); }
.cs-value.is-placeholder { color: var(--ink-soft); opacity: 0.7; }
.cs-trigger::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F6E2E' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s;
  opacity: 0.75;
}
.cs.is-open .cs-trigger::after { transform: rotate(180deg); opacity: 1; }

.cs-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(28, 20, 13, 0.18), 0 4px 12px rgba(28, 20, 13, 0.08);
  z-index: 50;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.cs-dropdown::-webkit-scrollbar { width: 6px; }
.cs-dropdown::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.cs.is-open .cs-dropdown { display: block; }
.cs-option {
  padding: 11px 18px;
  font-size: 14px;
  color: var(--espresso);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.cs-option:hover,
.cs-option.is-active {
  background: rgba(143, 110, 46, 0.10);
}
.cs-option.is-selected {
  color: var(--gold-deep);
  font-weight: 500;
}

/* ---------- Phone field with country code dropdown ---------- */
.phone-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}
.phone-group.is-focused { border-bottom-color: var(--gold); }

.cc-select {
  position: relative;
  flex: 0 0 auto;
}
.cc-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px 14px 2px;
  background: transparent;
  border: none;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--espresso);
  cursor: pointer;
  outline: none;
  position: relative;
  white-space: nowrap;
}
.cc-trigger::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F6E2E' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s;
  opacity: 0.7;
}
.cc-trigger:hover::after { opacity: 1; }
.cc-select.is-open .cc-trigger::after { transform: rotate(180deg); opacity: 1; }
.cc-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-color: rgba(143, 110, 46, 0.08);
  box-shadow: 0 0 0 1px rgba(28, 20, 13, 0.12);
  flex-shrink: 0;
  vertical-align: middle;
}
.cc-dial { color: var(--ink-soft); font-feature-settings: "tnum"; }

.phone-group input.phone-input {
  flex: 1;
  border-bottom: none !important;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.cc-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -12px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(28, 20, 13, 0.18), 0 4px 12px rgba(28, 20, 13, 0.08);
  z-index: 60;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.cc-select.is-open .cc-dropdown { display: flex; }

.cc-search-wrap {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.cc-search {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--espresso);
  background: rgba(143, 110, 46, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}
.cc-search:focus { border-color: var(--gold); background: #fff; }

.cc-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.cc-list::-webkit-scrollbar { width: 6px; }
.cc-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.cc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--espresso);
  transition: background 0.12s;
}
.cc-item:hover,
.cc-item.is-active {
  background: rgba(143, 110, 46, 0.10);
}
.cc-item .cc-flag { width: 20px; height: 14px; }
.cc-item-name { flex: 1; }
.cc-item-dial {
  color: var(--ink-soft);
  font-feature-settings: "tnum";
  font-size: 13px;
}
.cc-empty {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
}

.form-check input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.form-check input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  font-size: 12px;
  font-weight: bold;
}

.form-check a { color: var(--gold-deep); text-decoration: underline; }

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--espresso);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-submit:hover {
  background: var(--gold);
  color: var(--espresso);
}

/* Inline error message under a form field */
.field-error {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--error);
  font-weight: 500;
  font-family: var(--f-body);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-error::before {
  content: "⚠";
  font-size: 13px;
  display: inline-block;
}
/* Field with error — make underline red */
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

/* Success state after form submit */
.form-success {
  text-align: center;
  padding: 40px 0;
}

/* Error banner shown above form on submit failure */
.form-error-banner {
  background: rgba(179, 36, 26, 0.08);
  border: 1px solid var(--error);
  border-left: 3px solid var(--error);
  color: var(--error);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 2px;
}
.form-success-icon {
  font-family: var(--f-arabic);
  font-size: 72px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 24px;
}
.form-success h3 {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--espresso);
  margin-bottom: 16px;
  font-weight: 500;
}
.form-success p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact {
  padding: 140px 0;
  background: var(--cream);
  text-align: center;
}

.contact-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

.contact h2 {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 72px);
  margin-bottom: 24px;
}

.contact .lead { margin-bottom: 64px; }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.contact-method {
  background: var(--cream);
  padding: 48px 24px;
  transition: background 0.3s;
  cursor: pointer;
}

.contact-method:hover { background: var(--cream-2); }

.contact-icon {
  font-family: var(--f-arabic);
  font-size: 36px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
  font-weight: 500;
}

.contact-value {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.2;
  word-break: break-word;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq {
  padding: 100px 0 140px;
  background: var(--cream);
}

.faq-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
}

.faq-list {
  margin-top: 60px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
  transition: background 0.2s;
}

.faq-item.open { background: var(--cream-2); }

.faq-q {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  cursor: pointer;
  padding-left: 4px;
  padding-right: 4px;
  transition: padding 0.2s;
}

.faq-item.open .faq-q {
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 32px;
}

.faq-q h4 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 10px; height: 1px; }
.faq-icon::after { width: 1px; height: 10px; transition: transform 0.3s; }

.faq-item.open .faq-icon { background: var(--gold); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--espresso); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 4px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 32px;
}

.faq-a p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE — comprehensive layer
   Tablet ≤900 · Phone ≤600 · Small phone ≤420
   ============================================ */
/* Switch nav to burger drawer earlier (1200px) so the 7 nav items don't overflow */
@media (max-width: 1200px) {
  .nav-inner { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border-top: 1px solid rgba(201, 162, 76, 0);
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  }
  .nav.menu-open .nav-links {
    max-height: 480px;
    opacity: 1;
    padding-top: 12px;
    padding-bottom: 4px;
    border-top: 1px solid rgba(201, 162, 76, 0.15);
  }
  .nav-link {
    padding: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    width: 100%;
    border-bottom: 1px solid rgba(201, 162, 76, 0.08);
  }
  .nav-link > a {
    display: block;
    padding: 14px 4px;
    width: 100%;
  }
  .nav-link:last-of-type { border-bottom: none; }
  .nav-cta-mobile { display: block; }
}

@media (max-width: 900px) {
  /* Spacing */
  .container, .container-narrow { padding: 0 24px; }
  section { }
  .section { padding: 72px 0 !important; }

  /* Hero */
  .hero-content { padding: 44px 24px 56px; }
  .hero-meta { gap: 28px; flex-wrap: wrap; }
  .hero-ba { display: none; }

  /* Page headers */
  .page-header { min-height: 520px; padding: 100px 0 80px; }
  .page-header-inner { padding: 64px 24px; }
  .page-header-ba { width: 360px; height: 240px; right: -90px; bottom: -80px; top: auto; transform: none; opacity: 0.08; }

  /* Homepage AIDA strips — inline-styled grids targeted via attribute */
  /* removed: handled by .stat-grid responsive rules */
  /* removed: handled by .stat-grid responsive rules */

  /* Gallery */
  #page-gallery div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Layout grids that already exist */
  .overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .overview-left { position: static; }
  .rhythm-grid { grid-template-columns: 1fr 1fr; }
  .modules-list { grid-template-columns: 1fr; }
  .module-row:nth-child(odd) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .prose-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .prose-toc { position: static; }
  .excursion-card { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .excursion-card.reverse { direction: ltr; }
  .module-card-grid { grid-template-columns: 1fr; }
  .syllabus-grid { grid-template-columns: 1fr; }
  .reading-grid { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr 1fr; }
  .apply-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .form { padding: 40px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }

  /* ASSESSMENT TABLE on mobile — definition-list card pattern.
     Standard responsive table treatment: each row becomes a card with
     the method name as the title, followed by label/value pairs.
     No dark strips — keeps it clean and editorial. */
  .assessment-table {
    border: none;
    background: transparent;
    margin-top: 40px;
  }
  .assessment-row.head { display: none; }
  .assessment-row {
    display: block;
    border: 1px solid var(--line-strong);
    background: var(--cream);
    margin-bottom: 14px;
    padding: 28px 28px 22px;
  }
  .assessment-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--line-strong); }
  .assessment-cell {
    border: none;
    padding: 0;
  }
  /* Method = card title */
  .assessment-method {
    font-family: var(--f-display);
    font-size: 24px;
    color: var(--espresso);
    font-weight: 500;
    line-height: 1.2;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  /* Weight & Details share the same definition-list treatment:
     small uppercase label on its own line, value beneath, separated by
     a thin divider on weight only (not on the last item). */
  .assessment-weight,
  .assessment-detail {
    display: block;
    padding: 0;
  }
  .assessment-weight {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .assessment-weight::before,
  .assessment-detail::before {
    display: block;
    font-family: var(--f-body);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .assessment-weight::before { content: 'Weight'; }
  .assessment-detail::before { content: 'Details'; }
  /* Restore desktop typography for values */
  .assessment-weight {
    font-family: var(--f-display);
    font-size: 32px;
    color: var(--gold-deep);
    font-weight: 500;
    line-height: 1;
  }
  .assessment-detail {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
  }

  /* Gallery grid — masonry to 2 cols */
  .gallery-grid { column-count: 2 !important; }
}

@media (max-width: 600px) {
  /* Type — h1/h2/h3 already use clamp, just tighten the floor */
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(28px, 7vw, 38px); }
  h3 { font-size: clamp(22px, 5vw, 28px); }
  .lead { font-size: 17px; }

  /* Container & spacing */
  .container, .container-narrow { padding: 0 18px; }
  .section { padding: 56px 0 !important; }

  /* Hero — meta stacks, kicker shrinks */
  .hero-content { padding: 36px 18px 48px; }
  .hero-kicker { flex-wrap: wrap; gap: 12px; }
  .hero-kicker-text { font-size: 11px; }
  .hero-meta { flex-direction: column; gap: 18px; align-items: flex-start; }
  .hero-meta-item { width: 100%; padding-bottom: 18px; border-bottom: 1px solid rgba(201,162,76,0.18); }
  .hero-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .hero-ba { display: none; }

  /* Page headers */
  .page-header { min-height: 520px; padding: 80px 0 60px; }
  .page-header-inner { padding: 48px 18px; }
  .page-header-ba { width: 240px; height: 160px; right: -60px; bottom: -60px; top: auto; transform: none; opacity: 0.07; }

  /* Buttons — slightly tighter so two CTAs don't blow out */
  .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 12px; letter-spacing: 0.16em; }
  .btn-ghost-light { padding: 14px 22px; font-size: 12px; letter-spacing: 0.16em; }

  /* Footer collapses fully */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
  .footer-tagline { max-width: 100%; }

  /* Homepage AIDA strips — full collapse */
  /* removed: handled by .stat-grid responsive rules */
  /* Final CTA band 3-col deadline strip */
  .cta-band div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Rhythm to single column */
  .rhythm-grid { grid-template-columns: 1fr; }
  .rhythm-item { border-right: none; border-bottom: 1px solid var(--line); }
  .rhythm-item:last-child { border-bottom: none; }

  /* Pricing tables */
  .packages { grid-template-columns: 1fr; }
  .package.featured { transform: none; }
  .package.featured:hover { transform: translateY(-6px); }

  /* Forms */
  .form { padding: 28px 20px; }

  /* Gallery */
  .gallery-grid { column-count: 1 !important; }
  #page-gallery div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .gal-tab { padding: 8px 14px !important; font-size: 11px !important; }

  /* Quote section — pull-quotes get tight */
  .quote-text { font-size: 24px !important; line-height: 1.45 !important; }

  /* Tables on small screens */
  table { font-size: 14px; }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  .container, .container-narrow { padding: 0 14px; }
  .nav-inner { padding: 12px 14px; }
  .nav-link { padding: 8px 9px; font-size: 10px; letter-spacing: 0.1em; }
  .nav-cta { padding: 9px 14px; font-size: 10px; }
  .brand-logo { height: 36px; }
  .brand-sub { font-size: 9px; }
  .hero-content { padding: 28px 14px 40px; }
  .page-header-inner { padding: 36px 14px; }
  .section, section { padding-left: 0; padding-right: 0; }
  .btn-primary, .btn-ghost, .btn-ghost-light { padding: 13px 18px; font-size: 11px; }
}


/* ============================================
   MICRO: entrance animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   404 — NOT FOUND PAGE
   ============================================ */
.page-404 {
  min-height: calc(100vh - 84px);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.page-404-inner {
  max-width: 640px;
}
.page-404-mark {
  font-family: var(--f-arabic);
  font-size: 160px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 32px;
  opacity: 0.85;
}
.page-404 h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--espresso);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.page-404 .lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  line-height: 1.7;
}
.page-404-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--espresso);
  color: var(--cream);
  padding: 20px 24px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(28, 20, 13, 0.45);
  border: 1px solid var(--line-strong);
  animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 239, 227, 0.85);
}
.cookie-banner-text strong {
  color: var(--gold);
  font-weight: 500;
  margin-right: 6px;
}
.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}
.cookie-btn--accept {
  background: var(--gold);
  color: var(--espresso);
  border: 1px solid var(--gold);
}
.cookie-btn--accept:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.cookie-btn--decline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 227, 0.3);
}
.cookie-btn--decline:hover {
  border-color: var(--cream);
  background: rgba(245, 239, 227, 0.06);
}
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 18px; }
  .cookie-banner-inner { gap: 14px; }
  .cookie-banner-text { font-size: 12px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; padding: 11px 14px; }
}

/* ============================================
   FLOATING WHATSAPP — editorial / brand-aligned
   ============================================ */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--f-body);
}

.wa-float-bubble {
  position: relative;
  background: var(--cream);
  color: var(--espresso);
  padding: 14px 38px 14px 18px;
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(28, 20, 13, 0.18);
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.35;
  max-width: 240px;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(8px) translateY(4px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wa-float-bubble.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
}
.wa-float-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}
.wa-float-bubble .wa-bubble-eyebrow {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
  display: block;
}
.wa-float-bubble .wa-bubble-text {
  font-style: italic;
  color: var(--espresso);
}
.wa-float-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.wa-float-close:hover {
  background: var(--cream-2);
  color: var(--espresso);
}

.wa-float-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 20, 13, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}
.wa-float-btn:hover {
  transform: translateY(-2px);
  background: #1FBA5A;
  box-shadow: 0 12px 28px rgba(28, 20, 13, 0.34);
}
.wa-float-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Tiny dismiss × on the float button itself — appears on hover */
.wa-float-dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--espresso);
  color: var(--cream);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 20, 13, 0.3);
}
.wa-float:hover .wa-float-dismiss,
.wa-float-dismiss:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.wa-float-dismiss:hover {
  background: var(--cocoa);
}
.wa-float-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.45;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Mobile sizing */
@media (max-width: 600px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }
  .wa-float-btn {
    width: 54px;
    height: 54px;
  }
  .wa-float-btn svg {
    width: 26px;
    height: 26px;
  }
  .wa-float-bubble {
    font-size: 14px;
    max-width: 200px;
    padding: 12px 32px 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float-btn::before { animation: none; }
  .wa-float-bubble { transition: opacity 0.2s ease; }
}

/* ============================================
   COMPONENT CLASSES — extracted from inline styles
   Keeps design system consistent and HTML clean.
   ============================================ */

/* Gallery items — masonry tiles */
.gal-tile {
  break-inside: avoid;
  margin: 0 0 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--espresso);
}
.gal-img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.gal-tile:hover .gal-img { transform: scale(1.04); }
.gal-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(28,20,13,0.92), rgba(28,20,13,0));
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Excursion visual aspect-ratio frame */
.excursion-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.excursion-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Radio/checkbox group label (inline style label wrappers) */
.opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.opt-label--small {
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.opt-radio {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.opt-radio--inline {
  accent-color: var(--gold);
}

/* Group label/legend on light surfaces */
.field-legend {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
  padding: 0;
}

/* Stat/figure number large */
.figure-num--ink {
  font-family: var(--f-display);
  font-size: 38px;
  color: var(--espresso);
  font-weight: 500;
  line-height: 1;
}
.figure-num--gold {
  font-family: var(--f-display);
  font-size: 42px;
  color: var(--gold-deep);
  font-weight: 500;
  line-height: 1;
}

/* Stat caption labels under numbers */
.figure-caption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.figure-caption--lg {
  margin-top: 10px;
}

/* Eyebrow on dark surface (kicker/accent) */
.eyebrow-dark {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Pill button (outline link) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--f-body);
  border: 1px solid var(--line-strong);
  color: var(--espresso);
  background: transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-pill:hover {
  border-color: var(--gold-deep);
  background: rgba(201, 162, 76, 0.06);
}

/* Common alignment utilities (use sparingly) */
.u-text-center { text-align: center; }
.u-flex-center { justify-content: center; }
.u-row-center { display: flex; gap: 24px; align-items: center; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-32 { margin-bottom: 32px; }


/* Inline-extracted color utilities */
.u-color-gold { color: var(--gold); }
.u-color-gold-deep { color: var(--gold-deep); }

/* Extracted from repeated inline-style patterns */
.u-prose-narrow { margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.u-center-gold-mb { justify-content: center; margin-bottom: 24px; color: var(--gold); }
.u-display-cream-18 { font-family: var(--f-display); color: var(--cream); font-size: 18px; }


.bg-espresso { background: var(--espresso); }

.excursion-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.excursion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Stat strip grids — used for AIDA / metrics rows */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid--gap-32 { gap: 32px; }
.stat-strip-section {
  background: var(--cream-2);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-grid--3 { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-grid--3 { grid-template-columns: 1fr; gap: 20px; }
}


/* ========================================
   STYLE BLOCK SEPARATOR
   ======================================== */


  .gal-item {
    break-inside: avoid;
    margin: 0 0 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--espresso-3);
  }
  .gal-item img {
    /* hide alt-text overlay during loading or if image fails */
    color: transparent;
    min-height: 220px;
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
  }
  .gal-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px 14px;
    background: linear-gradient(to top, rgba(28,20,13,0.92), transparent);
    color: var(--cream);
    font-family: var(--f-display);
    font-size: 18px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .gal-item:hover img { transform: scale(1.04); }
  .gal-item:hover figcaption { opacity: 1 !important; }
  .gal-tab:hover { border-color: var(--gold) !important; }
  .gal-tab.active { background: var(--espresso) !important; color: var(--cream) !important; border-color: var(--gold) !important; }

  /* Hide the floating greeting bubble on pages where contact info is the focus */
  body:has(#page-contact.active) .wa-float-bubble,
  body:has(#page-apply.active) .wa-float-bubble {
    display: none !important;
  }


/* ========================================
   STYLE BLOCK SEPARATOR
   ======================================== */


      .legal-section { margin-bottom: 52px; }
      .legal-section h2 {
        font-family: var(--f-display);
        font-size: 22px;
        font-weight: 600;
        color: var(--gold);
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
        letter-spacing: 0.02em;
      }
      .legal-section h2 .legal-num {
        font-family: var(--f-body);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold-soft);
        display: block;
        margin-bottom: 4px;
        opacity: 0.9;
      }
      .legal-section p {
        font-family: var(--f-body);
        font-size: 15px;
        line-height: 1.8;
        color: var(--cream-2);
        margin-bottom: 12px;
      }
      .legal-section ul {
        list-style: none;
        padding: 0;
        margin: 12px 0 16px 0;
      }
      .legal-section ul li {
        font-family: var(--f-body);
        font-size: 15px;
        line-height: 1.75;
        color: var(--cream-2);
        padding: 5px 0 5px 20px;
        position: relative;
      }
      .legal-section ul li::before {
        content: '—';
        position: absolute;
        left: 0;
        color: var(--gold);
      }
      .legal-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-family: var(--f-body);
        font-size: 14px;
      }
      .legal-table th {
        background: var(--espresso-3);
        color: var(--gold);
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        letter-spacing: 0.04em;
        border: 1px solid var(--line);
      }
      .legal-table td {
        padding: 12px 16px;
        color: var(--cream-2);
        border: 1px solid var(--line);
        vertical-align: top;
      }
      .legal-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
      .legal-highlight {
        background: var(--espresso-3);
        border-left: 3px solid var(--gold);
        padding: 18px 24px;
        border-radius: 0 4px 4px 0;
        margin: 16px 0;
      }
      .legal-highlight p { margin: 0; }
      .legal-declaration {
        background: var(--espresso-2);
        border: 1px solid var(--line-strong);
        border-radius: 4px;
        padding: 36px;
        margin-top: 64px;
        text-align: center;
      }
      .legal-declaration p {
        font-size: 14px;
        line-height: 1.8;
        color: var(--cream-2);
        margin-bottom: 24px;
      }
      .legal-declaration .sign-fields {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
        margin-top: 32px;
        text-align: left;
      }
      .legal-declaration .sign-field label {
        font-family: var(--f-body);
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--gold);
        display: block;
        margin-bottom: 8px;
      }
      .legal-declaration .sign-field .sign-line {
        height: 1px;
        background: var(--line-strong);
        width: 100%;
      }
      @media (max-width: 640px) {
        .legal-declaration .sign-fields { grid-template-columns: 1fr; }
        .prose { padding: 48px 24px !important; }
      }
    