@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --teal:        #19647e;
  --teal-dark:   #0f4257;
  --teal-light:  #2a8aaa;
  --teal-mist:   #d4eaf2;
  --gold:        #c9a84c;     /* dark backgrounds only — 4.74:1 on #0f4257 */
  --gold-light:  #e8c96a;     /* large UI on teal bg — 4.10:1 */
  --gold-dark:   #8a5c00;     /* light/white backgrounds — 5.65:1 on white */
  --ink:         #0e1f27;
  --ink-soft:    #2d4654;
  --slate:       #486675;     /* bumped from #5a7a89 — now 5.94:1 on white */
  --mist:        #eaf4f8;
  --white:       #fafcfd;
  --off-white:   #f0f7fa;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --nav-h: 72px;
  --section-pad: clamp(64px, 10vw, 120px);
  --radius: 4px;
  --radius-lg: 12px;

  --shadow-card: 0 2px 20px rgba(14,31,39,.08), 0 0 0 1px rgba(25,100,126,.07);
  --shadow-hover: 0 8px 40px rgba(25,100,126,.18), 0 0 0 1px rgba(25,100,126,.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1.display { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2.display { font-size: clamp(2rem, 4vw, 3.4rem); }
h3.display { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.section-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}
p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ── BRAND LOGO ── */
.brand-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.brand-logo .bh    { color: #7dd3f0; }  /* 6.43:1 on dark bg, and distinct from gold */
.brand-logo .espoke { color: var(--gold); }

/* On light backgrounds (scrolled nav) switch to accessible dark variants */
nav.scrolled .brand-logo .bh     { color: var(--teal); }     /* 6.45:1 on white */
nav.scrolled .brand-logo .espoke  { color: var(--gold-dark); } /* 5.65:1 on white */

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(250,252,253,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(25,100,126,.1);
}
nav.dark-nav {
  background: var(--teal-dark);
}
nav.dark-nav.scrolled {
  background: rgba(15,66,87,.97);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
  color: var(--ink-soft);
}
nav.dark-nav .nav-links a { color: rgba(255,255,255,.8); }
.nav-links a:hover { color: var(--teal); }
nav.dark-nav .nav-links a:hover { color: var(--gold-light); }
.nav-links a.active { color: var(--teal); }
nav.dark-nav .nav-links a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-size: .85rem !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; transform: translateY(-1px); }
nav.dark-nav .nav-cta { background: var(--gold-light); color: var(--ink) !important; } /* gold-light: 4.10:1 on teal bg */
nav.dark-nav .nav-cta:hover { background: #f0d070 !important; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
nav.dark-nav .hamburger span { background: var(--white); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--teal-mist);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--ink-soft); padding: .4rem 0; border-bottom: 1px solid var(--teal-mist); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(25,100,126,.3); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.35); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }

/* ── LAYOUT UTILITIES ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--off-white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.stack-sm { gap: .75rem; }
.stack-md { gap: 1.25rem; }
.stack-lg { gap: 2rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* ── DIVIDER ── */
.rule { width: 48px; height: 2px; background: var(--gold); border-radius: 2px; }
.rule-center { margin: 0 auto; }

/* ── SECTION HEADER ── */
.section-header { display: flex; flex-direction: column; gap: .75rem; max-width: 640px; }
.section-header.center { align-items: center; text-align: center; margin: 0 auto; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
footer .brand-logo .bh    { color: #4db8d4; }  /* 7.33:1 on ink */
footer .brand-logo .espoke { color: var(--gold); } /* 7.39:1 on ink */
.footer-desc { font-size: .88rem; line-height: 1.7; margin-top: .75rem; color: rgba(255,255,255,.65); } /* was .5 — failed AA */
.footer-col h4 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1rem; } /* was .4 — failed AA */
.footer-col a { display: block; font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .5rem; transition: color .2s; } /* was .65 */
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.55); } /* was .35 — failed AA */

/* ── HERO BASE ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-teal {
  background: var(--teal-dark);
  color: var(--white);
}

/* ── PAGE HERO (shorter) ── */
.page-hero {
  background: var(--teal-dark);
  color: var(--white);
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42,138,170,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

/* ── STAT BLOCKS ── */
.stat-block { text-align: center; padding: 1.5rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--teal);        /* teal: 6.45:1 on white — was gold which failed at 2.22 */
  line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--slate); margin-top: .3rem; }

/* ── PROCESS STEP ── */
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--teal-mist);
  line-height: 1;
  user-select: none;
}
.step-card { position: relative; }

/* ── QUOTE TIER ── */
.tier-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(25,100,126,.15);
  background: var(--white);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.tier-basic::before   { background: var(--slate); }
.tier-standard::before { background: var(--teal); }
.tier-full::before    { background: var(--gold); }
.tier-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.tier-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem .9rem;
  border: 1.5px solid rgba(25,100,126,.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25,100,126,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── TIME SLOT GRID ── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; }
.slot {
  padding: .5rem;
  text-align: center;
  font-size: .85rem;
  font-family: var(--font-mono);
  border: 1.5px solid rgba(25,100,126,.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s;
  color: var(--ink-soft);
  background: var(--white);
}
.slot:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-mist); }
.slot.selected { background: var(--teal); color: var(--white); border-color: var(--teal); }
.slot.unavailable { opacity: .35; cursor: not-allowed; }

/* ── WEEK NAV ── */
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.week-nav button {
  background: none; border: 1.5px solid rgba(25,100,126,.2);
  border-radius: var(--radius); padding: .4rem .8rem;
  cursor: pointer; font-size: .85rem; color: var(--ink-soft);
  transition: all .18s;
}
.week-nav button:hover { border-color: var(--teal); color: var(--teal); }
.day-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.day-col-header { font-size: .75rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); text-align: center; padding-bottom: .5rem; border-bottom: 1px solid var(--teal-mist); margin-bottom: .5rem; }
.day-col-slots { display: flex; flex-direction: column; gap: .4rem; }

/* ── ICON ── */
.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.icon-circle-gold { background: rgba(201,168,76,.12); }

/* ── EXAMPLE CARDS ── */
.example-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .25s;
}
.example-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.example-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--teal-mist);
}
.example-card-body { padding: 1.5rem 1.75rem 1.75rem; background: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { transform: scale(.95); box-shadow: 0 0 0 0 rgba(25,100,126,.35); }
  70%  { transform: scale(1);   box-shadow: 0 0 0 12px rgba(25,100,126,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(25,100,126,0); }
}
.animate-fade-up { animation: fadeUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .day-cols { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .day-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ── WCAG 2.1 AA: FOCUS INDICATORS ── */
/* Visible focus ring on all interactive elements */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
/* Ensure buttons don't suppress outline */
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ── WCAG 2.1 AA: REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── WCAG: TARGET SIZE (2.5.8 AA) ── */
/* Ensure interactive elements are at least 24x24px */
.slot { min-height: 36px; }
.cal-nav-btn { min-width: 36px; min-height: 36px; }
.week-nav button { min-height: 36px; }

/* ── WCAG: LINK UNDERLINES in body text ── */
/* Links within prose should be distinguishable without color alone */
p a, li a { text-decoration: underline; text-underline-offset: 2px; }
p a:hover, li a:hover { text-decoration-thickness: 2px; }

/* ── WCAG: FORM ERROR STATES ── */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
