/* =====================================================
   goednaarbuiten.nl — Stylesheet
   Meadow Olive + Amber Sunset palet, buiten/tuin/natuur thema
   ===================================================== */

:root {
  /* Brand Colors — Meadow Olive + Amber Sunset (AFF-393 design tokens) */
  --primary:        #5B7A3F;   /* Meadow Olive */
  --primary-dark:   #2C3C1E;   /* Dark Bark */
  --primary-soft:   #EEF2E7;   /* Pale Meadow */
  --accent:         #D47A2A;   /* Amber Sunset */
  --accent-warm:    #FAF2E8;   /* Warm Cream */
  --bg-alt:         #F5F7F2;   /* Light Sage */

  /* Shared system tokens */
  --text:           #1A1A1A;
  --text-soft:      #4A4A4A;
  --muted:          #7A7A7A;
  --bg:             #FFFFFF;
  --border:         #E0E5D8;
  --border-soft:    #EFF2EA;
  --warn:           #C0392B;
  --star:           #E8A33C;

  --shadow-sm:      0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md:      0 10px 30px rgba(0,0,0,.08);
  --shadow-lg:      0 30px 60px -15px rgba(0,0,0,.18);

  --font-head:      "Trocchi", Georgia, "Times New Roman", serif;
  --font-body:      "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:         4px;
  --radius-lg:      8px;
  --max-w:          1365px;
  --container-pad:  30px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 .5em;
  font-weight: 400;
  letter-spacing: -.01em;
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.25; }
h2 { font-size: clamp(1.375rem, 3.5vw, 2rem); line-height: 1.3; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2rem; color: var(--text-soft); }
.lead { font-size: 1.125rem; line-height: 1.7; }
.prose { max-width: 68ch; }
ul, ol { color: var(--text-soft); }
strong { color: var(--text); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}
@media (max-width: 640px) { :root { --container-pad: 20px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--primary-dark); color: #fff;
  padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Touch targets (WCAG 2.5.5) */
.btn--primary, .btn--outline-white, .btn--outline { min-height: 48px; }
.nav-list a { min-height: 44px; display: flex; align-items: center; }

/* =====================================================
   Top bar
   ===================================================== */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .6rem; padding-bottom: .6rem; gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar-left span { margin-right: 1.5rem; display: inline-flex; align-items: center; gap: .4rem; }
.topbar-right span { margin-left: 1.25rem; }
@media (max-width: 720px) { .topbar-right { display: none; } }

/* =====================================================
   Header / Navigation
   ===================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  min-height: 56px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: 1.5rem; padding-top: .5rem; padding-bottom: .5rem;
}
@media (min-width: 768px) { .header-inner { min-height: 80px; } }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 400; color: var(--text); }
@media (min-width: 768px) { .brand-name { font-size: 1.5rem; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--text); display: block; }
@media (min-width: 992px) { .nav-toggle { display: none; } }

.primary-nav {
  position: fixed; inset: 56px 0 0 0; background: #fff; padding: 1rem var(--container-pad);
  overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
}
.primary-nav.is-open { transform: translateX(0); }
@media (min-width: 992px) {
  .primary-nav { position: static; inset: auto; background: none; padding: 0; transform: none; overflow: visible; }
}

.nav-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 992px) { .nav-list { display: flex; align-items: center; gap: 1.75rem; } }
.nav-item { position: relative; }
.nav-item > a { font-weight: 500; color: var(--text); }
.nav-item > a:hover { color: var(--primary); }
.nav-item.has-dropdown > a { display: flex; align-items: center; gap: .3rem; }
.caret { font-size: .7em; }

.dropdown {
  list-style: none; margin: 0; padding: 0 0 0 1rem;
}
.dropdown a { font-size: .95rem; color: var(--text-soft); }
@media (min-width: 992px) {
  .dropdown {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: .5rem 0; z-index: 60;
  }
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown.is-open .dropdown { display: block; }
  .dropdown li a { display: block; padding: .5rem 1rem; }
  .dropdown li a:hover { background: var(--primary-soft); color: var(--primary-dark); }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn--primary {
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn--primary:hover { background: #b8681f; color: #fff; }

.btn--outline-white {
  background: transparent; color: #fff; padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.85); display: inline-flex; align-items: center; justify-content: center;
}
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--outline {
  background: transparent; color: var(--primary); padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; border: 2px solid var(--primary); display: inline-flex; align-items: center; justify-content: center;
}
.btn--outline:hover { background: var(--primary-soft); }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative; min-height: 420px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
@media (min-width: 992px) { .hero { min-height: 580px; } }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,60,30,.80) 0%, rgba(44,60,30,.45) 55%, rgba(44,60,30,.18) 100%);
}
.hero__content { position: relative; z-index: 1; color: #fff; padding: 3rem 0; max-width: 640px; }
.hero__content h1 { color: #fff; }
.hero__content p { color: rgba(255,255,255,.92); }

.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
.hero__ctas .btn--primary, .hero__ctas .btn--outline-white { width: 100%; }
@media (min-width: 600px) {
  .hero__ctas { flex-direction: row; }
  .hero__ctas .btn--primary, .hero__ctas .btn--outline-white { width: auto; }
}

/* =====================================================
   Trust bar
   ===================================================== */
.trust-bar { background: var(--bg-alt); padding: 16px 0; }
.trust-bar-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center;
  font-size: .9rem; color: var(--text-soft); text-align: center;
}

/* =====================================================
   Intro section
   ===================================================== */
.intro { padding: 3rem 0; }
.intro-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .intro-grid { grid-template-columns: 3fr 2fr; align-items: center; } }
.intro-media img { border-radius: var(--radius-lg); }

/* =====================================================
   Category grid
   ===================================================== */
.section { padding: 3rem 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }

.cat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; text-align: center; transition: box-shadow .2s, transform .2s; min-height: 80px;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-soft); }
.cat-card__img { width: 100%; height: 110px; object-fit: cover; }
.cat-card__label { padding: 14px 10px; font-weight: 600; color: var(--text); }

/* =====================================================
   Product cards
   ===================================================== */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.product-card__img { width: 100%; height: 220px; object-fit: cover; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-family: var(--font-head); font-size: 1.05rem; margin: 0; }
.product-card__rating { color: var(--star); font-size: .9rem; }
.product-card__price-old { color: var(--muted); text-decoration: line-through; margin-right: .5rem; }
.product-card__price { color: var(--text); font-weight: 700; font-size: 1.15rem; }
.product-card .btn--primary { margin-top: auto; }

/* =====================================================
   Vergelijken promo + comparison table
   ===================================================== */
.compare-promo {
  background: var(--primary-soft); border-radius: var(--radius-lg);
  padding: 2rem; display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 768px) { .compare-promo { grid-template-columns: 2fr 1fr; } }

.comparison-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table table { min-width: 640px; border-collapse: collapse; width: 100%; }
.comparison-table th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; }
.comparison-table tr:nth-child(even) { background: var(--bg-alt); }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }

.winner-card {
  background: var(--primary-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-lg);
  padding: 1.5rem; display: grid; gap: 1.25rem; margin: 2rem 0;
}
@media (min-width: 768px) { .winner-card { grid-template-columns: 200px 1fr; align-items: start; } }
.winner-badge { display: inline-block; background: var(--accent); color: #fff; font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 12px; margin-bottom: .5rem; }
.score-bar { background: var(--border-soft); border-radius: 20px; height: 10px; overflow: hidden; margin: .5rem 0; }
.score-bar__fill { background: var(--accent); height: 100%; }

/* =====================================================
   Blog
   ===================================================== */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-pill {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg);
  font-size: .875rem; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
  color: var(--text-soft); text-decoration: none;
}
.filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); background: var(--bg); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 20px; }
.blog-card__tag {
  background: var(--primary-soft); color: var(--primary-dark); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 12px; display: inline-block;
}
.blog-card__title { font-family: var(--font-head); font-size: 1.125rem; margin-top: 10px; }
.blog-card__meta { color: var(--muted); font-size: .8125rem; margin-top: 8px; }

.featured-article {
  display: grid; gap: 1.5rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .featured-article { grid-template-columns: 2fr 3fr; } }
.featured-article__img { width: 100%; height: 240px; object-fit: cover; }
.featured-article__body { padding: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-soft);
}
.pagination a:hover { background: var(--primary-soft); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Breadcrumb */
.breadcrumb { font-size: .875rem; color: var(--muted); padding: 1rem 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 1rem 0;
  font-family: var(--font-head); font-size: 1.05rem; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; color: var(--text);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { padding-bottom: 1rem; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.75); }
.site-footer .brand-name { color: #fff; }

.footer-bottom {
  margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.85); }

/* =====================================================
   Author bylines (E-E-A-T, AFF-434)
   ===================================================== */
.author-bylines {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  margin: 3rem 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.author-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-avatar svg { width: 32px; height: 32px; }
.author-info { flex: 1 1 auto; min-width: 0; }
.author-label {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .25rem;
}
.author-name { display: block; font-size: 1.05rem; color: var(--text); }
.author-bio { margin: .5rem 0; color: var(--text-soft); font-size: .95rem; }
.author-link { font-weight: 600; color: var(--primary); }
@media (max-width: 640px) {
  .author-bylines {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .author-link { display: inline-block; }
}

/* =====================================================
   Expertise grid (E-E-A-T, AFF-434)
   ===================================================== */
.expertise-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 1.5rem; }
@media (min-width: 768px) { .expertise-grid { grid-template-columns: repeat(3, 1fr); } }
.expertise-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.expertise-card h3 { margin-top: 0; color: var(--primary-dark); }
.expertise-card p { color: var(--text-soft); margin-bottom: 0; }

/* =====================================================
   Utility
   ===================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
