/* ===== TutorsGallery UK static site ===== */
/* Design tokens (Royal Navy / Sky / Gold) */
:root {
  --bg: oklch(0.99 0.003 250);
  --fg: oklch(0.22 0.06 265);
  --muted: oklch(0.50 0.04 260);
  --primary: oklch(0.32 0.14 265);
  --primary-fg: oklch(0.99 0.003 250);
  --secondary: oklch(0.96 0.012 250);
  --sky: oklch(0.75 0.14 230);
  --gold: oklch(0.82 0.15 85);
  --border: oklch(0.92 0.015 255);
  --card: #ffffff;
  --shadow-soft: 0 8px 24px -12px color-mix(in oklab, var(--primary) 18%, transparent);
  --shadow-elegant: 0 20px 60px -25px color-mix(in oklab, var(--primary) 35%, transparent);
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 0.875rem;
  --container: 1180px;
  --container-narrow: 760px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--primary); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.75rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.accent { background: linear-gradient(180deg, transparent 65%, color-mix(in oklab, var(--gold) 55%, transparent) 65%); padding: 0 0.15em; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--primary-fg); padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; z-index: 100; }

/* Focus rings */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 0.4rem;
}

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--container-narrow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.site-brand__mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--primary); color: var(--primary-fg); font-family: var(--font-serif); font-size: 0.95rem; }
.site-brand__name { font-family: var(--font-serif); font-size: 1.1rem; }
.site-header__toggle { display: none; background: transparent; border: 1px solid var(--border); padding: 0.5rem; border-radius: 0.5rem; cursor: pointer; }
.site-header__toggle span { display: block; width: 22px; height: 2px; background: var(--primary); margin: 4px 0; transition: 0.2s; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link { color: var(--fg); padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.93rem; text-decoration: none; }
.site-nav__link:hover { background: var(--secondary); text-decoration: none; }
.site-nav__link.is-active { color: var(--primary); font-weight: 600; }
.site-nav .btn { margin-left: 0.5rem; }

@media (max-width: 980px) {
  .site-header__toggle { display: block; }
  .site-nav { position: fixed; inset: 60px 0 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 1rem; border-top: 1px solid var(--border); transform: translateX(100%); transition: transform 0.25s; gap: 0; overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav__link { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav .btn { margin: 1rem 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--gold { background: var(--gold); color: var(--fg); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--ghost { background: transparent; color: var(--primary); border-color: color-mix(in oklab, var(--primary) 25%, transparent); }
.btn--ghost:hover { background: var(--secondary); }

/* Hero / page hero */
.hero, .page-hero { padding: 4rem 0 3rem; background: radial-gradient(70% 60% at 50% 0%, color-mix(in oklab, var(--sky) 28%, transparent), transparent 70%); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-top: 0.75rem; }
.hero__lede, .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero__lede { margin-top: 1.25rem; }
.hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__meta { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.eyebrow { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); background: color-mix(in oklab, var(--primary) 8%, transparent); padding: 0.3rem 0.7rem; border-radius: 999px; }

/* Trust strip */
.trust-strip { background: var(--secondary); border-block: 1px solid var(--border); padding: 1rem 0; }
.trust-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; color: var(--primary); font-size: 0.88rem; }
.trust-strip__item::before { content: "✓ "; color: var(--gold); }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: color-mix(in oklab, var(--secondary) 70%, var(--bg)); border-block: 1px solid var(--border); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.section__title--centered { text-align: center; margin-bottom: 2rem; }
.section__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section__link { color: var(--primary); font-weight: 500; }

/* Cards & grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid--three { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card h2, .card h3 { color: var(--primary); }
.card--link { color: inherit; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-elegant); border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.card__link { color: var(--primary); font-weight: 500; margin-top: auto; padding-top: 0.5rem; }
.card__meta { font-size: 0.8rem; color: var(--muted); margin-top: auto; padding-top: 0.5rem; }
.card--panel { box-shadow: var(--shadow-soft); position: sticky; top: 90px; }
.card--quote blockquote { margin: 0; font-style: italic; color: color-mix(in oklab, var(--fg) 90%, transparent); }
.card--quote figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.88rem; }

/* Tag pill */
.tag { display: inline-block; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--secondary); color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; width: fit-content; }
.tag--gold { background: color-mix(in oklab, var(--gold) 35%, white); color: var(--fg); }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); background: color-mix(in oklab, var(--gold) 30%, white); width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; }
.checklist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .checklist--two { grid-template-columns: 1fr; } }

/* Ordered process list */
.ordered { list-style: decimal inside; display: grid; gap: 0.5rem; padding: 0; margin: 0 0 1rem; color: var(--fg); }

/* Steps (numbered) */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 720px; }
.steps li { display: flex; gap: 1rem; }
.steps__n { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; background: var(--primary); color: var(--primary-fg); border-radius: 50%; font-weight: 600; }
.steps h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* Split layout for service detail */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* Pricing */
.pricing__price { font-family: var(--font-serif); font-size: 2.2rem; color: var(--primary); margin: 0.75rem 0; }
.pricing__price span { font-size: 3rem; font-weight: 700; }
.pricing--featured { box-shadow: var(--shadow-elegant); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }

/* Crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.crumbs__sep { opacity: 0.5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current="page"] { color: var(--primary); font-weight: 500; }

/* FAQ accordion */
.faq { display: grid; gap: 0.6rem; }
.faq__item { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); overflow: hidden; }
.faq__item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; transition: transform 0.2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 1.25rem 1rem; color: color-mix(in oklab, var(--fg) 85%, transparent); }
.faq__answer p { margin: 0; }

/* CTA band */
.cta-band { background: var(--primary); color: var(--primary-fg); padding: 4rem 0; text-align: center; }
.cta-band h2 { color: var(--primary-fg); font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band p { color: color-mix(in oklab, var(--primary-fg) 85%, transparent); max-width: 56ch; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta-band--inline { border-radius: 1rem; padding: 2rem; margin-top: 3rem; }

/* Prose styling for long-form pages */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose ul, .prose ol { color: color-mix(in oklab, var(--fg) 88%, transparent); line-height: 1.8; }
.prose-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose-link:hover { color: var(--fg); }
.post__meta { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 1.5rem; }

/* Footer */
.site-footer { background: color-mix(in oklab, var(--primary) 8%, var(--bg)); border-top: 1px solid var(--border); margin-top: 4rem; padding: 3rem 0 1.5rem; color: var(--fg); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.site-footer a { color: color-mix(in oklab, var(--fg) 85%, transparent); }
.site-footer a:hover { color: var(--primary); }
.site-footer__about { color: var(--muted); font-size: 0.92rem; margin-top: 0.75rem; max-width: 36ch; }
.site-footer__bottom { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; text-align: center; }
.site-brand--footer { margin-bottom: 0.5rem; }
