
/* =========================================================
   GMC DESIGN SYSTEM — "Quiet Authority"
   Inspired by McKinsey, Henley & Partners, Monocle
   ========================================================= */
:root {
  /* Color — Ink Family */
  --ink: #1A1A2E;
  --ink-light: #4A4A5A;
  --ink-muted: #6B6B7B; /* darkened from #8A8A9A to pass WCAG AA 4.5:1 contrast on white */

  /* Color — Surface */
  --surface: #FFFFFF;
  --surface-warm: #FAFAF8;
  --surface-cool: #F5F6F8;
  --surface-deep: #0F0F1F;

  /* Color — Accent (Diplomatic Blue) */
  --accent: #2D5A7B;
  --accent-hover: #1E4562;
  --accent-light: #E8F0F5;
  --accent-deep: #163450;

  /* Color — Status */
  --success: #2E7D5B;
  --warning: #C4841D;
  --error: #C44141;
  --closed: #8A8A9A;

  /* Color — Borders */
  --border: #E5E5E5;
  --border-light: #F0F0F0;
  --border-dark: #D0D0D0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing scale (8px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 192px;

  /* Layout */
  --container-max: 1280px;
  --container-text: 720px;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26,26,46,0.04), 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 6px rgba(26,26,46,0.04), 0 10px 15px rgba(26,26,46,0.06);
  --shadow-lg: 0 10px 15px rgba(26,26,46,0.05), 0 20px 25px rgba(26,26,46,0.08);
  --shadow-xl: 0 20px 25px rgba(26,26,46,0.08), 0 25px 50px rgba(26,26,46,0.12);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --d-1: 150ms; --d-2: 300ms; --d-3: 500ms; --d-4: 800ms;

  /* Header */
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--ink-light); margin-bottom: 1em; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-light); font-weight: 400; }
small, .small { font-size: 0.875rem; color: var(--ink-muted); }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-sans);
}
a { color: var(--accent); text-decoration: none; transition: color var(--d-1) var(--ease); }
a:hover { color: var(--accent-hover); }

/* Accessibility — focus-visible ring for keyboard users */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(45,90,123,0.15);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent) !important;
}

/* Skip link — visible only on focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--ink);
  color: var(--surface);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9375rem;
  z-index: 10000;
  transition: top var(--d-2) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--s-3);
  color: var(--surface);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Anchor targets shouldn't be hidden under the fixed header */
:target,
section[id],
[id^="page-"],
main > * {
  scroll-margin-top: calc(var(--header-h) + var(--s-3));
}

/* CLS fix — reserve layout space for the SPA shell BEFORE renderProgramDetail() etc. inject content.
   Without this, the loader → content swap registers as a massive layout shift (CLS 0.85+).
   100vh minus header pre-allocates the viewport so the injected page slots in cleanly. */
/* NOTE: do NOT use `contain: layout` here — it makes #app a containing block for fixed-position
   descendants, which breaks elements rendered inside routes that rely on viewport-fixed positioning
   (e.g. the compare pill / compare drawer). `contain: style` is safe and still isolates style work. */
#app { min-height: calc(100vh - var(--header-h)); contain: style; }
#app:empty { background: var(--surface-warm); }

/* LCP boost — let the browser skip rendering offscreen sections until the user scrolls near them.
   Saves layout/paint cost on long pages (program detail, blog posts, about) and improves time-to-interactive.
   Safe everywhere: contain-intrinsic-size pre-allocates an estimated height so layout still works. */
.section,
.cta-band,
.newsletter-band,
.instagram-feature,
.advisor-also-grid,
.blog-grid,
.values-grid,
.about-photos-grid,
.proscons,
.steps-list {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
/* Hero / above-the-fold sections — never let CV affect them */
.hero,
.hero-immersive,
.detail-hero,
.about-hero,
.compare-hero,
.precheck-hero {
  content-visibility: visible;
}

/* Layout primitives */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--s-5); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-lg { padding: var(--s-10) 0; }
.surface-warm { background: var(--surface-warm); }
.surface-cool { background: var(--surface-cool); }
.surface-deep { background: var(--surface-deep); color: var(--surface); }
.surface-deep h1, .surface-deep h2, .surface-deep h3, .surface-deep h4, .surface-deep h5, .surface-deep h6 { color: var(--surface); }
.surface-deep p { color: rgba(255,255,255,0.75); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1;
  border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: all var(--d-2) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--ink); color: white; }
.btn-secondary:hover { background: var(--surface-deep); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-dark); }
.btn-accent-soft {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(45,90,123,0.25);
}
.btn-accent-soft:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.header-find-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.header-find-btn svg { width: 14px; height: 14px; }
/* Keep the pill visible across most viewports; collapse to icon-only on medium */
@media (max-width: 900px)  { .header-find-btn span { display: none; } .header-find-btn { padding: 6px 10px; } }
@media (max-width: 760px)  { .header-find-btn { display: none; } }
.btn-ghost:hover { background: var(--surface-cool); border-color: var(--ink); color: var(--ink); }
.btn-link { background: transparent; color: var(--accent); padding: 0; }
.btn-link:hover { color: var(--accent-hover); transform: translateX(4px); }
.btn-lg { padding: var(--s-4) var(--s-6); font-size: 1rem; }
.btn-sm { padding: var(--s-2) var(--s-4); font-size: 0.8125rem; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-3); border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--surface-cool); color: var(--ink-light);
  border: 1px solid var(--border);
}
.badge-success { background: rgba(46,125,91,0.08); color: var(--success); border-color: rgba(46,125,91,0.2); }
.badge-warning { background: rgba(196,132,29,0.08); color: var(--warning); border-color: rgba(196,132,29,0.2); }
.badge-error   { background: rgba(196,65,65,0.08); color: var(--error); border-color: rgba(196,65,65,0.2); }
.badge-accent  { background: var(--accent-light); color: var(--accent); border-color: rgba(45,90,123,0.2); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
  transition: all var(--d-2) var(--ease);
}
.card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-flat { box-shadow: none; }

/* Grid */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Section header */
.section-header { max-width: 720px; margin: 0 auto var(--s-7); text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-top: var(--s-2); margin-bottom: var(--s-3); }
.section-header p { color: var(--ink-light); font-size: 1.125rem; }

/* ==============================
   HEADER / NAV
   ============================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2) var(--ease), background var(--d-2) var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.95); }
.header-inner {
  max-width: var(--container-max); height: 100%;
  margin: 0 auto; padding: 0 var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.logo {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-serif); font-weight: 600; font-size: 1.125rem;
  color: var(--ink); cursor: pointer;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-family: var(--font-sans); font-size: 0.6875rem; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.logo-svg { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .logo-svg { height: 32px; } }
.logo-svg-light { filter: brightness(0) invert(1); opacity: 0.95; height: 44px; }

.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav-link {
  padding: var(--s-2) var(--s-3);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-light);
  border-radius: var(--r-sm); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
/* Mobile-only nav links are hidden on desktop; shown when the hamburger is open (see media query below) */
.nav-mobile-only { display: none; }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
}
.lang-toggle button {
  padding: 6px 10px; background: transparent; border: 0;
  color: var(--ink-muted); cursor: pointer; font-family: inherit; font-weight: inherit;
  transition: all var(--d-1) var(--ease);
}
.lang-toggle button.active { background: var(--ink); color: white; }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; padding: var(--s-2); border-radius: var(--r-sm); transition: background .15s ease; }
.menu-btn:hover { background: rgba(0,0,0,0.05); }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--ink); }

/* Desktop dropdown: anchored to top-right under the burger */
.nav.open {
  display: flex !important;
  position: fixed; top: calc(var(--header-h) + 4px); right: var(--s-4);
  background: white; flex-direction: column; align-items: stretch;
  padding: var(--s-3); gap: 2px; min-width: 240px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(15,25,45,0.14);
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
  z-index: 80;
  animation: navOpen .16s ease;
}
@keyframes navOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav.open .nav-link { padding: 10px var(--s-3); border-radius: var(--r-sm); border-bottom: 0; font-size: 0.95rem; }
.nav.open .nav-link:hover { background: var(--surface-cool); }
.nav.open .nav-mobile-only { display: block; }
.nav.open .nav-link.active::after { display: none; }
.nav.open .nav-link.active { background: var(--surface-cool); color: var(--accent); }

/* Backdrop while menu is open (closes on click outside) */
.nav-backdrop {
  position: fixed; inset: 0; background: transparent; z-index: 75;
  display: none;
}
.nav-backdrop.show { display: block; }

@media (max-width: 760px) {
  /* Mobile: hide the inline nav entirely; only the dropdown panel shows when burger toggled */
  .nav { display: none; }
  /* Mobile: full-width slide-down panel covering most of the screen */
  .nav.open {
    top: var(--header-h); right: 0; left: 0;
    border-radius: 0; border: 0; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(15,25,45,0.10);
    padding: var(--s-4); gap: 0; min-width: 0;
    max-height: calc(100vh - var(--header-h));
  }
  .nav.open .nav-link { padding: var(--s-3); border-radius: 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; }
  /* Tighten header to prevent overflow at narrow viewports */
  .nav-actions { gap: var(--s-2); }
  .lang-toggle button { padding: 8px 10px; min-height: 36px; }
}
@media (max-width: 480px) {
  /* Hide top-bar "Book a call" pill on small phones — duplicate triggers exist in burger menu, hero, footer, and WA widget */
  .nav-actions > a.btn.btn-primary.btn-sm { display: none; }
}

/* ==============================
   FOOTER
   ============================== */
.footer { background: var(--surface-deep); color: rgba(255,255,255,0.7); padding: var(--s-9) 0 var(--s-6); }
.footer h4 { color: white; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-4); }
.footer a { color: rgba(255,255,255,0.65); display: block; padding: var(--s-1) 0; font-size: 0.9375rem; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: var(--s-7); margin-bottom: var(--s-7); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9375rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
}
.disclaimer-note {
  background: rgba(255,255,255,0.04); border-left: 2px solid #C9A961;
  padding: var(--s-4); margin: var(--s-5) 0; font-size: 0.8125rem; line-height: 1.55;
  color: rgba(255,255,255,0.6); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Social-icon row in footer */
.social-row { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md);
  color: rgba(255,255,255,0.78) !important; font-size: 0.875rem; transition: all .2s ease;
  width: fit-content;
}
.social-link:hover { background: rgba(255,255,255,0.06); color: white !important; border-color: rgba(255,255,255,0.25); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Instagram feature section */
.instagram-feature { padding: var(--s-9) 0; }
.instagram-header { text-align: center; max-width: 640px; margin: 0 auto var(--s-7); }
.instagram-header h2 { margin: var(--s-2) 0 var(--s-3); }
.instagram-header p { color: var(--ink-light); font-size: 1.0625rem; margin-bottom: var(--s-4); }
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
}
@media (max-width: 1024px) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); } }
.instagram-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md);
  overflow: hidden; display: block; background: linear-gradient(135deg, #fde6c0 0%, #f4a261 50%, #e76f51 100%);
}
.instagram-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.instagram-tile:hover img { transform: scale(1.05); }
.instagram-tile-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 25, 45, 0.32); opacity: 0; transition: opacity .25s ease; color: white;
}
.instagram-tile-overlay svg { width: 36px; height: 36px; }
.instagram-tile:hover .instagram-tile-overlay { opacity: 1; }
.instagram-tile.placeholder::before {
  content: '📸'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; opacity: 0.6;
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--s-9));
  padding-bottom: var(--s-9);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-warm) 100%);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-content .eyebrow { display: inline-block; margin-bottom: var(--s-4); }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-lead { font-size: 1.25rem; color: var(--ink-light); margin: 0 auto var(--s-6); max-width: 56ch; line-height: 1.55; }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); justify-content: center; }
.hero-trust { display: flex; gap: var(--s-7); flex-wrap: wrap; padding-top: var(--s-6); border-top: 1px solid var(--border); justify-content: center; max-width: 720px; margin: 0 auto; }
.hero-trust-item { text-align: center; }
.hero-trust-item small { display: block; color: var(--ink-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-trust-item strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; }

/* ==============================
   ROUTER PAGES
   ============================== */
.page-view { display: none; }
.page-view.active { display: block; }

/* Trust bar */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-5) var(--s-7);
  padding: var(--s-5) var(--s-5);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-bar-item {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--ink-muted); font-size: 0.875rem; font-weight: 500;
}
.trust-bar-item svg { width: 18px; height: 18px; opacity: 0.6; }

/* ==============================
   WORLD MAP — svgMap overrides
   ============================== */
.programs-map-section { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.world-map-wrap {
  position: relative;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: var(--s-4);
  box-shadow: var(--shadow-md);
  min-height: 420px;
}
#gmcWorldMap { width: 100%; height: 560px; position: relative; }
@media (max-width: 960px) { #gmcWorldMap { height: 420px; } }
@media (max-width: 640px) { #gmcWorldMap { height: 320px; } }

/* svgMap library overrides */
.svgMap-map-wrapper { background: transparent !important; }
.svgMap-country {
  /* v2.19.2 sets --svg-map-country-fill via inline style; apply it */
  fill: var(--svg-map-country-fill, #E5E5E5) !important;
  stroke: #FFFFFF;
  stroke-width: 0.6;
  transition: filter var(--d-1) var(--ease);
  cursor: default;
}
.svgMap-country[data-active="true"] { cursor: pointer; }
.svgMap-country[data-active="true"]:hover { filter: brightness(1.2); }
.svgMap-country[data-closed="true"] { cursor: pointer; }
.svgMap-country[data-closed="true"]:hover { filter: brightness(1.2); }

/* Hide svgMap's built-in tooltip — we render our own */
.svgMap-tooltip { display: none !important; }

/* Zoom controls */
.svgMap-control-button {
  background: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 1px var(--border) !important;
}
.svgMap-control-button svg { fill: var(--ink-light) !important; }

/* Tooltip override to match brand */
.svgMap-tooltip {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.08) !important;
  border-radius: var(--r-md) !important;
  padding: 0 !important;
  min-width: 260px;
  font-family: var(--font-sans) !important;
  overflow: hidden;
}
.svgMap-tooltip-content-container {
  padding: var(--s-4) !important;
}
.svgMap-tooltip-flag-container { display: none !important; }
.svgMap-tooltip-heading {
  color: var(--accent) !important;
  font-family: var(--font-serif) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
}
.svgMap-tooltip-no-data,
.svgMap-tooltip-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Custom tooltip body */
.gmc-tip-block { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.gmc-tip-block:last-of-type { margin-bottom: 4px; padding-bottom: 0; border-bottom: none; }
.gmc-tip-name {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600; color: var(--ink);
  line-height: 1.25; margin-bottom: var(--s-2);
}
.gmc-tip-closed .gmc-tip-name { color: var(--error); }
.gmc-tip-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  padding: 6px 0; margin: 0;
  border-top: 1px solid var(--border-light);
}
.gmc-tip-meta small { display: block; font-size: 0.625rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 2px; }
.gmc-tip-meta strong { font-family: var(--font-serif); font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.gmc-tip-invest-type { padding-top: 6px; }
.gmc-tip-invest-type small { display: block; font-size: 0.625rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 2px; }
.gmc-tip-invest-type strong { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--ink); font-weight: 500; }
.gmc-tip-cta { display: inline-block; margin-top: var(--s-2); color: var(--accent); font-size: 0.8125rem; font-weight: 600; }

/* Legend */
.world-map-legend {
  position: absolute; bottom: var(--s-4); left: var(--s-4);
  display: flex; gap: var(--s-4); align-items: center;
  padding: var(--s-2) var(--s-3);
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--ink-light);
  letter-spacing: 0.02em;
  z-index: 2;
}
.world-map-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.world-map-legend .legend-dot { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.world-map-legend .legend-active { background: var(--accent); }
.world-map-legend .legend-closed { background: #C44141; }

@media (max-width: 640px) {
  .world-map-legend { bottom: var(--s-2); left: var(--s-2); font-size: 0.6875rem; gap: var(--s-3); }
}

/* ==============================
   IMMERSIVE HERO (home) — full-bleed rotating photo + overlay CTAs
   ============================== */
.hero-immersive {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0A1224;
}
.hero-immersive-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(10,18,36,0.72) 0%, rgba(10,18,36,0.35) 45%, rgba(10,18,36,0.65) 100%),
    linear-gradient(to bottom, rgba(10,18,36,0.25) 0%, rgba(10,18,36,0) 40%, rgba(10,18,36,0.7) 100%);
}
.hero-immersive-inner {
  position: relative; z-index: 2;
  max-width: 900px;
  padding: var(--s-9) var(--s-5);
  text-align: center;
}
.hero-immersive-eyebrow {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.16em;
}
.hero-immersive-title {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: var(--s-4) 0 var(--s-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-immersive-title em {
  color: #E8F0F5; font-style: italic; font-weight: 500;
}
.hero-immersive-lead {
  font-size: 1.1875rem; line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 640px; margin: 0 auto var(--s-6);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-immersive-actions {
  display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-5);
}
.btn-glass {
  background: rgba(255,255,255,0.10);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--d-2) var(--ease), transform var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}
.hero-scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: var(--s-7);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  gap: 8px;
  animation: heroBounce 2.4s var(--ease) infinite;
}
.hero-scroll-cue:hover { color: #fff; }
.hero-scroll-cue svg { width: 18px; height: 18px; }
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Stats band below hero */
.hero-stats-band {
  padding: var(--s-7) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.hero-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; gap: var(--s-5);
}
@media (max-width: 640px) { .hero-stats-grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.hero-stat small {
  display: block; color: var(--ink-muted);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-bottom: 6px;
}
.hero-stat strong {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; } /* fall back to poster image */
  .hero-immersive { background: url('/media/programs/greece.jpg') center/cover no-repeat #0A1224; }
  .hero-scroll-cue { animation: none; }
}

@media (max-width: 640px) {
  .hero-immersive { min-height: 80vh; }
  .hero-immersive-title { font-size: 2.4rem; }
  .hero-immersive-lead { font-size: 1rem; }
}

/* ==============================
   BOOK A CALL BAND (home)
   ============================== */
.book-band { background: var(--surface-warm); }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.book-copy h2 { margin-top: var(--s-2); margin-bottom: var(--s-3); }
.book-copy p { font-size: 1.0625rem; color: var(--ink-light); max-width: 40ch; }
.book-bullets { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.book-bullets li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-2) 0; font-size: 0.9375rem; color: var(--ink); }
.book-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.book-form { padding: var(--s-6); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.book-form h4 {
  font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500;
  margin-bottom: var(--s-4);
}
.book-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 560px) { .book-form .form-row { grid-template-columns: 1fr; } }
.book-form .form-field { margin-bottom: var(--s-3); }
.book-form .field-label {
  display: block; font-size: 0.75rem; color: var(--ink-light);
  font-weight: 600; margin-bottom: 4px; letter-spacing: 0.02em;
}
.book-form input, .book-form select, .book-form textarea {
  width: 100%; padding: var(--s-3) var(--s-4);
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--d-1) var(--ease);
}
.book-form input:hover, .book-form select:hover, .book-form textarea:hover { border-color: var(--border-dark); }
.book-form textarea { resize: vertical; min-height: 80px; }

/* ==============================
   TESTIMONIALS (home)
   ============================== */
.testimonials-section { background: var(--surface-warm); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1160px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: all var(--d-2) var(--ease);
  position: relative;
  overflow: hidden;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -18px; left: var(--s-4);
  font-family: var(--font-serif);
  font-size: 6rem; font-weight: 700;
  color: var(--accent-light);
  line-height: 1; pointer-events: none; user-select: none;
  opacity: 0.7;
}
.testimonial blockquote {
  margin: 0; padding-top: var(--s-3);
  font-family: var(--font-serif);
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--ink);
  flex: 1;
  position: relative; z-index: 1;
  quotes: none;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.testimonial-name {
  font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); line-height: 1.2;
}
.testimonial-role {
  font-size: 0.75rem; color: var(--ink-muted);
  margin-top: 1px;
}
.testimonial-program {
  font-size: 0.6875rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 3px;
}

/* ==============================
   ABOUT — team photo gallery
   ============================== */
.about-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
/* Wide hero photos span 2 columns in the 3-col layout */
.about-photo-wide { grid-column: span 2; }
@media (max-width: 960px) {
  .about-photos-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photo-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .about-photos-grid { grid-template-columns: 1fr; }
  .about-photo-wide { grid-column: span 1; }
}

/* Founder section — video + copy */
.founder-section { background: var(--surface); border-top: 1px solid var(--border-light); }
.founder-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8); align-items: center;
}
@media (max-width: 960px) {
  .founder-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.founder-video {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  background: #0B1426;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 16;
  max-height: 640px;
  margin: 0 auto;
}
.founder-video video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.founder-video figcaption {
  position: absolute; left: var(--s-4); bottom: var(--s-3);
  color: white; font-family: var(--font-sans);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(6px);
  pointer-events: none;
}
.founder-copy h2 { margin-top: var(--s-3); margin-bottom: var(--s-4); font-size: clamp(1.75rem, 3vw, 2.5rem); }
.founder-copy p { font-size: 1.0625rem; color: var(--ink-light); margin-bottom: var(--s-3); }
.founder-copy .btn { margin-top: var(--s-3); }
.about-photo {
  margin: 0; position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  background: #0F0F1F;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-md);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.about-photo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-photo figcaption {
  position: absolute; left: var(--s-4); bottom: var(--s-3);
  color: white; font-family: var(--font-sans);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0,0,0,0.28); backdrop-filter: blur(6px);
}

/* ==============================
   REAL ESTATE — property cards
   ============================== */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 960px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prop-grid { grid-template-columns: 1fr; } }

.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--d-2) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.prop-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.prop-card-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0F0F1F;
}
.prop-card-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform var(--d-3) var(--ease);
}
.prop-card:hover .prop-card-photo { transform: scale(1.06); }
.prop-card-cover-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(15,15,31,0.75) 0%, rgba(15,15,31,0) 55%);
  pointer-events: none;
}
.prop-card-location {
  position: absolute; left: var(--s-4); bottom: var(--s-3); z-index: 3;
  color: white; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.02em; text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.prop-card-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.prop-card-body h4 {
  font-family: var(--font-serif); font-size: 1.25rem;
  font-weight: 500; margin-bottom: var(--s-2); line-height: 1.3;
}
.prop-card-price {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500;
  color: var(--accent); margin-bottom: var(--s-3);
}
.prop-card-body p {
  color: var(--ink-light); font-size: 0.9375rem;
  margin-bottom: var(--s-4); flex: 1; line-height: 1.55;
}
.prop-card-specs {
  display: flex; gap: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border-light);
  font-size: 0.8125rem; color: var(--ink-muted);
}
.prop-card-specs span:not(:last-child)::after {
  content: '·'; margin-left: var(--s-3); opacity: 0.5;
}

/* Featured Programs */
.program-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--d-2) var(--ease);
  cursor: pointer; text-decoration: none; color: inherit;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--border-dark); box-shadow: var(--shadow-lg); color: inherit; }
.program-card.closed { opacity: 0.7; }
.program-card-cover {
  height: 200px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), var(--ink));
  display: flex; align-items: center; justify-content: center;
}
.program-card-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform var(--d-3) var(--ease);
}
.program-card:hover .program-card-photo { transform: scale(1.05); }
.program-card-cover-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(15,15,31,0.82) 0%, rgba(15,15,31,0.25) 55%, rgba(15,15,31,0) 100%);
  pointer-events: none;
}
.program-card-cover-label {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3); z-index: 3;
  color: white; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: var(--s-2);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.program-card-cover-label .flag-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 20px; border-radius: 3px;
  background: rgba(255,255,255,0.18); color: white;
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.05em; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
}
.program-card-cover .flag-art-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 0;
}
.program-card-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.program-card-body h4 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; margin-bottom: var(--s-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.program-card-body p { color: var(--ink-light); font-size: 0.9375rem; margin-bottom: var(--s-4); flex: 1; }
.program-card-meta { display: flex; gap: var(--s-3); margin-bottom: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.program-card-meta-item { font-size: 0.75rem; }
.program-card-meta-item small { display: block; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px; }
.program-card-meta-item strong { font-family: var(--font-serif); font-size: 1rem; color: var(--ink); font-weight: 500; }

/* Why GMC — card grid, 3x2 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
  overflow: hidden;
}
.why-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
}
.why-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-3) var(--ease);
}
.why-item:hover::before { transform: scaleX(1); }
.why-item-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: var(--s-3);
}
.why-item h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-2);
  line-height: 1.25;
}
.why-item p { color: var(--ink-light); font-size: 0.9375rem; line-height: 1.55; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); position: relative; }
@media (max-width: 960px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding: var(--s-5); }
.process-step::before {
  content: attr(data-step); position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-size: 3rem; font-weight: 600;
  color: var(--surface-cool); line-height: 1; z-index: 0;
}
.process-step h4, .process-step p, .process-step-icon { position: relative; z-index: 1; }
.process-step-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--accent-light); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3); margin-top: var(--s-2);
}
.process-step-icon svg { width: 26px; height: 26px; }
.process-step h4 { margin-top: var(--s-3); margin-bottom: var(--s-2); font-family: var(--font-serif); font-size: 1.125rem; }
.process-step p { font-size: 0.9375rem; color: var(--ink-light); }

/* Comparison Table */
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.comp-table thead th {
  background: var(--surface-cool); padding: var(--s-3) var(--s-4); text-align: left;
  font-family: var(--font-sans); font-weight: 600; color: var(--ink); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid var(--border);
}
.comp-table tbody td {
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
.comp-table tbody tr:hover { background: var(--surface-warm); }
.comp-table .country-cell { display: flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.comp-table .closed-row { opacity: 0.55; }

/* CTA Band */
.cta-band {
  background: var(--ink); color: white;
  padding: var(--s-9) 0; text-align: center;
}
.cta-band h2 { color: white; margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: var(--s-5); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-ghost { color: white; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* ==============================
   WHATSAPP CHAT WIDGET
   ============================== */
.wa-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 92;
  font-family: var(--font-sans);
}

/* Toggle FAB */
.whatsapp-fab {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(37,211,102,0.35), 0 2px 4px rgba(0,0,0,0.1);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  overflow: hidden;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; position: absolute; transition: all var(--d-2) var(--ease); }
.whatsapp-fab .wa-icon-whatsapp { opacity: 1; transform: scale(1) rotate(0); }
.whatsapp-fab .wa-icon-close { opacity: 0; transform: scale(0.5) rotate(-90deg); fill: none; }
.wa-widget.open .wa-icon-whatsapp { opacity: 0; transform: scale(0.5) rotate(90deg); }
.wa-widget.open .wa-icon-close { opacity: 1; transform: scale(1) rotate(0); }
.wa-widget.open .whatsapp-fab { background: var(--ink); box-shadow: 0 8px 16px rgba(26,26,46,0.25), 0 2px 4px rgba(0,0,0,0.1); }

/* Pulse ring around FAB (calls attention when idle) */
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0.35;
  animation: waPulse 2.4s var(--ease) infinite;
  pointer-events: none; z-index: -1;
}
.wa-widget.open .wa-pulse { animation: none; opacity: 0; }
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-pulse { animation: none; opacity: 0; } }

/* Chat panel */
.wa-panel {
  position: absolute; bottom: 72px; right: 0;
  width: 360px; max-width: calc(100vw - 48px);
  background: #F5F1EB; /* WhatsApp-ish warm beige */
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  max-height: 560px;
  transform: translateY(10px) scale(0.96);
  opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: all var(--d-2) var(--ease);
}
.wa-widget.open .wa-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

/* Header */
.wa-panel-header {
  background: #075E54; color: white;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.wa-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-avatar img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.wa-panel-heading { flex: 1; min-width: 0; }
.wa-panel-heading strong {
  display: block; font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 600; color: white; letter-spacing: 0.01em;
}
.wa-panel-heading small {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.wa-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  animation: waLiveDot 1.6s var(--ease) infinite;
}
@keyframes waLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-live-dot { animation: none; } }
.wa-close {
  background: transparent; border: none; color: white; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.8125rem; opacity: 0.7;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--d-1) var(--ease);
}
.wa-close:hover { opacity: 1; background: rgba(255,255,255,0.12); }

/* Body */
.wa-panel-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)),
    repeating-linear-gradient(45deg, rgba(200,190,170,0.06) 0 2px, transparent 2px 12px);
}
.wa-bubble {
  position: relative;
  background: white; color: var(--ink);
  padding: 10px 12px; border-radius: 12px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.08);
  max-width: 90%;
  margin-bottom: 12px;
  font-size: 0.875rem; line-height: 1.45;
}
.wa-bubble strong { display: block; font-weight: 600; margin-bottom: 2px; font-size: 0.9375rem; }
.wa-bubble p { margin: 0; color: var(--ink-light); }
.wa-bubble-incoming { border-top-left-radius: 4px; }
.wa-bubble-incoming::before {
  content: ''; position: absolute; top: 0; left: -6px;
  border: 6px solid transparent; border-right-color: white; border-top-color: white;
}

/* Quick replies */
.wa-quick-replies { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.wa-qr {
  background: white; color: var(--ink);
  border: 1px solid rgba(7,94,84,0.15);
  border-radius: 999px;
  padding: 8px 14px; text-align: left;
  font: 500 0.8125rem/1.4 var(--font-sans);
  cursor: pointer;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.05);
  transition: all var(--d-1) var(--ease);
}
.wa-qr:hover { background: #075E54; color: white; border-color: #075E54; transform: translateX(2px); }

/* Input bar */
.wa-panel-input {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: #EFEAE2;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wa-panel-input input {
  flex: 1; padding: 10px 14px;
  border: none; border-radius: 999px;
  background: white; color: var(--ink);
  font: 400 0.875rem/1 var(--font-sans);
  outline: none;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.05);
}
.wa-panel-input input:focus { box-shadow: 0 0 0 2px rgba(37,211,102,0.3); }
.wa-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: #25D366; color: white; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--d-1) var(--ease), transform var(--d-1) var(--ease);
  flex-shrink: 0;
}
.wa-send svg { width: 16px; height: 16px; }
.wa-send:hover { background: #128C7E; transform: scale(1.05); }

@media (max-width: 480px) {
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-panel { width: calc(100vw - 32px); right: 0; bottom: 68px; max-height: 70vh; }
}

/* PROGRAM DETAIL specific */
.detail-hero {
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-7);
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border-light);
}
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-7); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: var(--s-3); }
.detail-summary { font-size: 1.125rem; color: var(--ink-light); margin-bottom: var(--s-5); max-width: 56ch; }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); padding: var(--s-5); background: white; border: 1px solid var(--border); border-radius: var(--r-lg); }
.detail-meta-item small { color: var(--ink-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.detail-meta-item strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; margin-top: 4px; }

.detail-card-aside {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); position: sticky; top: calc(var(--header-h) + var(--s-3));
}
.detail-card-aside h4, .detail-card-aside .aside-h { font-family: var(--font-sans); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; margin-bottom: var(--s-3); margin-top: 0; }
.aside-row { display: flex; justify-content: space-between; padding: var(--s-3) 0; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; }
.aside-row:last-child { border-bottom: 0; }
.aside-row .v { font-weight: 600; color: var(--ink); }

.tier-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); margin-bottom: var(--s-4);
}
.tier-card h5 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: var(--s-2); }
.tier-card-amount { font-family: var(--font-serif); font-size: 2rem; color: var(--accent); font-weight: 600; margin-bottom: var(--s-3); }
.tier-card .req-list { list-style: none; padding: 0; }
.tier-card .req-list li { padding: var(--s-2) 0; padding-left: var(--s-5); position: relative; font-size: 0.9375rem; color: var(--ink-light); }
.tier-card .req-list li::before { content: '◦'; position: absolute; left: 0; color: var(--accent); }

.steps-list { counter-reset: step; padding: 0; list-style: none; }
.steps-list li {
  counter-increment: step; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-9);
  border-left: 1px solid var(--border); margin-left: var(--s-5);
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: -20px; top: var(--s-4);
  width: 40px; height: 40px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; color: var(--accent); font-size: 0.875rem;
}
.steps-list li h5 { margin-bottom: 4px; font-family: var(--font-serif); font-size: 1.0625rem; }
.steps-list li p { color: var(--ink-light); font-size: 0.9375rem; margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--border-light); padding: var(--s-4) 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: var(--s-3);
  font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.faq-toggle { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--d-2) var(--ease); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { padding-top: 0; max-height: 0; overflow: hidden; transition: max-height var(--d-3) var(--ease), padding var(--d-2) var(--ease); }
.faq-item.open .faq-a { max-height: 500px; padding-top: var(--s-3); }
.faq-a p { color: var(--ink-light); }

/* Pros & Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
.proscons-card { padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: white; }
.proscons-card h5 { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-sans); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-3); }
.proscons-card.pros h5 { color: var(--success); }
.proscons-card.cons h5 { color: var(--warning); }
.proscons-card ul { list-style: none; padding: 0; }
.proscons-card li { padding: var(--s-2) 0; font-size: 0.9375rem; color: var(--ink-light); padding-left: var(--s-5); position: relative; }
.proscons-card.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.proscons-card.cons li::before { content: '!'; position: absolute; left: 6px; color: var(--warning); font-weight: 700; }

/* Team grid */
/* Team hero — event photo background + overlay */
.team-hero {
  position: relative;
  min-height: 56vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8);
  background: linear-gradient(135deg, #0B1426 0%, #163450 100%);
}
.team-hero-photo { position: absolute; inset: 0; z-index: 1; }
.team-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.team-hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,18,36,0.25) 0%, rgba(10,18,36,0.1) 40%, rgba(10,18,36,0.88) 100%),
    linear-gradient(90deg, rgba(10,18,36,0.5) 0%, rgba(10,18,36,0) 60%);
}
.team-hero-photo.no-photo { background: linear-gradient(135deg, #0B1426 0%, #163450 100%); }
.team-hero-photo.no-photo::after { display: none; }
.team-hero-content { position: relative; z-index: 2; max-width: 720px; }
.team-hero-content .eyebrow { color: rgba(255,255,255,0.8); }
.team-hero-content h1 { color: #fff; margin: var(--s-3) 0 var(--s-4); text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.team-hero-content .lead { color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.team-hero-stats {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.team-hero-stats > div { display: flex; flex-direction: column; }
.team-hero-stats strong {
  font-family: var(--font-serif); font-size: 1.875rem; font-weight: 500;
  color: #fff; line-height: 1;
}
.team-hero-stats small {
  font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-top: 6px;
}

/* Team grid — 4 column, wider cards */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface-cool) 100%);
  position: relative; overflow: hidden;
}
.team-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform var(--d-3) var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 3.25rem;
  color: var(--accent); opacity: 0.5; line-height: 1;
  font-weight: 600;
}
.team-info { padding: var(--s-4); }
.team-info strong { display: block; font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.2; }
.team-info small { display: block; font-size: 0.8125rem; color: var(--ink-muted); margin-top: 4px; line-height: 1.35; }
.team-info .dept { margin-top: var(--s-2); display: inline-block; }

/* Department filter */
.dept-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-bottom: var(--s-7); }
.dept-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: white;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-light); cursor: pointer; transition: all var(--d-1) var(--ease); }
.dept-tab.active, .dept-tab:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* Credentials & memberships */
.credentials-block {
  margin: var(--s-9) 0 var(--s-8);
  padding: var(--s-8) var(--s-6);
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--surface) 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
}
.credentials-header { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.credentials-header h2 { margin-top: var(--s-2); margin-bottom: var(--s-3); }
.credentials-header p { color: var(--ink-light); font-size: 1.0625rem; }
.credentials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5);
}
@media (max-width: 860px) { .credentials-grid { grid-template-columns: 1fr; } }
.cred-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.cred-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.cred-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--surface-cool); color: var(--ink-light);
  display: inline-flex; align-items: center; justify-content: center;
}
.cred-icon svg { width: 26px; height: 26px; }
.cred-icon-accent { background: var(--accent-light); color: var(--accent); }
.cred-icon-gov { background: rgba(196,132,29,0.12); color: var(--warning); }
.cred-card h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 0; }
.cred-tag {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-cool); color: var(--ink-light);
  border: 1px solid var(--border);
}
.cred-tag-accent { background: var(--accent-light); color: var(--accent); border-color: rgba(45,90,123,0.2); }
.cred-tag-gov { background: rgba(196,132,29,0.1); color: var(--warning); border-color: rgba(196,132,29,0.25); }
.cred-card p { color: var(--ink-light); font-size: 0.9375rem; line-height: 1.55; margin: 0; }
.cred-chips {
  list-style: none; padding: 0; margin: var(--s-3) 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cred-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--surface-cool); border: 1px solid var(--border-light);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink);
}
.cred-chips .flag-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 17px; border-radius: 2px;
  background: var(--ink); color: white;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.05em;
}

/* Pre-check / Form */
.precheck-hero { padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-6); background: var(--surface-warm); }
.precheck-card {
  max-width: 720px; margin: var(--s-7) auto; background: white;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-7); box-shadow: var(--shadow-md);
}
.precheck-price { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-5); }
.precheck-price .amt { font-family: var(--font-serif); font-size: 3rem; color: var(--accent); font-weight: 600; line-height: 1; }
.precheck-price small { color: var(--ink-muted); }
.precheck-features { padding: var(--s-4) 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: var(--s-5); }
.precheck-features li { padding: var(--s-2) 0; padding-left: var(--s-5); position: relative; list-style: none; font-size: 0.9375rem; color: var(--ink-light); }
.precheck-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: inherit; font-size: 0.9375rem; color: var(--ink); background: white; transition: border-color var(--d-1) var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.12); }
.form-field textarea { min-height: 120px; resize: vertical; }

/* Disclaimer block */
.disclaimer {
  background: var(--surface-warm); border-left: 3px solid var(--passport-gold);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.8125rem; color: var(--ink-light); line-height: 1.6;
}

/* Office cards */
.office-card { padding: var(--s-5); background: white; border: 1px solid var(--border); border-radius: var(--r-lg); }
.office-card h4 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.office-card .addr { font-size: 0.9375rem; color: var(--ink-light); margin-bottom: var(--s-3); }
.office-card .meta { font-size: 0.8125rem; color: var(--ink-muted); }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: white; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all var(--d-2) var(--ease); cursor: pointer; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.blog-cover { height: 160px; background: linear-gradient(135deg, var(--accent-light), var(--surface-cool)); position: relative; overflow: hidden; }
.blog-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%); pointer-events: none; }
.blog-cover .topic { position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2; }
.blog-card-body { padding: var(--s-5); }
.blog-card-body h4 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; margin-bottom: var(--s-2); line-height: 1.3; }
.blog-card-body p { font-size: 0.875rem; color: var(--ink-light); margin-bottom: var(--s-3); }
.blog-card-body .meta { font-size: 0.75rem; color: var(--ink-muted); display: flex; gap: var(--s-3); }

/* Compare Page */
.compare-hero { padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-7); background: var(--surface-warm); }

/* ==============================
   BLOG POST DETAIL — long-form reading
   ============================== */
.blog-post-hero {
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-6);
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border-light);
}
.blog-post-hero .topic { display: inline-block; }
.blog-post-meta {
  display: flex; gap: var(--s-2); margin-top: var(--s-4);
  font-size: 0.875rem; color: var(--ink-muted);
}
.blog-post-body {
  max-width: var(--container-text);
  margin: 0 auto; padding: var(--s-7) 0 var(--s-5);
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink-light);
}
.blog-post-body .lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin-bottom: var(--s-6); }
.blog-post-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600; color: var(--ink);
  margin: var(--s-7) 0 var(--s-3); letter-spacing: -0.01em;
}
.blog-post-body h3 {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); margin: var(--s-5) 0 var(--s-3);
}
.blog-post-body p { margin-bottom: var(--s-4); }
.blog-post-body ul, .blog-post-body ol { padding-left: 22px; margin-bottom: var(--s-4); }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body strong { color: var(--ink); }
.blog-post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-body a:hover { color: var(--accent-hover); }

/* Inline images / figures inside blog body — responsive, never overflow on mobile */
.blog-post-body img,
.blog-post-body figure { max-width: 100%; height: auto; display: block; }
.blog-post-body figure {
  margin: var(--s-6) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-warm);
}
.blog-post-body figure img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-post-body figure figcaption {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-style: italic;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-warm);
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 600px) {
  .blog-post-body figure { margin: var(--s-5) calc(var(--s-5) * -1); border-radius: 0; }
  .blog-post-body figure figcaption { padding: var(--s-3); font-size: 0.75rem; }
}

/* ==============================
   PROGRAM ADVISOR QUIZ
   ============================== */
.advisor-hero {
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-6);
  background: linear-gradient(135deg, var(--surface-warm) 0%, var(--accent-light) 100%);
}
.advisor-section { padding: var(--s-7) 0 var(--s-9); }
.advisor-container { max-width: 780px; margin: 0 auto; }

.advisor-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
/* Wrap + hero image + question */
.advisor-q-wrap { margin-bottom: var(--s-5); }
.advisor-q-image {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), var(--ink));
}
.advisor-q-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.advisor-q-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,36,0) 0%, rgba(10,18,36,0.1) 60%, rgba(255,255,255,0.95) 100%);
}
.advisor-q { padding: var(--s-3) var(--s-7) 0; text-align: center; }
.advisor-picks-counter {
  transition: color var(--d-1) var(--ease);
}
.advisor-picks-counter[data-remaining="0"] { color: var(--accent); }

.advisor-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--surface-cool); z-index: 3;
}
.advisor-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #4A8BB5 100%);
  transition: width var(--d-3) var(--ease);
}
.advisor-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--ink-muted);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: var(--s-4) var(--s-7) 0;
}

.advisor-q { margin-bottom: var(--s-6); text-align: center; }
.advisor-q h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink); margin: 0 0 var(--s-2);
  letter-spacing: -0.01em; line-height: 1.2;
}
.advisor-q p { color: var(--ink-light); font-size: 0.9375rem; margin: 0; }

.advisor-options { display: flex; flex-direction: column; gap: var(--s-2); margin: 0 var(--s-7) var(--s-6); }
.advisor-option {
  position: relative;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  padding-right: 56px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  transition: all var(--d-1) var(--ease);
  width: 100%;
}
.advisor-option:hover:not(.disabled) { border-color: var(--accent); background: var(--surface-warm); transform: translateY(-1px); }
.advisor-option.selected { border-color: var(--accent); background: var(--accent-light); }
.advisor-option.selected .advisor-option-check { background: var(--accent); color: white; border-color: var(--accent); }
.advisor-option.selected .advisor-option-check svg { opacity: 1; transform: scale(1); }
.advisor-option.disabled { opacity: 0.45; cursor: not-allowed; }

.advisor-option-icon {
  flex-shrink: 0;
  font-size: 1.5rem; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-warm);
  transition: background var(--d-1) var(--ease);
}
.advisor-option.selected .advisor-option-icon { background: rgba(45,90,123,0.15); }
.advisor-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.advisor-option-label {
  font-family: var(--font-serif);
  font-size: 1.0625rem; font-weight: 500;
  color: var(--ink); line-height: 1.3;
}
.advisor-option-note {
  font-family: var(--font-sans);
  font-size: 0.8125rem; color: var(--ink-light);
  line-height: 1.45;
}
.advisor-option-check {
  position: absolute; top: 50%; right: var(--s-4);
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface-cool); color: transparent;
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--d-1) var(--ease);
}
.advisor-option-check svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: all var(--d-1) var(--ease); }

.advisor-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-7) 0;
  border-top: 1px solid var(--border-light);
  margin-top: var(--s-2);
  gap: var(--s-3);
}
.advisor-nav .btn { min-width: 140px; }
.advisor-nav .advisor-continue { flex: 1; max-width: 360px; }
.advisor-nav .btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* Results */
.advisor-results { display: flex; flex-direction: column; gap: var(--s-7); }
.advisor-results-header { text-align: center; max-width: 640px; margin: 0 auto; }
.advisor-results-header h2 { margin: var(--s-2) 0 var(--s-3); }
.advisor-results-header p { color: var(--ink-light); font-size: 1.0625rem; }

.advisor-top-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 960px) { .advisor-top-grid { grid-template-columns: 1fr; } }

.advisor-result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.advisor-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.advisor-rank-1 { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(45,90,123,0.12), var(--shadow-md); }

.advisor-result-rank {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 3;
  background: rgba(26,26,46,0.85); color: white;
  padding: 6px 10px; border-radius: 999px;
  font: 700 0.75rem/1 var(--font-sans);
  letter-spacing: 0.06em; backdrop-filter: blur(6px);
}
.advisor-rank-1 .advisor-result-rank { background: var(--accent); }

.advisor-result-cover {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), var(--ink));
}
.advisor-result-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
.advisor-result-card:hover .advisor-result-cover img { transform: scale(1.05); }
.advisor-result-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,31,0.82) 0%, rgba(15,15,31,0.15) 55%, rgba(15,15,31,0) 100%); }
.advisor-result-region {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.2); color: white;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25);
}
.advisor-result-title {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3);
  color: white; font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 500;
  display: flex; align-items: center; gap: var(--s-2); z-index: 2;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.advisor-result-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.advisor-match {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 6px 12px; align-self: flex-start;
  background: var(--accent-light); color: var(--accent);
  border-radius: 999px;
}
.advisor-match-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.advisor-match-lbl { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.advisor-result-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.advisor-result-stats > div { display: flex; flex-direction: column; gap: 2px; }
.advisor-result-stats small { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 600; }
.advisor-result-stats strong { font-family: var(--font-serif); font-weight: 500; font-size: 0.875rem; color: var(--ink); line-height: 1.2; }
.advisor-result-body .btn { margin-top: auto; }

/* Also-consider list */
.advisor-also {
  background: var(--surface-warm); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
}
.advisor-also summary {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem;
  cursor: pointer; color: var(--ink);
  padding: var(--s-2) 0;
}
.advisor-also summary::marker { color: var(--accent); }
.advisor-also-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (max-width: 780px) { .advisor-also-grid { grid-template-columns: 1fr; } }
.advisor-also-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: border-color var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}
.advisor-also-card:hover { border-color: var(--accent); transform: translateX(2px); color: inherit; }
.advisor-also-card strong { display: block; font-family: var(--font-serif); font-size: 0.9375rem; color: var(--ink); }
.advisor-also-card small { display: block; font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }
.advisor-also-card > span:last-child { margin-left: auto; color: var(--accent); font-weight: 600; }

.advisor-lead {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: flex-start;
  padding: var(--s-7) var(--s-5);
  background: var(--surface-warm);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
@media (max-width: 960px) { .advisor-lead { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5); } }
.advisor-lead-intro { padding: 0 var(--s-4); }
.advisor-lead-intro h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.625rem; line-height: 1.2; margin: var(--s-2) 0 var(--s-3); }
.advisor-lead-intro p { color: var(--ink-light); font-size: 1rem; margin: 0 0 var(--s-4); }
.advisor-lead-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.advisor-lead-bullets li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 0.9375rem; color: var(--ink); }

.advisor-lead-form {
  padding: var(--s-5); box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light); background: var(--surface);
}
.advisor-lead-form h4 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.25rem; margin: 0 0 var(--s-4);
}
.advisor-lead-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 540px) { .advisor-lead-form .form-row { grid-template-columns: 1fr; } }
.advisor-lead-form .form-field { margin-bottom: 0; }
.advisor-lead-form .field-label {
  display: block; font-size: 0.75rem; color: var(--ink-light);
  font-weight: 600; margin-bottom: 4px; letter-spacing: 0.02em;
}
.advisor-lead-form input, .advisor-lead-form textarea {
  width: 100%; padding: var(--s-3) var(--s-4);
  font-family: var(--font-sans); font-size: 0.9375rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--d-1) var(--ease);
}
.advisor-lead-form input:hover, .advisor-lead-form textarea:hover { border-color: var(--border-dark); }
.advisor-lead-form textarea { resize: vertical; min-height: 80px; }

.advisor-restart-row {
  text-align: center; margin-top: var(--s-4);
}

/* ==============================
   COMPARE PAGE — interactive grid + filter bar + drawer
   ============================== */
.compare-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.compare-toolbar-inner {
  padding: var(--s-4) var(--s-5);
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
}
.compare-search {
  position: relative; flex: 1; min-width: 220px; max-width: 320px;
}
.compare-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.compare-search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.9375rem; color: var(--ink);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.compare-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.12); }
.compare-filters {
  display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center;
}
.cmp-sel {
  padding: 8px 30px 8px 12px;
  font: 500 0.875rem/1 var(--font-sans);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234A4A5A' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer; appearance: none;
  transition: border-color var(--d-1) var(--ease);
}
.cmp-sel:hover { border-color: var(--border-dark); }
.cmp-sel:focus { outline: none; border-color: var(--accent); }
.cmp-reset-btn {
  padding: 8px 14px; font: 500 0.8125rem/1 var(--font-sans);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--ink-light); cursor: pointer;
  transition: all var(--d-1) var(--ease);
}
.cmp-reset-btn:hover { color: var(--ink); border-color: var(--ink); }

.compare-section { padding: var(--s-6) 0 var(--s-9); }
.compare-meta {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 0 0 var(--s-4);
  border-bottom: 1px solid var(--border-light); margin-bottom: var(--s-5);
}
.compare-count {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem;
  color: var(--ink); line-height: 1;
}
.compare-count-lbl { font-size: 0.875rem; color: var(--ink-light); }

/* ----- /blog filter toolbar (mirrors compare-toolbar layout) ----- */
.blog-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.blog-toolbar-inner {
  padding: var(--s-4) var(--s-5);
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
}
.blog-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.blog-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.blog-search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.9375rem; color: var(--ink);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.blog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.12); }
.blog-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.blog-sel {
  padding: 8px 30px 8px 12px;
  font: 500 0.875rem/1 var(--font-sans);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234A4A5A' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer; appearance: none;
  transition: border-color var(--d-1) var(--ease);
}
.blog-sel:hover { border-color: var(--border-dark); }
.blog-sel:focus { outline: none; border-color: var(--accent); }
.blog-reset-btn {
  padding: 8px 14px; font: 500 0.875rem/1 var(--font-sans);
  background: transparent; color: var(--ink-light); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; transition: all var(--d-1) var(--ease);
}
.blog-reset-btn:hover { color: var(--ink); border-color: var(--ink-light); }
.blog-meta-bar {
  display: flex; align-items: baseline; gap: var(--s-2);
  padding: 0 0 var(--s-4); border-bottom: 1px solid var(--border-light); margin-bottom: var(--s-5);
}
.blog-count { font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; color: var(--ink); line-height: 1; }
.blog-count-lbl { font-size: 0.875rem; color: var(--ink-light); }
.blog-empty { text-align: center; padding: var(--s-9) var(--s-4); color: var(--ink-muted); font-size: 1rem; }
.blog-card[hidden] { display: none; }
@media (max-width: 640px) {
  .blog-search { max-width: 100%; flex-basis: 100%; }
  .blog-filters { width: 100%; }
  .blog-sel { flex: 1 1 0; }
}

/* ============================================================
   /opportunities — under-market real-estate listings
   ============================================================ */
.opp-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.opp-toolbar-inner {
  padding: var(--s-4) var(--s-5);
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
}
.opp-search { position: relative; flex: 1; min-width: 220px; max-width: 320px; }
.opp-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.opp-search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.9375rem; color: var(--ink);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.opp-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.12); }
.opp-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.opp-sel {
  padding: 8px 30px 8px 12px;
  font: 500 0.875rem/1 var(--font-sans);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234A4A5A' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer; appearance: none;
  transition: border-color var(--d-1) var(--ease);
}
.opp-sel:hover { border-color: var(--border-dark); }
.opp-sel:focus { outline: none; border-color: var(--accent); }
.opp-reset-btn {
  padding: 8px 14px; font: 500 0.875rem/1 var(--font-sans);
  background: transparent; color: var(--ink-light); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
}
.opp-reset-btn:hover { color: var(--ink); border-color: var(--ink-light); }
.opp-meta-bar {
  display: flex; align-items: baseline; gap: var(--s-2);
  padding: 0 0 var(--s-4); border-bottom: 1px solid var(--border-light); margin-bottom: var(--s-5);
}
.opp-count { font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; color: var(--ink); line-height: 1; }
.opp-count-lbl { font-size: 0.875rem; color: var(--ink-light); }

.opp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 1080px) { .opp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .opp-grid { grid-template-columns: 1fr; } }

.opp-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.opp-card:hover { transform: translateY(-3px); border-color: var(--border-dark); box-shadow: var(--shadow-md); }
.opp-card[hidden] { display: none; }

.opp-card-cover {
  position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--accent-deep), var(--ink));
  overflow: hidden;
}
.opp-card-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--d-3) var(--ease);
}
.opp-card:hover .opp-card-cover img { transform: scale(1.05); }
.opp-card-cover-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,15,31,0.80) 0%, rgba(15,15,31,0.10) 50%, rgba(15,15,31,0.30) 100%);
}
.opp-discount-badge {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
  background: #1B5C3A; color: #fff; padding: 5px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(27,92,58,0.3);
}
.opp-card-region {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.22); color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}
.opp-card-cover-label {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3); z-index: 2;
  color: white; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  line-height: 1.25;
}

.opp-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.opp-card-summary { color: var(--ink-light); font-size: 0.9375rem; line-height: 1.5; margin: 0; }
.opp-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  padding: var(--s-3) 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.opp-card-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opp-card-stats small { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; }
.opp-card-stats strong { font-family: var(--font-serif); font-weight: 500; font-size: 0.9375rem; color: var(--ink); line-height: 1.2; word-break: break-word; }
.opp-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-2); margin-top: auto;
}
.opp-card-meta { font-size: 0.8125rem; color: var(--ink-muted); }

.opp-empty { text-align: center; padding: var(--s-9) var(--s-4); color: var(--ink-muted); font-size: 1rem; }

/* Detail-page gallery */
.opp-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-2);
  margin-bottom: var(--s-6);
  border-radius: var(--r-lg); overflow: hidden;
}
.opp-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 4 / 3; cursor: pointer; transition: transform var(--d-2) var(--ease);
}
.opp-gallery img:first-child {
  grid-row: span 2; aspect-ratio: 16 / 10;
}
.opp-gallery img:hover { transform: scale(1.02); }
@media (max-width: 720px) {
  .opp-gallery { grid-template-columns: 1fr; }
  .opp-gallery img:first-child { grid-row: auto; }
}

@media (max-width: 640px) {
  .opp-search { max-width: 100%; flex-basis: 100%; }
  .opp-filters { width: 100%; }
  .opp-sel { flex: 1 1 0; min-width: 0; }
}

/* ----- /properties filter toolbar (same pattern as compare/blog/opp) ----- */
.prop-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.prop-toolbar-inner {
  padding: var(--s-4) var(--s-5);
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
}
.prop-search { position: relative; flex: 1; min-width: 220px; max-width: 320px; }
.prop-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none; }
.prop-search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.9375rem; color: var(--ink);
  transition: border-color var(--d-1) var(--ease), box-shadow var(--d-1) var(--ease);
}
.prop-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.12); }
.prop-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.prop-sel {
  padding: 8px 30px 8px 12px;
  font: 500 0.875rem/1 var(--font-sans);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234A4A5A' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer; appearance: none;
  transition: border-color var(--d-1) var(--ease);
}
.prop-sel:hover { border-color: var(--border-dark); }
.prop-sel:focus { outline: none; border-color: var(--accent); }
.prop-reset-btn {
  padding: 8px 14px; font: 500 0.875rem/1 var(--font-sans);
  background: transparent; color: var(--ink-light); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
}
.prop-reset-btn:hover { color: var(--ink); border-color: var(--ink-light); }
.prop-meta-bar {
  display: flex; align-items: baseline; gap: var(--s-2);
  padding: 0 0 var(--s-4); border-bottom: 1px solid var(--border-light); margin-bottom: var(--s-5);
}
.prop-count { font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; color: var(--ink); line-height: 1; }
.prop-count-lbl { font-size: 0.875rem; color: var(--ink-light); }
.prop-empty { text-align: center; padding: var(--s-9) var(--s-4); color: var(--ink-muted); font-size: 1rem; }
.prop-card[hidden] { display: none; }
@media (max-width: 640px) {
  .prop-search { max-width: 100%; flex-basis: 100%; }
  .prop-filters { width: 100%; }
  .prop-sel { flex: 1 1 0; min-width: 0; }
}

.compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 1080px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

/* Card */
.cmp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.cmp-card:hover { transform: translateY(-3px); border-color: var(--border-dark); box-shadow: var(--shadow-md); }
.cmp-card.cmp-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.cmp-card[hidden] { display: none; }

.cmp-card-cover {
  position: relative; aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep), var(--ink));
}
.cmp-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
.cmp-card:hover .cmp-card-cover img { transform: scale(1.05); }
.cmp-card-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,31,0.75) 0%, rgba(15,15,31,0.1) 50%, rgba(15,15,31,0.35) 100%); pointer-events: none; }
.cmp-card-cover-label {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3);
  color: white; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  display: flex; align-items: center; gap: var(--s-2);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  z-index: 2;
}
.cmp-card-region {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.22); color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}
.cmp-card-check {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 3;
  cursor: pointer;
}
.cmp-card-check input {
  position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer;
}
.cmp-check-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.9); color: var(--ink);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all var(--d-1) var(--ease);
  backdrop-filter: blur(6px);
}
.cmp-check-box svg { width: 16px; height: 16px; opacity: 0; transform: scale(0.6); transition: all var(--d-1) var(--ease); }
.cmp-card-check input:checked + .cmp-check-box { background: var(--accent); color: white; border-color: var(--accent); }
.cmp-card-check input:checked + .cmp-check-box svg { opacity: 1; transform: scale(1); }
.cmp-card-check:hover .cmp-check-box { background: white; color: var(--accent); border-color: var(--accent); }
.cmp-card-check input:focus-visible + .cmp-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.cmp-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.cmp-card-summary { color: var(--ink-light); font-size: 0.9375rem; line-height: 1.5; margin: 0; }

.cmp-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3); padding: var(--s-3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.cmp-card-stats > div { display: flex; flex-direction: column; gap: 2px; }
.cmp-card-stats small { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; }
.cmp-card-stats strong { font-family: var(--font-serif); font-weight: 500; font-size: 0.9375rem; color: var(--ink); line-height: 1.2; }
.cmp-card-inv-type, .cmp-card-family { display: flex; flex-direction: column; gap: 4px; }
.cmp-card-inv-type small, .cmp-card-family small { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; }
.cmp-card-inv-type span, .cmp-card-family span { font-size: 0.875rem; color: var(--ink-light); line-height: 1.4; }

.cmp-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(45,90,123,0.15);
}
.cmp-chip-sm { font-size: 0.6875rem; padding: 3px 8px; }
.cmp-card-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-3); border-top: 1px solid var(--border-light);
  gap: var(--s-3);
}

.compare-empty {
  text-align: center; padding: var(--s-9) var(--s-4);
  color: var(--ink-muted); font-size: 1rem;
}

/* Floating pill for comparison selection */
.compare-pill {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px);
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px 10px 18px;
  background: var(--ink); color: white;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.15);
  z-index: 95; /* above WhatsApp widget (92) so it never sits behind */
  opacity: 0; transition: all var(--d-2) var(--ease);
  pointer-events: none;
}
.compare-pill[hidden] { display: none !important; } /* hide cleanly until 1+ selected */
.compare-pill.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
@media (max-width: 640px) {
  /* Anchor to the left edge on phones so it never overlaps the WhatsApp FAB at right:16 */
  .compare-pill { left: 16px; right: 88px; transform: translateY(10px); max-width: calc(100vw - 104px); }
  .compare-pill.show { transform: translateY(0); }
}
.compare-pill #cmpPillCount {
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem;
  background: white; color: var(--ink);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.compare-pill button {
  background: transparent; color: white; border: none;
  font: 600 0.875rem/1 var(--font-sans); cursor: pointer;
  padding: 6px 10px; border-radius: var(--r-sm);
}
#cmpPillOpen {
  background: var(--accent) !important; padding: 8px 14px !important;
  transition: background var(--d-1) var(--ease);
}
#cmpPillOpen:hover { background: var(--accent-hover) !important; }
#cmpPillClear { opacity: 0.6; font-size: 1rem !important; padding: 4px 8px !important; }
#cmpPillClear:hover { opacity: 1; }

/* Drawer */
.compare-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 920px;
  background: white;
  z-index: 95;
  box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform var(--d-3) var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.compare-drawer.open { transform: translateX(0); }
.compare-drawer-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
}
.compare-drawer-header h3 { margin-top: var(--s-2); margin-bottom: 0; }
.compare-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-cool); border: none;
  color: var(--ink); cursor: pointer;
  font-size: 1rem; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--d-1) var(--ease);
}
.compare-drawer-close:hover { background: var(--border); }

.compare-drawer-body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-6); }
.cmp-drawer-head-row {
  display: grid;
  grid-template-columns: 150px repeat(var(--cmp-cols, 3), 1fr);
  gap: var(--s-3); margin-bottom: var(--s-5);
}
.cmp-drawer-head-spacer { min-height: 1px; }
.cmp-drawer-head-card {
  background: var(--surface-cool); border-radius: var(--r-md);
  padding: var(--s-3); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.cmp-drawer-head-card .flag-chip { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 22px; border-radius: 3px; background: var(--ink); color: white; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; }
.cmp-drawer-head-card strong { font-family: var(--font-serif); font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.cmp-drawer-rm {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.08); color: var(--ink);
  font-size: 0.6875rem; cursor: pointer;
  transition: background var(--d-1) var(--ease);
}
.cmp-drawer-rm:hover { background: var(--error); color: white; }

.cmp-drawer-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.cmp-drawer-table th {
  text-align: left; padding: 10px 12px; vertical-align: top;
  width: 150px;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 600;
  border-top: 1px solid var(--border-light);
}
.cmp-drawer-table td {
  padding: 10px 12px; vertical-align: top;
  border-top: 1px solid var(--border-light);
  color: var(--ink); line-height: 1.5;
}
.cmp-drawer-table tr:first-child th, .cmp-drawer-table tr:first-child td { border-top: none; }
.cmp-drawer-foot {
  padding-top: var(--s-4); margin-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex; gap: var(--s-2); flex-wrap: wrap;
}

@media (max-width: 820px) {
  .compare-drawer { max-width: 100%; }
  .cmp-drawer-head-row { grid-template-columns: 90px repeat(var(--cmp-cols, 3), 1fr); }
  .cmp-drawer-table th { width: 90px; font-size: 0.625rem; }
}

/* Backdrop behind drawer */
.compare-backdrop {
  position: fixed; inset: 0; background: rgba(10,18,36,0.55);
  z-index: 94; opacity: 0; pointer-events: none;
  transition: opacity var(--d-2) var(--ease);
}
.compare-backdrop.show { opacity: 1; pointer-events: auto; }

/* About */
.about-hero { padding: calc(var(--header-h) + var(--s-9)) 0 var(--s-9); background: var(--surface-warm); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 960px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: var(--s-5); background: white; border: 1px solid var(--border); border-radius: var(--r-lg); }
.value-card h4 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: var(--s-3); }

/* Animations on scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity var(--d-3) var(--ease), transform var(--d-3) var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* Staggered reveal for grid children */
.fade-in.visible.stagger > * { opacity: 0; transform: translateY(14px); animation: staggerIn 600ms var(--ease) forwards; }
.fade-in.visible.stagger > *:nth-child(1) { animation-delay: 60ms; }
.fade-in.visible.stagger > *:nth-child(2) { animation-delay: 120ms; }
.fade-in.visible.stagger > *:nth-child(3) { animation-delay: 180ms; }
.fade-in.visible.stagger > *:nth-child(4) { animation-delay: 240ms; }
.fade-in.visible.stagger > *:nth-child(5) { animation-delay: 300ms; }
.fade-in.visible.stagger > *:nth-child(6) { animation-delay: 360ms; }
.fade-in.visible.stagger > *:nth-child(7) { animation-delay: 420ms; }
.fade-in.visible.stagger > *:nth-child(8) { animation-delay: 480ms; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in.visible.stagger > * { animation: none; opacity: 1; transform: none; }
}

/* Subtle parallax-feel on hero content */
.hero-content { position: relative; z-index: 1; }
.hero-content > * { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: heroIn 900ms var(--ease) both; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lift effect on cards */
.program-card, .why-item, .value-card, .blog-card, .team-card, .office-card, .tier-card {
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.program-card:hover, .why-item:hover, .value-card:hover, .blog-card:hover, .team-card:hover, .office-card:hover, .tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .program-card:hover, .why-item:hover, .value-card:hover, .blog-card:hover, .team-card:hover, .office-card:hover, .tier-card:hover {
    transform: none;
  }
}

/* Skeleton flag art */
.flag-art {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 4rem; font-weight: 600;
  color: var(--ink); opacity: 0.18; letter-spacing: 0.06em;
}

/* Helpers */
.tc { text-align: center; } .tl { text-align: left; } .tr { text-align: right; }
.mt-3 { margin-top: var(--s-5); } .mt-4 { margin-top: var(--s-6); } .mt-5 { margin-top: var(--s-7); }
.mb-3 { margin-bottom: var(--s-5); } .mb-4 { margin-bottom: var(--s-6); } .mb-5 { margin-bottom: var(--s-7); }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }

/* Print */
@media print { .header, .footer, .whatsapp-fab, .passport-section, .t-loader, .scroll-progress, .modal-backdrop { display: none !important; } }

/* =========================================================
   PAGE TRANSITION LOADER — GMC mark + sonar rings + progress
   ========================================================= */
.t-loader {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(45,90,123,0.28) 0%, rgba(10,18,36,0) 70%),
    linear-gradient(180deg, #0B1426 0%, #0A1224 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--s-7);
  pointer-events: none; opacity: 0;
  transition: opacity 280ms var(--ease);
}
.t-loader.show { opacity: 1; pointer-events: auto; }

.t-loader-mark {
  position: relative;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.t-loader-mark-img {
  width: 92px; height: 92px;
  /* Black logo inverted to white via CSS filter */
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: scale(0.94);
  z-index: 3;
}
.t-loader.show .t-loader-mark-img {
  animation: tMarkIn 700ms var(--ease) 120ms forwards,
             tMarkBreathe 2400ms var(--ease) 820ms infinite;
}

/* Sonar rings radiating from mark */
.t-sonar {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232,240,245,0.35);
  opacity: 0;
  z-index: 1;
}
.t-loader.show .t-sonar-1 { animation: tSonar 2400ms var(--ease) 300ms infinite; }
.t-loader.show .t-sonar-2 { animation: tSonar 2400ms var(--ease) 900ms infinite; }
.t-loader.show .t-sonar-3 { animation: tSonar 2400ms var(--ease) 1500ms infinite; }

/* Soft disc behind the mark */
.t-loader-mark::before {
  content: '';
  position: absolute; inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(45,90,123,0.22) 0%, rgba(10,18,36,0) 70%);
  z-index: 2;
}

.t-loader-brand {
  text-align: center;
  opacity: 0;
}
.t-loader.show .t-loader-brand { animation: tFadeInUp 700ms var(--ease) 500ms forwards; }
.t-loader-brand .t-brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.26em;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.t-loader-brand .t-brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* Thin progress bar at bottom of the text */
.t-loader-progress {
  width: 220px; height: 1.5px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  margin-top: var(--s-5);
  overflow: hidden;
  opacity: 0;
}
.t-loader.show .t-loader-progress { animation: tFadeIn 400ms 800ms ease-out forwards; }
.t-loader-progress-fill {
  display: block; width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(232,240,245,0.9) 50%, transparent 100%);
  border-radius: 999px;
}
.t-loader.show .t-loader-progress-fill { animation: tProgress 1400ms var(--ease) 900ms infinite; }

@keyframes tMarkIn {
  0% { opacity: 0; transform: scale(0.88); filter: brightness(0) invert(1) blur(8px); }
  60% { opacity: 1; filter: brightness(0) invert(1) blur(0); }
  100% { opacity: 1; transform: scale(1); filter: brightness(0) invert(1) blur(0); }
}
@keyframes tMarkBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes tSonar {
  0%   { transform: scale(0.35); opacity: 0.55; border-color: rgba(232,240,245,0.55); }
  70%  { opacity: 0; border-color: rgba(232,240,245,0.05); }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes tFadeInUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes tFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes tProgress {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .t-loader * { animation: none !important; transition: none !important; }
  .t-loader-mark-img { opacity: 1; filter: brightness(0) invert(1); }
  .t-loader-brand { opacity: 1; }
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  transition: width 80ms linear;
}

/* =========================================================
   MODAL SYSTEM
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 15, 31, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: var(--s-7) var(--s-4);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease);
  overflow-y: auto;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal-shell {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  max-width: 640px; width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 320ms var(--ease);
  overflow: hidden;
}
.modal-backdrop.show .modal-shell { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 36px; height: 36px;
  border: none; background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  transition: all var(--d-1) var(--ease);
  z-index: 5;
}
.modal-close:hover { background: var(--surface-cool); color: var(--ink); }
.modal-header {
  padding: var(--s-6) var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--surface-warm) 0%, white 100%);
}
.modal-header .eyebrow { display: block; margin-bottom: var(--s-2); }
.modal-header h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.5rem; line-height: 1.25;
  color: var(--ink);
}
.modal-header p {
  margin-top: var(--s-2);
  color: var(--ink-light); font-size: 0.95rem;
}
.modal-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.modal-body .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 600px) {
  .modal-body .form-row { grid-template-columns: 1fr; }
  .modal-shell { max-width: 100%; }
}

/* Radio chip group (Program / Family Size) */
.chip-group {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-2);
}
.chip-group input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.chip-group label {
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  transition: all var(--d-1) var(--ease);
  user-select: none;
  background: white;
}
.chip-group label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-group input[type="radio"]:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 10px rgba(45, 90, 123, 0.2);
}
.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-1);
  letter-spacing: 0.01em;
}
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: var(--s-1);
}

/* Newsletter band */
.newsletter-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--surface-deep) 100%);
  color: white;
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}
.newsletter-band::before {
  content: ""; position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(45,90,123,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-7); align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 768px) { .newsletter-grid { grid-template-columns: 1fr; } }
.newsletter-band h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white; margin-bottom: var(--s-3);
}
.newsletter-band .eyebrow { color: rgba(255,255,255,0.6); }
.newsletter-band p { color: rgba(255,255,255,0.7); margin-bottom: var(--s-4); }
.newsletter-form {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: all var(--d-1) var(--ease);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.newsletter-form button {
  padding: 14px 28px;
  background: white; color: var(--ink);
  border: none; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--d-1) var(--ease);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-light); transform: translateY(-1px); }
.newsletter-band .small {
  margin-top: var(--s-3);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Footer newsletter (compact) */
.footer-newsletter {
  margin-top: var(--s-3);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.footer-newsletter input {
  flex: 1; min-width: 160px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 0.85rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter button {
  padding: 10px 18px;
  background: white; color: var(--ink);
  border: none; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--d-1) var(--ease);
}
.footer-newsletter button:hover { background: var(--accent-light); }

/* Hero gradient drift */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(45,90,123,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 75% 70%, rgba(45,90,123,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -1%) scale(1.05); }
  100% { transform: translate(-1%, 1%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Hero trust counter-up emphasis */
.hero-trust-item strong { transition: color 320ms var(--ease); }
.hero-trust-item.counted strong { color: var(--accent); }

/* Floating CTA inside content sections */
.inline-cta {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  margin: var(--s-6) 0;
}
.inline-cta-text {
  flex: 1; min-width: 240px;
}
.inline-cta-text strong {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.125rem; color: var(--ink);
  display: block; margin-bottom: var(--s-1);
}
.inline-cta-text small {
  color: var(--ink-light); font-size: 0.875rem;
}

/* ============================================================
   COMPANY FORMATION PAGE  (/company)
   ============================================================ */
.co-juris-tabs {
  display: flex; gap: var(--s-2); margin-bottom: var(--s-5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 6px; width: fit-content;
}
.co-juris-tabs button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink-light);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-md); transition: all 0.18s ease;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.co-juris-tabs button[aria-pressed="true"] {
  background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.co-juris-tabs button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.co-juris-section { display: none; }
.co-juris-section.active { display: block; }

.co-tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-4);
}
@media (max-width: 920px) { .co-tiers-grid { grid-template-columns: 1fr; } }

.co-tier {
  position: relative; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5); cursor: pointer;
  transition: all 0.18s ease; display: flex; flex-direction: column; gap: var(--s-2);
}
.co-tier:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.co-tier.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,90,123,0.18); }
.co-tier input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.co-tier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.co-tier h5 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin: 0; line-height: 1.2; }
.co-tier-meta { color: var(--ink-light); font-size: 0.875rem; margin: 0; }
.co-tier-amount {
  font-family: var(--font-serif); font-size: 1.625rem; color: var(--accent);
  font-weight: 600; line-height: 1.1; margin: var(--s-2) 0 4px;
}
.co-tier-amount small { font-size: 0.75rem; font-weight: 500; color: var(--ink-light); margin-left: 4px; }
.co-tier-time {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(45,90,123,0.10); color: var(--accent);
  padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; align-self: flex-start;
}
.co-tier-radio {
  width: 22px; height: 22px; border: 2px solid var(--border-dark, #d0d0d0); border-radius: 50%;
  flex-shrink: 0; position: relative; transition: all 0.18s ease;
}
.co-tier.selected .co-tier-radio { border-color: var(--accent); }
.co-tier.selected .co-tier-radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent);
}
.co-tier-includes {
  margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-light);
}
.co-tier-includes li {
  padding: 4px 0 4px 22px; position: relative; line-height: 1.5;
}
.co-tier-includes li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

.co-addons {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
}
@media (max-width: 720px) { .co-addons { grid-template-columns: 1fr; } }
.co-addon {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4);
  border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer;
  background: var(--surface); transition: all 0.18s ease;
}
.co-addon:hover { border-color: var(--accent); }
.co-addon:has(input:checked) { border-color: var(--accent); background: rgba(45,90,123,0.04); box-shadow: 0 0 0 2px rgba(45,90,123,0.12); }
.co-addon input { position: absolute; opacity: 0; pointer-events: none; }
.co-addon-check {
  width: 22px; height: 22px; border: 2px solid var(--border-dark, #d0d0d0); border-radius: 6px;
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.co-addon:has(input:checked) .co-addon-check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.co-addon:has(input:checked) .co-addon-check::after {
  content: '✓'; font-size: 14px; font-weight: 700;
}
.co-addon-body { flex: 1; min-width: 0; }
.co-addon-body h5 {
  font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  margin: 0 0 4px; line-height: 1.3;
}
.co-addon-body p { color: var(--ink-light); font-size: 0.875rem; line-height: 1.5; margin: 0 0 var(--s-2); }
.co-addon-meta {
  display: flex; gap: 4px; font-size: 0.8125rem; color: var(--ink-light); flex-wrap: wrap;
}
.co-addon-meta strong { color: var(--accent); font-weight: 700; }

.co-doc-col h4 {
  font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 var(--s-3); letter-spacing: -0.005em;
}
.co-doc-col ul { padding: 0; margin: 0; list-style: none; font-size: 0.9375rem; color: var(--ink-light); }
.co-doc-col ul li {
  padding: 8px 0 8px 24px; position: relative; line-height: 1.5; border-bottom: 1px solid var(--border-light);
}
.co-doc-col ul li::before {
  content: '○'; position: absolute; left: 4px; color: var(--accent); font-weight: 700;
}

.co-running-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
@media (max-width: 920px) { .co-running-grid { grid-template-columns: 1fr; } }
.co-running-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
.co-running-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.co-running-head h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.125rem; color: var(--ink);
  margin: 0; line-height: 1.25;
}
.co-running-cadence { font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 4px; }
.co-running-estimate-tag {
  display: inline-block; margin-top: 4px;
  background: rgba(184,147,90,0.14); color: var(--gold, #B8935A);
  padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.co-running-flag { font-size: 1.5rem; }
.co-running-table { display: flex; flex-direction: column; gap: 0; }
.co-running-row {
  display: flex; justify-content: space-between; gap: var(--s-3); padding: 10px 0;
  border-bottom: 1px dashed var(--border-light); font-size: 0.9375rem;
}
.co-running-row.zero .co-running-amount { color: var(--ink-muted); font-weight: 500; }
.co-running-label { color: var(--ink-light); display: flex; flex-direction: column; line-height: 1.4; }
.co-running-label small { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; font-weight: 500; }
.co-running-amount { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-running-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-3); margin-top: var(--s-2); border-top: 2px solid var(--border);
}
.co-running-total-label { font-weight: 700; color: var(--ink); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.co-running-total-value { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--accent); }
.co-running-usd-equiv { font-size: 0.8125rem; color: var(--ink-muted); text-align: right; margin-top: -4px; }
.co-running-note { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.55; margin-top: var(--s-2); }

.co-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-7);
}
@media (max-width: 920px) { .co-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .co-trust-grid { grid-template-columns: 1fr; } }
.co-trust-item {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-md);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.co-trust-icon { font-size: 1.75rem; line-height: 1; }
.co-trust-item h5 { font-family: var(--font-serif); font-weight: 500; font-size: 1.0625rem; margin: 0; color: var(--ink); }
.co-trust-item p { font-size: 0.875rem; color: var(--ink-light); margin: 0; line-height: 1.5; }

.co-summary-bar {
  position: sticky; bottom: 0; z-index: 10;
  background: var(--ink); color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s-4) var(--s-5); margin-top: var(--s-6);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  flex-wrap: wrap; box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
}
.co-summary-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.co-summary-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.co-summary-total { font-family: var(--font-serif); font-size: 1.625rem; font-weight: 600; line-height: 1.1; }
.co-summary-total small { font-size: 0.75rem; color: rgba(255,255,255,0.65); font-weight: 500; margin-left: 6px; }
.co-summary-detail { font-size: 0.8125rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.co-summary-bar .btn { white-space: nowrap; }

.co-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
@media (max-width: 1080px) { .co-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .co-process { grid-template-columns: 1fr; } }
.co-process-step {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-md);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.co-process-num {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; color: var(--accent);
  line-height: 1; opacity: 0.8;
}
.co-process-step h5 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin: 0; }
.co-process-step p { font-size: 0.8125rem; color: var(--ink-light); margin: 0; line-height: 1.5; }

.co-faq-list { max-width: 780px; margin: 0 auto; }
.co-faq-item { border-bottom: 1px solid var(--border-light); }
.co-faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: var(--s-5) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.co-faq-q::after { content: '+'; font-size: 1.5rem; color: var(--accent); font-weight: 300; transition: transform 0.18s ease; }
.co-faq-item.open .co-faq-q::after { transform: rotate(45deg); }
.co-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.24s ease; font-size: 0.9375rem; color: var(--ink-light); line-height: 1.6; }
.co-faq-item.open .co-faq-a { max-height: 600px; padding: 0 0 var(--s-5); }

/* ============================================================
   Apply / intake section — Calendly + Call + Form three-channel UX
   ============================================================ */
.co-apply-head { text-align: center; margin-bottom: var(--s-6); }
.co-apply-head h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.625rem, 2.8vw, 2.125rem); margin: 0 0 var(--s-3); letter-spacing: -0.01em; color: var(--ink);
}
.co-apply-head p { color: var(--ink-light); max-width: 60ch; margin: 0 auto var(--s-4); line-height: 1.55; }
.co-apply-summary {
  display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  background: var(--surface-warm); border: 1px solid var(--border-light);
  padding: 10px 16px; border-radius: var(--r-md); font-size: 0.9375rem;
  max-width: 100%; box-sizing: border-box;
}
.co-apply-summary[hidden] { display: none; }
.co-apply-summary-label { color: var(--ink-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; flex-shrink: 0; }
.co-apply-summary-text { color: var(--ink); font-weight: 500; word-break: break-word; min-width: 0; }
@media (max-width: 640px) {
  .co-apply-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
  }
  .co-apply-head h2 { font-size: 1.5rem; }
  .co-apply-head { margin-bottom: var(--s-5); }
}

.co-apply-tabs {
  display: flex; gap: 6px; padding: 6px; max-width: 720px; margin: 0 auto var(--s-5);
  background: var(--surface-warm); border-radius: var(--r-lg); border: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.co-apply-tab {
  flex: 1 1 0; min-width: 0; appearance: none; background: transparent; border: 0; cursor: pointer;
  font: 600 0.9375rem/1.2 var(--font-sans); color: var(--ink-light);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md); transition: all 0.18s ease;
  white-space: nowrap;
  text-overflow: ellipsis; overflow: hidden;
}
.co-apply-tab:hover:not(.active) { color: var(--ink); }
.co-apply-tab.active { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
/* On mobile, stack tabs vertically — full width, comfortable tap targets, no truncation */
@media (max-width: 640px) {
  .co-apply-tabs {
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }
  .co-apply-tab {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 11px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.9375rem;
    line-height: 1.3;
  }
}

.co-apply-panel { max-width: 880px; margin: 0 auto; }
.co-apply-panel[hidden] { display: none; }
.co-apply-panel-lead {
  color: var(--ink-light); margin: 0 0 var(--s-5); line-height: 1.6;
  text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto;
}
.co-apply-fineprint {
  font-size: 0.8125rem; color: var(--ink-muted); margin-top: var(--s-4);
  text-align: center; line-height: 1.55;
}

/* Calendly inline widget — sit cleanly inside the panel */
#coCalendly {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-light); background: var(--surface-warm);
}
/* Override the inline min-width:320px set by Calendly's docs — prevents horizontal scroll on small phones */
@media (max-width: 640px) {
  #coCalendly { min-width: 0 !important; width: 100%; height: 760px !important; }
}

/* Phone + WhatsApp panel */
.co-talk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
}
@media (max-width: 720px) { .co-talk-grid { grid-template-columns: 1fr; } }
.co-talk-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--border);
  text-decoration: none; color: var(--ink); transition: all 0.2s ease;
  text-align: center;
}
.co-talk-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
.co-talk-card .co-talk-icon { font-size: 2rem; line-height: 1; margin-bottom: var(--s-2); }
.co-talk-card h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem;
  color: var(--ink); margin: 0; letter-spacing: -0.005em;
}
.co-talk-card p { color: var(--ink-light); font-size: 0.9375rem; margin: 0; }
.co-talk-card .co-talk-cta {
  margin-top: var(--s-3); color: var(--accent); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.co-talk-card.co-talk-wa:hover { border-color: #25D366; }
.co-talk-card.co-talk-wa:hover .co-talk-cta { color: #25D366; }
.co-talk-card.co-talk-wa .co-talk-icon { color: #25D366; }

/* ----- Company apply form (lead-form panel) ----- */
.co-form {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 540px) { .co-form { padding: var(--s-5); } }

.co-form-field { margin-bottom: var(--s-5); }
.co-form-field:last-of-type { margin-bottom: 0; }
.co-form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.co-form-field .co-form-req { color: var(--accent); margin-left: 3px; font-weight: 700; }

.co-form-field input[type="text"],
.co-form-field input[type="email"],
.co-form-field input[type="tel"],
.co-form-field input[type="number"],
.co-form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font: 500 1rem/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.co-form-field input::placeholder,
.co-form-field textarea::placeholder { color: var(--ink-muted); font-weight: 400; }
.co-form-field input:hover,
.co-form-field textarea:hover { border-color: var(--ink-light); }
.co-form-field input:focus,
.co-form-field textarea:focus,
.co-form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45,90,123,0.14);
  background: var(--surface);
}
.co-form-field input:invalid:not(:placeholder-shown) { border-color: #C8543A; }
.co-form-field input:invalid:not(:placeholder-shown):focus { box-shadow: 0 0 0 4px rgba(200,84,58,0.14); }

/* Select needs custom arrow because of appearance:none */
.co-form-select-wrap { position: relative; }
.co-form-select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-light);
  border-bottom: 2px solid var(--ink-light);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.16s ease;
}
.co-form-select-wrap:hover::after { border-color: var(--ink); }
.co-form-field select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font: 500 1rem/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.co-form-field select:hover { border-color: var(--ink-light); }

/* Two-column row (email + phone). Stacks on small screens. */
.co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.co-form-row .co-form-field { margin-bottom: 0; }
@media (max-width: 600px) { .co-form-row { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Selected-package readout box */
.co-form-pkg {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--s-5) 0 var(--s-4);
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.55;
}
.co-form-pkg strong { color: var(--ink); }

/* Submit button — full-width, taller, with subtle elevation */
.co-form-submit {
  width: 100%;
  padding: 16px var(--s-5);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: var(--s-3);
  box-shadow: 0 4px 12px rgba(45,90,123,0.18);
  transition: all 0.18s ease;
}
.co-form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(45,90,123,0.24); }
.co-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.co-form-note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: var(--s-3) 0 0;
  text-align: center;
  line-height: 1.55;
}
.co-form-ack {
  display: none;
  background: #E8F5EE;
  border: 1px solid #B7D9C5;
  color: #1B5C3A;
  padding: var(--s-4);
  border-radius: var(--r-sm);
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}
.co-form-ack.show { display: block; }

/* In-page anchor scroll target — leave space for the sticky header */
[id="co-build"], [id="co-apply"], [id="form"] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Brief flash highlight when scrolled to via in-page anchor click */
.anchor-flash { animation: anchorFlash 1.4s ease; }
@keyframes anchorFlash {
  0%   { box-shadow: 0 0 0 0 rgba(45,90,123,0); }
  20%  { box-shadow: 0 0 0 8px rgba(45,90,123,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(45,90,123,0); }
}
