/* =========================================================
   Wildhaven Tutoring — static rebuild
   Single shared stylesheet for all 5 pages.
   ========================================================= */

:root {
  /* Palette (sampled from the original site screenshots) */
  --cream:         #F5EEDC;
  --sage:          #CBDEC6;
  --sage-band:     #DCE8D6;   /* lighter sage used behind Lessons text blocks */
  --lavender:      #D4D5E8;   /* Testimonials page background */
  --form-lavender: #E0DBE7;   /* Contact form card */
  --indigo:        #2E2A7A;   /* WILDHAVEN wordmark / accent text */
  --green:         #1E7A3C;   /* logo mark / TUTORING wordmark */
  --ink:           #1E2130;   /* body + heading text (near-black navy) */
  --coral:         #C85A57;
  --black:         #12141C;   /* nav CTA + solid buttons */
  --white:         #ffffff;
  --muted:         #6b6b77;

  --maxw: 1180px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(30, 33, 48, .08);
  --shadow-md: 0 10px 30px rgba(30, 33, 48, .12);

  --font: 'Fredoka', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Page background patterns (line-art books/pencils/leaves) */
.bg-cream  { background: var(--cream)  url('media/pattern-cream.png')  repeat; background-size: 620px; }
.bg-sage   { background: var(--sage)   url('media/pattern-sage.png')   repeat; background-size: 680px; }
.bg-lilac  { background: var(--lavender) url('media/pattern-lilac.png') repeat; background-size: 680px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(30, 33, 48, .18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.nav__logo img { height: 46px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--indigo); }
.nav__links a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.btn-pill {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
  white-space: nowrap;
}
.btn-pill:hover { background: #26313f; transform: translateY(-1px); }
/* The generic .nav__links a rule (colour + tight padding) would otherwise
   darken the pill's label and squeeze it edge-to-edge, so restore both here */
.nav__links a.btn-pill,
.nav__links a.btn-pill:hover { color: var(--white); }
.nav__links a.btn-pill { padding: 11px 24px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: .25s;
}

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero {
  position: relative;
  background: var(--sage);
  overflow: hidden;
  border-bottom-left-radius: 50% 46px;
  border-bottom-right-radius: 50% 46px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 54px 0 70px;
}
.hero__wordmark { flex: 1 1 60%; }
.hero__wordmark img { width: 100%; max-width: 640px; }
.hero__cards { flex: 0 0 32%; }
.hero__cards img { width: 100%; max-width: 320px; margin-left: auto; }
.hero__tagline {
  position: relative;
  z-index: 2;
  text-align: left;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  padding: 0 0 46px;
  margin: -18px 0 0;
}
.hero__pause {
  position: absolute;
  right: 14px;
  bottom: 60px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,.55);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.hero__pause:hover { background: rgba(255,255,255,.8); }

/* =========================================================
   Generic sections + headings
   ========================================================= */
section { position: relative; }
.section { padding: 60px 0; }
.section--tight { padding: 40px 0; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1.page-title {
  text-align: center;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  padding: 46px 0 30px;
}
h2.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
}
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2vw, 19px); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.text-link {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tutor intro blocks (Home) */
.tutor {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 34px 0;
}
.tutor--reverse { flex-direction: row-reverse; }
.tutor--reverse .tutor__body { text-align: right; }
.tutor__photo { flex: 0 0 210px; }
.tutor__photo img { width: 210px; height: 210px; object-fit: contain; }
.tutor__body { flex: 1; }
.tutor__body h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: .35em;
}

/* Subjects icon row (Home) */
.subjects-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 48px;
  padding: 20px 0 10px;
}
.subject-icon {
  width: 160px;
  text-align: center;
}
.subject-icon img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 12px; }
.subject-icon span { font-weight: 600; display: block; line-height: 1.25; }
.subject-icon small { font-weight: 500; font-size: .82em; }

/* Ethos */
.ethos p { margin-bottom: 1.1em; }
.ethos-layout { display: flex; gap: 44px; align-items: center; }
.ethos-layout .ethos-text { flex: 1 1 54%; }
.ethos-layout .ethos-media { flex: 1 1 42%; }
.ethos-media img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }

/* FAQ accordion (Home) */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq__q::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--indigo);
  transition: transform .2s ease;
}
.faq__item.open .faq__q::after { content: '\2013'; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq__a-inner { padding: 0 24px 22px; }

/* =========================================================
   About page
   ========================================================= */
.bio {
  display: flex;
  align-items: flex-start;
  gap: 46px;
  padding: 20px 0 30px;
}
.bio__photo { flex: 0 0 300px; }
.bio__photo img { width: 300px; height: 300px; object-fit: contain; }
.bio__text { flex: 1; }

.promo-banner { text-align: center; margin: 26px auto 22px; }
.promo-banner img { max-width: 400px; margin: 0 auto; }

/* 4-column grid of pill buttons; the last (partial) row stays centred */
.subject-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}
.subject-buttons > span {
  flex: 0 0 calc((100% - 42px) / 4);
  display: block;
}
.subject-buttons img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .12s ease;
}
.subject-buttons > span:hover img { transform: translateY(-2px); }

.vine-divider {
  margin: 46px auto;
  max-width: 1100px;
}
.vine-divider img { width: 100%; }

/* =========================================================
   Testimonials page (zigzag)
   ========================================================= */
.intro-band {
  background: var(--form-lavender);
  border-radius: 20px;
  padding: 22px 32px;
  max-width: 900px;
  margin: 0 auto 20px;
}
.intro-band p:last-child { margin-bottom: 0; }

.testimonial {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}
.testimonial--reverse { flex-direction: row-reverse; }
.testimonial__media { flex: 1 1 52%; }
.testimonial__caption { flex: 1 1 44%; }

.caption-card {
  background: var(--form-lavender);
  border: 3px solid #F3E7C4;
  outline: 2px solid var(--form-lavender);
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 420px;
}
.caption-card p { margin: 0 0 .8em; }
.caption-card p:last-child { margin-bottom: 0; }
.caption-card .label { font-weight: 400; }

/* Video player placeholder — styled to match the original player chrome.
   Drop real files into /media/videos and swap in the <video> tag (see HTML notes). */
.video-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  background: #0d0f14 center/cover no-repeat;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-box { margin: 0 auto; }
/* Live video: let the clip define its own height (no forced crop) */
.video-box--live {
  aspect-ratio: auto;
  background: #000;
  display: block;
}
.video-box video { width: 100%; height: auto; display: block; }
.video-box__play {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(40, 30, 26, .72);
  display: flex; align-items: center; justify-content: center;
}
.video-box__play::after {
  content: '';
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-box__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
}
.video-box__note {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* =========================================================
   Lessons & Pricing page
   ========================================================= */
.info-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 30px 0;
}
.info-block--reverse { flex-direction: row-reverse; }
.info-block__text { flex: 1 1 55%; }
.info-block__media { flex: 1 1 40%; }
.info-block__media img {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--green);
}
.tint-band {
  background: var(--sage-band);
  border-radius: 20px;
  padding: 30px 34px;
}
.tint-band ul { margin: .4em 0 0; padding-left: 1.2em; }
.tint-band li { margin-bottom: .5em; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.media-grid figure { margin: 0; }
.media-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.price-tiles {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px 20px;
  align-items: center;
  max-width: 1000px;
  margin: 26px auto 0;
}
.price-tiles img { width: 100%; }

/* Click-to-enlarge — used on the Lessons & Pricing page */
.lessons-page img { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.lessons-page img:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 24, .88);
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }

/* =========================================================
   Get In Touch page (contact form)
   ========================================================= */
.form-wrap { max-width: 940px; margin: 0 auto 40px; }
.contact-card {
  background: var(--form-lavender);
  border: 1px solid rgba(30,33,48,.45);
  border-radius: 26px;
  padding: 40px 44px;
}
.field { margin-bottom: 20px; }
.field > label,
.group-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.req { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 4px; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 22px;
}
.field textarea {
  border-radius: 20px;
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
/* Honeypot — hidden from real users, catches bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit { margin-top: 6px; display: flex; align-items: center; gap: 16px; }
.btn-pill:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-status {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 0 0;
}
.form-status:empty { display: none; }
.form-status--success { color: var(--green); }
.form-status--error { color: var(--coral); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(30, 33, 48, .18);
  padding: 34px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo img { height: 60px; width: auto; }
.site-footer__tag { flex: 1; text-align: center; font-weight: 600; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  body { font-size: 17px; }

  .nav__links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(30,33,48,.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
    box-shadow: var(--shadow-sm);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav__links .nav__cta-li { margin-top: 8px; }
  .nav__toggle { display: block; }

  .hero__inner { flex-direction: column; text-align: center; padding: 36px 0 40px; }
  .hero__cards { flex-basis: auto; }
  .hero__cards img { margin: 0 auto; max-width: 240px; }
  .hero__wordmark img { margin: 0 auto; }
  .hero__tagline { text-align: center; }
  .hero__pause { bottom: 54px; }

  .tutor, .tutor--reverse { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .tutor--reverse .tutor__body { text-align: center; }
  .tutor__photo img { width: 180px; height: 180px; }

  .bio { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .bio__photo img { width: 240px; height: 240px; }

  .subject-buttons > span { flex: 0 0 calc((100% - 14px) / 2); }

  .ethos-layout { flex-direction: column; gap: 24px; }
  .ethos-layout .ethos-text, .ethos-layout .ethos-media { flex: 0 0 auto; width: 100%; }

  .testimonial, .testimonial--reverse { flex-direction: column; gap: 20px; }
  .testimonial__media, .testimonial__caption { flex: 0 0 auto; width: 100%; }
  .caption-card { max-width: 520px; margin: 0 auto; }
  .video-box { margin: 0 auto !important; }

  .info-block, .info-block--reverse { flex-direction: column; }

  .name-row { grid-template-columns: 1fr; }
  .price-tiles { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 20px; }

  .site-footer .container { flex-direction: column; gap: 16px; }
  .site-footer__tag { order: -1; }
}

@media (max-width: 520px) {
  .subject-buttons > span { flex: 0 0 100%; }
}

/* Respect reduced-motion: JS also checks this to stop the hero animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
