/* Root Studio — "Grounded Calm" design system per design-tokens.md */
:root {
  --color-bg: #F7F2EA;
  --color-surface: #EDE6DA;
  --color-primary: #7C9885;
  --color-primary-dark: #5D7566;
  --color-accent: #D98E6A;
  --color-accent-soft: #F3DECE;
  --color-text: #33352E;
  --color-text-muted: #575A4F; /* darkened from token #6C6F63 for AA contrast on the sand surface */
  --color-border: #DCD3C3;
  --shadow-soft: 0 12px 32px rgba(124, 152, 133, 0.10);
  --radius: 24px;
  --font-head: "Quicksand", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --max-width: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 30px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--color-primary-dark); margin: 0 0 16px; }
h1 { font-size: 42px; line-height: 50px; letter-spacing: 0.01em; }
h2 { font-size: 30px; line-height: 38px; }
h3 { font-size: 20px; line-height: 28px; }

p { margin: 0 0 16px; }

.caption { font-size: 14px; line-height: 20px; color: var(--color-text-muted); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 64px; }

section { padding: 88px 0; }

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #A05A36; /* darkened terracotta for AA contrast at 14px on sand bg */
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary-dark); /* darker sage for AA contrast with white 15px label (base sage = 3.14:1) */
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #4A5E52; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #4A5E52;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-outline:hover { background: rgba(124, 152, 133, 0.12); }

/* ---------- Header / logo ---------- */
.site-header { padding: 24px 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }

.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark .sprout { width: 22px; height: 22px; flex-shrink: 0; }
.wordmark .wm-root {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 26px;
  color: var(--color-primary);
}
.wordmark .wm-studio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  color: var(--color-text-muted);
}

.lang-switch { font-size: 14px; font-weight: 700; color: var(--color-text-muted); }
.lang-switch a { color: #4A5E52; text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch span[aria-current] { color: var(--color-text-muted); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 88px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero .btn-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 32px 0 24px; }
.trust-signal { font-size: 15px; color: var(--color-text-muted); max-width: 420px; }

.hero-visual {
  aspect-ratio: 7 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blob dividers ---------- */
.blob-divider { display: block; width: 100%; height: 72px; margin: -1px 0; }

/* ---------- Value proposition ---------- */
.value-props { background: var(--color-surface); }
.value-props .lead { max-width: 720px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.value-card .vc-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.value-card h3 { font-size: 18px; }
.value-card p { font-size: 15px; line-height: 25px; color: var(--color-text-muted); margin: 0; }

/* ---------- Class types ---------- */
.classes .intro { max-width: 700px; }
.classes-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.classes-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.class-list { display: flex; flex-direction: column; gap: 20px; }
.class-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.class-card p { margin: 0; font-size: 15px; line-height: 25px; color: var(--color-text-muted); }
.rhythm-note {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--color-accent-soft);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 26px;
  max-width: 760px;
}

/* ---------- Booking / mock calendar ---------- */
.booking { background: var(--color-surface); }
.booking .sub-copy { max-width: 640px; color: var(--color-text-muted); }

.calendar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  margin-top: 40px;
}
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.day-tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.day-tab:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.day-tab[aria-selected="true"] {
  background: var(--color-primary-dark);
  border-color: var(--color-primary);
  color: #FFFFFF;
}
.slot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 24px;
}
.slot .slot-info { min-width: 0; }
.slot .slot-time { font-family: var(--font-head); font-weight: 600; font-size: 17px; display: block; }
.slot .slot-meta { font-size: 14px; color: var(--color-text-muted); }
.slot .free-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 6px;
  vertical-align: 1px;
}
.slot .btn-book {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: var(--color-primary-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.slot .btn-book:hover { background: #4A5E52; }
.slot.selected { border-color: var(--color-primary); background: #fff; }
.slot.selected .btn-book { background: #4A5E52; }

/* booking mini-form (name + email only, per research) */
.booking-form {
  margin-top: 24px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  display: none;
}
.booking-form.visible { display: block; }
.booking-form .selected-label { font-weight: 700; margin-bottom: 16px; }
.booking-form .fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: stretch; }
.booking-form input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 20px;
  min-width: 0;
}
.booking-form input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.booking-confirm {
  display: none;
  margin-top: 16px;
  padding: 16px 24px;
  background: var(--color-accent-soft);
  border-radius: 16px;
  font-size: 15px;
}
.booking-confirm.visible { display: block; }
.reassurance { margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }

/* ---------- Studio & story ---------- */
.story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-visual {
  border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%; /* soft blob mask per design-tokens §4 */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1;
}
.story-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--color-surface); }
.testimonials h2 em { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--color-text-muted); display: block; margin-top: 8px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}
.testimonial-card .avatar { width: 56px; height: 56px; }
.testimonial-card blockquote { margin: 0; font-size: 16px; line-height: 27px; }
.testimonial-card cite { font-style: normal; font-size: 14px; color: var(--color-text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary-dark); /* AA: white copy needs the darker sage */
  border-radius: var(--radius);
  text-align: center;
  padding: 64px 32px;
  box-shadow: var(--shadow-soft);
}
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: #FFFFFF; max-width: 480px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: var(--color-accent); color: #3A2418; }
.cta-band .btn-primary:hover { background: #C97D57; color: #FFFFFF; }
section.cta-section { padding-top: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-top: 48px; }
.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 16px;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #4A5E52;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 16px 0 0; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark); /* AA: 15px white copy needs the darker sage */
  color: #FFFFFF;
  padding: 64px 0 48px;
  font-size: 15px;
  line-height: 26px;
}
.site-footer .wordmark .wm-root { color: #FFFFFF; }
.site-footer .wordmark .wm-studio { color: rgba(255, 255, 255, 0.7); }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid h3 { color: #FFFFFF; font-size: 17px; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer .lang-switch { margin-top: 16px; }
.site-footer .lang-switch a { color: #FFFFFF; text-decoration: underline; }
.site-footer .lang-switch span[aria-current] { color: rgba(255, 255, 255, 0.7); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 27px; }
  h1 { font-size: 30px; line-height: 38px; }
  h2 { font-size: 24px; line-height: 32px; }
  .container { padding: 0 24px; }
  section { padding: 56px 0; }
  .hero { padding: 24px 0 56px; }
  .hero .container, .classes-layout, .story .container { grid-template-columns: 1fr; gap: 40px; }
  .value-grid, .testimonial-grid, .slot-list { grid-template-columns: 1fr; }
  .booking-form .fields { grid-template-columns: 1fr; }
  .calendar { padding: 20px; }
  .cta-band { padding: 48px 24px; }
  .blob-divider { height: 40px; }
}

/* ---------- FAQ open/close animation ---------- */
.faq-list .faq-answer {
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.3s ease,
              transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
@media (prefers-reduced-motion: reduce) {
  .faq-list .faq-answer { transition: none; }
}

/* ---------- Language toggle (single round button, swaps to the other locale) ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  background: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lang-toggle:hover { background: #4A5E52; transform: scale(1.06); }
.site-footer .lang-toggle {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.site-footer .lang-toggle:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Scroll-reveal (activated by JS via html.anim) ---------- */
html.anim .reveal { opacity: 0; transform: translateY(24px); }
html.anim .reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease var(--rd, 0ms),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1) var(--rd, 0ms);
}

/* ---------- Hover micro-interactions ---------- */
.value-card, .class-card, .testimonial-card, .slot {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover, .class-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(124, 152, 133, 0.18);
}
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.hero-visual img, .classes-visual img, .story-visual img { transition: transform 0.6s ease; }
.hero-visual:hover img, .classes-visual:hover img, .story-visual:hover img { transform: scale(1.03); }
.classes-visual, .story-visual { overflow: hidden; }
.btn-primary { transition: background 0.2s ease, transform 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.wordmark .sprout { transition: transform 0.3s ease; }
.wordmark:hover .sprout { transform: rotate(-10deg); }
@media (prefers-reduced-motion: reduce) {
  .value-card, .class-card, .testimonial-card, .slot, .hero-visual img,
  .classes-visual img, .story-visual img, .btn-primary, .wordmark .sprout { transition: none; transform: none; }
}

/* ---------- Class thumbnails + founder image stack (added with final image set) ---------- */
.class-card { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.class-card .class-thumb {
  width: 104px; height: 104px;
  object-fit: cover;
  border-radius: 18px;
}
.story-visual-stack { position: relative; padding-bottom: 56px; }
.story-visual-stack .story-interior {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.story-visual-stack .story-founder {
  position: absolute;
  right: -8px; bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
  border: 6px solid var(--color-bg);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 768px) {
  .class-card { grid-template-columns: 84px 1fr; }
  .class-card .class-thumb { width: 84px; height: 84px; }
}
