/* ============================================
   HomeworXX — huiswerkbegeleiding & bijles Zutphen
   Design gebaseerd op templates.chriskokkeler.com/educatie/naturel
   Kleuren afgeleid van bestaande huisstijl homeworxx.nl (groen/blauw)
   ============================================ */

:root {
  --ink: #23271A;
  --cream: #F6F6EF;
  --bg-alt: #ECEFE1;
  --card: #FFFFFF;
  --muted: #61665A;
  --border: #DEE2D0;
  --green: #42770D;        /* zelfde hue (~90°) als merkgroen #62C300, alleen donkerder/verzadigder i.p.v. richting olijf getrokken — 5.4:1 op wit */
  --green-bright: #62C300; /* origineel merkgroen — bewust alleen op donkere ondergrond of als decoratief element, nooit als tekst/knop op licht (contrast 2.25:1, faalt AA) */
  --green-tint: #EBF4E1;   /* zeer lichte, zelfde-hue tint — voor featured-kaart i.p.v. een vol groen blok */
  --footer-bg: #1E2216;
  --footer-text: #F6F6EF;
  --footer-muted: #9BA189;
  --cta-muted: #E4EEDD;    /* lichte groentint tekst — 4.5:1 op de CTA-sectie-achtergrond (--green), footer-muted valt hier te veel weg (2.0:1) */
  --radius: 14px;
  --radius-lg: 24px;
  --font-heading: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-md { max-width: 940px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
.philosophy-grid p, .faq-a p, .lead { max-width: 62ch; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.display-1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.display-2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.display-3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn:hover { opacity: 0.9; }

/* Zichtbare focus-ring — toetsenbordnavigatie, doelgroep bevat oudere ouders/verzorgers */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.btn-cta:focus-visible { outline-color: var(--green-bright); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(98,195,0,0.28); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(98,195,0,0.4); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-white { background: #fff; color: var(--green); }
/* v2: CTA-sectie krijgt eigen middengroene achtergrond (i.p.v. dezelfde bijna-zwarte footer-tint) zodat sectie en footer niet in elkaar overlopen; knop juist donkerder dan die achtergrond i.p.v. feller */
.bg-cta { background: var(--green); }
.btn-cta { background: var(--footer-bg); color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.btn-cta:hover { background: #171a12; }
.btn-block { width: 100%; justify-content: center; }

section { padding: 88px 0; scroll-margin-top: 84px; }
section.tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); color: #fff; }
.bg-footer { background: var(--footer-bg); }

.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 246, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.site-header .wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.78;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active { opacity: 1; color: var(--green); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 84px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu a.active { color: var(--green); }
.mobile-menu a.btn-primary { color: #fff; font-family: var(--font-body); font-size: 15px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (full-bleed, v4) ---------- */
.hero-full {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  min-height: 88vh;
  padding-top: 84px;
  padding-left: max(24px, calc((100% - 1120px) / 2 + 24px));
}
.hero-full-photo { position: relative; overflow: hidden; }
.hero-full-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-full-text { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 48px 0; max-width: 660px; }
.hero-full-text .display-1 { font-size: clamp(34px, 4.8vw, 56px); }
@media (max-width: 900px) {
  .hero-full { grid-template-columns: 1fr; min-height: auto; padding-left: 24px; padding-right: 24px; }
  .hero-full-photo { order: -1; height: 46vh; min-height: 320px; margin: 0 -24px; width: calc(100% + 48px); }
  .hero-full-text { max-width: none; padding: 32px 0; }
}

/* ---------- Werkplek — full-bleed sfeerband (v4) ---------- */
.werkplek { position: relative; height: 56vh; min-height: 420px; max-height: 620px; overflow: hidden; }
.werkplek-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.werkplek::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,34,22,0.88) 0%, rgba(30,34,22,0.35) 42%, rgba(30,34,22,0) 68%);
}
.werkplek-caption { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2; padding: 0 24px; }
.werkplek-caption .pull-quote { font-size: clamp(18px, 2.4vw, 24px); }

/* ---------- Philosophy photo collage (v4) ---------- */
.philosophy-collage { position: relative; padding: 0 24px 24px 0; }
.collage-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; }
.collage-accent {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  object-fit: cover; border-radius: var(--radius); border: 5px solid var(--cream);
  box-shadow: 0 14px 30px rgba(35,39,26,0.18);
}
@media (max-width: 860px) { .philosophy-collage { padding: 0 20px 20px 0; max-width: 340px; margin: 0 auto; } }

/* ---------- Hero (legacy, nog gebruikt door over-ons) ---------- */
.hero {
  padding-top: 160px;
  padding-bottom: 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
/* v2: decoratieve vorm in het echte merkgroen achter de portretfoto — hier hoeft geen tekstcontrast te kloppen, dus juist hier mag het felle merkgroen wél voluit */
.hero-photo-wrap { position: relative; }
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--green-bright);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-photo-wrap .hero-photo { position: relative; z-index: 1; }
.hero-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.badge {
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 128px; }
}

/* ---------- Cards / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: flex-start; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-5-7 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- Programs / pricing ---------- */
.program-card { position: relative; display: flex; flex-direction: column; }
/* v2: geen vol groen blok meer — lichte tint + dikke accentrand bovenaan, houdt de kaart luchtig maar herkenbaar "hun" groen */
.program-card.featured {
  background: var(--green-tint);
  color: var(--ink);
  border-color: var(--green);
  border-top: 4px solid var(--green-bright);
  transform: scale(1.03);
}
.program-card.featured h3 { color: var(--ink); }
.program-card .price { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--green); margin: 10px 0 14px; }
.program-card.featured .price { color: var(--green); }
.program-card .duration { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.program-card.featured .duration { color: var(--muted); }
.program-card .desc { font-size: 14px; color: var(--muted); margin: 10px 0 18px; line-height: 1.6; }
.program-card.featured .desc { color: var(--muted); }
.program-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.program-card li { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.price-table { margin: 4px 0 20px; border-top: 1px solid var(--border); }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.price-row .amount { font-weight: 700; }
.program-card .badge-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green-bright); color: var(--ink);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 999px;
}

/* ---------- Philosophy ---------- */
.philosophy-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.philosophy-photo { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; aspect-ratio: 4/5; }
.philosophy-photo img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-grid p + p { margin-top: 16px; }
@media (max-width: 860px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-photo { max-width: 340px; margin: 0 auto; }
}

/* ---------- Stats (resultaten) ---------- */
.stat-strip-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; max-width: 480px; margin: 0 auto; }
.stat-strip-2 > div::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  background: var(--green-bright);
  border-radius: 2px;
  margin: 0 auto 14px;
}

/* ---------- Quote ---------- */
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  font-style: italic;
}
.quote-attr { color: var(--green); font-weight: 600; font-size: 14px; margin-top: 18px; }

/* ---------- Signals / checklist ---------- */
.signal-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.signal-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(62,110,26,0.14); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.signal-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Team ---------- */
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-alt); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.team-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.team-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Team mosaic (v4) — geen identieke kaartenmuur, geportretteerde crops, één uitgelicht docent ---------- */
.team-mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 24px; }
.team-mosaic .team-card { text-align: left; }
.team-mosaic .team-photo {
  aspect-ratio: 3/4; object-position: center 20%;
  border-radius: var(--radius-lg); border: none;
  box-shadow: 0 1px 0 var(--border);
}
.team-mosaic .team-card.featured { grid-column: span 2; }
.team-mosaic .team-card.featured .team-photo { aspect-ratio: 16/10; object-position: center 25%; }
.team-mosaic .team-card.featured h3 { font-size: 22px; }
.team-mosaic .team-card.featured .team-desc { max-width: 60ch; }
@media (max-width: 700px) {
  .team-mosaic { grid-template-columns: 1fr 1fr; }
  .team-mosaic .team-card.featured { grid-column: span 2; }
  .team-mosaic .team-card.featured .team-photo { aspect-ratio: 4/3; }
}

/* ---------- Stats ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 36px; font-weight: 700; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; margin-top: 4px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews ---------- */
.review-card .stars { color: var(--green); margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-family: var(--font-heading); font-style: italic; font-size: 16px; line-height: 1.6; margin-bottom: 14px; }
.review-name { font-size: 14px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; text-align: left; font-family: var(--font-heading); font-size: 17px; font-weight: 600;
  color: var(--ink);
}
.faq-q svg { flex-shrink: 0; transition: transform 0.25s; color: var(--green); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }
.faq-a p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream); color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }
.contact-info-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; margin-bottom: 14px;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  background: rgba(62,110,26,0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-row .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px; }
.contact-info-row .value { font-size: 15px; font-weight: 600; }
.form-success { text-align: center; padding: 64px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.form-success svg { color: var(--green); margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer.site-footer { padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-grid h3 { color: var(--footer-text); font-size: 22px; margin-bottom: 12px; }
.footer-grid h4 { color: var(--green-bright); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-desc { color: var(--footer-muted); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span { text-decoration: none; font-size: 14px; color: var(--footer-muted); display: flex; align-items: center; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(155,161,137,0.2);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--footer-muted); font-size: 12px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 12px; padding-bottom: 22px;
  background: linear-gradient(to top, var(--cream) 55%, transparent);
  display: none; gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 860px) { .sticky-cta { display: flex; } }
.sticky-cta a { text-decoration: none; }
.sticky-call {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.sticky-book {
  flex: 1; height: 56px;
  background: var(--green); color: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(62,110,26,0.3);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 72px; }

/* ---------- Utility ---------- */
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
