/* Kairos Academy. Mobile first. Colours: charcoal, warm white, one clay accent. */
:root {
  --ink: #2b2a28;
  --ink-soft: #57534d;
  --paper: #f7f5f1;
  --tint: #ece7df;
  --line: #d6cfc4;
  --accent: #8f4f34;
  --wa: #136c43;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 88px; /* room for the WhatsApp button */
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow > * { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: .9rem; color: var(--ink-soft); }
.note { background: var(--tint); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; min-height: 64px; }
.site-nav { order: 3; width: 100%; }
.logo { color: #fff; text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; padding: 6px 0; }
.logo:hover { color: #fff; }
.logo-main { font-size: 1.35rem; letter-spacing: .18em; font-weight: 600; }
.logo-sub { font-size: .85rem; letter-spacing: .32em; color: #cfc8bd; }
.site-nav ul { display: flex; gap: 0; list-style: none; margin: 0 0 0 -8px; padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: .95rem; color: #f1ede6; text-decoration: none; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: .95rem; background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* Sections */
.hero { padding: 32px 0 40px; }
.hero-grid, .split, .form-grid { display: grid; gap: 28px; align-items: start; }
.page-head { padding: 32px 0 16px; }
.section { padding: 40px 0; }
.section--flush { padding-top: 8px; }
.section--tint { background: var(--tint); }

.photo-space {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #e3ddd3 0 14px, #ddd6cb 14px 28px);
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
  font-size: .95rem; padding: 16px; aspect-ratio: 16 / 9; margin: 0 0 8px;
}
.photo-space--tall { aspect-ratio: 4 / 3; }

.cards { list-style: none; padding: 0; display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 a { color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; background: var(--tint); border-radius: 999px; padding: 2px 12px; font-size: .9rem; }
.when { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.when::before { content: "When: "; font-weight: 600; }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .6em; }
.steps--compact li { margin-bottom: .4em; }
.classes dt { font-weight: 650; margin-top: 1em; }
.classes dd { margin: .2em 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); }

/* Timetable */
.filters { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters legend { font-weight: 650; margin-bottom: 8px; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.filters input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.days { display: grid; gap: 16px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.day h2 { font-size: 1.2rem; margin-bottom: .4em; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .85rem; color: var(--ink-soft); font-weight: 600; padding: 4px 0; }
td { padding: 8px 0; border-top: 1px solid var(--tint); vertical-align: top; }
td.t { white-space: nowrap; padding-right: 16px; width: 1%; color: var(--ink-soft); }
.plain td { border-top: 1px solid var(--line); }
.timetable:has(#f-gi:checked) tr[data-p]:not([data-p="gi"]),
.timetable:has(#f-nogi:checked) tr[data-p]:not([data-p="nogi"]),
.timetable:has(#f-intro:checked) tr[data-p]:not([data-p="intro"]),
.timetable:has(#f-kids:checked) tr[data-p]:not([data-p="kids"]),
.timetable:has(#f-strength:checked) tr[data-p]:not([data-p="strength"]),
.timetable:has(#f-weekend:checked) tr[data-p]:not([data-p="weekend"]) { display: none; }
.timetable:has(#f-gi:checked) .day:not(:has(tr[data-p="gi"])),
.timetable:has(#f-nogi:checked) .day:not(:has(tr[data-p="nogi"])),
.timetable:has(#f-intro:checked) .day:not(:has(tr[data-p="intro"])),
.timetable:has(#f-kids:checked) .day:not(:has(tr[data-p="kids"])),
.timetable:has(#f-strength:checked) .day:not(:has(tr[data-p="strength"])),
.timetable:has(#f-weekend:checked) .day:not(:has(tr[data-p="weekend"])) { display: none; }

/* Forms */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #a69d90; border-radius: 8px;
}
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 24px; min-height: 24px; height: 24px; margin-top: 2px; flex: none; }
.field--check label { font-weight: 400; }
.trap { position: absolute; left: -9999px; }
.form-note, .form-status { margin-top: 12px; font-size: .95rem; }
.aside h2 { font-size: 1.2rem; margin-top: 1em; }
address { font-style: normal; margin-bottom: 1em; }
.contact-list { padding-left: 1.1em; }
.contact-list li { margin-bottom: .5em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e4dc; padding: 40px 0 24px; margin-top: 40px; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0; }
.site-footer .small { color: #cfc8bd; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #cfc8bd; margin-bottom: .4em; }
.footer-links { list-style: none; padding: 0; margin: 0; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 650;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float:hover { color: #fff; background: #0e5534; }
.wa-float-label { font-size: 1rem; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .form-grid { grid-template-columns: 1.2fr .8fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav { order: 0; width: auto; flex: 1; }
  .site-nav ul { justify-content: flex-end; padding: 0; }
  .days { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards--two { grid-template-columns: repeat(2, 1fr); }
  .days { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
