/* BestStep Tutoring — site styles */

@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/dm-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/outfit-600.woff2") format("woff2"); }

:root {
  --navy: #1B2A4A;
  --navy-2: #263B63;
  --navy-3: #32497A;
  --gold: #C9A227;
  --gold-2: #D9B547;
  --cream: #FBF8F1;
  --cream-2: #F4EFE3;
  --white: #FFFFFF;
  --ink: #1B2A4A;
  --ink-2: #4A5672;
  --line: #E3DCCB;
  --line-2: #CFC5AF;
  --error: #A3261B;
  --ok: #1F6B4A;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 116px);
  --radius: 12px;
  --shadow: 0 24px 60px -32px rgba(27, 42, 74, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-3); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.75rem, 4.6vw + 1rem, 4.75rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 2.4vw + 1.15rem, 3rem); line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--gold-2); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #E9ECF3; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; margin: 0; }
.section--navy .section-head p { color: #C9D0DE; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.01em;
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.text-link { font-weight: 600; color: var(--navy); }

/* Header */
.site-header { position: sticky; z-index: 50; background: rgba(251, 248, 241, 0.97); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(27,42,74,.5); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand svg { width: 46px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.75rem; line-height: 1; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button.nav-drop {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px;
  font: 500 .96875rem/1.2 var(--sans); color: var(--navy); text-decoration: none;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.main-nav a:hover, .main-nav button.nav-drop:hover { background: var(--cream-2); color: var(--navy); }
.nav-item { position: relative; }
.nav-drop svg { width: 12px; height: 12px; transition: transform .15s ease; }
.nav-drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.dropdown[hidden] { display: none; }
.main-nav .dropdown ul { display: block; }
.main-nav .dropdown a { display: flex; width: 100%; padding: 10px 12px; }
.dropdown small { display: block; color: var(--ink-2); font-size: .8125rem; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(27,42,74,.45); max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 2px; }
  .main-nav a, .main-nav button.nav-drop { width: 100%; justify-content: space-between; font-size: 1.0625rem; padding: 12px 8px; }
  .dropdown { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; min-width: 0; }
  .header-actions .header-phone { display: none; }
}
@media (max-width: 480px) {
  .header-actions .btn { padding: 10px 14px; font-size: .9375rem; }
  .brand span { font-size: 1.5rem; }
  .brand svg { width: 40px; }
  .header-inner { gap: 12px; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 100px); background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-rows: auto 1fr; grid-template-areas: "copy form" "extra form"; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: start; }
.hero-copy { grid-area: copy; }
.hero-extra { grid-area: extra; }
.hero-grid > .match-card { grid-area: form; }
.stair { margin: 0 0 28px; }
.stair span { display: block; white-space: nowrap; }
.stair span:nth-child(2) { padding-left: 0.9em; }
.stair span:nth-child(3) { padding-left: 1.8em; }
.stair-rule { display: block; width: 100%; max-width: 560px; height: auto; margin: -4px 0 28px; }
.hero-sub { font-size: clamp(1.125rem, .4vw + 1rem, 1.3125rem); color: var(--ink-2); max-width: 34em; margin-bottom: 18px; }
.hero-motto { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin: 0 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.hero-points svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.hero-photo { position: relative; margin: 36px 14px 14px 0; }
.hero-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: 20px; }
.hero-photo img { position: relative; display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "copy" "form" "extra"; }
  .hero-sub { margin-bottom: 28px; }
  .hero-extra { margin-top: 36px; }
}
@media (max-width: 420px) {
  .stair span { white-space: normal; }
  .stair span:nth-child(2) { padding-left: 0.6em; }
  .stair span:nth-child(3) { padding-left: 1.2em; }
}

/* Intake form */
.match-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); scroll-margin-top: 96px; }
.match-card h2 { font-size: clamp(1.625rem, 1vw + 1.2rem, 2rem); margin-bottom: 6px; }
.match-intro { color: var(--ink-2); margin-bottom: 18px; font-size: 1rem; }
.match-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2); color: var(--navy); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: .875rem; font-weight: 500; margin-bottom: 14px; }
.match-chip button { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.match-chip button:hover { background: var(--line); }
.progress { margin-bottom: 20px; }
.progress-label { display: flex; justify-content: space-between; font-size: .875rem; color: var(--ink-2); margin-bottom: 8px; }
.progress-label strong { color: var(--navy); font-weight: 600; }
.progress-track { height: 6px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 16.66%; background: var(--gold); border-radius: 99px; transition: width .3s ease; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step legend { font-family: var(--serif); font-size: 1.375rem; color: var(--navy); padding: 0; margin-bottom: 14px; line-height: 1.25; }
.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--navy); }
.field-hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .875rem; margin-top: 2px; }
.optional { font-weight: 400; color: var(--ink-2); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 104px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231B2A4A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 162, 39, .45); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--cream); font: inherit; font-size: .9375rem; }

.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices--2, .choices--3 { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-size: .9688rem; line-height: 1.35; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--line-2); }
.choice input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: #F6F3EA; }
.choice small { display: block; color: var(--ink-2); font-size: .8125rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); }

.form-error { color: var(--error); font-size: .875rem; font-weight: 500; margin-top: 6px; }
.form-error:empty { display: none; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: .9375rem; margin: 8px 0 16px; }
.notice--info { background: #EEF1F7; color: var(--navy); }
.notice--warn { background: #FBF1D9; color: #5A4304; }
.notice[hidden] { display: none; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-nav .btn { flex: 0 1 auto; }
.form-nav [data-back][hidden] { display: none; }
.form-nav .spacer { flex: 1; }
.form-fineprint { font-size: .8125rem; color: var(--ink-2); margin: 14px 0 0; }
.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.form-success h3 { margin-bottom: 10px; }
.success-mark { width: 48px; height: 48px; margin-bottom: 12px; }

/* Why families choose */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-photo { margin: 0; }
.why-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-photo { order: -1; } .why-photo img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 42% 45%; } }
.compare { border-top: 2px solid var(--navy); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px 48px; }
.compare-head { padding: 14px 0; font-weight: 600; font-size: .9375rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.compare-head span:last-child { color: var(--navy); }
.compare-row { padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.compare-typical { color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.compare-typical svg, .compare-best svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.compare-best { display: flex; gap: 14px; align-items: flex-start; }
.compare-best strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--navy); margin-bottom: 4px; }
.compare-best p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 10px; }
  .compare-typical::before { content: "Typical: "; font-weight: 600; }
}

/* Learning plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; display: flex; flex-direction: column; scroll-margin-top: 100px; }
.plan { overflow: hidden; }
.plan-photo { margin: -26px -24px 20px; aspect-ratio: 3 / 2; background: var(--cream-2); }
.plan-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plan h3 { margin-bottom: 2px; }
.plan-grades { color: var(--ink-2); font-size: .9375rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .9688rem; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--gold); transform: translateY(-4px); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Local */
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; } }
.area-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.area-list li { display: flex; gap: 10px; align-items: center; color: var(--white); font-weight: 500; }
.area-list svg { flex: none; width: 18px; height: 18px; }
.zoom-note { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px 20px 14px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); color: #DCE1EB; }
.zoom-note p { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.zoom-note svg { flex: none; width: 26px; height: 26px; }
.zoom-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 560px) { .zoom-note { grid-template-columns: 1fr; padding: 14px; } }
.zoom-note strong { color: var(--white); }
.map-figure { margin: 0; }
.map-figure svg { width: 100%; height: auto; display: block; }
.map-figure figcaption { font-size: .8125rem; color: #AEB7C9; margin-top: 10px; }

/* How it works staircase */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 28px 32px; border-top: 4px solid var(--gold); background: var(--cream); counter-increment: step; }
.step:nth-child(1) { min-height: 250px; background: var(--cream-2); }
.step:nth-child(2) { min-height: 330px; background: #EDE6D5; }
.step:nth-child(3) { min-height: 410px; background: var(--navy); color: #DCE1EB; }
.step:nth-child(3) h3 { color: var(--white); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); font-family: var(--serif); font-size: 1.375rem; color: var(--navy); margin-bottom: 18px; }
.step:nth-child(3) .step-num { border-color: var(--gold); color: var(--gold); }
.step p { margin: 0; }
.step:nth-child(1) p, .step:nth-child(2) p { color: var(--ink-2); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: 0 !important; }
  .step:nth-child(2) { margin-left: 24px; }
  .step:nth-child(3) { margin-left: 48px; }
}
@media (max-width: 420px) {
  .step:nth-child(2) { margin-left: 12px; }
  .step:nth-child(3) { margin-left: 24px; }
}

/* Pricing */
.price-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.price-tabs button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; font: 600 .9688rem/1.2 var(--sans); color: var(--ink-2); cursor: pointer; }
.price-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.price-tabs button:hover:not([aria-selected="true"]) { background: var(--cream-2); color: var(--navy); }
.price-tabs small { display: block; font-weight: 400; font-size: .8125rem; opacity: .85; }
@media (max-width: 640px) {
  .price-tabs { display: grid; grid-template-columns: 1fr; width: 100%; }
  .price-tabs button { text-align: left; padding: 12px 16px; }
}
.new-family { display: flex; align-items: center; gap: 12px; background: var(--navy); color: var(--white); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-weight: 500; }
.new-family svg { flex: none; width: 26px; height: 26px; }
.new-family strong { color: var(--gold); font-weight: 600; }
.new-family[hidden] { display: none; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.offers[hidden] { display: none; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }
.offer { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 26px; }
.offer h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; margin-bottom: 14px; color: var(--navy); }
.offer-price { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--navy); margin-bottom: 6px; }
.offer-unit { color: var(--ink-2); font-size: .9375rem; margin-bottom: 18px; }
.offer-first { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-bottom: 22px; font-size: .9375rem; color: var(--ink); }
.offer-first strong { font-weight: 600; }
.offer-first[hidden] { display: none; }
.offer-note { font-size: .9375rem; color: var(--ink-2); margin-bottom: 22px; }
.offer .btn { margin-top: auto; }
.offer--best { background: var(--navy); border-color: var(--navy); color: #DCE1EB; }
.offer--best h3, .offer--best .offer-price { color: var(--white); }
.offer--best .offer-unit, .offer--best .offer-note { color: #C9D0DE; }
.offer--best .offer-first { border-top-color: rgba(255,255,255,.25); color: #E9ECF3; }
.offer-badge { position: absolute; top: -14px; left: 24px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; }
.price-fine { margin-top: 22px; font-size: .9375rem; color: var(--ink-2); }

/* Tutors and safety */
.safety-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .safety-grid { grid-template-columns: 1fr; } }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.promise-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.promise-list svg { width: 40px; height: 40px; }
.promise-list h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 6px 0 4px; }
.promise-list p { margin: 0; color: var(--ink-2); }
.profiles-placeholder { border: 2px dashed var(--line-2); border-radius: 16px; padding: 28px; background: var(--cream); }
.profiles-placeholder svg { width: 72px; height: 72px; margin-bottom: 12px; }
.profiles-placeholder h3 { margin-bottom: 8px; }
.profiles-placeholder p { color: var(--ink-2); margin: 0; }

/* Reviews */
.reviews-empty { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 34px); margin-bottom: 20px; }
.reviews-empty { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.reviews-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.reviews-empty p { font-family: var(--serif); font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); line-height: 1.25; color: var(--navy); margin: 0 0 6px; }
.reviews-empty small { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 560px) { .reviews-empty { grid-template-columns: 1fr; } }
.review-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review-form-wrap > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(20px, 3vw, 32px); font-weight: 600; font-size: 1.0625rem; color: var(--navy); min-height: 64px; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form-wrap > summary svg { width: 18px; height: 18px; transition: transform .15s ease; }
.review-form-wrap[open] > summary svg { transform: rotate(45deg); }
.review-form { padding: 4px clamp(20px, 3vw, 32px) clamp(22px, 3vw, 32px); border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.stars { border: 0; padding: 0; margin: 0 0 18px; }
.stars legend { font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--navy); padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.star-row label svg { width: 32px; height: 32px; fill: none; stroke: var(--line-2); stroke-width: 1.6; transition: fill .1s ease, stroke .1s ease; }
.star-row input:checked ~ label svg, .star-row label:hover svg, .star-row label:hover ~ label svg { fill: var(--gold); stroke: #A8861A; }
.star-row input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.char-count { display: block; text-align: right; font-size: .8125rem; color: var(--ink-2); margin-top: 4px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 108px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; margin-bottom: 8px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.125rem; color: var(--navy); min-height: 60px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 18px; height: 18px; transition: transform .15s ease; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Resources / article cards */
.article-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
@media (max-width: 960px) { .article-cards { grid-template-columns: 1fr; max-width: 560px; } }
.article-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: 16px; overflow: hidden; background: var(--navy); color: var(--white); text-decoration: none; isolation: isolate; }
.article-card .card-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.article-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,30,54,0) 18%, rgba(19,30,54,.9) 56%, rgba(19,30,54,.97) 100%); }
.article-card-body { padding: 24px; }
.article-card time { display: block; font-size: .875rem; color: #C9D0DE; margin-bottom: 8px; }
.article-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 14px; }
.article-card .read-more { font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 4px; }
.article-card:hover { color: var(--white); }
.article-card:hover .read-more { color: var(--white); }
.article-card:focus-visible { outline-offset: 4px; }

.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .resource-list { grid-template-columns: 1fr; } }
.resource-card { display: grid; grid-template-rows: 220px auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.resource-card .card-art { width: 100%; height: 220px; display: block; }
.resource-card-body { padding: 22px 24px 26px; }
.resource-card time { display: block; font-size: .875rem; color: var(--ink-2); margin-bottom: 6px; }
.resource-card h2 { font-size: 1.625rem; margin-bottom: 8px; }
.resource-card p { color: var(--ink-2); margin-bottom: 12px; }
.resource-card .read-more { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.resource-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Closing CTA */
.cta-band { background: var(--navy); color: #DCE1EB; padding-block: clamp(56px, 7vw, 92px); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { max-width: 36em; margin: 0 auto 28px; color: #C9D0DE; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.cta-actions a.cta-phone { color: var(--white); font-weight: 600; }

/* Footer */
.site-footer { background: var(--cream-2); padding-block: 56px 32px; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { width: 150px; height: auto; display: block; margin-bottom: 8px; }
.site-footer h2 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--navy); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { flex: none; width: 18px; height: 18px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .875rem; }
.photo-credits { margin: 14px 0 0; font-size: .75rem; line-height: 1.5; color: var(--ink-2); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600; font-size: .9375rem; box-shadow: 0 16px 36px -14px rgba(27,42,74,.7); border: 2px solid var(--gold); }
.wa-float:hover { background: var(--navy-2); color: var(--white); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float[hidden] { display: none; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* Interior pages */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.page-hero p { color: var(--ink-2); font-size: 1.1875rem; max-width: 40em; margin: 0; }
.page-hero--photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-photo { margin: 0; }
.page-hero-photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero--photo .wrap { grid-template-columns: 1fr; } }
.breadcrumb { font-size: .9375rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-2); }

.prose { max-width: 700px; font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.25rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--navy); }
.prose strong { font-weight: 600; color: var(--navy); }
.prose a { color: var(--navy); }
.prose .note { font-size: 1rem; color: var(--ink-2); }

.article-header { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: .9688rem; margin-bottom: 0; }
.article-art { display: block; width: 100%; height: auto; border-radius: 18px; margin: 28px 0 40px; }
.article-sources { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 1rem; }
.article-sources h2 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-top: 0; }
.article-contact { margin-top: 2em; padding: 18px 20px; background: var(--cream-2); border-radius: 12px; font-size: 1rem; color: var(--ink); }
.article-contact a { font-weight: 600; }
.article-back { margin-top: 2.2em; }

.legal { max-width: 760px; font-size: 1.0625rem; }
.legal h2 { font-size: 1.75rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.3em; }
.legal .updated { color: var(--ink-2); }
.placeholder-text { background: #FBF1D9; color: #5A4304; padding: 0 4px; border-radius: 4px; }

.tutor-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .tutor-grid { grid-template-columns: 1fr; } }
.look-for { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.look-for li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.look-for svg { width: 28px; height: 28px; }
.look-for h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin: 2px 0 2px; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.form-panel h2 { font-size: 1.875rem; }

.notfound { min-height: 60vh; display: grid; align-content: center; }

/* Article banner and title sizing */
.article-art { aspect-ratio: 1200 / 440; background: var(--navy); }
.article-header h1 { font-size: clamp(2.25rem, 2.6vw + 1.1rem, 3.5rem); line-height: 1.08; }

/* Safe-area offset for the sticky header, and the preview-copy notice */
.site-header { top: env(safe-area-inset-top, 0px); }
.preview-bar { background: var(--navy-2); color: var(--white); font-size: .875rem; line-height: 1.4; text-align: center; padding: 8px max(16px, env(safe-area-inset-left, 0px)); }
.preview-note { font-size: .875rem; color: var(--ink-2); font-style: italic; margin-top: 8px; }
