/* Maven Tutoring — site styles */

@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/karla-latin.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/karla-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/playfair-latin.woff2') format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/great-vibes-latin.woff2') format('woff2'); }

:root {
  --cream: #F6F2E9;
  --paper: #FCFAF3;
  --paper-2: #F9F5EA;
  --green: #172F24;
  --green-hover: #2A4F3E;
  --ink: #2A332B;
  --rule: #C9BC9C;
  --rule-soft: #E2DACA;
  --gold: #8F7648;        /* borders, decoration */
  --gold-text: #7A6440;   /* small gold text on cream (AA) */
  --gold-dark-bg: #B29455;
  --gold-light: #C0A96F;
  --fleuron: #9E7C35;
  --muted: #6B6353;
  --label: #77695C;       /* small grey caps labels (AA) */
  --olive: #6B6B38;
  --mist: #E4DFCF;
  --footer-text: #8FA491;
  --field-border: #9E8F72;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Karla, system-ui, -apple-system, sans-serif;
  --pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); font-family: var(--sans); color: var(--ink); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fleuron); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--green); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; color: var(--cream); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 820px; }
.narrower { max-width: 760px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--rule); }
.site-header .bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px var(--pad); }
.logo { display: flex; align-items: baseline; }
.logo .maven { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 21px; letter-spacing: 5px; text-transform: uppercase; color: var(--green); }
.logo .tutoring { font-family: 'Great Vibes', cursive; font-size: 26px; color: var(--gold); margin-left: -6px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14.5px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav a.btn-nav { background: var(--green); color: var(--cream); padding: 10px 22px; border-radius: 3px; font-size: 13.5px; font-weight: 400; }
.nav a.btn-nav:hover { background: var(--green-hover); color: var(--cream); }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 9px 14px; font: 500 14px var(--sans); color: var(--green); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 15px; padding: 13px 30px; border-radius: 3px; text-align: center; }
.btn-primary { background: var(--green); color: var(--cream); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--cream); }
.btn-outline { border: 1px solid #A98E5F; color: var(--gold-text); }
.btn-outline:hover { background: var(--paper); color: var(--green); }
.btn-light { background: var(--cream); color: var(--green); }
.btn-light:hover { background: #fff; color: var(--green); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.text-link { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }

/* ---------- Common pieces ---------- */
.eyebrow { font-size: 12.5px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 16px; }
.double-rule { display: flex; flex-direction: column; gap: 3px; width: 120px; margin: 0 0 22px; }
.double-rule::before, .double-rule::after { content: ""; border-top: 1px solid var(--rule); }
.center .double-rule, .double-rule.centered { margin-left: auto; margin-right: auto; }
.dark .double-rule::before, .dark .double-rule::after { border-color: rgba(246,242,233,.35); }
.caps { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-text); }
.label { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--label); }
.lede { font-size: 17px; line-height: 1.7; }
.body { font-size: 15.5px; line-height: 1.7; }
.section-title { font-size: 32px; margin-bottom: 10px; }
.section-title.sm { font-size: 30px; }
.note-italic { font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.6; color: var(--olive); }

.band-paper { background: var(--paper); }
.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
.dark { background: var(--green); color: var(--mist); border-top: 2px solid var(--fleuron); border-bottom: 2px solid var(--fleuron); outline: 1px solid var(--rule); outline-offset: 4px; }
.dark.thin { border-top-width: 1px; border-bottom-width: 1px; border-color: var(--rule); }
.dark h2 { color: var(--cream); }

/* Hero with a faint photo wash */
.hero { position: relative; overflow: hidden; }
.hero .wash { position: absolute; inset: 0; opacity: .22; }
.hero .wash img { width: 100%; height: 100%; object-fit: cover; }
.hero .wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,242,233,0) 40%, var(--cream) 96%); }
.hero .wash.flip::after { background: linear-gradient(0deg, rgba(246,242,233,0) 40%, var(--cream) 96%); }
.hero-inner { position: relative; padding: 72px var(--pad) 56px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 48px; line-height: 1.22; margin-bottom: 12px; }

/* Framed box with fleuron */
.framed { position: relative; border: 1px solid var(--green); background: var(--paper-2); padding: 40px 48px 36px; text-align: center; }
.framed::before { content: "❧"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--cream); padding: 0 16px; font-family: var(--serif); font-size: 17px; color: var(--fleuron); line-height: 22px; }
.on-paper .framed::before, .framed.on-paper::before { background: var(--paper); }
.quote { font-family: var(--serif); font-style: italic; color: var(--green); line-height: 1.55; }
.quote strong { font-weight: 600; }

.card { background: var(--paper); border: 1px solid var(--green); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: 22px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 26px; }
.grid-380 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 26px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 34px; }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 34px; }

.split { display: grid; gap: 64px; align-items: center; }
.split.media-right { grid-template-columns: 1fr 420px; }
.split.media-left { grid-template-columns: 320px 1fr; align-items: start; }

.steps .step { display: flex; gap: 16px; text-align: left; }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 58px; line-height: .9; color: var(--rule); flex-shrink: 0; }
.steps .step-title { font-family: var(--serif); font-size: 19px; color: var(--gold-text); margin-bottom: 8px; }
.steps p { font-size: 15px; line-height: 1.65; }
.dark .steps .num { color: var(--gold-dark-bg); font-size: 74px; }
.dark .steps .step-title { color: var(--gold-light); }
.dark .steps p { color: var(--mist); }

.portrait { object-fit: cover; border-radius: 140px; }
.photo { width: 100%; object-fit: cover; border-radius: 6px; }

/* ---------- Home ---------- */
.home-hero .hero-inner { padding: 84px var(--pad) 68px; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-hero .wash { top: -100px; } /* wash continues behind header */
.home-top { position: relative; }
.home-top .site-header { background: transparent; }
.home-top .page-wash { position: absolute; inset: 0; opacity: .22; overflow: hidden; }
.home-top .page-wash img { width: 100%; height: 100%; object-fit: cover; }
.home-top .page-wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,242,233,0) 40%, var(--cream) 96%); }
.home-hero h1 { font-size: 56px; line-height: 1.18; max-width: 860px; }
.home-hero .lede { font-size: 19px; line-height: 1.6; max-width: 640px; }
.fleuron { font-family: var(--serif); font-size: 17px; color: var(--fleuron); }

.stats { display: flex; justify-content: center; flex-wrap: wrap; }
.stat { padding: 24px 40px; text-align: center; border-right: 1px solid var(--rule-soft); }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--serif); font-size: 30px; color: var(--green); }
.stat .label { font-size: 12px; letter-spacing: 1.5px; margin-top: 2px; }
.dark .stats .stat { padding: 22px 36px; border-color: rgba(246,242,233,.22); }
.dark .stats .big { color: var(--cream); font-size: 26px; }
.dark .stats .label { color: var(--gold-dark-bg); }

.service { padding: 34px; gap: 12px; }
.service h3 { font-size: 25px; }
.service p { font-size: 15.5px; line-height: 1.65; }
.service .more { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: auto; padding-top: 8px; }

.reasons { display: flex; flex-direction: column; gap: 20px; }
.reasons h3 { font-size: 18px; margin-bottom: 4px; }
.reasons p { font-size: 15px; line-height: 1.65; }

.result-figures { display: flex; justify-content: center; align-items: center; gap: 34px; margin: 0 0 30px; }
.result-figures .fig { font-family: var(--serif); font-size: 72px; line-height: 1; }
.result-figures .before { color: rgba(246,242,233,.5); }
.result-figures .after { color: var(--gold-dark-bg); }
.result-figures .cap { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.result-figures .before + .cap, .result-figures .cap.before-cap { color: rgba(246,242,233,.7); }
.result-figures .cap.after-cap { color: var(--gold-dark-bg); }
.result-figures .arrow { font-family: var(--serif); font-size: 34px; color: var(--gold-dark-bg); }
.dark p { color: var(--mist); }
.dark .link-light { font-size: 14px; color: var(--gold-light); border-bottom: 1px solid rgba(246,242,233,.4); padding-bottom: 1px; }
.dark .link-light:hover { color: var(--cream); }

/* ---------- Tutoring ---------- */
.stream { background: var(--cream); border: 1px solid var(--green); border-radius: 4px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.stream-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--green); padding-bottom: 12px; }
.stream-head h3 { font-size: 23px; }
.stream-head .price { font-family: var(--serif); font-size: 19px; color: var(--gold-text); white-space: nowrap; }
.stream .strong { font-size: 15.5px; line-height: 1.65; font-weight: 600; color: var(--green); }
.stream p { font-size: 15px; line-height: 1.65; }
.stream ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; display: flex; flex-direction: column; gap: 6px; }

.logistics { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.6; text-align: left; }
.logistics div { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.logistics div:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Reviews ---------- */
.rating-pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rule-soft); background: var(--paper); border-radius: 3px; padding: 10px 20px; font-size: 14px; color: #535C50; }
.stars { color: var(--fleuron); letter-spacing: 2px; }
.review-card { padding: 26px; gap: 12px; color: var(--ink); }
.review-card p { font-size: 15px; line-height: 1.65; }
.review-card strong { font-weight: 600; color: var(--green); }
.review-card .label { font-size: 12px; letter-spacing: 1.5px; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details { background: var(--paper); border: 1px solid #A98E5F; border-radius: 4px; }
.faq-list summary { cursor: pointer; padding: 19px 26px; font-family: var(--serif); font-size: 19px; color: var(--green); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); color: var(--gold); font-size: 22px; flex-shrink: 0; }
.faq-list details[open] summary { border-bottom: 1px solid var(--rule); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 15px; line-height: 1.7; padding: 18px 26px 22px; }
.faq-list h2 { font-size: 24px; margin-bottom: 20px; }

/* ---------- Enquire ---------- */
.form-card { background: var(--paper); border: 1px solid var(--green); border-radius: 4px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-text); }
.field input, .field select, .field textarea {
  font: 15px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink);
  border: 1px solid var(--field-border); border-radius: 3px; background: #fff; padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 13px; letter-spacing: normal; text-transform: none; color: var(--label); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--field-border); border-radius: 3px; background: #fff; padding: 10px 16px; font-size: 14.5px; letter-spacing: normal; text-transform: none; color: var(--ink); cursor: pointer; }
.checks input { accent-color: var(--green); width: 16px; height: 16px; }
.form-card button { background: var(--green); color: var(--cream); font: 15px var(--sans); padding: 14px 30px; border: none; border-radius: 3px; cursor: pointer; }
.form-card button:hover { background: var(--green-hover); }
.form-note { font-size: 13.5px; line-height: 1.6; color: var(--label); }
.hidden-field { display: none; }

/* ---------- Prose (privacy) ---------- */
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--cream); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.footer-cta .line { font-family: var(--serif); font-size: 24px; }
.footer-cta a { border: 1px solid #C6BE84; color: var(--cream); font-size: 14.5px; padding: 12px 28px; border-radius: 3px; }
.footer-cta a:hover { background: rgba(246,242,233,.08); }
.footer-main { border-top: 1px solid rgba(246,242,233,.18); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 13.5px; color: var(--footer-text); line-height: 1.8; }
.footer-grid a { color: var(--mist); }
.footer-grid a:hover { color: #fff; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; max-width: 520px; }
.footer-contact { display: flex; flex-direction: column; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split.media-right, .split.media-left { grid-template-columns: 1fr; gap: 40px; }
  .split.media-left .media { justify-self: center; }
  .split.media-right .media { max-width: 560px; }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .menu-toggle { display: inline-block; }
  .site-header .bar { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 2px; border-top: 1px solid var(--rule-soft); font-size: 16px; }
  .nav a:first-child { border-top: 0; }
  .nav a.btn-nav { margin-top: 12px; text-align: center; padding: 13px 22px; font-size: 15px; border-top: 0; }
  .nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); padding: 4px var(--pad) 18px; border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(23,47,36,.12); }
}

@media (max-width: 640px) {
  .hero-inner { padding: 48px var(--pad) 40px; }
  .hero h1 { font-size: 34px; }
  .eyebrow { letter-spacing: 2.2px; font-size: 11.5px; }
  .home-hero .eyebrow { letter-spacing: 2px !important; font-size: 11.5px !important; }
  .home-hero .hero-inner { padding: 52px var(--pad) 48px; gap: 16px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero .lede { font-size: 17px; }
  .section-title, .section-title.sm { font-size: 26px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 18px 8px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-last-child(-n+3) { border-bottom: 0; }
  .stat .big { font-size: 24px; }
  .stat .label { font-size: 10.5px; letter-spacing: 1px; }
  .dark .stats { grid-template-columns: 1fr 1fr; }
  .dark .stats .stat { padding: 18px 8px; border-right: 1px solid rgba(246,242,233,.22); border-bottom: 1px solid rgba(246,242,233,.22); }
  .dark .stats .stat:nth-child(3n) { border-right: 1px solid rgba(246,242,233,.22); }
  .dark .stats .stat:nth-child(2n) { border-right: 0; }
  .dark .stats .stat:nth-last-child(-n+3) { border-bottom: 1px solid rgba(246,242,233,.22); }
  .dark .stats .stat:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .result-figures { gap: 18px; }
  .result-figures .fig { font-size: 52px; }
  .result-figures .arrow { font-size: 26px; }
  .framed { padding: 34px 22px 28px; }
  .card, .service, .stream { padding: 24px; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .stream-head { flex-wrap: wrap; }
  .footer-cta .line { font-size: 21px; }
  .btn-row .btn { width: 100%; }
  .btn-row.inline .btn { width: auto; }
}
