/*
Theme Name: Groes
Theme URI: https://groes.nl
Author: Groes
Author URI: https://groes.nl
Description: Officieel Groes website theme. Elke dag een beetje beter. Voor jou. Voor de wereld.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: groes
*/

/* ============================================================
   IMPORT FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;800&family=Lato:wght@400;700&display=swap');

/* ============================================================
   CSS VARIABELEN — GROES BRANDBOEK
   ============================================================ */
:root {
  --okergeel:    #C9952A;
  --mosgroen:    #3D5A30;
  --creme:       #FAF4E6;
  --zand:        #E8D1A0;
  --antraciet:   #2C2820;
  --tekst-zacht: #5a5045;
  --kaart-bg:    #fff8ed;

  --font-kop:    'Nunito', sans-serif;
  --font-body:   'Lato', sans-serif;

  --radius:      12px;
  --radius-sm:   8px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--creme);
  color: var(--antraciet);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATIE
   ============================================================ */
.site-header {
  background: var(--creme);
  border-bottom: 1px solid var(--zand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 24px;
  color: var(--okergeel);
  letter-spacing: -0.5px;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-size: 18px;
  color: var(--mosgroen);
  font-weight: 700;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--okergeel);
  font-weight: 700;
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  background: var(--zand);
  color: var(--mosgroen);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-kop);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero__title {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--antraciet);
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--okergeel);
}

.hero__tekst {
  font-size: 18px;
  color: var(--tekst-zacht);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ============================================================
   AANMELDBLOK
   ============================================================ */
.aanmeld-blok {
  background: var(--mosgroen);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
}

.aanmeld-blok__tekst {
  color: var(--zand);
  font-size: 15px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.aanmeld-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.aanmeld-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--creme);
  color: var(--antraciet);
  outline: none;
}

.aanmeld-form input[type="email"]:focus {
  box-shadow: 0 0 0 2px var(--okergeel);
}

.aanmeld-form button,
.btn-primair {
  background: var(--okergeel);
  color: var(--creme);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.aanmeld-form button:hover,
.btn-primair:hover {
  opacity: 0.88;
}

/* ============================================================
   PILAREN SECTIE
   ============================================================ */
.sectie {
  padding: 4rem 0;
}

.sectie__kop {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--antraciet);
  margin-bottom: 0.4rem;
}

.sectie__sub {
  font-size: 15px;
  color: var(--tekst-zacht);
  margin-bottom: 2rem;
}

.pilaren-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pilaar {
  background: var(--kaart-bg);
  border: 0.5px solid var(--zand);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pilaar__icoon {
  font-size: 28px;
  color: #C9952A;
  margin-bottom: 0.75rem;
}

.pilaar__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--mosgroen);
  margin-bottom: 0.5rem;
}

.pilaar__tekst {
  font-size: 14px;
  color: var(--tekst-zacht);
  line-height: 1.6;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--zand);
}

/* ============================================================
   RECENTE BLOGS OP HOMEPAGE
   ============================================================ */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.blog-kaart {
  background: var(--kaart-bg);
  border: 0.5px solid var(--zand);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.blog-kaart:hover {
  border-color: var(--okergeel);
}

.blog-kaart__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--mosgroen);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.6rem;
}

.blog-kaart__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--antraciet);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-kaart__excerpt {
  font-size: 14px;
  color: var(--tekst-zacht);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-kaart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8a7a6a;
}

.blog-kaart__pijl {
  color: var(--okergeel);
  font-size: 18px;
}

.alle-blogs-link {
  text-align: center;
}

.btn-secundair {
  display: inline-block;
  border: 1.5px solid var(--okergeel);
  color: var(--okergeel);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-secundair:hover {
  background: var(--okergeel);
  color: var(--creme);
}
/*============================================================
   Auteur biografie
  ============================================================ */
.wp-block-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zand);
}

.wp-block-post-author__avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.wp-block-post-author__content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wp-block-post-author__name {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 15px;
  color: var(--antraciet);
  margin: 0;
}

.wp-block-post-author__name::after {
  content: ',';
}

.wp-block-post-author__bio {
  font-size: 14px;
  font-weight: 600;
  color: var(--tekst-zacht);
  margin: 0;
}

/* ============================================================
   BLOGPAGINA — ARCHIEF
   ============================================================ */
.blog-header {
  padding: 3rem 0 1.5rem;
}

.blog-header__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.blog-header__sub {
  font-size: 15px;
  color: var(--tekst-zacht);
}

.categorie-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 1rem 0 2rem;
}

.categorie-filter {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid var(--zand);
  background: transparent;
  color: var(--tekst-zacht);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.categorie-filter:hover,
.categorie-filter.actief {
  background: var(--mosgroen);
  color: var(--zand);
  border-color: var(--mosgroen);
}

/* Uitgelicht artikel */
.blog-uitgelicht {
  background: var(--mosgroen);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.blog-uitgelicht__tag {
  display: inline-block;
  background: var(--okergeel);
  color: var(--creme);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-kop);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.blog-uitgelicht__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--creme);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.blog-uitgelicht__excerpt {
  font-size: 15px;
  color: var(--zand);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 600px;
}

.blog-uitgelicht__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-uitgelicht__info {
  font-size: 13px;
  color: #c4a96e;
}

/* Blog grid archief */
.blog-archief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 3rem;
}

/* Nieuwsbrief in blog */
.blog-nieuwsbrief {
  background: var(--zand);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-nieuwsbrief__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mosgroen);
  margin-bottom: 1rem;
}

/* Paginering */
.paginering {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4rem;
}

.paginering a,
.paginering span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--zand);
  font-size: 14px;
  color: var(--antraciet);
  font-weight: 700;
  transition: background 0.2s;
}

.paginering a:hover {
  background: var(--zand);
}

.paginering .current {
  background: var(--okergeel);
  color: var(--creme);
  border-color: var(--okergeel);
}

/* ============================================================
   SINGLE BLOGPOST
   ============================================================ */
.post-header {
  padding: 3rem 0 2rem;
}

.post-header__cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--mosgroen);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.post-header__titel {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-header__meta {
  font-size: 13px;
  color: var(--tekst-zacht);
}

.post-header__meta span::before {
  content: '·';
  margin: 0 0.5rem;
}

.post-header__meta span:first-child::before {
  content: '';
  margin: 0;
}

.post-content {
  padding-bottom: 4rem;
}

.post-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--antraciet);
}

.post-content h2 {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--antraciet);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--mosgroen);
  margin: 2rem 0 0.75rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.post-content blockquote {
  border-left: 4px solid var(--okergeel);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--kaart-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p {
  font-style: italic;
  color: var(--tekst-zacht);
  margin: 0;
}

.post-content a {
  color: var(--okergeel);
  text-decoration: underline;
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--mosgroen);
  padding: 2rem;
  text-align: center;
}

.site-footer p {
  color: var(--zand);
  font-size: 13px;
}

.site-footer span {
  color: var(--okergeel);
  font-weight: 700;
  font-family: var(--font-kop);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .aanmeld-form {
    flex-direction: column;
  }

  .aanmeld-form button {
    width: 100%;
  }

  .pilaren-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-uitgelicht__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  }

  .container,
  .container--narrow {
    padding: 0 1rem;
  }
}

@media (max-width: 400px) {
  .pilaren-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOCUS & TOEGANKELIJKHEID
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--okergeel);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
