/* ==========================================================================
   Oakhurst Learning — site stylesheet
   Design notes:
   - Dyslexia-friendly by design: sans-serif, 18px+ body, generous spacing,
     left-aligned text only, off-white background (never pure white/black).
   - Colours checked against WCAG 2.1 AA on their actual backgrounds.
   - No JavaScript required anywhere on the site.
   ========================================================================== */

:root {
  /* Palette: cool off-white, deep emerald green, dark-grey accent */
  --cream: #f3f6f7;        /* page background (cool off-white, never pure white) */
  --cream-deep: #e4edee;   /* alternate section background (pale grey-green) */
  --ink: #29302f;          /* body text — soft near-black, slightly cool */
  --green: #14624a;        /* primary green (buttons, links, headings) */
  --green-deep: #0d4736;   /* hover / footer background */
  --slate: #44514e;        /* dark grey accent (AA on cream as text) */
  --sage: #d7e7e6;         /* soft green tint for cards/banners */
  --line: #c4d4d3;         /* hairline borders */
  --focus: #283330;        /* visible keyboard focus ring (dark grey-green) */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  /* faint green glows — soft green top-right, pale grey-green bottom-left — over the cream base */
  background:
    radial-gradient(55rem 38rem at 108% -8%, #d3e6e0 0%, rgb(211 230 224 / 0) 62%),
    radial-gradient(45rem 32rem at -15% 108%, #dfe6e3 0%, rgb(223 230 227 / 0) 58%),
    var(--cream);
  color: var(--ink);
  /* Lexend: designed for reading fluency — dyslexia-friendly and modern */
  font-family: "Lexend", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;          /* 18px */
  line-height: 1.75;
  text-align: left;             /* never justified */
  -webkit-text-size-adjust: 100%;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  /* Fraunces: a soft, characterful serif — warmth without the corporate */
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--green);
  line-height: 1.25;
  margin: 0 0 0.75em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.3rem; color: var(--green); }

/* a small accent flourish under top-level section headings */
main > section > .wrap > h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  border-radius: 2px;
  background: var(--slate);
  opacity: 0.65;
  margin-top: 0.55rem;
}

p { margin: 0 0 1.25em; max-width: 38em; }   /* keep line length readable */
li { margin-bottom: 0.5em; }
ul, ol { padding-left: 1.4em; max-width: 36em; }

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(68 81 78 / 0.5);   /* soft grey underline */
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--green-deep); text-decoration-color: var(--slate); }

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

img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--cream);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

main { display: block; }

section { padding: 3.25rem 0; }

/* alt sections float as soft rounded panels rather than full-bleed bands */
.section-alt {
  background: var(--cream-deep);
  border-radius: 2.25rem;
  margin: 0.75rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

@media (min-width: 46rem) {
  .section-alt { margin: 1rem 1.25rem; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 0.9rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.lockup svg { flex: none; }

.lockup .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
  display: block;
}

.lockup .strap {
  font-size: 0.85rem;
  color: var(--ink);
  display: block;
  margin-top: 0.15rem;
}

.site-nav {
  margin-top: 0.9rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  padding: 0.3em 0;
  display: inline-block;
}

.site-nav a:hover { text-decoration: underline; }

.site-nav a[aria-current="page"] {
  border-bottom: 3px solid var(--slate);
}

/* ---------- Hero ---------- */

.hero { padding: 3.25rem 0; }

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 46rem) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

/* Never let an image's intrinsic size force a grid column wider than its
   track — keeps the layout intact even while images load (or fail). */
.hero-grid > *,
.card-grid > * { min-width: 0; }

.hero .lede {
  font-size: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;               /* soft pill */
  border: 2px solid var(--green);
  box-shadow: 0 3px 12px rgb(13 71 54 / 0.22);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgb(13 71 54 / 0.28);
}

.btn:active { transform: translateY(0); }

.btn-secondary { box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--green);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--sage);
  color: var(--green-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}

/* ---------- Reassurance microcopy (under CTAs) ---------- */

.reassure {
  font-size: 0.95rem;
  color: #545b5a;
  margin-top: 0.9rem;
}

.reassure .sep { color: var(--slate); padding: 0 0.35em; }

/* ---------- How it works (numbered steps) ---------- */

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 46rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step h3 { margin-bottom: 0.4em; }

/* ---------- Icons & illustration ---------- */

/* friendly hand-drawn-feel line icons — rounded joins, gentle weight */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* circular tinted badge that holds an icon */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  margin-bottom: 0.9rem;
}

.icon-badge .ico { width: 1.7rem; height: 1.7rem; }

/* small sentence-case kicker above a heading (never all-caps — easier to read) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--green);
  margin: 0 0 0.5rem;
}

.eyebrow .ico { width: 1.05rem; height: 1.05rem; flex: none; }

/* a compact icon list — used for "areas of support" */
.icon-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 46rem) {
  .icon-list { grid-template-columns: repeat(2, 1fr); }
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
}

.icon-list .ico {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  color: var(--green);
  margin-top: 0.15rem;
}

.icon-list h3 { font-size: 1.1rem; margin: 0 0 0.2em; }
.icon-list p { margin: 0; }

/* faint oak-leaf watermark tucked into the soft panels for warmth */
.section-alt { position: relative; overflow: hidden; }

.section-alt > .wrap { position: relative; z-index: 1; }

@media (min-width: 46rem) {
  .section-alt::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -4rem;
    width: 18rem;
    height: 18rem;
    background: no-repeat center/contain
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path d="M22 4 C16 10 10 12 8 20 C6 28 12 36 22 40 C32 36 38 28 36 20 C34 12 28 10 22 4 Z" fill="%2314624a"/></svg>');
    opacity: 0.05;
    transform: rotate(-12deg);
    pointer-events: none;
  }
}

/* leaf divider — a small Oakhurst leaf between thin rules, threaded between
   sections to carry the motif down the page */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(100% - 2.5rem, 22rem);
  margin: 0.25rem auto;
  color: var(--green);
}

.leaf-divider::before,
.leaf-divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.leaf-divider::before { background: linear-gradient(to left, var(--line), rgb(196 212 211 / 0)); }
.leaf-divider::after  { background: linear-gradient(to right, var(--line), rgb(196 212 211 / 0)); }

.leaf-divider svg { width: 1.7rem; height: 1.7rem; flex: none; }

/* content-list bullets become small leaves (skips icon lists and nav) */
main ul:not(.icon-list) {
  list-style: none;
  padding-left: 0;
}

main ul:not(.icon-list) li {
  position: relative;
  padding-left: 1.85rem;
}

main ul:not(.icon-list) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.05rem;
  height: 1.05rem;
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path d="M22 4 C16 10 10 12 8 20 C6 28 12 36 22 40 C32 36 38 28 36 20 C34 12 28 10 22 4 Z" fill="%2314624a"/></svg>');
}

/* a little leaf sprouting from each numbered step */
.step-num { position: relative; overflow: visible; }

.step-num::after {
  content: "";
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  width: 1.15rem;
  height: 1.15rem;
  transform: rotate(28deg);
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path d="M22 4 C16 10 10 12 8 20 C6 28 12 36 22 40 C32 36 38 28 36 20 C34 12 28 10 22 4 Z" fill="%2314624a"/><path d="M22 11 V33" stroke="%23f3f6f7" stroke-width="3" stroke-linecap="round"/></svg>');
}

/* ---------- Card "learn more" links ---------- */

.card-link {
  font-weight: 700;
  text-decoration-color: var(--slate);
}

.card-link::after {
  content: " \2192";          /* arrow, decorative */
  color: var(--slate);
}

/* ---------- Footer CTA ---------- */

.btn-footer {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-deep);
  box-shadow: none;
}

.btn-footer:hover,
.btn-footer:focus-visible {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--green-deep);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 46rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.thirds { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 2px 10px rgb(41 48 47 / 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgb(41 48 47 / 0.1);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.section-alt .card { background: var(--cream); }

.card .price {
  font-weight: 700;
  color: var(--slate);
  font-size: 1.05rem;
}

/* ---------- Notice banner (assessments coming soon) ---------- */

.notice {
  background: linear-gradient(135deg, var(--sage), #cbe0d8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  margin: 2rem 0 0;
  box-shadow: 0 2px 10px rgb(41 48 47 / 0.05);
}

.notice h2, .notice h3 { margin-top: 0; }

/* ---------- Testimonials ---------- */

blockquote {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.75rem 1.5rem 3.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--slate);
  border-radius: 4px 20px 20px 20px;
  box-shadow: 0 2px 10px rgb(41 48 47 / 0.05);
  max-width: 42em;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.9rem;
  top: 0.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--slate);
  opacity: 0.55;
}

blockquote p { margin-bottom: 0.5em; }

blockquote footer {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.placeholder-note {
  background: #fdf3d7;
  border: 1px dashed #b08a2e;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  max-width: 42em;
}

/* ---------- Forms ---------- */

form { max-width: 34rem; }

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field { margin-bottom: 1.4rem; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fbfdfd;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.7em 0.9em;
}

input:focus, textarea:focus { border-color: var(--green); }

/* style the native file-picker button to match the design system */
input[type="file"] { border: none; background: none; padding: 0.3em 0; }

input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  color: var(--green);
  background: var(--sage);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  margin-right: 0.9em;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover { background: #c4ddd8; }

.hint {
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
  color: #545b5a;
}

/* honeypot — hidden from humans, traps bots */
.hp { position: absolute; left: -9999px; }

/* ---------- Contact CTAs ---------- */

.contact-ctas {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 1rem;
  max-width: 26rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  text-align: center;
}

.btn-icon svg { flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
  margin-top: 3.5rem;
  font-size: 1rem;
  border-radius: 2.25rem 2.25rem 0 0;   /* soft curve into the footer */
}

/* faint leaf cluster tucked into the footer corner */
.site-footer::before {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: 16rem;
  height: 16rem;
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path d="M22 4 C16 10 10 12 8 20 C6 28 12 36 22 40 C32 36 38 28 36 20 C34 12 28 10 22 4 Z" fill="%23f3f6f7"/></svg>');
  opacity: 0.06;
  transform: rotate(14deg);
  pointer-events: none;
}

.site-footer .wrap { position: relative; z-index: 1; }

.site-footer .strap {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

.site-footer a { color: var(--cream); }

.site-footer p { margin-bottom: 0.6em; }

.site-footer .strap {
  font-weight: 700;
}

.footer-small {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-top: 1.4rem;
}

/* ---------- Waitlist popup ---------- */

dialog.popup {
  border: none;
  border-top: 6px solid var(--slate);
  border-radius: 24px;
  padding: 2.25rem;
  width: min(92vw, 28rem);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.3);
}

dialog.popup::backdrop {
  background: rgb(41 48 47 / 0.55);
}

dialog.popup h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

dialog.popup form { max-width: none; }

dialog.popup .btn-row { margin-top: 0.5rem; }

/* ---------- Mobile refinements ---------- */

@media (max-width: 45.99rem) {

  /* centred masthead: icon over name over a one-line strapline — symmetry
     reads composed on a narrow screen, where the desktop's left-cluster
     leaves a ragged edge against the nav below it */
  .site-header { padding: 1.1rem 0 0.5rem; }

  .lockup {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
  }

  .lockup svg { width: 34px; height: 34px; }
  .lockup .name { font-size: 1.2rem; }

  .lockup .strap {
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    margin-top: 0.2rem;
    text-wrap: balance;
  }

  .site-nav { margin-top: 0.7rem; }

  .site-nav ul {
    flex-wrap: nowrap;            /* one tidy line — no orphaned items */
    justify-content: center;
    gap: 0.875rem;
    overflow-x: auto;             /* safety valve on very narrow screens */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav ul::-webkit-scrollbar { display: none; }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.55em 0;            /* ≥44px touch target */
    white-space: nowrap;
  }

  /* tighter hero: smaller, balanced headline; content reaches CTAs sooner */
  .hero { padding: 2rem 0 2.25rem; }

  h1 { font-size: 1.65rem; line-height: 1.3; }

  .hero .lede { font-size: 1.15rem; }

  /* calmer rhythm and full-width, thumb-friendly buttons */
  section { padding: 2.5rem 0; }

  .btn-row .btn {
    display: block;
    width: 100%;
    max-width: 26rem;
    text-align: center;
  }

  /* slightly gentler organic corners at small sizes */
  .figure-img { border-radius: 1.25rem 3.25rem 1.25rem 3.25rem; }

  /* photo first on mobile (e.g. Nicole's photo on the About page) */
  .hero-grid .hero-media { order: -1; }
  .hero-grid .hero-media .figure-img { margin-bottom: 0.5rem; }

  /* popup: tighter padding, never taller than the screen */
  dialog.popup {
    padding: 1.5rem;
    max-height: 85dvh;
    overflow-y: auto;
  }

  dialog.popup .btn-row .btn { width: 100%; max-width: none; }
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.figure-img {
  /* organic, leaf-like asymmetric corners */
  width: 100%;
  height: auto;
  border-radius: 1.5rem 5rem 1.5rem 5rem;
  box-shadow: 0 14px 36px rgb(41 48 47 / 0.16);
}
