/*
Theme Name: StrakGroen
Theme URI: https://strakgroen.nl
Author: StrakGroen
Description: Op maat gemaakt thema voor StrakGroen: tuinreiniging en tuinonderhoud in Amsterdam en omstreken. Gebouwd vanuit een eigen ontwerp (fris & modern, groen) met scroll-animaties.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: strakgroen
*/

/* ===========================================================
   StrakGroen stylesheet
   Fris & modern, groene tuinreiniging uit Amsterdam
   =========================================================== */

:root {
  --green-900: #0f3320;
  --green-800: #14522f;
  --green-700: #1c6b3c;
  --green-600: #228a49;
  --green-500: #2fa758;
  --green-100: #e7f5ec;
  --green-50:  #f3faf5;
  --cream: #fbfaf6;
  --ink: #142019;
  --ink-soft: #46564c;
  --line: #e3e8e2;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 51, 32, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 51, 32, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }

img { max-width: 100%; display: block; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-500);
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  max-width: 620px;
  color: var(--ink-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: var(--green-600);
  color: var(--green-700);
}
.btn-outline:hover { background: var(--green-100); color: var(--green-800); }
.btn-light {
  background: var(--white);
  color: var(--green-800);
}
.btn-light:hover { background: var(--green-100); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
/* Let op: geen backdrop-filter hier. Een backdrop-filter op deze header
   maakt ze de "containing block" voor het position:fixed uitklapmenu
   erin, waardoor het menu verkeerd gepositioneerd raakt en de achtergrond-
   foto van de hero-sectie erdoorheen zichtbaar wordt op mobiel (Chrome/Safari-bug). */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 51, 32, 0.09); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-900);
}
.brand:hover { color: var(--green-900); }
.brand .logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand img.custom-logo {
  height: 44px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a.active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
  color: var(--green-700);
}
.main-nav a.active::after,
.main-nav li.current-menu-item > a::after,
.main-nav li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    z-index: 999;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .main-nav ul a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .main-nav .btn { margin-top: 18px; width: 100%; }
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 85% 10%, var(--green-100) 0%, transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-facts {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-fact strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--green-800);
}
.hero-fact span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 8px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .hero-fact {
    min-width: 0;
    text-align: center;
  }
  .hero-fact strong {
    font-size: 1.05rem;
  }
  .hero-fact span {
    display: block;
    font-size: 0.68rem;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
}
.hero-art {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Placeholder image blocks ===== */
.ph-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-100) 0%, #dcefe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ph-image::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 51, 32, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: 500;
}
.ph-image svg { width: 34%; height: 34%; opacity: 0.55; }
.ph-image.square { aspect-ratio: 1/1; }
.ph-image.wide { aspect-ratio: 16/9; }
.ph-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph-image.has-photo::after { content: none; }
.ph-image.has-photo { background: var(--green-100); }

/* ===== USP / feature strip ===== */
.usp-strip {
  background: var(--green-900);
  color: var(--white);
  padding: 40px 0;
}
.usp-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .usp-strip .container { grid-template-columns: repeat(2, 1fr); }
}
.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.usp-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--green-500); }
.usp-item > div { min-width: 0; }
.usp-item h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 2px; }
.usp-item p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; overflow-wrap: break-word; }

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon-badge svg { width: 24px; height: 24px; color: var(--green-700); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Service list items (diensten page) */
.service-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-block > div { min-width: 0; }
.service-block:last-child { border-bottom: none; }
.service-block .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-block .icon-badge svg { width: 26px; height: 26px; color: var(--green-700); }
.service-block h3 { margin-bottom: 6px; }
.service-block p { margin-bottom: 0; }
.service-category-title {
  margin-top: 56px;
  margin-bottom: 4px;
}
.service-category-title:first-of-type { margin-top: 0; }

/* ===== Band / CTA sections ===== */
.band {
  background: var(--green-800);
  color: var(--white);
  border-radius: 28px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.band h2 { color: var(--white); margin-bottom: 10px; }
.band p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 480px; }
.band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.band-light {
  background: var(--green-100);
  border-radius: 28px;
  padding: 56px;
}
.band-light h2, .band-light p { color: var(--green-900); }
.band-light p { color: var(--ink-soft); }

/* ===== Split section ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.split.reverse .split-art { order: -1; }
@media (max-width: 860px) { .split.reverse .split-art { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  min-width: 0;
}
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-600); margin-top: 2px; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== Founders (over ons) ===== */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .founders { grid-template-columns: 1fr; } }
.founder-card { text-align: left; }
.founder-card .ph-image { margin-bottom: 18px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

/* ===== Contact page ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--white); font-weight: 600; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  min-width: 0;
}
.contact-row svg { width: 22px; height: 22px; color: var(--green-500); flex-shrink: 0; margin-top: 2px; }
.contact-row > div { min-width: 0; }
.contact-row span.label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--green-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Honeypot: onzichtbaar voor bezoekers, alleen bots vullen dit in */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Statusmelding na versturen van het contactformulier */
.form-message {
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: padding 0.15s ease;
}
.form-message:empty { margin: 0; padding: 0; }
.form-message.is-success,
.form-message.is-error {
  margin-bottom: 18px;
  padding: 12px 14px;
}
.form-message.is-success {
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-500);
}
.form-message.is-error {
  background: #fdecec;
  color: #9b2226;
  border: 1px solid #e59393;
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo-mark { width: 30px; height: 30px; }
.footer-brand img.custom-logo { height: 34px; width: auto; max-width: 56px; object-fit: contain; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: 56px 0 40px;
  background: var(--green-100);
}
.page-hero .container { max-width: 760px; }

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
  will-change: opacity, transform;
}
.reveal.reveal-scale { transform: translateY(20px) scale(0.96); }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-group > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 360ms; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--green-500); }

/* ===== WordPress basics (editor content on generic pages) ===== */
.entry-content { max-width: 760px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
