/*
Theme Name: Horizon
Theme URI: https://example.com/horizon
Author: Jelle
Description: Een strak, minimalistisch magazine-thema voor recepten en foodinspiratie. Gebouwd om makkelijk zelf op verder te bouwen.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horizon
Tags: blog, magazine, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   INHOUD
   1. Variabelen (kleuren & typografie — hier pas je de look aan)
   2. Basis & reset
   3. Layout-hulpen
   4. Header & navigatie
   5. Hero (uitgelicht artikel)
   6. Kaarten-grid (artikeloverzicht)
   7. Artikel (single) & pagina's
   8. Archief & zoeken
   9. Paginering & post-navigatie
   10. Reacties
   11. Footer
   12. WordPress core-klassen
   13. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABELEN — verander hier kleuren en lettertypen
   --------------------------------------------------------- */
:root {
  /* Kleuren */
  --kleur-achtergrond: #FAF7F2;   /* warm papierwit */
  --kleur-oppervlak:   #FFFFFF;   /* kaarten, vlakken */
  --kleur-tekst:       #1C1B1A;   /* bijna-zwart */
  --kleur-tekst-zacht: #6B665E;   /* meta, bijschriften */
  --kleur-accent:      #0F6B5C;   /* diepzee-groen */
  --kleur-accent-donker: #0A4A40;
  --kleur-terracotta:  #C96F4A;   /* tweede accent */
  --kleur-lijn:        #E8E1D6;   /* randen & scheidingslijnen */

  /* Typografie */
  --font-kop:   "Fraunces", Georgia, serif;
  --font-tekst: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Maten */
  --breedte-site:    1180px;
  --breedte-artikel: 720px;
  --radius: 10px;
  --schaduw: 0 1px 2px rgba(28, 27, 26, .04), 0 8px 24px rgba(28, 27, 26, .06);
}

/* ---------------------------------------------------------
   2. BASIS & RESET
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  font-family: var(--font-tekst);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-kop);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
h3 { font-size: 1.375rem; }

p { margin: 0 0 1.25em; }

a {
  color: var(--kleur-accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--kleur-accent-donker); }

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

figure { margin: 0; }

blockquote {
  margin: 2em 0;
  padding: .25em 0 .25em 1.5em;
  border-left: 3px solid var(--kleur-terracotta);
  font-family: var(--font-kop);
  font-size: 1.25em;
  font-style: italic;
  color: var(--kleur-tekst-zacht);
}

hr {
  border: none;
  border-top: 1px solid var(--kleur-lijn);
  margin: 3em 0;
}

/* Toegankelijkheid */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--kleur-tekst);
  color: #fff;
  padding: .5em 1em;
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------
   3. LAYOUT-HULPEN
   --------------------------------------------------------- */
.wrap {
  max-width: var(--breedte-site);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--smal {
  max-width: var(--breedte-artikel);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   4. HEADER & NAVIGATIE
   --------------------------------------------------------- */
.site-header {
  background: var(--kleur-achtergrond);
  border-bottom: 1px solid var(--kleur-lijn);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.site-branding { display: flex; align-items: center; gap: .75rem; }

.site-title {
  font-family: var(--font-kop);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--kleur-tekst); }
.site-title a:hover { color: var(--kleur-accent); }

.site-description {
  margin: 0;
  font-size: .85rem;
  color: var(--kleur-tekst-zacht);
}

.custom-logo { max-height: 48px; width: auto; }

.hoofd-navigatie ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hoofd-navigatie a {
  color: var(--kleur-tekst);
  font-size: .95rem;
  font-weight: 500;
}
.hoofd-navigatie a:hover,
.hoofd-navigatie .current-menu-item > a,
.hoofd-navigatie .current_page_item > a {
  color: var(--kleur-accent);
}

/* Mobiel menu-knop */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--kleur-lijn);
  border-radius: 8px;
  padding: .5rem .8rem;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  color: var(--kleur-tekst);
}

/* ---------------------------------------------------------
   5. HERO — uitgelicht (nieuwste) artikel
   --------------------------------------------------------- */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero__kaart {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--kleur-oppervlak);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--schaduw);
}

.hero__beeld { position: relative; min-height: 380px; }
.hero__beeld img,
.hero__beeld .kaart__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inhoud {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inhoud h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.hero__inhoud h2 a { color: var(--kleur-tekst); }
.hero__inhoud h2 a:hover { color: var(--kleur-accent); }

/* ---------------------------------------------------------
   6. KAARTEN-GRID
   --------------------------------------------------------- */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
}

.sectie-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 1.75rem;
}
.sectie-kop h2 { margin: 0; font-size: 1.5rem; }

.kaart {
  background: var(--kleur-oppervlak);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kaart:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(28,27,26,.05), 0 14px 34px rgba(28,27,26,.10);
}

.kaart__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.kaart__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder als er geen uitgelichte afbeelding is */
.kaart__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--kleur-accent) 0%, var(--kleur-accent-donker) 100%);
  color: rgba(255,255,255,.85);
  font-family: var(--font-kop);
  font-size: 3rem;
  font-style: italic;
}

.kaart__inhoud {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kaart__titel { font-size: 1.25rem; margin-bottom: .4em; }
.kaart__titel a { color: var(--kleur-tekst); }
.kaart__titel a:hover { color: var(--kleur-accent); }

.kaart__samenvatting {
  color: var(--kleur-tekst-zacht);
  font-size: .95rem;
  margin-bottom: 1em;
}

/* Categorie-label */
.categorie-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kleur-terracotta);
  margin-bottom: .75em;
}
a.categorie-label:hover { color: var(--kleur-accent); }

.artikel-meta {
  margin-top: auto;
  font-size: .82rem;
  color: var(--kleur-tekst-zacht);
}
.artikel-meta a { color: inherit; }
.artikel-meta a:hover { color: var(--kleur-accent); }

/* ---------------------------------------------------------
   7. ARTIKEL (SINGLE) & PAGINA'S
   --------------------------------------------------------- */
.artikel-kop {
  text-align: center;
  padding: 3.5rem 0 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.artikel-kop .categorie-label { margin-bottom: 1.25em; }
.artikel-kop .artikel-meta { margin-top: 1.25rem; }

.artikel-hero {
  max-width: var(--breedte-site);
  margin: 1rem auto 3rem;
  padding: 0 24px;
}
.artikel-hero img {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.artikel-hero figcaption {
  text-align: center;
  font-size: .82rem;
  color: var(--kleur-tekst-zacht);
  margin-top: .75em;
}

.artikel-inhoud {
  max-width: var(--breedte-artikel);
  margin: 0 auto;
  padding: 0 24px 4rem;
}

.artikel-inhoud h2 { margin-top: 1.75em; }
.artikel-inhoud h3 { margin-top: 1.5em; }

.artikel-inhoud img { border-radius: var(--radius); }

.artikel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2.5rem 0 0;
}
.artikel-tags a {
  font-size: .8rem;
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-lijn);
  border-radius: 999px;
  padding: .3em 1em;
  color: var(--kleur-tekst-zacht);
}
.artikel-tags a:hover {
  border-color: var(--kleur-accent);
  color: var(--kleur-accent);
}

/* ---------------------------------------------------------
   8. ARCHIEF & ZOEKEN
   --------------------------------------------------------- */
.pagina-kop {
  text-align: center;
  padding: 3.5rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.pagina-kop .archief-beschrijving {
  color: var(--kleur-tekst-zacht);
}

.zoekformulier {
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin: 0 auto;
}
.zoekformulier input[type="search"] {
  flex: 1;
  font: inherit;
  padding: .7em 1.1em;
  border: 1px solid var(--kleur-lijn);
  border-radius: 999px;
  background: var(--kleur-oppervlak);
}
.zoekformulier input[type="search"]:focus {
  outline: 2px solid var(--kleur-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.knop,
.zoekformulier button,
button[type="submit"],
input[type="submit"] {
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  background: var(--kleur-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .7em 1.6em;
  cursor: pointer;
  transition: background .15s ease;
}
.knop:hover,
.zoekformulier button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--kleur-accent-donker);
  color: #fff;
}

.geen-resultaten {
  text-align: center;
  padding: 2rem 0 5rem;
}

/* ---------------------------------------------------------
   9. PAGINERING & POST-NAVIGATIE
   --------------------------------------------------------- */
.paginering {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: 0 0 4rem;
}
.paginering .page-numbers {
  min-width: 2.4em;
  text-align: center;
  padding: .45em .6em;
  border-radius: 8px;
  color: var(--kleur-tekst);
  border: 1px solid transparent;
}
.paginering .page-numbers:hover { border-color: var(--kleur-lijn); }
.paginering .page-numbers.current {
  background: var(--kleur-accent);
  color: #fff;
}

.post-navigatie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: var(--breedte-artikel);
  margin: 0 auto;
  padding: 0 24px 4rem;
}
.post-navigatie a {
  display: block;
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-lijn);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: var(--kleur-tekst);
}
.post-navigatie a:hover { border-color: var(--kleur-accent); }
.post-navigatie .nav-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--kleur-tekst-zacht);
  margin-bottom: .35em;
}
.post-navigatie .nav-volgende { text-align: right; }

/* ---------------------------------------------------------
   10. REACTIES
   --------------------------------------------------------- */
.reacties {
  max-width: var(--breedte-artikel);
  margin: 0 auto;
  padding: 0 24px 4rem;
}
.reacties ol { list-style: none; padding: 0; }
.reacties .comment {
  border-top: 1px solid var(--kleur-lijn);
  padding: 1.5rem 0;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  font: inherit;
  padding: .7em 1em;
  border: 1px solid var(--kleur-lijn);
  border-radius: 8px;
  background: var(--kleur-oppervlak);
}

/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--kleur-accent-donker);
  color: rgba(255, 255, 255, .82);
  margin-top: 4rem;
}

.footer-kolommen {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 24px 3rem;
}

.footer-merk {
  font-family: var(--font-kop);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .4em;
  letter-spacing: -0.02em;
}

.footer-tekst {
  font-size: .92rem;
  margin-bottom: 1.5em;
}

.footer-titel {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1em;
  font-family: var(--font-tekst);
}

.footer-lijst,
.footer-navigatie ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-lijst li,
.footer-navigatie li { margin-bottom: .55em; }
.footer-lijst a,
.footer-navigatie a {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
.footer-lijst a:hover,
.footer-navigatie a:hover { color: #fff; }

/* Zoekformulier in de footer */
.footer-kolom .zoekformulier { max-width: none; margin: 0; }
.footer-kolom .zoekformulier input[type="search"] {
  border-color: transparent;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.footer-kolom .zoekformulier input[type="search"]::placeholder {
  color: rgba(255, 255, 255, .55);
}
.footer-kolom .zoekformulier button {
  background: var(--kleur-terracotta);
}
.footer-kolom .zoekformulier button:hover {
  background: #b25c3b;
}

.footer-balk {
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-balk__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 24px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
.footer-balk p { margin: 0; }
.footer-terug { color: rgba(255, 255, 255, .55); }
.footer-terug:hover { color: #fff; }

/* ---------------------------------------------------------
   11b. CATEGORIE-TEGELS (homepage)
   --------------------------------------------------------- */
.categorie-strook { padding-bottom: 3.5rem; }

.categorie-tegels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.categorie-tegel {
  display: flex;
  flex-direction: column;
  gap: .2em;
  background: var(--kleur-oppervlak);
  border: 1px solid var(--kleur-lijn);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.categorie-tegel:hover {
  border-color: var(--kleur-accent);
  transform: translateY(-2px);
  box-shadow: var(--schaduw);
}

.categorie-tegel__naam {
  font-family: var(--font-kop);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kleur-tekst);
}

.categorie-tegel__aantal {
  font-size: .82rem;
  color: var(--kleur-tekst-zacht);
}

/* ---------------------------------------------------------
   11c. OVER-TEASER (homepage)
   --------------------------------------------------------- */
.over-teaser {
  background: var(--kleur-oppervlak);
  border-top: 1px solid var(--kleur-lijn);
  padding: 4rem 0;
}
.over-teaser__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.over-teaser p {
  color: var(--kleur-tekst-zacht);
  margin-bottom: 1.75em;
}

/* ---------------------------------------------------------
   12. WORDPRESS CORE-KLASSEN
   --------------------------------------------------------- */
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.alignwide {
  margin-left: calc(50% - min(50vw, calc(var(--breedte-site) / 2)) + 24px);
  margin-right: calc(50% - min(50vw, calc(var(--breedte-site) / 2)) + 24px);
  width: auto;
  max-width: none;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: auto;
  max-width: none;
}

.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption {
  font-size: .82rem;
  color: var(--kleur-tekst-zacht);
  text-align: center;
  margin-top: .5em;
}

.sticky { /* vereist door het WP-themareview */ }
.bypostauthor { /* vereist door het WP-themareview */ }

/* ---------------------------------------------------------
   13. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .artikel-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__kaart { grid-template-columns: 1fr; }
  .hero__beeld { min-height: 260px; }
  .footer-kolommen { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .artikel-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-kolommen { grid-template-columns: 1fr; gap: 2rem; }

  .menu-toggle { display: block; }

  .hoofd-navigatie {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kleur-achtergrond);
    border-bottom: 1px solid var(--kleur-lijn);
    padding: 1rem 24px 1.5rem;
    z-index: 50;
  }
  .hoofd-navigatie.is-open { display: block; }
  .hoofd-navigatie ul { flex-direction: column; gap: .9rem; }

  .site-header { position: relative; }
  .post-navigatie { grid-template-columns: 1fr; }
}
