/* The Learning Curve — site styles */
:root {
  --ink: #14213d;
  --ink-soft: #24365e;
  --paper: #fafbfd;
  --surface: #ffffff;
  --grid: #dbe5f3;
  --grid-strong: #b9cbe6;
  --highlight: #f2c230;
  --text: #1c2433;
  --muted: #566074;
  --whatsapp: #1c7f53;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--ink-soft); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 68ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--grid);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}
.brand svg { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grid-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--paper); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--highlight);
  border-radius: 0;
}
.site-nav .nav-call {
  background: var(--ink);
  color: #fff;
  margin-left: 6px;
  border-radius: var(--radius-sm);
}
.site-nav .nav-call:hover { background: var(--ink-soft); color: #fff; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--surface);
    border-bottom: 1px solid var(--grid);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-call { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: var(--body);
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #16683f; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Hero: graph paper with the learning curve */
.hero {
  padding: clamp(40px, 7vw, 84px) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--grid);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-lead { font-size: 1.2rem; color: var(--muted); }
.hero-place {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.graph-paper {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grid-strong);
  background-color: #fdfefe;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 18px;
  aspect-ratio: 5 / 4;
}
.graph-paper svg { width: 100%; height: 100%; overflow: visible; }
.curve-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
  animation: draw 2.2s ease-out 0.3s both;
}
.curve-axis { stroke: var(--ink); stroke-width: 2; }
.curve-label {
  font-family: var(--body);
  font-size: 15px;
  fill: var(--muted);
}
.curve-step {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  fill: var(--ink);
}
.curve-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.curve-dot-end { fill: var(--highlight); stroke: var(--ink); stroke-width: 3; }

@keyframes draw {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curve-path { animation: none; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--grid); }
.section-intro { max-width: 62ch; margin-bottom: 32px; color: var(--muted); }

.class-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.class-item {
  padding: 24px 24px 8px 0;
  border-bottom: 1px solid var(--grid-strong);
}
.class-item + .class-item { padding-left: 24px; border-left: 1px solid var(--grid-strong); }
.class-range {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.class-item p { color: var(--muted); }
@media (max-width: 820px) {
  .class-list { grid-template-columns: 1fr; }
  .class-item + .class-item { padding-left: 0; border-left: 0; }
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
}
.steps li:last-child::before { background: var(--highlight); }
.steps p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* Visit / contact */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; }
}
.details {
  margin: 0;
  display: grid;
  gap: 18px;
}
.details dt {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.details dd { margin: 0; color: var(--text); }
.map-frame {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--grid-strong);
  border-radius: var(--radius-lg);
}

/* Page header for inner pages */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--grid);
  padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.page-head p { color: var(--muted); font-size: 1.15rem; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
}
.fact-table th,
.fact-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--grid-strong);
  vertical-align: top;
}
.fact-table th { width: 38%; color: var(--ink); font-weight: 700; }

.faq details {
  border-bottom: 1px solid var(--grid-strong);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
}
.faq details p { margin-top: 10px; color: var(--muted); }

/* Enquiry form */
.form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--grid-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
}
.form label { font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--grid-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
}
.form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form-error { color: #a12a2a; font-weight: 700; margin: 0; }

/* Gallery (enable once real photos are added) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--grid-strong);
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d7deea;
  padding: 48px 0 28px;
  font-size: 0.98rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h3 { color: #fff; font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid p { margin-bottom: 0.5em; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #aeb9cc;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}
