/*
 * Bestand  : seo-blokken.css
 * Project  : Verkeersschool Dijkhuizen
 * Doel     : Gedeelde SEO-contentblokken (veelgestelde vragen, keuzetabel,
 *            werkgebiedmodule, doorlinks). Hergebruikt bewust de bestaande
 *            FAQ-, tarief-tabel- en chipstijl zodat het design gelijk blijft.
 */

.seo-blok {
  padding: var(--ruimte-8) 0;
  background: var(--kleur-licht);
}

.seo-blok--wit {
  background: var(--kleur-wit);
}

.seo-blok__kop {
  max-width: 780px;
  margin-bottom: var(--ruimte-3);
}

.seo-blok__kop .label {
  display: inline-block;
  margin-bottom: var(--ruimte-1);
  font-size: var(--tekst-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kleur-accent);
}

.seo-blok__kop h2 {
  font-family: var(--font-kop);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--kleur-donker);
  text-wrap: balance;
  margin: 0 0 var(--ruimte-1);
}

.seo-blok__kop p {
  color: var(--kleur-tekst);
  line-height: 1.7;
  margin: 0;
}

/* ─── Veelgestelde vragen — vraag/antwoord-kaarten in twee kolommen ───── */

.faq-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--ruimte-2);
  align-items: start;
}

.faq-item {
  background: var(--kleur-wit);
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 40, 100, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover { border-color: #c5d6ec; }

.faq-item[open] {
  border-color: var(--kleur-accent);
  box-shadow: 0 1px 2px rgba(0, 40, 100, 0.06), 0 8px 24px -10px rgba(0, 90, 200, 0.22);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  font-family: var(--font-tekst);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--kleur-donker);
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before,
.faq-antwoord::before {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}

.faq-item summary::before {
  content: 'V';
  background: var(--kleur-accent);
  color: var(--kleur-wit);
}

.faq-item summary::after {
  content: '+';
  margin-left: auto;
  padding-top: 2px;
  color: var(--kleur-accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--kleur-accent); }
.faq-item summary:active { opacity: 0.8; }

.faq-item summary:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.45);
  outline-offset: 2px;
}

.faq-antwoord {
  position: relative;
  padding: 0 20px 20px 64px;
  font-size: 0.95rem;
  color: var(--kleur-tekst);
  line-height: 1.7;
}

.faq-antwoord::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 0;
  background: var(--kleur-licht-blauw);
  color: var(--kleur-accent);
}

.faq-antwoord p { margin: 0 0 0.5rem; }
.faq-antwoord p:last-child { margin-bottom: 0; }

.faq-antwoord a {
  color: var(--kleur-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.faq-item[open] .faq-antwoord { animation: faq-open 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

@media (max-width: 600px) {
  .faq-item summary { padding: 16px; gap: 12px; }
  .faq-antwoord { padding: 0 16px 16px 58px; }
  .faq-antwoord::before { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-antwoord { animation: none; }
}

/* ─── Vergelijkings-/werkgebiedtabel ──────────────────────────────────── */

.seo-tabel-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: var(--ruimte-3);
}

.seo-tabel {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--kleur-wit);
}

.seo-tabel caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--kleur-secundair);
  padding: 0 0 0.5rem;
  caption-side: bottom;
}

.seo-tabel th,
.seo-tabel td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.92rem;
  vertical-align: top;
}

.seo-tabel thead th {
  background: #f4f6f8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kleur-secundair);
  white-space: nowrap;
}

.seo-tabel tbody th {
  font-weight: 700;
  color: var(--kleur-donker);
  white-space: nowrap;
}

.seo-tabel tbody tr:last-child th,
.seo-tabel tbody tr:last-child td { border-bottom: none; }

.seo-tabel tbody tr:hover td,
.seo-tabel tbody tr:hover th { background: #f8faff; }

.seo-tabel a {
  color: var(--kleur-accent);
  font-weight: 600;
  text-decoration: none;
}

.seo-tabel a:hover { text-decoration: underline; }

.seo-tabel a:focus-visible,
.seo-chips a:focus-visible {
  outline: 2px solid var(--kleur-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.seo-prijs {
  font-weight: 700;
  color: var(--kleur-accent);
  white-space: nowrap;
}

/* ─── Doorlinks / werkgebiedmodule ────────────────────────────────────── */

.seo-doorlinks {
  max-width: 780px;
  margin-top: var(--ruimte-4);
}

.seo-doorlinks h3 {
  font-family: var(--font-kop);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kleur-donker);
  margin: 0 0 0.75rem;
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-chips a {
  display: inline-block;
  background: #e8f0fe;
  color: var(--kleur-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--afronding-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.seo-chips a:hover { background: var(--kleur-accent); color: var(--kleur-wit); }
.seo-chips a:active { transform: scale(0.97); }

/* ─── Reviewcitaten (team) ────────────────────────────────────────────── */

.seo-citaten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--ruimte-2);
}

.seo-citaat {
  background: var(--kleur-wit);
  border: 1px solid #e9ecef;
  border-radius: var(--afronding);
  padding: 1.25rem;
  margin: 0;
  box-shadow: var(--schaduw-zacht);
}

.seo-citaat p {
  margin: 0 0 0.75rem;
  color: var(--kleur-tekst);
  line-height: 1.7;
  font-size: 0.95rem;
}

.seo-citaat .seo-citaat__bron {
  margin: 0;
  font-size: 0.85rem;
  color: var(--kleur-secundair);
}

.seo-citaat strong { color: var(--kleur-donker); }

@media (max-width: 600px) {
  .seo-blok { padding: var(--ruimte-6) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-blok *, .seo-blok *::before, .seo-blok *::after { transition-duration: 0.01ms !important; }
}

/* Tabellen als gestapelde kaarten op smalle schermen */
@media (max-width: 640px) {
  .seo-tabel-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
  .seo-tabel, .seo-tabel tbody, .seo-tabel tr, .seo-tabel th, .seo-tabel td { display: block; min-width: 0 !important; width: 100%; }
  .seo-tabel { background: transparent; }
  .seo-tabel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seo-tabel caption { display: block; }
  .seo-tabel tbody tr {
    background: var(--kleur-wit);
    border: 1px solid #e9ecef;
    border-radius: var(--afronding);
    box-shadow: var(--schaduw-zacht);
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  .seo-tabel tbody th { font-size: 1rem; padding: 0.85rem 1rem 0.5rem; border-bottom: none; white-space: normal; }
  .seo-tabel tbody td { padding: 0.45rem 1rem; border-bottom: none; text-align: right; overflow: hidden; }
  .seo-tabel tbody td:last-child { padding-bottom: 0.85rem; }
  .seo-tabel tbody td::before { content: attr(data-label); float: left; margin-right: 1rem; font-weight: 600; color: var(--kleur-secundair); text-align: left; max-width: 45%; }
  .seo-tabel tbody tr:hover td, .seo-tabel tbody tr:hover th { background: transparent; }
}

/* ─── Jumplinks tarieven ─────────────────────────────────────────────── */

.tarief-jumplinks {
  margin: 0 0 2rem;
}

.tarief-groep[id] {
  scroll-margin-top: 6rem;
}

/* Kenteken-check: opvallende oproep op de BE-pagina's */
.kenteken-check {
  background: var(--kleur-licht-blauw);
  border-left: 4px solid var(--kleur-accent);
  border-radius: 0 var(--afronding) var(--afronding) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  scroll-margin-top: 6rem;
}

.kenteken-check h3 {
  margin: 0 0 .5rem;
  color: var(--kleur-accent);
}

.kenteken-check p {
  margin: 0;
}

.kenteken-check .knop-rij {
  margin-top: 1rem;
}

/* ─── Infokaarten — compacte blokken per categorie of plaats ─────────── */

.seo-kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--ruimte-2);
}

.seo-kaart {
  background: var(--kleur-wit);
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  padding: var(--ruimte-3);
  box-shadow: 0 1px 2px rgba(0, 40, 100, 0.04), 0 8px 24px -14px rgba(0, 60, 140, 0.18);
}

.seo-blok--wit .seo-kaart { background: var(--kleur-licht); }

.seo-kaart h3 {
  font-family: var(--font-kop);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--kleur-donker);
  margin: 0 0 var(--ruimte-1);
}

.seo-kaart p,
.seo-kaart li {
  color: var(--kleur-tekst);
  line-height: 1.7;
  font-size: 0.95rem;
}

.seo-kaart p { margin: 0 0 var(--ruimte-1); }
.seo-kaart ul { margin: 0 0 var(--ruimte-1); padding-left: 1.1rem; }
.seo-kaart a { color: var(--kleur-accent); font-weight: 600; }
.seo-kaart a:focus-visible { outline: 2px solid var(--kleur-accent); outline-offset: 2px; border-radius: 4px; }
