/* ===== Display typeface (headlines only — body stays system fonts for speed) ===== */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700.woff2") format("woff2");
}

/* ===== Design tokens ===== */
:root {
  --navy: #102a5e;
  --navy-dark: #0a1c3f;
  --navy-light: #1d4290;
  --red: #c8202f;
  --red-dark: #9c1623;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-navy-tint: #eef1f8;
  --text: #1a2233;
  --text-muted: #545f70;
  --border: #dde3ed;
  --white: #ffffff;
  --focus: #1d4290;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --measure: 720px;
  --container: 1140px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 12px;
  --shadow: 0 4px 16px rgba(16, 42, 94, 0.08);
  --shadow-lift: 0 10px 28px rgba(16, 42, 94, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 180ms var(--ease-out);
  --motion: 480ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 1ms;
    --motion: 1ms;
  }
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: underline; text-decoration-color: rgba(29,66,144,0.35); transition: text-decoration-color var(--motion-fast); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  color: var(--navy-dark);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75em 1.2em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== Layout helpers ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.prose {
  max-width: var(--measure);
  margin: 0 auto;
}
section { padding: var(--space-5) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy a { color: #cfe0ff; }
.text-center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}
.bg-navy .eyebrow { color: #ffb3b8; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 80ms; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--bg-navy-tint); }
.bg-navy .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.bg-navy .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-group { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(16, 42, 94, 0);
  transition: box-shadow var(--motion-fast);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.logo-link { display: flex; align-items: center; gap: 0.6em; text-decoration: none; }
.logo-link img { height: 42px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.main-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.5em 0.7em;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.nav-toggle-icon { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    transform: translateY(-110%);
    transition: transform var(--motion);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav ul a { display: block; padding: 1em 0; }
  .header-cta { flex-direction: column; align-items: stretch; margin-top: var(--space-3); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero-watermark {
  position: absolute;
  right: -0.04em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .hero-watermark { font-size: clamp(6rem, 40vw, 11rem); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}
.bg-navy .hero p.lede { color: #cfd8ec; }
.hero-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-lift);
}

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

/* ===== Reveal animation ===== */
/* Scoped under .js so content stays visible by default if JS fails to load */
.js .reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity var(--motion), transform var(--motion);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Stagger card-grid children so they cascade rather than pop together */
.js .grid.reveal-group .card:nth-child(1) { transition-delay: 0ms; }
.js .grid.reveal-group .card:nth-child(2) { transition-delay: 90ms; }
.js .grid.reveal-group .card:nth-child(3) { transition-delay: 180ms; }
.js .grid.reveal-group .card:nth-child(4) { transition-delay: 270ms; }

/* ===== Comparison table ===== */
.table-wrap { overflow-x: auto; margin: var(--space-3) 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
caption { text-align: left; font-weight: 700; padding: var(--space-2); }
th, td { text-align: left; padding: 0.9em 1em; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); position: sticky; top: 0; }
tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ===== FAQ (native details/summary, zero JS) ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-1);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1em 1.2em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform var(--motion-fast);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.2em 1.2em; color: var(--text-muted); }

/* ===== Timeline ===== */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: var(--space-1); }
}
.timeline-dates {
  font-weight: 800;
  color: var(--red);
  font-size: 0.95rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfd8ec; }

/* ===== Who we help / bullet list ===== */
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-2) 0; }
.pill-list li {
  background: var(--bg-navy-tint);
  color: var(--navy);
  font-weight: 600;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  margin: 0;
}

/* ===== Agent bio ===== */
.agent-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 700px) {
  .agent-card { grid-template-columns: 1fr; text-align: center; }
}
.agent-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  padding: var(--space-2);
  overflow: hidden;
}
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.credential-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.credential-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #c9d3e8;
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-5);
}
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}
.site-footer a { color: #c9d3e8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.footer-logo { height: 36px; width: auto; margin-bottom: var(--space-2); filter: brightness(1.1); }
.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  font-size: 0.82rem;
  color: #94a1bf;
  line-height: 1.6;
}
.disclaimer p { margin-bottom: 0.8em; }

/* ===== Utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.flag-note {
  background: #fff7e0;
  border: 1px dashed #c9a227;
  border-radius: 8px;
  padding: 0.8em 1em;
  font-size: 0.85rem;
  color: #6b5800;
  margin: var(--space-2) 0;
}
