/* =========================================================================
   Lindershoeve Pipo — custom theme styles (op Bootstrap 5.3.8)
   Palet: bospar­groen, warme zandkleur, terracotta (pipowagen-warmte), bark
   ========================================================================= */

:root {
  /* Merkkleuren */
  --pipo-green:        #2f5d3a;   /* primair — bos/par */
  --pipo-green-dark:   #234a2d;
  --pipo-green-700:    #1c3b24;
  --pipo-sage:         #8da47e;   /* zacht groen */
  --pipo-sand:         #f7f3ea;   /* warme achtergrond */
  --pipo-sand-2:       #efe7d6;
  --pipo-cream:        #fffdf8;
  --pipo-clay:         #c4622d;   /* terracotta accent */
  --pipo-clay-dark:    #a64f22;
  --pipo-bark:         #2a2520;   /* tekst */
  --pipo-bark-soft:    #5a5048;
  --pipo-line:         #e3dccb;

  /* Bootstrap-variabelen overschrijven */
  --bs-primary:        var(--pipo-green);
  --bs-primary-rgb:    47, 93, 58;
  --bs-body-color:     var(--pipo-bark);
  --bs-body-bg:        var(--pipo-sand);
  --bs-body-font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: 1.0625rem;        /* iets groter — leesbaar voor ouderen */
  --bs-body-line-height: 1.7;
  --bs-link-color:     var(--pipo-green-dark);
  --bs-link-hover-color: var(--pipo-clay-dark);
  --bs-border-color:   var(--pipo-line);
  --bs-heading-color:  var(--pipo-green-700);

  --pipo-radius:       18px;
  --pipo-shadow:       0 18px 48px -24px rgba(42, 37, 32, .35);
  --pipo-shadow-sm:    0 8px 24px -16px rgba(42, 37, 32, .35);
}

/* ---------- Basis & typografie ---------- */
body {
  font-family: var(--bs-body-font-family);
  color: var(--pipo-bark);
  background-color: var(--pipo-sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--pipo-green-700);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead { font-size: 1.2rem; color: var(--pipo-bark-soft); }
.eyebrow {
  font-family: "Nunito Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .82rem;
  color: var(--pipo-clay);
}
a { text-underline-offset: .15em; }

/* Sterke focus-states (toegankelijkheid) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, input:focus-visible {
  outline: 3px solid var(--pipo-clay);
  outline-offset: 2px;
  box-shadow: none;
}

/* ---------- Knoppen ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .72rem 1.5rem; transition: transform .12s ease, background-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { --bs-btn-bg: var(--pipo-green); --bs-btn-border-color: var(--pipo-green); --bs-btn-hover-bg: var(--pipo-green-dark); --bs-btn-hover-border-color: var(--pipo-green-dark); --bs-btn-active-bg: var(--pipo-green-700); }
.btn-clay { --bs-btn-color:#fff; --bs-btn-bg: var(--pipo-clay); --bs-btn-border-color: var(--pipo-clay); --bs-btn-hover-color:#fff; --bs-btn-hover-bg: var(--pipo-clay-dark); --bs-btn-hover-border-color: var(--pipo-clay-dark); color:#fff; }
.btn-outline-cream { --bs-btn-color:#fff; --bs-btn-border-color: rgba(255,255,255,.7); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--pipo-green-700); --bs-btn-hover-border-color:#fff; color:#fff; border:2px solid rgba(255,255,255,.7); }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.08rem; }

/* ---------- Header / navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,253,248,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--pipo-line); }
.site-header .navbar { padding-top: .35rem; padding-bottom: .35rem; }
.navbar-brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.18rem; color: var(--pipo-green-700) !important; display:flex; align-items:center; gap:.5rem; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.site-header .nav-link { font-weight: 600; font-size: .95rem; color: var(--pipo-bark); padding: .4rem .75rem !important; border-radius: 999px; }
.site-header .btn { font-size: .92rem; padding: .48rem 1.05rem; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--pipo-green-dark); }
.site-header .current-menu-item > .nav-link,
.site-header .nav-link.active { color: var(--pipo-green-dark); background: var(--pipo-sand-2); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(28,59,36,.30) 0%, rgba(28,59,36,.78) 100%); z-index:1; }
.hero__bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero__inner { position:relative; z-index:2; padding: clamp(4rem, 12vw, 9rem) 0; }
.hero h1 { color:#fff; font-size: clamp(2.3rem, 5.4vw, 4rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { color: rgba(255,255,255,.94); }
.hero .eyebrow { color: #f2c9ad; }

/* fallback achtergrond als er (nog) geen afbeelding is */
.hero--fallback { background:
  radial-gradient(1200px 500px at 80% -10%, #3b7048 0%, transparent 60%),
  linear-gradient(160deg, var(--pipo-green) 0%, var(--pipo-green-700) 100%); }

/* ---------- Secties ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--sand { background: var(--pipo-sand); }
.section--cream { background: var(--pipo-cream); }
.section--green { background: var(--pipo-green-700); color: #eef3ea; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: #f2c9ad; }
.section-title { max-width: 46rem; }

/* ---------- USP / iconenkaarten ---------- */
.usp-card { background: var(--pipo-cream); border: 1px solid var(--pipo-line); border-radius: var(--pipo-radius); padding: 1.6rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--pipo-shadow-sm); }
.usp-ico { width: 54px; height: 54px; display:inline-grid; place-items:center; border-radius: 14px; background: var(--pipo-sand-2); color: var(--pipo-green-dark); margin-bottom: 1rem; flex: 0 0 auto; }
.usp-ico svg { width: 28px; height: 28px; }
.usp-card .usp-ico { margin-bottom: 1rem; }
.usp-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.usp-card p { color: var(--pipo-bark-soft); margin: 0; font-size: .98rem; }

/* ---------- Feature kaarten met afbeelding ---------- */
.feature-card { background: var(--pipo-cream); border: 1px solid var(--pipo-line); border-radius: var(--pipo-radius); overflow: hidden; height: 100%; box-shadow: var(--pipo-shadow-sm); }
.feature-card img { width:100%; aspect-ratio: 4/3; object-fit: cover; display:block; }
.feature-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.feature-card h3 { font-size: 1.25rem; }

/* ---------- Media split ---------- */
.media-split img { border-radius: var(--pipo-radius); box-shadow: var(--pipo-shadow); width:100%; object-fit: cover; }
.badge-soft { background: var(--pipo-sand-2); color: var(--pipo-green-dark); font-weight:700; border-radius:999px; padding:.5rem .9rem; display:inline-flex; gap:.4rem; align-items:center; }

/* ---------- Keurmerken (SVR/ACSI) ---------- */
.cert-strip { display:flex; flex-wrap:wrap; gap: .75rem 1rem; align-items:center; }
.cert-pill { background:#fff; border:1px solid var(--pipo-line); border-radius:999px; padding:.55rem 1.1rem; font-weight:800; color:var(--pipo-green-700); letter-spacing:.02em; }

/* ---------- CTA blok ---------- */
.cta-band { background: linear-gradient(150deg, var(--pipo-clay) 0%, var(--pipo-clay-dark) 100%); color:#fff; border-radius: calc(var(--pipo-radius) + 6px); padding: clamp(2rem, 5vw, 3.4rem); box-shadow: var(--pipo-shadow); }
.cta-band h2 { color:#fff; }

/* ---------- Content (artikelen/pagina's) ---------- */
.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.1rem; }
.entry-content h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.6rem; font-size: 1.3rem; }
.entry-content img { border-radius: var(--pipo-radius); height:auto; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content blockquote { border-left: 4px solid var(--pipo-clay); padding: .4rem 0 .4rem 1.2rem; font-style: italic; color: var(--pipo-bark-soft); }
.entry-content a { color: var(--pipo-green-dark); font-weight: 600; }
.entry-content a[target="_blank"]::after { content: "\2197"; font-size:.8em; margin-left:.15em; color: var(--pipo-clay); }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: linear-gradient(160deg, var(--pipo-green) 0%, var(--pipo-green-700) 100%); color:#fff; padding: clamp(3rem, 7vw, 4.6rem) 0 clamp(2.4rem,5vw,3.2rem); }
.page-hero h1 { color:#fff; }
.page-hero .lead { color: rgba(255,255,255,.9); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin:0; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color:#fff; }

/* ---------- Posts grid ---------- */
.post-card { background:var(--pipo-cream); border:1px solid var(--pipo-line); border-radius:var(--pipo-radius); overflow:hidden; height:100%; box-shadow: var(--pipo-shadow-sm); display:flex; flex-direction:column; }
.post-card img { aspect-ratio:16/10; object-fit:cover; width:100%; }
.post-card__body { padding:1.3rem 1.4rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.post-card .post-meta { font-size:.85rem; color:var(--pipo-bark-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pipo-green-700); color: #d8e2d2; }
.site-footer a { color:#fff; text-decoration:none; }
.site-footer a:hover { color: #f2c9ad; }
.site-footer h4 { color:#fff; font-size:1.02rem; letter-spacing:.02em; }
.site-footer .footer-brand { font-family:"Fraunces",serif; font-size:1.15rem; color:#fff; }
.site-footer .brand-mark { width: 34px; height: 34px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); }

/* ---------- Skip link (toegankelijkheid) ---------- */
.skip-link { position:absolute; left:-999px; top:0; background:#fff; color:var(--pipo-green-700); padding:.7rem 1.2rem; z-index:2000; border-radius:0 0 10px 0; font-weight:800; }
.skip-link:focus { left:0; }

/* ---------- Diversen ---------- */
.text-clay { color: var(--pipo-clay) !important; }
.bg-sand { background: var(--pipo-sand) !important; }
.rounded-pipo { border-radius: var(--pipo-radius) !important; }
.shadow-pipo { box-shadow: var(--pipo-shadow) !important; }
.list-check { list-style:none; padding-left:0; }
.list-check li { position:relative; padding-left:1.9rem; margin-bottom:.6rem; }
.list-check li::before { content:""; position:absolute; left:0; top:.35em; width:1.15rem; height:1.15rem; background: var(--pipo-green); -webkit-mask: var(--check-mask) center/contain no-repeat; mask: var(--check-mask) center/contain no-repeat; }
:root { --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5 6.5 11.5 2.5 7.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { background: var(--pipo-cream); border:1px solid var(--pipo-line); border-radius: var(--pipo-radius); padding: .8rem; margin-top:.6rem; box-shadow: var(--pipo-shadow-sm); }
}
