/*
Theme Name: De Geldgids
Theme URI: https://degeldgids.info
Author: De Geldgids
Author URI: https://degeldgids.info
Description: Onafhankelijk, vertrouwd thema voor De Geldgids — een gids over belastingaangifte, financiële producten vergelijken en besparen. Bevat ondersteuning voor affiliate-disclosure blokken en een AFM-proof disclaimer-opzet.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: degeldgids
*/
/* =========================================================
   De Geldgids — design tokens (v3)
   Warm, natuurlijk, "reisjournaal"-gevoel: crème, roestbruin,
   olijfgroen en zacht goud. Postkaart-achtige kaarten, een
   golvende sectie-overgang, ronde vormen — minder "SaaS-
   dashboard", meer menselijk en uitnodigend.
   ========================================================= */

:root {
  /* Color */
  --cream:      #FBF3E6;   /* warme crème achtergrond */
  --cream-dk:   #F2E6D2;
  --card:       #FFFDF8;
  --ink:        #2C2016;   /* warm donkerbruin-zwart, tekst */
  --rust:       #C1552F;   /* roestbruin/terracotta — primair accent */
  --rust-dk:    #A6431F;
  --forest:     #3F5D42;   /* olijf-bosgroen — secundair, vertrouwen */
  --forest-dk:  #2C4230;
  --gold:       #D9A441;   /* warm goud — highlight */
  --slate:      #7A6B58;   /* warm gedempt bruin-grijs, secundaire tekst */
  --line:       #EAD9C2;   /* warme lijnkleur */
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Work Sans", sans-serif;

  /* Scale */
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.15rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3.2rem);
  --step-4: clamp(2.6rem, 2rem + 2.8vw, 4.3rem);

  --radius: 24px;
  --radius-sm: 14px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 1.15em; color: var(--ink); }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 48ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-dk);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 52px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(193, 85, 47, 0.55);
}
.btn-primary:hover { background: var(--rust-dk); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(193, 85, 47, 0.6); }
.btn-ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--white); }
.btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 243, 230, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo svg { width: 38px; height: 38px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--ink);
}
.logo-word em { font-style: normal; color: var(--rust); }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--rust-dk); }
nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}
.nav-toggle { display: none; }
@media (max-width: 860px) {
  nav.main-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 32px 28px; gap: 6px;
    transform: translateY(-110%); transition: transform .25s ease;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a {
    font-size: 1.15rem;
    width: 100%;
    padding: 14px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative;
    margin: -11px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--rust);
  }
  .nav-toggle span { top: 21px; }
  .nav-toggle span::before { top: -8px; }
  .nav-toggle span::after { top: 8px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Hero — met golvende overgang naar de volgende sectie */
.hero {
  position: relative;
  padding: 76px 0 120px;
  overflow: visible;
}
@media (max-width: 720px) {
  .hero { padding: 44px 0 76px; }
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
.hero h1 { max-width: 12ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.7em; flex-wrap: wrap; }

/* hero-card: "reiskaart" met een fotoblok-gevoel (gradient i.p.v. foto) */
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(44, 32, 22, 0.35);
  transform: rotate(1.4deg);
  max-width: 100%;
}
@media (max-width: 900px) {
  .hero-card { transform: none; margin-top: 8px; }
}
.hero-card::before {
  content: "";
  display: block;
  height: 150px;
  background:
    radial-gradient(120px 90px at 20% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--rust), var(--gold) 60%, var(--forest));
}
.hero-card .stamp {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex; justify-content: space-between;
  padding: 20px 24px 10px;
}
.hero-card ul { list-style: none; margin: 0; padding: 0 24px 22px; }
.hero-card li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 0.96rem; font-weight: 500;
}
.hero-card li:first-of-type { border-top: none; }
.hero-card li .n {
  font-family: var(--font-display); font-weight: 700; color: var(--rust-dk);
  font-size: 0.95rem; flex-shrink: 0;
}

/* Golf-divider onderaan de hero */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,90 480,0 720,30 C960,60 1200,90 1440,40 L1440,90 L0,90 Z' fill='%23FBF3E6'/%3E%3C/svg%3E");
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero::after { height: 46px; }
}

/* Chapters — postkaart-kaarten met kleurblok bovenaan */
.chapters { background: transparent; position: relative; }
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
}
@media (max-width: 900px) { .chapter-grid { grid-template-columns: 1fr; } }

.chapter-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding: 0 0 28px;
  box-shadow: 0 4px 0 var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
}
.chapter-card::before {
  content: "";
  display: block;
  height: 108px;
  background: linear-gradient(135deg, var(--forest), var(--forest-dk));
}
.chapter-card:nth-of-type(2)::before { background: linear-gradient(135deg, var(--rust), var(--rust-dk)); }
.chapter-card:nth-of-type(3)::before { background: linear-gradient(135deg, var(--gold), var(--rust)); }
.chapter-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 22px 40px -22px rgba(44,32,22,.4); }
.chapter-card > *:not(:first-child) { padding-left: 28px; padding-right: 28px; }
.chapter-num {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: -20px;
  margin-bottom: 14px;
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ink);
  position: relative;
  margin-left: 28px;
}
.chapter-card h3 { font-size: 1.42rem; margin-bottom: 0.4em; margin-top: 18px; }
.chapter-card p { color: var(--slate); font-size: 0.95rem; }
.chapter-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.88rem; color: var(--rust-dk);
  margin-top: 10px;
}
.chapter-sub {
  list-style: none; margin: 16px 0 0; padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.chapter-sub li { font-size: 0.82rem; color: var(--slate); }
.chapter-sub a:hover { color: var(--rust-dk); text-decoration: underline; }

/* Trust strip */
.trust-strip {
  background: var(--forest);
  color: var(--cream);
  padding: 36px 0;
  position: relative;
}
.trust-strip .wrap {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
}
.trust-strip p { margin: 0; color: rgba(251,243,230,0.92); font-size: 0.92rem; max-width: 62ch; }
.trust-strip a { text-decoration: underline; color: var(--white); font-weight: 700; white-space: nowrap; }
.trust-strip .badge {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: .05em;
  text-transform: uppercase; background: rgba(251,243,230,.16);
  padding: 8px 14px; border-radius: 999px; flex-shrink: 0;
}

/* Blog cards — zelfde postkaart-stijl */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 26px;
  box-shadow: 0 4px 0 var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card::before {
  content: "";
  display: block;
  height: 84px;
  background: linear-gradient(135deg, var(--gold), var(--rust));
}
.post-card:nth-of-type(3n+2)::before { background: linear-gradient(135deg, var(--forest), var(--forest-dk)); }
.post-card:nth-of-type(3n+3)::before { background: linear-gradient(135deg, var(--rust), var(--rust-dk)); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -22px rgba(44,32,22,.4); }
.post-card > *:not(:first-child) { padding-left: 24px; padding-right: 24px; }
.post-tag {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rust-dk);
  margin: 16px 0 10px; display: inline-flex; padding-left: 24px;
}
.post-card h3 { font-size: 1.18rem; margin-bottom: 0.35em; }
.post-card p { color: var(--slate); font-size: 0.92rem; margin-bottom: 0.8em; }
.post-card .read { font-weight: 700; font-size: 0.87rem; color: var(--forest); }

/* Affiliate / disclosure notice */
.disclosure {
  background: var(--cream-dk);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0 0 34px;
}
.disclosure strong { color: var(--ink); }

/* Article */
.article-body { max-width: 68ch; }
.article-body h2 { font-size: 1.55rem; margin-top: 1.3em; }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: 0.45em; }
.article-meta {
  display: flex; gap: 16px; align-items: center; margin-bottom: 24px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: .04em;
}

/* Legal page */
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.3rem; margin-top: 1.5em; }
.legal-body p, .legal-body li { color: var(--slate); }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 68px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(251,243,230,.14);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid .logo-word { color: var(--cream); }
.footer-grid .logo-word em { color: var(--gold); }
.footer-grid p { color: rgba(251,243,230,0.58); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(251,243,230,.5); margin-bottom: 1em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(251,243,230,.85); }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: 0.8rem; color: rgba(251,243,230,.45);
}

/* Page intro (pillar / legal pages) */
.page-intro { padding: 64px 0 20px; }
.page-intro .eyebrow { margin-bottom: 1.1em; }
.page-intro h1 { max-width: 20ch; font-size: var(--step-3); }

/* Contact form */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 24px 48px -32px rgba(44,32,22,.3);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible {
  outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(193,85,47,.15);
}
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 4px; }
.contact-aside h3 { font-size: 1.1rem; margin-top: 1.4em; }
.contact-aside p { color: var(--slate); font-size: 0.93rem; }

/* Focus visibility across the board */
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* =========================================================
   Affiliate-marketing componenten
   Plak deze via een "Aangepaste HTML"-blok in een artikel.
   ========================================================= */

/* CTA-blok voor een enkele affiliate-aanbieding */
.affiliate-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
  box-shadow: 0 4px 0 var(--line);
}
.affiliate-cta .cta-copy { flex: 1; min-width: 220px; }
.affiliate-cta .cta-label {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--rust-dk);
  display: block; margin-bottom: 6px;
}
.affiliate-cta h4 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 6px; }
.affiliate-cta p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.affiliate-cta .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .affiliate-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .affiliate-cta .btn { width: 100%; justify-content: center; }
}

/* Vergelijkingstabel voor 2-4 aanbieders */
.compare-table-wrap {
  margin: 28px 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.compare-table th, table.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.compare-table thead th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--forest);
}
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table tbody tr:hover { background: var(--cream-dk); }
table.compare-table .table-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
  color: var(--white); background: var(--rust);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
table.compare-table .table-btn:hover { background: var(--rust-dk); }
/* Op smalle schermen: tabel wordt horizontaal scrollbaar i.p.v. besmeurd */
@media (max-width: 720px) {
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.compare-table { min-width: 560px; }
}

/* Ingesloten widget van een affiliate-partner (bv. Offerti) */
.widget-embed {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 4px 0 var(--line);
}
.widget-embed .widget-label {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--rust-dk);
  display: block; margin-bottom: 14px;
}
.widget-embed iframe {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}
.widget-embed .widget-note {
  font-size: 0.78rem; color: var(--slate); margin: 14px 0 0;
}
