/* PeakThinkSprout Tutoring - Clean forest-green theme */

/* Layout: a calm forest-green hero, then a warm cream programs grid with a
   growing "path" motif running down the page as the connecting thread. */

:root {
  --bg: #f6f3e9;
  --surface: #ffffff;
  --ink: #15312a;
  --muted: #55695f;
  --forest: #1d4a3f;
  --sprout: #8fd14f;
  --sun: #f4b942;
  --line: #d9dfd0;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f211d;
    --surface: #173229;
    --ink: #eef3e6;
    --muted: #a9bdb2;
    --forest: #2f6b5b;
    --sprout: #9fe26a;
    --sun: #f7c85c;
    --line: #2b4a40;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f211d;
  --surface: #173229;
  --ink: #eef3e6;
  --muted: #a9bdb2;
  --forest: #2f6b5b;
  --sprout: #9fe26a;
  --sun: #f7c85c;
  --line: #2b4a40;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
}

.brand svg { width: 34px; height: 34px; }

nav.links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav.links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav.links a:hover { color: var(--ink); }

/* Hero */
.hero {
  background: var(--forest);
  color: #f3f7ee;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 48px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--sprout);
}

.hero p.lede {
  font-size: 1.12rem;
  color: #d6e3d6;
  max-width: 34em;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--sprout);
  color: #10291f;
  transition: transform .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.ghost {
  background: transparent;
  color: #f3f7ee;
  border: 1.5px solid #a7c4b5;
  margin-left: 10px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: min(100%, 320px);
  height: auto;
}

/* Section base */
section { padding-block: clamp(48px, 8vw, 88px); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin: 0 0 10px;
}

:root[data-theme="dark"] .eyebrow,
:root:not([data-theme="light"]) .eyebrow {
  color: var(--sprout);
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

.sub {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 36px;
}

/* Programs */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.program {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.program .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sprout) 22%, transparent);
}

.program .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--forest);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root:not([data-theme="light"]) .program .icon svg {
  stroke: var(--sprout);
}

.program h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0;
}

.program p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.levels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.levels span {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.levels span b { color: var(--forest); }

:root:not([data-theme="light"]) .levels span b {
  color: var(--sprout);
}

/* How it works: a growing path */
.path {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.step .dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: #3a2a05;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
}

.step h3 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Approach */
.approach {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.quotes div {
  border-top: 3px solid var(--sprout);
  padding-top: 14px;
}

.quotes strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.quotes span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact { text-align: center; }

.contact h2 { margin-inline: auto; }

.contact .sub { margin-inline: auto; }

.email-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  font-weight: 600;
}

.email-box button {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--forest);
  color: #f3f7ee;
  transition: transform 0.15s ease, background 0.2s ease;
}

.email-box button:hover {
  background: #15342b;
  transform: translateY(-2px);
}

.note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-art { order: -1; }

  .hero-art svg { width: 200px; }

  .btn.ghost {
    margin-left: 0;
    margin-top: 12px;
    display: inline-block;
  }

  nav.links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .step .dot {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .program { transition: none; }
  .step { transition: none; }
  .email-box button { transition: none; }
}

