/* Mighty Minds Tutoring: professional navy + gold.
   Layout: navy masthead and hero, then calm paper sections ruled with gold; cards only where an item is a separate object (a tutor, a form, a fee). */
:root {
  --navy: var(--mm-navy, #0A1E4A);
  --navy-2: var(--mm-navy-field, #0C1C4D);
  --gold: var(--mm-gold, #D6A037);
  --gold-2: var(--mm-gold-dark, #B78326);
  --cream: var(--mm-cream, #FDEDCD);

  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --tint: #F4EEDF;
  --fg: var(--mm-ink, #0F172D);
  --muted: #4A5573;
  --line: rgba(10, 30, 74, .14);
  --link: var(--mm-teal-dark, #0A566C);
  --ok: #2F7A4F;
  --on-navy: #FDF6E6;
  --on-navy-muted: #C4CCE0;
  --shadow: 0 1px 2px rgba(10, 30, 74, .06), 0 8px 24px rgba(10, 30, 74, .07);

  --head: "Graduate", "Rockwell", Georgia, serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1636; --surface: #111F47; --tint: #13224D; --fg: #F3EEE2; --muted: #B7C0D8;
    --line: rgba(253, 237, 205, .14); --link: #7FCBD8; --ok: #7CC79A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1636; --surface: #111F47; --tint: #13224D; --fg: #F3EEE2; --muted: #B7C0D8;
  --line: rgba(253, 237, 205, .14); --link: #7FCBD8; --ok: #7CC79A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--body); overflow-x: clip; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .035em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font: 800 1.2rem/1.3 var(--body); }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 68ch; }
.muted { color: var(--muted); }
.eyebrow { font: 800 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.on-navy .eyebrow { color: var(--gold); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; }
.rule { height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1rem/1 var(--body); padding: 15px 22px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #0F172D; }
.btn-gold:hover { background: #E2AE48; }
.btn-navy { background: var(--navy); color: #FDF6E6; }
.btn-navy:hover { background: #142B63; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(214,160,55,.12); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-navy { background: var(--gold); color: #0F172D; } }
:root[data-theme="dark"] .btn-navy { background: var(--gold); color: #0F172D; }

/* masthead */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid rgba(214,160,55,.35); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; }
.logo { display: block; line-height: 0; flex: none; }
.logo .full { width: 260px; height: auto; }
.logo .mark { width: 48px; height: 48px; display: none; }
@media (max-width: 520px) { .logo .full { display: none; } .logo .mark { display: block; } }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 10px 12px; border-radius: 6px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--gold); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
@media (max-width: 960px) { .menu { display: none; } }
.masthead .btn { flex: none; }

/* sections */
.band { padding-block: 84px; }
.band-tight { padding-block: 56px; }
.band-tint { background: var(--tint); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy .muted { color: var(--on-navy-muted); }
.on-navy a:not(.btn) { color: var(--gold); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 70ch; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.on-navy .sec-head p { color: var(--on-navy-muted); }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 300px; } }
.hero h1 { color: #FFFFFF; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.18rem; color: var(--on-navy-muted); max-width: 54ch; }
.hero-art { justify-self: center; width: 100%; max-width: 420px; position: relative; }
.hero-art img { display: block; width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(214,160,55,.28), transparent 68%); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; color: var(--on-navy); font-weight: 700; font-size: .95rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.path { display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--gold); }
.path .who { font: 800 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.path p { color: var(--muted); }
.path .btn { justify-self: start; margin-top: 6px; }

/* steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 26px 24px 8px 0; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 400 2.2rem/1 var(--head); color: var(--gold-2); }
.steps p { color: var(--muted); font-size: .98rem; }
.on-navy .steps { border-color: rgba(253,246,230,.18); }
.on-navy .steps li::before { color: var(--gold); }
.on-navy .steps p { color: var(--on-navy-muted); }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230F172D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { display: block; }
.checks span { color: var(--muted); }
.on-navy .checks span { color: var(--on-navy-muted); }

/* grade table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 800 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
td:first-child { font: 400 1.1rem/1.2 var(--head); color: var(--fg); white-space: nowrap; }

/* founder */
.founder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; max-width: 300px; width: 100%; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; padding: 20px; position: relative; overflow: hidden; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--gold); }
.portrait .initial { font: 400 4.5rem/1 var(--head); color: var(--navy); display: block; margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portrait .initial { color: var(--gold); } }
:root[data-theme="dark"] .portrait .initial { color: var(--gold); }
blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-size: 1.15rem; font-style: italic; }

/* placeholder marker for unfilled content */
.todo { outline: 2px dashed var(--gold-2); outline-offset: 3px; border-radius: 4px; }
.todo-tag { display: inline-block; font: 800 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #0F172D; background: var(--gold); border-radius: 4px; padding: 4px 7px; vertical-align: middle; margin-left: 6px; }
.preview-note { background: var(--tint); border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.preview-note .wrap { padding-block: 10px; }

/* testimonials */
.quote { display: grid; gap: 14px; align-content: start; }
.stars { color: var(--gold-2); letter-spacing: 3px; }
.quote cite { font-style: normal; font-weight: 800; }

/* forms */
form { display: grid; gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
label, legend { font-weight: 800; font-size: .95rem; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
input, select, textarea { font: 400 1rem var(--body); color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(214,160,55,.25); }
input[type="file"] { padding: 10px; }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
fieldset legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: .95rem; cursor: pointer; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #FDF6E6; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.err { color: #B3261E; font-weight: 700; font-size: .92rem; }
.done { display: grid; gap: 10px; text-align: center; justify-items: center; padding-block: 24px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 1.6rem; color: #0F172D; font-weight: 800; }

.card.on-navy { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.card.on-navy h3 { color: #FFFFFF; }

/* footer */
footer { background: var(--navy-2); color: var(--on-navy); padding-block: 48px 36px; border-top: 4px solid var(--gold); }
footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { font: 800 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--on-navy); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(253,246,230,.15); color: var(--on-navy-muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer .lock { width: 260px; max-width: 100%; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.steps.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps.steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps.steps-5 { grid-template-columns: 1fr; } }
