/* ════════════════════════════════════════════════════════
   Zichtbare Websites — Blog stylesheet
   Zelfde designtaal als de hoofdsite (parchment + groen + terracotta)
   ════════════════════════════════════════════════════════ */
:root {
  --ink:        #1F1E1A;
  --ink-soft:   #6A6860;
  --ink-faint:  #B0AEA8;
  --paper:      #F6F2EB;
  --paper-warm: #EAE5D8;
  --white:      #FDFAF4;
  --green:      #1A2D26;
  --green-deep: #1E3530;
  --accent:     #C8603C;
  --accent-dim: #AE4E2E;
  --accent-soft:#F0E0D6;
  --gold:       #C4A96A;

  --f-display:  'Fraunces', Georgia, serif;
  --f-body:     'DM Sans', system-ui, sans-serif;
  --ease-out:   cubic-bezier(.16,1,.3,1);

  --shadow-md:  0 4px 12px rgba(31,30,26,0.07), 0 12px 32px rgba(31,30,26,0.08);
  --shadow-accent: 0 6px 20px rgba(200,96,60,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

.label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 500;
  border-radius: 4px;
  transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s,
              transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--terra { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--terra:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--white); box-shadow: var(--shadow-accent); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 32px;
  background: rgba(245,241,234,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12,12,10,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.scrolled { background: rgba(245,241,234,0.97); box-shadow: 0 1px 24px rgba(31,30,26,0.07); }
.nav-inner { max-width: 1100px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-gem { width: 28px; height: 28px; }
.nav-wordmark { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.85rem; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 0.85rem; padding: 9px 20px; color: var(--white); }
.nav-cta:hover { color: var(--white); }
@media (max-width: 760px) { .nav-links li:not(:last-child) { display: none; } }

/* ── BLOG INDEX HERO ── */
.blog-hero { background: var(--green-deep); color: var(--white); padding: 150px 0 80px; position: relative; overflow: hidden; }
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 80% 15%, rgba(200,96,60,0.18), transparent 60%);
  pointer-events: none;
}
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-hero-eyebrow { color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.blog-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; }
.blog-hero h1 em { font-style: italic; color: var(--accent); }
.blog-hero p { color: rgba(255,255,255,0.7); font-weight: 300; font-size: 1.1rem; line-height: 1.7; max-width: 52ch; margin-top: 24px; }

/* ── INDEX GRID ── */
.index-section { padding: 80px 0 110px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--paper-warm); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-thumb { height: 168px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px 20px; }
.blog-thumb-num { position: absolute; right: 8px; top: -22px; font-family: var(--f-display); font-size: 7rem; font-weight: 900; color: rgba(255,255,255,0.10); line-height: 1; pointer-events: none; }
.blog-cat { position: relative; z-index: 1; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: rgba(255,255,255,0.16); padding: 5px 11px; border-radius: 100px; }
.blog-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px; transition: color 0.25s; }
.blog-card:hover .blog-title { color: var(--accent-dim); }
.blog-excerpt { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-readtime { font-size: 0.76rem; color: var(--ink-faint); }
.blog-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--paper-warm); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out); }
.blog-card:hover .blog-arrow { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateX(3px); }

/* ── ARTICLE ── */
.article-hero { background: var(--green-deep); color: var(--white); padding: 140px 0 64px; position: relative; overflow: hidden; }
.article-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 60% at 82% 12%, rgba(200,96,60,0.16), transparent 60%); pointer-events: none; }
.article-hero .wrap--narrow { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.article-cat { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--accent); padding: 5px 12px; border-radius: 100px; margin-bottom: 22px; }
.article-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; }
.article-hero h1 em { font-style: italic; color: var(--accent); }
.article-meta { display: flex; gap: 20px; align-items: center; margin-top: 28px; color: rgba(255,255,255,0.55); font-size: 0.85rem; flex-wrap: wrap; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); }

.article-body { padding: 70px 0 90px; }
.article-body .wrap--narrow > * { max-width: 100%; }
.article-lead { font-family: var(--f-display); font-size: 1.4rem; font-weight: 300; line-height: 1.5; color: var(--ink); margin-bottom: 40px; }
.article-body h2 { font-family: var(--f-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); margin: 52px 0 18px; }
.article-body h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 34px 0 12px; }
.article-body p { font-size: 1.06rem; font-weight: 300; line-height: 1.78; color: #34322C; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-body ul li { position: relative; padding-left: 30px; font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: #34322C; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; position: relative; padding-left: 44px; font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: #34322C; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dim); font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a:not(.btn) { color: var(--accent-dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(174,78,46,0.35); transition: text-decoration-color 0.2s; }
.article-body a:not(.btn):hover { text-decoration-color: var(--accent-dim); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 26px; margin: 32px 0; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }

.callout { background: var(--white); border: 1px solid var(--paper-warm); border-radius: 10px; padding: 28px 30px; margin: 36px 0; }
.callout .label { color: var(--accent-dim); margin-bottom: 10px; }
.callout p { margin-bottom: 0; font-size: 0.98rem; }

.key-takeaway { background: var(--green-deep); color: var(--white); border-radius: 12px; padding: 34px 34px; margin: 44px 0; }
.key-takeaway .label { color: var(--accent); margin-bottom: 14px; }
.key-takeaway p { color: rgba(255,255,255,0.88); font-size: 1.05rem; font-weight: 300; line-height: 1.7; margin-bottom: 0; }

table.compare { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.94rem; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--paper-warm); }
table.compare th { font-family: var(--f-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: var(--white); }
table.compare td { font-weight: 300; color: #34322C; }
table.compare tr:hover td { background: var(--white); }

/* CTA block at article end */
.article-cta { background: var(--green-deep); color: var(--white); border-radius: 14px; padding: 48px 44px; margin-top: 56px; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 20%, rgba(200,96,60,0.2), transparent 60%); pointer-events: none; }
.article-cta > * { position: relative; z-index: 1; }
.article-cta h2 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--white); margin: 0 0 14px; letter-spacing: -0.02em; }
.article-cta p { color: rgba(255,255,255,0.72); font-weight: 300; margin-bottom: 28px; max-width: 46ch; }

/* Related */
.related { padding: 0 0 90px; }
.related h2 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.02em; }

/* ── FOOTER ── */
footer { background: #131A17; padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 700; color: rgba(255,255,255,0.08); letter-spacing: -0.03em; line-height: 1; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.footer-email { color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-email:hover { color: var(--accent); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .wrap, .wrap--narrow { padding: 0 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
  .article-cta, .key-takeaway { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; } }
