/* ============================================================
   Adequaat — premium UI-laag
   Twee thema's op dezelfde markup:
     body.theme-verfijnd  -> licht & luchtig
     body.theme-premium   -> diep & contrasterend
   ============================================================ */

/* ---------- Thema-variabelen ---------- */
body.theme-verfijnd {
  --ph-bg: linear-gradient(135deg, #f4f9fc 0%, #e2eff7 100%);
  --ph-text: #005784;
  --ph-sub: #4a6b7d;
  --ph-badge-bg: #ada388;
  --ph-badge-text: #00344e;
  --ph-accent: #ada388;
  --icon-bg: #e3eff7;
  --icon-fg: #005784;
  --stat-num: #7d6f47;
  --step-bg: #005784;
  --step-num: #ffffff;
  --quote-bg: #f7f4ee;
  --quote-border: #ada388;
}

body.theme-premium {
  --ph-bg: linear-gradient(120deg, #00344e 0%, #005784 55%, #0d6ea3 100%);
  --ph-text: #ffffff;
  --ph-sub: #cfe4f0;
  --ph-badge-bg: #ada388;
  --ph-badge-text: #00344e;
  --ph-accent: #ada388;
  --icon-bg: #ffffff;
  --icon-fg: #005784;
  --stat-num: #7d6f47;
  --step-bg: #ada388;
  --step-num: #00344e;
  --quote-bg: #f7f4ee;
  --quote-border: #ada388;
}

/* ---------- Page hero (vervangt .page-hero op nieuwe pagina's) ---------- */
.phero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background: var(--ph-bg);
  color: var(--ph-text);
}
.phero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* subtiel stip-patroon (verfijnd) */
.theme-verfijnd .phero::before {
  background-image: radial-gradient(rgba(0, 87, 132, .07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
/* zachte organische gloed (premium) — bewust géén diagonale lijnen zodat phero ≠ hero */
.theme-premium .phero::before {
  background-image:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .12), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(173, 163, 136, .16), transparent 40%);
}
/* optionele foto-achtergrond */
.phero.has-photo .phero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.phero.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.theme-verfijnd .phero.has-photo::after { background: linear-gradient(120deg, rgba(244, 249, 252, .94), rgba(226, 239, 247, .82)); }
.theme-premium .phero.has-photo::after { background: linear-gradient(120deg, rgba(0, 52, 78, .92), rgba(0, 87, 132, .78)); }
.phero .container { position: relative; z-index: 2; }

.phero .badge {
  display: inline-block;
  background: var(--ph-badge-bg);
  color: var(--ph-badge-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.phero h1 {
  color: var(--ph-text);
  font-size: 2.9rem;
  line-height: 1.12;
  max-width: 760px;
  margin-bottom: 1rem;
}
.phero .lead {
  font-size: 1.2rem;
  color: var(--ph-sub);
  max-width: 700px;
  margin: 0;
}
.phero .accent-bar {
  width: 64px;
  height: 5px;
  background: var(--ph-accent);
  border-radius: 3px;
  margin-bottom: 1.4rem;
}

/* ---------- Merk-signatuur: gouden streep onder sectie-titels ---------- */
.section-head h2 { position: relative; padding-bottom: .6rem; }
.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--goud);
}
.theme-premium .section-dark .section-head h2::after { background: var(--goud); }

/* ---------- Iconen ---------- */
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex: 0 0 auto;
}
.icon-badge svg {
  width: 27px;
  height: 27px;
  stroke: var(--icon-fg);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-premium .section-dark .icon-badge { background: rgba(255, 255, 255, .1); }
.theme-premium .section-dark .icon-badge svg { stroke: #ada388; }

/* ---------- Kaarten ---------- */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 50, 75, .13);
}
.card.card-icon { border-top: 4px solid var(--blauw); }
.theme-premium .card.card-icon { border-top-color: var(--goud); }

/* ---------- Donkere sectie (past zich aan per thema) ---------- */
.theme-verfijnd .section-dark { background: #eef5fa; color: var(--tekst); }
.theme-premium .section-dark {
  background: linear-gradient(135deg, #00344e 0%, #005784 100%);
  color: #eaf4fa;
}
.theme-premium .section-dark h2,
.theme-premium .section-dark h3 { color: #ffffff; }
.theme-premium .section-dark p { color: #cfe4f0; }
.theme-premium .section-dark .card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.theme-premium .section-dark .card h3 { color: #ffffff; }
.theme-premium .section-dark .card p { color: #cfe4f0; }
.theme-premium .section-dark .card a.card-link { color: #c9e8f8; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat .num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--stat-num);
}
.stat .lbl {
  display: block;
  margin-top: .55rem;
  font-size: .95rem;
  color: var(--tekst-licht);
}
.theme-premium .section-dark .stat .lbl { color: #cfe4f0; }
.theme-premium .section-dark .stat .num { color: #ada388; }

/* ---------- Stappenlijn ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  margin: 1.5rem 0;
}
.step { position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--step-bg);
  color: var(--step-num);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(0, 50, 75, .18);
}
.step h3 { margin-top: 0; }
.step p { color: var(--tekst-licht); font-size: .97rem; }
.theme-premium .section-dark .step p { color: #cfe4f0; }

/* ---------- Pull-quote ---------- */
.pullquote {
  border-left: 4px solid var(--quote-border);
  background: var(--quote-bg);
  padding: 1.5rem 1.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--blauw-donker);
  margin: 2.2rem 0;
}

/* ---------- Twee-koloms (tekst + beeld) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split .split-media img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 45, 70, .2);
  display: block;
  width: 100%;
}
.split.rev .split-media { order: 2; }

/* ---------- CTA-banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  background: #00344e;
  border-top: 5px solid var(--goud);
  margin: 3rem 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 95% at 50% 0%, rgba(173, 163, 136, .20), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #ffffff; margin-top: 0; font-size: 2rem; }
.cta-banner p { max-width: 620px; margin: 0 auto 1.6rem; color: #d8ecf6; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .cta-alt { display: block; margin-top: 1rem; color: #cfe4f0; font-size: .95rem; position: relative; }
.cta-banner .cta-alt a { color: #ffffff; font-weight: 700; }

/* ---------- Checkmark-lijst ---------- */
.check-list { list-style: none; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--icon-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005784' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.theme-premium .section-dark .check-list li::before {
  background-color: rgba(255, 255, 255, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ada388' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Scroll-reveal ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- A/B-schakelaar ---------- */
.ab-switch {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #00344e;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.ab-switch .ab-label { color: #9db9c9; font-size: .72rem; font-weight: 700; padding: 0 6px 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.ab-switch button {
  border: 0;
  background: transparent;
  color: #bcd6e4;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ab-switch button.on { background: var(--goud); color: #00344e; }

/* ---------- Homepage (hero + ingangen) ---------- */
.theme-premium .hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #00344e 0%, #005784 55%, #0d6ea3 100%);
}
.theme-premium .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.theme-premium .hero .container { position: relative; z-index: 2; }
.theme-premium .hero h1 { color: #ffffff; }
.theme-premium .hero p { color: #cfe4f0; }
.theme-premium .hero .accent-bar {
  width: 64px; height: 5px; background: var(--goud);
  border-radius: 3px; margin: 0 0 1.4rem;
}
.theme-premium .hero-img img { box-shadow: 0 24px 56px rgba(0, 0, 0, .4); }

/* ingang-kaarten: hover-lift + gouden rand in premium */
.ingang { transition: transform .18s ease, box-shadow .18s ease; }
.ingang:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 50, 75, .13); }
.theme-premium .ingang { border-top-color: var(--blauw); }
.theme-premium .ingang.zakelijk { border-top-color: var(--goud); }

/* donkere variant van een sectie op de homepage */
.theme-premium .section-dark .ingang {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-top: 5px solid var(--goud);
}
.theme-premium .section-dark .ingang h2 { color: #ffffff; }
.theme-premium .section-dark .ingang p { color: #cfe4f0; }
.theme-premium .section-dark .ingang ul a { color: #c9e8f8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .phero h1 { font-size: 2.1rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.rev .split-media { order: 0; }
  .stats { grid-template-columns: 1fr; gap: .5rem; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.4rem; }
}
