/* =====================================================================
   AdaptAbility Co — site styles
   Locked to the AdaptAbility Co Brand & Document Standards.
   Navy ink, gold + coral accents in small doses, teal + forest support,
   on a soft cream base. Muted beats bright for sensory-sensitive eyes:
   large areas stay calm, saturation lives in the accents only.
   ===================================================================== */

:root {
  /* Brand anchors */
  --navy:       #1B3A5C;   /* headings, body text, dark panels — the "ink" */
  --navy-deep:  #14304D;   /* deeper navy for gradient ends / depth */
  --forest:     #34503F;   /* nature + day-program panels */
  --gold:       #E8A33D;   /* accents, highlights, the star (never text on cream) */
  --teal:       #22706B;   /* links, icons, small accents */
  --coral:      #C44A37;   /* CTAs and the ask, small doses only */
  --coral-deep: #A83C2B;

  /* Neutrals */
  --cream:      #F4EEE2;   /* page background */
  --cream-2:    #EFE7D6;   /* alternating soft section */
  --warm-white: #FAF6EF;   /* cards, raised surfaces */
  --sand:       #E2D8C6;   /* borders, dividers, quiet fills */
  --slate:      #51606B;   /* secondary text */
  --slate-soft: #5C6873;   /* faint text — darkened to clear WCAG AA contrast on cream */

  /* Aliases used across components */
  --ink:        var(--navy);
  --ink-soft:   var(--slate);
  --ink-faint:  var(--slate-soft);
  --ocean:      var(--navy);
  --ocean-deep: var(--navy-deep);
  --sunset:     var(--coral);
  --sun:        var(--gold);
  --line:       var(--sand);

  --white:      #ffffff;
  --shadow:     0 18px 40px -24px rgba(20, 48, 77, 0.34);
  --shadow-sm:  0 8px 20px -14px rgba(20, 48, 77, 0.40);

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1120px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------- Reset / base ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Globally turn off ligatures so no f (fi/ff/fl) ever renders as a connected "ripple" */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  /* Use Fraunces' refined (text) optical style, not its dramatic display style, so f and s read as normal, conventional letters */
  font-optical-sizing: none;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inline links inside prose stay underlined so they're detectable without relying on color alone (low-vision / color-blind readers) */
p a:not(.btn) { text-decoration: underline; text-underline-offset: 0.14em; text-decoration-thickness: 1px; }
/* Visible keyboard focus on every link and button */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 3px; }
.section--ocean a:focus-visible, .section--forest a:focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.13;
  color: var(--navy);
  margin: 0 0 0.5em;
  /* Slight positive tracking so the lowercase f keeps clear space from the next letter (no blending) */
  letter-spacing: 0.015em;
  /* Keep f-ligatures (fi/ff/fl) off so the f and its neighbor stay as separate, well-spaced letters */
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0;
  font-variant-ligatures: none;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--cream);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------- Layout helpers ------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream2 { background: var(--cream-2); }
.section--ocean { background: var(--navy); color: #DCE6F0; }
.section--ocean h2, .section--ocean h3 { color: #fff; }
.section--forest { background: var(--forest); color: #E4EADF; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--sand { background: var(--sand); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure-narrow { max-width: 620px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--coral);
  margin: 0 0 14px;
}
.section--ocean .eyebrow, .section--forest .eyebrow { color: var(--gold); }
.lede { font-size: 1.2rem; color: var(--slate); }
.section--ocean .lede, .section--forest .lede { color: #C6D3DF; }
.section--forest .lede { color: #CBD6C9; }

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: var(--warm-white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coral-deep); color: #fff; }
.btn--ocean { background: var(--navy); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--ocean:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.section--ocean .btn--ghost, .section--forest .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.section--ocean .btn--ghost:hover, .section--forest .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ------------------------- Header / nav ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 238, 226, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 28px; max-width: 1280px; margin: 0 auto;
}
.nav__menu { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 44px; width: auto; flex: none; }
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.26rem;
  color: var(--navy); line-height: 1; letter-spacing: -0.01em;
}
.brand__name span { color: var(--coral); }

.nav__links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav__links a {
  display: block; padding: 8px 9px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; color: var(--slate); white-space: nowrap;
}
.nav__links a:hover { background: var(--cream-2); color: var(--navy); text-decoration: none; }
.nav__links a.is-active { color: var(--navy); font-weight: 700; }
.nav__links a.is-active::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--coral); margin-top: 4px;
}
.nav__cta { margin-left: 4px; flex: none; }

.nav__toggle {
  display: none; background: none; border: 2px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .nav__toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none; flex-direction: column; padding: 12px 24px 22px; gap: 6px;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__links a { padding: 12px 12px; font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__links a.is-active { background: var(--cream-2); }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { display: block; text-align: center; }
}

/* ------------------------- Hero ------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 86% -10%, rgba(232,163,61,0.18), transparent 60%),
    radial-gradient(900px 600px at 4% 110%, rgba(34,112,107,0.12), transparent 55%),
    var(--cream);
}
.hero__inner { padding: 88px 0 92px; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 44ch; }
.hero__cta { margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 0.98rem; color: var(--slate-soft); }

.wave { display: block; width: 100%; height: 64px; }
.wave--flip { transform: rotate(180deg); }

/* ------------------------- Cards / grids ------------------------- */
.grid { display: grid; gap: 26px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--warm-white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--cream-2); color: var(--teal);
  font-size: 1.4rem;
}
.card--link { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.card--link .more { color: var(--coral); font-weight: 700; }

.section--ocean .card, .section--forest .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #E2EAF2; box-shadow: none; }
.section--ocean .card h3, .section--forest .card h3 { color: #fff; }
.section--ocean .card__icon, .section--forest .card__icon { background: rgba(255,255,255,0.12); color: var(--gold); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } .split--rev .split__media { order: 0; } }

.panel {
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: #E2EAF2;
}
.panel h3 { color: #fff; }
.panel--forest { background: linear-gradient(155deg, #3c5a48, var(--forest)); color: #E7EDE3; }
.panel--forest h3 { color: #fff; }
.panel--cream { background: var(--warm-white); color: var(--navy); border: 1px solid var(--line); }
.panel--cream h3 { color: var(--navy); }
/* Accent panel: calm warm-white with a confident gold edge (saturation stays small) */
.panel--accent { background: var(--warm-white); color: var(--navy); border: 1px solid var(--line); border-top: 6px solid var(--gold); }
.panel--accent h3 { color: var(--navy); }

/* ------------------------- Lists ------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 14px 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section--ocean .ticks li::before, .section--forest .ticks li::before { background: var(--gold); }
.panel .ticks li::before { background: var(--gold); }
.panel--cream .ticks li::before, .panel--accent .ticks li::before { background: var(--teal); }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 56px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--coral); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}

.pillset { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--cream-2); color: var(--navy);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 0.92rem;
}
.section--ocean .pill, .section--forest .pill { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }

.pull {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.32; color: var(--navy); font-weight: 500;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0;
  font-variant-ligatures: none;
}
.pull span { color: var(--coral); }
.section--ocean .pull, .section--forest .pull { color: #fff; }
.section--ocean .pull span, .section--forest .pull span { color: var(--gold); }

.stat__num { font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.2rem); color: var(--coral); line-height: 1; margin-bottom: 6px; }

.deflist { display: grid; gap: 2px; }
.defrow { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 230px 1fr; gap: 26px; }
.defrow:last-child { border-bottom: 1px solid var(--line); }
.defrow h3 { margin: 0; }
@media (max-width: 700px) { .defrow { grid-template-columns: 1fr; gap: 8px; } }

/* ------------------------- Forms ------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--navy);
  padding: 13px 15px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--warm-white); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.9rem; color: var(--slate-soft); }

.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.contact-card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin-bottom: 0.5em; }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  background: var(--warm-white); border: 2px solid var(--line); border-radius: 999px;
  padding: 10px 18px; color: var(--navy);
}
.social-link:hover { text-decoration: none; border-color: var(--coral); color: var(--coral); }
.social-link .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }

/* ------------------------- CTA band (calm navy, accents in buttons) ------------------------- */
.cta-band {
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: #DCE6F0; border-radius: 24px; padding: 54px 40px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .lede { color: #C6D3DF; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--navy); }

/* ------------------------- Footer ------------------------- */
.site-footer { background: var(--navy-deep); color: #B6C6D7; padding: 64px 0 30px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: var(--gold); }
.footer-brand p { max-width: 38ch; color: #9DB1C5; margin-top: 14px; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.88rem; color: #8499AE; }
.footer-bottom a { color: #B6C6D7; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 14px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.lead-tag { color: var(--coral); font-weight: 700; }

/* Bold text on dark sections/panels must stay light enough to read */
.section--ocean strong, .section--forest strong, .panel strong, .cta-band strong { color: #fff; }
.panel--cream strong, .panel--accent strong { color: var(--navy); }

/* Compact multi-column list for the program library */
.collist { columns: 3 230px; column-gap: 34px; list-style: none; margin: 0; padding: 0; }
.collist li { break-inside: avoid; padding: 0 0 11px 22px; position: relative; font-weight: 600; }
.collist li span { display: block; font-weight: 400; font-size: 0.92rem; color: var(--slate); }
.collist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.section--ocean .collist li span, .section--forest .collist li span { color: #CBD8E4; }
.section--ocean .collist li::before, .section--forest .collist li::before { background: var(--gold); }

/* Tier rail (customization tiers) */
.tier { border-left: 4px solid var(--gold); padding: 2px 0 2px 22px; margin-bottom: 24px; }
.tier h3 { margin: 0 0 5px; }
.tier p { margin: 0; }

/* Book card */
.book { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.book__spine { height: 8px; }
.book__body { padding: 22px 22px 24px; }
.book__body h3 { margin: 0 0 6px; font-size: 1.22rem; }
.book__body p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* Pricing display */
.price { font-family: var(--serif); font-size: 1.7rem; color: var(--coral); line-height: 1; margin: 2px 0 10px; }
.price .per { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; color: var(--slate); }
.price--free { color: var(--teal); }
.card--featured { border: 2px solid var(--coral); }
.badge { display: inline-block; background: var(--coral); color: #fff; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.badge--soft { background: var(--cream-2); color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ------------------------- Small-phone refinements ------------------------- */
@media (max-width: 600px) {
  .container { padding: 0 28px; }            /* more side breathing room so text isn't at the edge */
  .hero__inner { padding: 44px 0 56px; }     /* lighter top on phones */
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.5rem); }  /* headline no longer crowds the edges */
  .section { padding: 62px 0; }              /* tighter vertical rhythm on mobile */
}
