/* ==========================================================
   Bostina Gabriel — History Tutoring
   Colors are defined as tokens below; edit them to re-theme.
   ========================================================== */

:root {
  --navy: #14213d;
  --navy-2: #1f3057;
  --navy-deep: #0d172d;
  --gold: #a87f33;
  --gold-bright: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.16);
  --cream: #f7f1e3;

  --bg: #fbf8f1;
  --bg-tint: #f4ecdb;
  --surface: #fffdf8;
  --ink: #1b2338;
  --ink-soft: #3a4257;
  --muted: #646a7b;
  --line: rgba(20, 33, 61, 0.12);
  --line-strong: rgba(20, 33, 61, 0.22);
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 12px 32px -12px rgba(20, 33, 61, .18);
  --shadow-lg: 0 2px 4px rgba(20, 33, 61, .06), 0 24px 60px -20px rgba(20, 33, 61, .30);

  --btn-primary-bg: var(--navy);
  --btn-primary-ink: var(--cream);
  --heading: var(--navy);
  --accent: var(--gold);
  --map-ink: rgba(20, 33, 61, .09);
  --texture-opacity: .35;
  --error: #b3261e;

  --radius: 14px;
  --radius-lg: 22px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1528;
    --bg-tint: #121b31;
    --surface: #16203a;
    --ink: #ece5d3;
    --ink-soft: #d3ccbb;
    --muted: #a7adbd;
    --line: rgba(236, 229, 211, 0.10);
    --line-strong: rgba(236, 229, 211, 0.20);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px -20px rgba(0,0,0,.7);
    --btn-primary-bg: var(--gold-bright);
    --btn-primary-ink: #14213d;
    --heading: #f3ecdb;
    --accent: var(--gold-bright);
    --gold-soft: rgba(201, 164, 92, 0.14);
    --map-ink: rgba(236, 229, 211, .07);
    --texture-opacity: .12;
    --error: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1528;
  --bg-tint: #121b31;
  --surface: #16203a;
  --ink: #ece5d3;
  --ink-soft: #d3ccbb;
  --muted: #a7adbd;
  --line: rgba(236, 229, 211, 0.10);
  --line-strong: rgba(236, 229, 211, 0.20);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px -20px rgba(0,0,0,.7);
  --btn-primary-bg: var(--gold-bright);
  --btn-primary-ink: #14213d;
  --heading: #f3ecdb;
  --accent: var(--gold-bright);
  --gold-soft: rgba(201, 164, 92, 0.14);
  --map-ink: rgba(236, 229, 211, .07);
  --texture-opacity: .12;
  --error: #ff8a80;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
/* Subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--texture-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: .8em 1.4em; min-height: 48px;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover .icon use[href="#i-arrow"], .btn:hover .icon { transform: translateX(2px); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); box-shadow: 0 6px 18px -8px rgba(20,33,61,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(20,33,61,.6); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { background: #d8b572; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.35); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem; letter-spacing: .04em;
  background: var(--navy); color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3.5px var(--gold-bright);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--heading); }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 8px 12px; text-decoration: none; font-weight: 500; color: var(--ink-soft);
  border-radius: 8px; position: relative; transition: color .2s ease;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav ul a:hover, .primary-nav ul a.is-active { color: var(--heading); }
.primary-nav ul a:hover::after, .primary-nav ul a.is-active::after { transform: scaleX(1); }
.mobile-nav-contact { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--heading); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s ease, color .2s ease, transform .3s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--heading); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-actions { margin-left: auto; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    padding: 16px 16px 32px;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { font-family: var(--font-serif); font-size: 1.5rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--heading); }
  .primary-nav ul a::after { display: none; }
  .mobile-nav-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
  .mobile-nav-contact a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px;
    border: 1px solid var(--line-strong); border-radius: 12px; text-decoration: none; color: var(--heading);
    font-weight: 600; word-break: break-all;
  }
  .mobile-nav-contact .icon { color: var(--accent); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; font-size: .92rem; }
}

/* ---------- Shared section styles ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--tinted { background: var(--bg-tint); }
.section--paper {
  background:
    radial-gradient(ellipse at 20% 0%, var(--gold-soft), transparent 55%),
    radial-gradient(ellipse at 90% 100%, var(--gold-soft), transparent 50%),
    var(--bg);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.section-head--center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head--center .kicker::after { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.section-title { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.01em; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin: 0; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--heading); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--gold-bright) 30%, transparent);
  flex: none;
}
.card-icon .icon { width: 26px; height: 26px; }

.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 48px; overflow: hidden; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--map-ink); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-line { width: 36px; height: 1.5px; background: currentColor; }
.hero-title { font-size: clamp(2.8rem, 7.5vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-title em { font-style: italic; color: var(--accent); position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .04em; height: .08em;
  background: var(--gold-bright); opacity: .35; border-radius: 4px;
}
.hero-subtitle { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-soft); margin-bottom: 16px; line-height: 1.35; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-contact a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: .98rem; padding: 6px 0; transition: color .2s ease;
}
.hero-contact .icon { color: var(--accent); width: 18px; height: 18px; }
.hero-contact a:hover { color: var(--accent); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); padding: 24px 0; }
.arch-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px;
  padding: 10px; background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.arch-frame::before {
  content: ""; position: absolute; inset: -14px; border-radius: 999px 999px 26px 26px;
  border: 1.5px solid var(--gold-bright); opacity: .55; pointer-events: none;
}
.arch-frame .photo-placeholder, .arch-frame .photo { border-radius: 999px 999px 12px 12px; }
.photo-placeholder, .photo { width: 100%; height: 100%; object-fit: cover; }
/* Keep the face in frame when the photo is cropped */
.photo--hero { object-position: 62% 22%; }
.photo--about { object-position: 64% 16%; }
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-weight: 600; letter-spacing: .04em;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, var(--gold-soft) 14px 15px),
    linear-gradient(160deg, var(--bg-tint), var(--surface));
  border: 1.5px dashed var(--line-strong);
}
.photo-placeholder .icon { width: 64px; height: 64px; color: var(--accent); opacity: .7; }

.compass { position: absolute; width: 104px; height: 104px; right: -26px; top: 8%; color: var(--accent); opacity: .75; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: .92rem; font-weight: 600; max-width: 250px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { color: var(--accent); }
.float-card strong { color: var(--accent); }
.float-card--top { left: -40px; top: 18%; }
.float-card--bottom { right: -30px; bottom: 10%; animation-delay: -3s; }
.float-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft); flex: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-timeline {
  position: relative; margin-top: 56px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 1rem;
}
.hero-timeline i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--gold-bright), var(--line-strong)); position: relative; }
.hero-timeline i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); transform: translateX(-50%); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-contact { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-visual { width: min(80%, 340px); }
  .float-card--top { left: -24px; }
  .float-card--bottom { right: -24px; }
  .compass { right: -18px; width: 80px; height: 80px; }
}
@media (max-width: 600px) {
  .hero-actions .btn { width: 100%; }
  .hero-visual { width: min(76%, 300px); }
  .float-card { font-size: .8rem; padding: 9px 12px; max-width: 190px; }
  .float-card--top { left: -18%; }
  .float-card--bottom { right: -18%; }
  .hero-timeline { font-size: .82rem; gap: 8px; margin-top: 40px; }
}

/* ---------- 2. About the lessons ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.split .prose { font-size: 1.1rem; padding-top: 34px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 12px; } .split .prose { padding-top: 0; } }

.feature-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold-bright) 40%, transparent); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card h3 { font-size: 1.6rem; margin: 20px 0 8px; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------- 3. Audience ---------- */
.audience-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 28px 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.audience-num { position: absolute; right: 24px; top: 16px; font-family: var(--font-serif); font-size: 2.6rem; color: var(--accent); opacity: .22; font-weight: 600; }
.audience-card h3 { font-size: 1.35rem; margin: 20px 0 8px; }
.audience-card p { color: var(--muted); margin: 0; }

/* ---------- 4. Topics ---------- */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.topic {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--heading); line-height: 1.3;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.topic .icon { width: 26px; height: 26px; color: var(--accent); transition: transform .3s ease; }
.topic:hover { transform: translateY(-3px); border-color: var(--gold-bright); box-shadow: var(--shadow); }
.topic:hover .icon { transform: scale(1.12) rotate(-6deg); }
.topic-note { text-align: center; margin: 36px 0 0; color: var(--muted); }
.topic-note a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 480px) { .topic-grid { grid-template-columns: 1fr; } }

/* ---------- 5. Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.benefit {
  grid-column: span 2; display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.benefit:nth-child(4) { grid-column: 2 / span 2; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.22rem; margin: 4px 0 6px; }
.benefit p { color: var(--muted); margin: 0; }
@media (max-width: 980px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit, .benefit:nth-child(4) { grid-column: auto; }
  .benefit:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- 6. Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: none; }
.steps::before {
  content: ""; position: absolute; top: 74px; left: 16%; right: 16%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-bright) 0 8px, transparent 8px 16px); opacity: .7;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { display: block; font-family: var(--font-serif); font-size: 1rem; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.step-icon {
  position: relative; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--heading);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: transform .35s ease, background-color .35s ease, color .35s ease;
}
.step-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--gold-bright); opacity: .45; }
.step-icon .icon { width: 32px; height: 32px; }
.step:hover .step-icon { transform: translateY(-4px) scale(1.04); background: var(--navy); color: var(--gold-bright); }
.step h3 { font-size: 1.4rem; }
.step p { color: var(--muted); margin: 0 auto; max-width: 300px; }
.step p a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { top: 60px; bottom: 60px; left: 50%; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-bright) 0 8px, transparent 8px 16px); opacity: .35; }
  .step { background: var(--bg); padding: 8px 0; }
}

/* ---------- 7. Timeline ---------- */
.timeline { list-style: none; margin: 0 auto 56px; padding: 0; display: flex; justify-content: space-between; position: relative; max-width: 940px; }
.timeline::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--navy-2)); opacity: .6;
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s;
}
.timeline.is-visible::before { transform: scaleX(1); }
.timeline li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--gold-bright); position: relative; z-index: 1;
  transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .4s ease;
}
.tl-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--navy); }
:root[data-theme="dark"] .tl-dot::after { background: var(--gold-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-dot::after { background: var(--gold-bright); } }
.timeline.is-visible .tl-dot { transform: scale(1); opacity: 1; }
.timeline.is-visible li:nth-child(2) .tl-dot { transition-delay: .35s; }
.timeline.is-visible li:nth-child(3) .tl-dot { transition-delay: .6s; }
.timeline.is-visible li:nth-child(4) .tl-dot { transition-delay: .85s; }
.timeline.is-visible li:nth-child(5) .tl-dot { transition-delay: 1.1s; }
.tl-label { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--heading); }
.timeline li:not(:last-child) .tl-label::after { content: " →"; color: var(--accent); font-family: var(--font-sans); display: none; }

.format-body {
  max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow);
}
.format-body > p { font-weight: 600; color: var(--heading); margin-bottom: 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.check-list .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }

@media (max-width: 700px) {
  .timeline { flex-direction: column; align-items: flex-start; gap: 22px; padding-left: 8px; max-width: 320px; }
  .timeline::before { left: 21px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--gold-bright), var(--navy-2)); }
  .timeline.is-visible::before { transform: scaleY(1); }
  .timeline li { flex-direction: row; gap: 18px; }
  .format-body { padding: 24px 20px; }
  .check-list { grid-template-columns: 1fr; }
}

/* ---------- 8. About me ---------- */
.tutor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.photo-frame {
  position: relative; aspect-ratio: 1 / 1.1; border-radius: var(--radius-lg); padding: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.photo-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-bright); opacity: .5; z-index: -1;
}
.photo-frame .photo-placeholder, .photo-frame .photo { border-radius: calc(var(--radius-lg) - 6px); }
.tutor-name { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--heading); margin: 8px 0 0; }
.tutor-role { text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 22px; }
.tutor-copy .prose { font-size: 1.08rem; }
.tutor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
  .tutor-grid { grid-template-columns: 1fr; gap: 56px; }
  .tutor-photo { max-width: 360px; width: 85%; margin: 0 auto; }
}
@media (max-width: 600px) { .tutor-actions .btn { width: 100%; } }

/* ---------- 9. Pricing ---------- */
.pricing-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px); box-shadow: var(--shadow-lg); position: relative;
}
.pricing-card::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 1px solid var(--gold-soft); pointer-events: none; }
.pricing-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--accent); margin-bottom: 18px; }
.pricing-ornament span { width: 48px; height: 1px; background: currentColor; opacity: .6; }
.pricing-ornament .icon { width: 30px; height: 30px; }
.pricing-card .kicker::after { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.pricing-lead { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--heading); margin: 8px 0 12px; }
.pricing-hint { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- 10. FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, box-shadow .25s ease; }
.faq-item.is-open { border-color: color-mix(in srgb, var(--gold-bright) 55%, transparent); box-shadow: var(--shadow); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; min-height: 64px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--heading);
}
.faq-q .icon { color: var(--accent); transition: transform .3s ease; width: 22px; height: 22px; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-q:hover { color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }
.faq-a a { color: var(--accent); font-weight: 600; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a { grid-template-rows: 1fr; }

/* ---------- 11. Contact ---------- */
.contact { background: var(--navy); color: var(--cream); overflow: hidden; }
:root[data-theme="dark"] .contact { background: var(--navy-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact { background: var(--navy-deep); } }
.contact-map { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(201,164,92,.12); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .section-title { color: #fbf6ea; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.kicker--light { color: var(--gold-bright); }
.contact-sub { font-size: 1.15rem; color: rgba(247,241,227,.78); margin-bottom: 36px; }
.contact-name { font-family: var(--font-serif); font-size: 1.4rem; color: #fbf6ea; margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(247,241,227,.12);
  text-decoration: none; color: #fbf6ea; font-weight: 600; font-size: 1.12rem;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
  word-break: break-word;
}
.contact-item small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; margin-bottom: 2px; }
.contact-item:hover { background: rgba(201,164,92,.12); border-color: rgba(201,164,92,.5); transform: translateX(4px); }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: var(--navy); flex: none; }
.contact-icon .icon { width: 22px; height: 22px; }

.contact-form {
  background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.contact-form h3 { font-size: 1.6rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--heading); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { min-height: 1.2em; margin: 5px 0 0; font-size: .88rem; color: var(--error); font-weight: 600; }
.form-status { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); text-align: center; }
.form-status.is-success { color: #2e7d4f; font-weight: 600; }
:root[data-theme="dark"] .form-status.is-success { color: #8fd1a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.is-success { color: #8fd1a8; } }
.form-status a { color: var(--accent); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .contact-item { font-size: 1rem; padding: 14px; } .contact-icon { width: 44px; height: 44px; } }

/* ---------- 12. Final CTA ---------- */
.final-cta { padding: clamp(72px, 10vw, 112px) 0; background: var(--bg-tint); position: relative; }
.final-cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.015em; }
.final-cta p { color: var(--muted); font-size: 1.15rem; max-width: 580px; margin: 0 auto 32px; }
.cta-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; }
.cta-rule span { width: 64px; height: 1px; background: var(--gold-bright); }
.cta-rule i { width: 10px; height: 10px; border: 1.5px solid var(--gold-bright); transform: rotate(45deg); }

/* ---------- Supporters / logos ---------- */
.supporters { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0; }
.supporters-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.supporters-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.supporters-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; }
/* Logos sit on white cards so they stay correct in dark mode too */
.supporters-logos img { height: 84px; width: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.logo-erasmus { padding: 10px 14px; }
@media (max-width: 480px) {
  .supporters-logos img { height: 64px; }
}

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(247,241,227,.75); padding: 64px 0 28px; }
.site-footer .brand-name { color: #fbf6ea; }
.site-footer .brand-sub { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { margin: 18px 0 20px; max-width: 320px; }
.site-footer h4 { font-family: var(--font-sans); color: var(--gold-bright); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-contact a { text-decoration: none; color: rgba(247,241,227,.8); transition: color .2s ease; display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; word-break: break-word; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-bright); }
.footer-contact .icon { color: var(--gold-bright); width: 18px; height: 18px; }
.social-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(201,164,92,.5); color: var(--gold-bright); transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.social-icon:hover { background: var(--gold-bright); color: var(--navy); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(247,241,227,.12); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.back-top { color: rgba(247,241,227,.75); text-decoration: none; }
.back-top:hover { color: var(--gold-bright); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mobile quick bar ---------- */
.quick-bar { display: none; }
@media (max-width: 760px) {
  .quick-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--navy); border-top: 1px solid rgba(201,164,92,.35);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .35s ease;
  }
  .quick-bar.is-visible { transform: none; }
  body.nav-open .quick-bar { transform: translateY(110%); }
  .quick-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 54px; color: var(--cream); text-decoration: none; font-size: .8rem; font-weight: 600; border-radius: 10px;
  }
  .quick-bar a:active { background: rgba(255,255,255,.08); }
  .quick-bar .icon { color: var(--gold-bright); width: 22px; height: 22px; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .timeline.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
