
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0F2A4A;
  --navy-dark: #081A30;
  --navy-tint: #E7EDF5;
  --ink: #1B2A41;
  --muted: #5B6B82;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --accent: #B8863E;
  --accent-dark: #8F6427;
  --accent-tint: #FBF1E1;
  --gold: #B8863E;
  --gold-dark: #8F6427;
  --gold-tint: #FBF1E1;
  --teal: #1B7A6B;
  --teal-dark: #145A50;
  --teal-tint: #E1F2EF;
  --gradient-hero: linear-gradient(135deg, #0F2A4A 0%, #16406B 55%, #1B7A6B 130%);
  --gradient-gold: linear-gradient(120deg, #C89B4F, #B8863E);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 42, 74, 0.18);
  --shadow-deep: 0 20px 46px -16px rgba(15, 42, 74, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15,42,74,0.04);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 24px; max-width: 1200px; margin: 0 auto;
}
.brand {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-tint); font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
nav.main-nav {
  display: flex; gap: 18px; align-items: center;
  flex-wrap: nowrap;
}
nav.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 0.9rem;
  white-space: nowrap;
}
nav.main-nav a.active { color: var(--accent-dark); font-weight: 600; }
nav.main-nav a:hover { text-decoration: none; color: var(--accent-dark); }

.site-search { position: relative; display: flex; align-items: center; }
.search-icon-btn {
  border: none; background: none; cursor: pointer; color: var(--muted);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.search-icon-btn:hover { background: var(--bg); color: var(--navy); }
.site-search-input {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 0; opacity: 0; pointer-events: none;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem;
  transition: width .2s ease, opacity .2s ease;
  background: var(--card);
}
.site-search.open .site-search-input {
  width: 200px; opacity: 1; pointer-events: auto; position: relative; right: auto;
}
.site-search.open .search-icon-btn { display: none; }
#site-search-results {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; z-index: 100;
}
.btn-sm { padding: 9px 18px !important; font-size: .85rem !important; }
@media (max-width: 1080px) {
  .site-search { display: none; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-accent { background: var(--gradient-hero); color: #fff; box-shadow: 0 8px 20px -8px rgba(90,19,29,0.55); }
.btn-accent:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); text-decoration: none; }

/* Hero */
.hero {
  padding: 84px 0 70px;
  background: radial-gradient(ellipse 900px 500px at 15% 0%, var(--accent-tint) 0%, transparent 60%),
              radial-gradient(ellipse 700px 500px at 100% 20%, var(--gold-tint) 0%, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-deep); padding: 30px; position: relative;
  border-top: 3px solid var(--gold);
}
.hero-panel .stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hero-panel .stat:last-child { border-bottom: none; }
.hero-panel .stat strong { font-family: 'Fraunces', serif; color: var(--accent); font-size: 1.4rem; }
.hero-panel .stat span { color: var(--muted); font-size: 0.88rem; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: linear-gradient(180deg, #FBF6F2 0%, var(--card) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 3px solid transparent;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); border-top-color: var(--gold); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-hero);
  color: var(--gold-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* Hero illustration */
.hero-illustration { position: relative; width: 100%; aspect-ratio: 1 / 0.85; }
.hero-illustration .blob {
  position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, var(--accent-tint), transparent 60%),
  radial-gradient(circle at 75% 70%, var(--accent-tint), transparent 55%);
  filter: blur(2px);
}
.hero-illustration svg.blob-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-illustration .motif {
  position: absolute; width: 74px; height: 74px; border-radius: 20px; background: var(--card);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); border: 1px solid var(--line);
}
.hero-illustration .motif svg { width: 30px; height: 30px; }
.hero-illustration .motif.m1 { top: 8%; left: 6%; }
.hero-illustration .motif.m2 { top: 42%; right: 4%; color: var(--navy); }
.hero-illustration .motif.m3 { bottom: 6%; left: 22%; }
.hero-illustration .ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--line); }
.hero-illustration .ring.r1 { width: 68%; height: 68%; top: 14%; left: 14%; }
.hero-illustration .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.5; }

/* Process list */
.process { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process .step {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.process .step .num { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--accent-dark); }
.process .step h4 { margin-bottom: 6px; }
.process .step p { color: var(--muted); margin: 0; }

/* Quote / testimonial */
.quote-block {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 44px;
}
.quote-block p { color: #E6ECF6; font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 400; }
.quote-block cite { color: var(--accent-tint); font-style: normal; font-weight: 600; font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--navy); border-radius: var(--radius); padding: 50px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD8EA; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #B9C6DB; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid a { color: #B9C6DB; display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-family: 'Fraunces', serif; color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom .legal-links a { color: #8FA0BC; }
.footer-bottom .legal-links a:hover { color: #fff; text-decoration: none; }

/* Page header (inner pages) */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--card); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero p.lead { color: var(--muted); max-width: 60ch; }

/* Forms */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.info-card .row:last-child { border-bottom: none; }
.info-card .row strong { display: block; color: var(--navy); font-size: 0.88rem; }
.info-card .row span { color: var(--muted); font-size: 0.9rem; }
.note-banner {
  background: var(--accent-tint); border: 1px solid var(--accent); color: var(--accent-dark);
  border-radius: 10px; padding: 14px 18px; font-size: 0.88rem; margin-bottom: 28px;
}

/* Legal document pages */
.legal-doc { max-width: 760px; }
.legal-doc h2 { margin-top: 2.2em; font-size: 1.3rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 0.97rem; }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 30px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.legal-doc table td, .legal-doc table th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-doc table th { background: var(--bg); color: var(--navy); }
.placeholder-flag { color: var(--accent-dark); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-illustration { max-width: 320px; margin: 0 auto; }

  .mobile-menu-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
    background: var(--card); flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 0; overflow-y: auto; z-index: 39;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-search { order: -1; margin-bottom: 10px; }
  .site-search-input, .site-search.open .site-search-input { position: static; width: 100% !important; opacity: 1; pointer-events: auto; }
  .search-icon-btn { display: none; }
  #site-search-results { position: static; width: 100%; box-shadow: none; margin-top: 10px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-block, .cta-band { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.legal-doc { max-width: 760px; }
.legal-doc h2 { margin-top: 2.2em; font-size: 1.3rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 0.97rem; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.legal-doc table td, .legal-doc table th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-doc table th { background: var(--bg); color: var(--navy); }
.placeholder-flag { color: var(--accent-dark); font-weight: 600; }
.form-status { border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin-bottom: 22px; }
.form-status.success { background: #E3F3E8; color: #1E7A3B; border: 1px solid #1E7A3B; }
.form-status.error { background: #FBEAEA; color: #9B2C2C; border: 1px solid #9B2C2C; }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 30px; text-align: center; margin: 14px 0; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .84rem; color: var(--muted); }
.security-notes { list-style: none; padding: 0; margin: 24px 0 0; }
.security-notes li { padding: 6px 0; font-size: .87rem; color: var(--muted); }
table.admin-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.admin-table th, table.admin-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; font-size: .88rem; }
table.admin-table th { background: var(--bg); }

.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; font-size: .95rem; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--accent, #8A1F2B); font-weight: 700; flex-shrink: 0; }

.vf-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.vf-field { background: var(--bg); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--muted); }
.vf-field strong { display: block; font-size: .85rem; color: var(--accent-dark, #6B1620); margin-bottom: 6px; font-weight: 600; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #B9C6DB;
  transition: background .15s ease, color .15s ease;
}
.social-icon:hover { background: var(--gold); color: #fff; text-decoration: none; }
