/* ====================================================
   Dutch Teacher Website V2 — Sapforce-Style Aesthetic
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #F2F1EE;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #555555;
  --line: rgba(10,10,10,0.14);
  --orange: #FF6B1A;
  --orange-dark: #E85A00;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 550;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* Safety net: media never exceeds its container */
img, video {
  max-width: 100%;
  height: auto;
}

/* ─── NAV ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(242, 241, 238, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
}

.nav-left a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 10px;
  transition: color 0.2s;
}
.nav-left a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: #333; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 88px 20px 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "intro portrait"
    "proof portrait";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: 48px 40px 0;
  position: relative;
  z-index: 2;
}

.hero-intro {
  grid-area: intro;
  min-width: 0;
  max-width: 660px;
}

/* ─── TUTOR PORTRAIT (HERO) ─── */
.hero-portrait {
  grid-area: portrait;
  align-self: center;
  position: relative;
  width: clamp(190px, 24vw, 300px);
  flex-shrink: 0;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.hero-portrait-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-portrait figcaption {
  margin-top: 12px;
}

.hero-portrait-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-portrait-role {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 16ch;
}

#typewriter-text {
  white-space: nowrap;
}

.typewriter-cursor {
  color: var(--orange);
  font-weight: 400;
  opacity: 1;
}
.typewriter-cursor.blinking {
  animation: typewriter-blink 0.8s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { display: none; }
}

.hero-desc {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── HERO CALLS TO ACTION ─── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-cta-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-bottom {
  margin-top: clamp(48px, 8vh, 96px);
  padding: 0 40px 44px;
  position: relative;
  z-index: 4;
}

.social-proof {
  grid-area: proof;
  align-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.avatar-row {
  display: flex;
  align-items: center;
}

.avatar-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  object-fit: cover;
}
.avatar-row img:first-child { margin-left: 0; }

.proof-count {
  font-size: 18px;
  font-weight: 700;
}

.proof-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.dotted-line {
  border: none;
  border-top: 2px dotted rgba(10,10,10,0.3);
  margin: 0 0 20px 0;
  width: 100%;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(28px, 5vw, 64px);
}

.feature-list li {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.feature-num {
  opacity: 0.4;
  font-weight: 700;
}

/* ─── SECTION BASE ─── */
.section {
  padding: clamp(60px, 8vw, 110px) 40px;
  border-top: 1px solid var(--line);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange-dark);
}

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.45;
  margin-bottom: 3.5rem;
}

/* ─── FRUSTRATION CARDS ─── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pain-card {
  background: var(--bg);
  padding: 2.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.pain-card:hover { background: var(--white); }

.pain-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.pain-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.pain-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.fix-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  width: max-content;
}

/* ─── METHOD CARDS ─── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.method-card:hover { background: var(--white); }

.method-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  text-transform: uppercase;
}

.method-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.method-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── STATS ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-box {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stat-num {
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.25;
}

/* Tutor block above the reviews carousel */
.reviews-host {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-host img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

.reviews-host-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.reviews-host-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

/* ─── 29 REVIEWS CAROUSEL ─── */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--line);
  padding: 2px;
}

.carousel-track {
  display: flex;
  gap: 2px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testi-card {
  flex: 0 0 calc(33.333% - 1.333px);
  min-width: min(300px, 100%);
  background: var(--bg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.2s;
}

.testi-card:hover {
  background: var(--white);
}

.testi-stars {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
}

.testi-role {
  font-size: 12px;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--orange);
  color: var(--ink);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-indicator {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 80px;
  text-align: center;
}

/* ─── BOOKING ─── */
.booking-wrapper {
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.booking-left .section-tag { color: rgba(255,255,255,0.4); }
.booking-left .section-tag::before { background: var(--orange); }
.booking-left .section-title { color: var(--white); }
.booking-left p { color: rgba(255,255,255,0.55); font-size: 16px; line-height: 1.5; }

/* Tutor block inside the dark booking panel */
.booking-host {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.booking-host img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--orange);
}

.booking-left .booking-host-quote {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.45;
  font-style: italic;
}

.booking-left .booking-host-sig {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.booking-calendar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.booking-calendar-intro {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
}

.booking-calendar-frame {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  min-height: 480px;
}

.booking-calendar-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pricing-card {
  position: relative;
  background: var(--bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}
.pricing-card:hover { background: var(--white); }

.pricing-card-featured {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--orange);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card-head {
  padding-right: 90px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pricing-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-amount {
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.pricing-per-lesson {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
}

.pricing-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pricing-details li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}
.pricing-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-dark);
  font-weight: 700;
}

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.pricing-cta:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.pricing-card-featured .pricing-cta {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.pricing-card-featured .pricing-cta:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--ink); }

.pricing-addons {
  margin-top: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
  padding: 2rem 2.5rem;
}

.pricing-addons-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-addons-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-addons-list li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  padding-left: 30px;
  position: relative;
}
.pricing-addons-list li::before {
  content: '✦';
  position: absolute;
  left: 14px;
  color: var(--orange-dark);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.footer-brand { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ─── RESPONSIVE: TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .navbar { padding: 16px 24px; }
  .nav-left { gap: 2px; padding: 8px 14px; }
  .nav-left a { font-size: 13px; padding: 0 8px; }
  .hero-top { padding: 40px 32px 0; }
  .hero-bottom { padding: 0 32px 36px; }
  .section { padding: clamp(48px, 7vw, 90px) 32px; }
  /* carousel shows 2 cards at this tier (see app.js getVisibleCards) */
  .testi-card { flex: 0 0 calc(50% - 1px); }
}

/* ─── RESPONSIVE: MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-left { display: none; }
  .nav-hamburger { display: flex; }

  /* Stack: value prop → CTAs → portrait → social proof */
  .hero-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "portrait"
      "proof";
    row-gap: 28px;
    padding: 28px 20px 0;
  }
  .hero-headline { max-width: none; }
  .hero-desc { max-width: none; margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .hero-cta, .hero-cta-ghost { flex: 1 1 auto; justify-content: center; }
  .hero-portrait { width: min(210px, 60%); }
  .social-proof { margin-top: 0; }
  .hero-bottom { margin-top: 36px; padding: 0 20px 32px; }
  .booking-host { gap: 14px; }
  .booking-host img { width: 64px; height: 64px; }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 24px 20px 40px;
  }
  .hero-bottom > div:nth-child(2) { display: none; }
  .hero-right { align-items: flex-start; }

  .section { padding: clamp(40px, 8vw, 72px) 20px; }

  /* multi-column sections collapse to a single column */
  .pain-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .booking-wrapper { grid-template-columns: 1fr; }

  /* carousel shows 1 card at this tier (see app.js getVisibleCards) */
  .testi-card { flex: 0 0 100%; }

  footer { flex-direction: column; gap: 12px; text-align: center; padding: 28px 20px; }
}

/* ─── RESPONSIVE: SMALL PHONE (≤480px) ─── */
@media (max-width: 480px) {
  .navbar { padding: 12px 16px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  /* clamp() floor (36px) is still too wide for the longest typewriter phrase to fit without wrapping on narrow phones */
  .hero-headline { font-size: 26px; }
  .section { padding: 32px 16px; }
  .pain-card { padding: 1.75rem; }
  .method-card { padding: 1.75rem; }
  .pricing-card { padding: 1.75rem; }
  .pricing-addons { padding: 1.75rem; }
  .booking-wrapper { padding: 28px 20px; }
}
