/* =====================
   HOME.CSS — TRAIN website
   Homepage-specifieke stijlen
   ===================== */

/* OVER TRAIN CARD */
.card-wrap {
  padding: 48px 0 0;
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.card-img {
  aspect-ratio: 3/2;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 60%);
}

.card-img-tekst {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 280px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.card-kop {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* DONEER BALK */

.doneer-balk {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 20px 0 24px;
}

.doneer-balk-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lighter);
  margin-right: auto;
  max-width: 480px;
}

.doneer-balk-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.doneer-balk-btn:hover {
  background: var(--green);
  color: #fff;
}

/* TIEN BALK */
.tien-balk {
  text-align: center;
}

.tien-balk-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
}

.tien-balk-tekst {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 6px;
}

.tien-balk-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--lighter);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HOOFDVERHAAL */
.hero-wrap {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-img {
  aspect-ratio: 3/2;
  background-color: #fafaf8;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-kop {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* VERHALEN GRID */
.verhalen-wrap {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.verhalen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.story-card {
  cursor: pointer;
  display: block;
}

.story-card:hover .story-kop {
  color: var(--green);
}

.story-img {
  aspect-ratio: 3/2;
  background-color: #fafaf8;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.story-card:hover .story-img img {
  transform: scale(1.04);
}

.story-kop {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.story-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* QUIZ */
.quiz-wrap {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.quiz-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.quiz-img {
  aspect-ratio: 16/9;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.quiz-mute-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 20px;
  border: none;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  justify-content: center;
}

.quiz-mute-btn:hover {
  background: rgba(0,0,0,0.8);
}

.quiz-mute-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quiz-mute-btn[data-muted="false"] {
  background: var(--green);
}

.quiz-mute-btn[data-muted="false"]:hover {
  background: var(--green-dark);
}

.quiz-mute-btn.pulse {
  animation: mute-pulse 1.8s ease-out 2;
}

@keyframes mute-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,158,63,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(0,158,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,158,63,0); }
}

.quiz-img video,
.quiz-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quiz-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-kop {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.quiz-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* RODDELS */
.roddels-wrap {
  padding: 48px 0 56px;
}

.roddels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.roddel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.roddel-kop {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.roddel-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* QUOTE BALK */
.quote-balk {
  text-align: center;
}

.quote-balk-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-balk-tekst {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* RESPONSIVE — één blok, geen duplicaten */
@media (max-width: 760px) {
  .card-grid,
  .hero-grid,
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-mute-btn {
    height: 32px;
    padding: 0 10px 0 8px;
    font-size: 9px;
    gap: 4px;
    bottom: 8px;
    right: 8px;
  }

  .quiz-mute-btn svg {
    width: 14px;
    height: 14px;
  }

  .verhalen-grid {
    grid-template-columns: 1fr 1fr;
  }

  .roddels-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .verhalen-grid,
  .roddels-grid {
    grid-template-columns: 1fr;
  }
}