/*
Theme Name: Regenbuffer
Theme URI: https://regen-buffer.lovable.app
Author: Regenbuffer
Author URI: https://regen-buffer.lovable.app
Description: Een one-page WordPress-thema voor Regenbuffer — slim regenwaterbeheer voor een klimaatbestendige leefomgeving. Bevat hero, uitleg, toepassingen en producten-secties, gebouwd met de Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regenbuffer
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Design tokens ---------- */
:root {
  --rb-primary: #0e3b2e;
  --rb-primary-2: #14513f;
  --rb-accent: #7fd1a8;
  --rb-bg: #ffffff;
  --rb-surface: #f5f7f6;
  --rb-card: #ffffff;
  --rb-text: #10201b;
  --rb-muted: #5b6b66;
  --rb-border: #e6ebe8;
  --rb-radius: 16px;
  --rb-radius-lg: 24px;
  --rb-shadow: 0 4px 20px rgba(16, 32, 27, 0.06);
  --rb-shadow-lift: 0 20px 40px rgba(16, 32, 27, 0.12);
  --rb-container: 1200px;
  --rb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rb-font-display: "Playfair Display", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rb-font-body);
  color: var(--rb-text);
  background: var(--rb-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--rb-font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }

/* ---------- Layout ---------- */
.rb-container { max-width: var(--rb-container); margin: 0 auto; padding: 0 24px; }
.rb-section { padding: 80px 0; }
.rb-section--surface { background: var(--rb-surface); }

/* ---------- Header ---------- */
.rb-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rb-border);
}
.rb-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.rb-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rb-font-display); font-size: 20px; color: var(--rb-primary); text-decoration: none; }
.rb-logo img { max-height: 40px; width: auto; }
.rb-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.rb-nav a { color: var(--rb-text); font-size: 14px; font-weight: 500; }
.rb-nav a:hover { color: var(--rb-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.rb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .2s ease; border: 1px solid transparent; cursor: pointer; }
.rb-btn--primary { background: #fff; color: var(--rb-primary); box-shadow: var(--rb-shadow-lift); }
.rb-btn--primary:hover { background: rgba(255,255,255,.9); text-decoration: none; }
.rb-btn--ghost { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.rb-btn--ghost:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.rb-btn--dark { background: var(--rb-primary); color: #fff; }
.rb-btn--dark:hover { background: var(--rb-primary-2); text-decoration: none; }

/* ---------- Hero ---------- */
.rb-hero { position: relative; overflow: hidden; }
.rb-hero__media { position: relative; min-height: 520px; height: 72vh; width: 100%; }
.rb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,59,46,.85), rgba(14,59,46,.6), rgba(14,59,46,.1)); }
.rb-hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.rb-hero__badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); font-size: 12px; font-weight: 500; }
.rb-hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rb-accent); display: inline-block; }
.rb-hero__title { max-width: 900px; margin-top: 20px; font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 600; letter-spacing: -0.02em; }
.rb-hero__title .rb-accent { color: #10201b; }
.rb-hero__text { max-width: 640px; margin-top: 20px; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.rb-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats bar */
.rb-stats { border-bottom: 1px solid var(--rb-border); background: var(--rb-card); }
.rb-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0; }
.rb-stat__k { font-family: var(--rb-font-display); font-size: 1.75rem; font-weight: 600; color: var(--rb-primary); }
.rb-stat__v { margin-top: 4px; font-size: .85rem; color: var(--rb-muted); }

/* ---------- Two-column ---------- */
.rb-two-col { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .rb-two-col { grid-template-columns: 1.1fr 1fr; } }
.rb-eyebrow { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #10201b; }
.rb-h2 { margin-top: 12px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.rb-lead { margin-top: 20px; color: var(--rb-muted); }
.rb-list { margin-top: 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.rb-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.rb-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 999px; background: rgba(127,209,168,.2); color: #0e6b45; display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 2px; }
.rb-circle-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 999px; object-fit: cover; border: 1px solid var(--rb-border); box-shadow: var(--rb-shadow); }

/* ---------- Feature grid ---------- */
.rb-feat-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .rb-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rb-feat-grid { grid-template-columns: repeat(4, 1fr); } }
.rb-feat { padding: 24px; border-radius: var(--rb-radius); border: 1px solid var(--rb-border); background: var(--rb-card); box-shadow: var(--rb-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.rb-feat:hover { transform: translateY(-4px); box-shadow: var(--rb-shadow-lift); }
.rb-feat__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(14,59,46,.1); color: var(--rb-primary); display: grid; place-items: center; font-size: 20px; }
.rb-feat h3 { margin-top: 16px; font-family: var(--rb-font-body); font-size: 1.05rem; font-weight: 600; }
.rb-feat p { margin-top: 8px; font-size: .9rem; color: var(--rb-muted); }

/* ---------- Toepassingen ---------- */
.rb-tags { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 640px) { .rb-tags { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rb-tags { grid-template-columns: repeat(3, 1fr); } }
.rb-tag { padding: 20px; border-radius: 12px; border: 1px solid var(--rb-border); background: var(--rb-card); font-size: .9rem; font-weight: 500; }

/* ---------- Products CTA ---------- */
.rb-products { border-radius: var(--rb-radius-lg); padding: 56px; color: #fff; background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2)); box-shadow: var(--rb-shadow-lift); display: grid; gap: 40px; }
@media (min-width: 768px) { .rb-products { grid-template-columns: 1.4fr 1fr; } }
.rb-products h2 { margin-top: 16px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.rb-products p { margin-top: 16px; color: rgba(255,255,255,.85); max-width: 560px; }
.rb-products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-self: center; }
.rb-product { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.rb-product__t { font-family: var(--rb-font-display); font-size: 1.25rem; font-weight: 600; }
.rb-product__d { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.rb-footer { background: #0b1f18; color: rgba(255,255,255,.75); padding: 48px 0 24px; margin-top: 40px; }
.rb-footer a { color: #fff; }
.rb-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .rb-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.rb-footer h4 { color: #fff; font-family: var(--rb-font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.rb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.rb-footer__bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Mobile nav (basic) ---------- */
.rb-nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--rb-primary); }
@media (max-width: 768px) {
  .rb-nav-toggle { display: inline-flex; }
  .rb-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rb-border); padding: 16px 24px; }
  .rb-nav.is-open { display: block; }
  .rb-nav ul { flex-direction: column; gap: 12px; }
  .rb-header { position: relative; }
  .rb-products { padding: 32px; }
}