/* ─── Classes & bookings template ────────────────────────────────────
   For anyone who teaches, coaches or runs sessions people sign up to:
   a yoga studio, swimming lessons, a football coach, a tutor, kayak
   rentals, guided walks. THIRTEEN of the fifty-seven real build prompts
   wanted this shape and every one of them landed on a computer-repair
   shop, because that was the default and nothing better existed.

   What the shape needs, in the order a parent or student wants it:
   what you teach, WHEN it runs, who teaches it, what it costs, and a
   way to ask. The schedule is the page — not an afterthought below the
   fold.

   NO PHONE NUMBER, NO EMAIL ADDRESS, NO STREET ADDRESS ANYWHERE. A
   contact-shaped placeholder is the only kind a visitor acts on, and a
   template that carries one eventually publishes it on a real business.
   Contact runs through the form, which reaches the owner's dashboard
   and inbox on day one.

   THREE BREAKPOINTS, not one. Every previous template had a single
   layout jump (880px or 720px), so an iPad landed in the phone layout
   or an awkward middle. Here: >=1080 desktop, 768-1079 tablet,
   <768 phone.
   ------------------------------------------------------------------ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg:        #fdfcfa;
  --bg-alt:    #f4f1ec;
  --bg-deep:   #23201c;
  --fg:        #23201c;
  --fg-soft:   #6b6259;
  --fg-fade:   #a29a90;
  --fg-on-dark: #fdfcfa;
  --accent:    #2f6f5e;
  --accent-hover: #245648;
  --accent-soft: #eaf2ef;
  --border:    #e8e3db;
  --border-soft: #f1ede6;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, system-ui, sans-serif;

  --type-xs:   0.8125rem;
  --type-sm:   0.9375rem;
  --type-base: 1rem;
  --type-lg:   1.125rem;
  --type-xl:   1.375rem;
  --type-2xl:  1.75rem;
  --type-3xl:  2.25rem;
  --type-4xl:  clamp(2rem, 4.5vw, 3.25rem);
  --type-display: clamp(2.5rem, 6vw, 4.25rem);

  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  --radius-sm: 6px;  --radius: 10px;  --radius-lg: 16px;  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(35,32,28,.05);
  --shadow:    0 4px 16px -6px rgba(35,32,28,.12), 0 1px 3px rgba(35,32,28,.05);
  --shadow-lg: 0 18px 44px -20px rgba(35,32,28,.28);
  --dur: .18s;  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--type-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: var(--type-display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: var(--type-3xl); line-height: 1.15; margin: 0; text-wrap: balance; }
h3 { font-size: var(--type-xl); line-height: 1.25; margin: 0; }
p  { margin: var(--space-3) 0 0; }

.container        { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 var(--space-6); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { font-family: var(--font-display); font-weight: 600; font-size: var(--type-lg); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--type-sm); text-decoration: none; color: var(--fg-soft);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-cta {
  padding: var(--space-2) var(--space-5) !important;
  border-radius: 999px; background: var(--accent);
  color: var(--fg-on-dark) !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-20) var(--space-6) var(--space-16);
  background: var(--bg-alt);
}
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero .eyebrow { color: var(--accent); }
.hero .lede { max-width: 46ch; font-size: var(--type-lg); color: var(--fg-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.eyebrow {
  font-size: var(--type-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-fade);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: var(--space-3) var(--space-6);
  border-radius: 999px; background: var(--accent); color: var(--fg-on-dark);
  font-weight: 600; font-size: var(--type-sm); text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--accent); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--type-base); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: var(--space-20) 0; }
.section.alt  { background: var(--bg-alt); }
.section.dark { background: var(--bg-deep); color: var(--fg-on-dark); }
.section.dark .eyebrow { color: var(--accent); }
.section.dark p { color: rgba(253,252,250,.72); }
.section-head { max-width: 62ch; margin-bottom: var(--space-10); }
.section-head p { color: var(--fg-soft); font-size: var(--type-lg); }
.lede { font-size: var(--type-lg); color: var(--fg-soft); }

/* ── THE SCHEDULE — the reason this template exists ──────────────── */
.schedule { display: flex; flex-direction: column; gap: var(--space-3); }
.session {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.session:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.session-when { font-weight: 600; font-variant-numeric: tabular-nums; }
.session-when span { display: block; font-size: var(--type-xs); font-weight: 400; color: var(--fg-fade); }
.session-what h3 { font-family: var(--font-body); font-size: var(--type-base); font-weight: 600; }
.session-what p  { margin-top: var(--space-1); font-size: var(--type-sm); color: var(--fg-soft); }
.session-meta { text-align: right; font-size: var(--type-sm); color: var(--fg-soft); white-space: nowrap; }
.session-meta strong { display: block; color: var(--fg); font-size: var(--type-base); }

/* ── People ──────────────────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.person {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
/* The picture-block. `_find_visual` looks for a class that reads like a
   picture AND is empty — this is that element, and it is what the
   approved imagery lands in. */
.person-photo { aspect-ratio: 1; background: var(--bg-alt); background-size: cover; background-position: center; }
.person-body { padding: var(--space-5); }
.person-body h3 { font-family: var(--font-body); font-size: var(--type-base); font-weight: 600; }
.person-body p  { font-size: var(--type-sm); color: var(--fg-soft); }

/* ── Pricing ─────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.plan {
  display: flex; flex-direction: column;
  padding: var(--space-8) var(--space-6);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-price { font-family: var(--font-display); font-size: var(--type-3xl); margin: var(--space-3) 0; }
.plan-price span { font-family: var(--font-body); font-size: var(--type-sm); color: var(--fg-soft); }
.plan ul { margin: var(--space-4) 0 var(--space-6); padding: 0; list-style: none; flex: 1; }
.plan li { padding: var(--space-2) 0; font-size: var(--type-sm); color: var(--fg-soft); border-bottom: 1px solid var(--border-soft); }

/* ── Contact form — the ONLY contact route in this template ──────── */
.form { display: grid; gap: var(--space-4); max-width: 34rem; }
.form label { font-size: var(--type-sm); font-weight: 500; }
.form input, .form textarea {
  width: 100%; margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font: inherit; font-size: var(--type-sm); color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { padding: var(--space-12) 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
.footer h4 { font-size: var(--type-sm); margin: 0 0 var(--space-3); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li a { display: inline-block; padding: var(--space-2) 0; font-size: var(--type-sm); color: var(--fg-soft); text-decoration: none; }
.footer li a:hover { color: var(--accent); }
.fine { margin-top: var(--space-8); font-size: var(--type-xs); color: var(--fg-fade); }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — three breakpoints, because an iPad is not a phone.
   Every earlier template jumped straight from desktop to mobile at
   880px or 720px, so a 768-1024px tablet got the phone layout or an
   awkward middle. Tablet keeps two columns and the schedule's shape;
   only the phone collapses to one.
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet: 768-1079px ───────────────────────────────────────────── */
@media (max-width: 1079px) {
  .container, .container-narrow { padding: 0 var(--space-5); }
  .section { padding: var(--space-16) 0; }
  .hero { padding: var(--space-16) var(--space-5) var(--space-12); }
  .people, .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* The schedule keeps all three columns here — it is a timetable, and
     a timetable that reflows into stacked blocks stops being scannable,
     which is the one thing it is for. */
  .session { grid-template-columns: 7rem 1fr auto; gap: var(--space-4); }
}

/* ── Phone: <768px ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav { padding: var(--space-3) var(--space-4); }
  .nav-links a { padding: var(--space-2); font-size: var(--type-xs); }
  /* Tap targets stay >=44px on the one control that matters. */
  .nav-cta { padding: var(--space-3) var(--space-4) !important; }
  .container, .container-narrow { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-12) var(--space-4) var(--space-10); }
  .people, .plans, .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; text-align: center; }
  /* NOW the timetable stacks — below 768px three columns would be
     three cramped columns, and the time is the thing you scan for, so
     it leads. */
  .session { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4) var(--space-5); }
  .session-meta { text-align: left; }
  .session-when { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
