/*
Theme Name: Schaapskooi van Asschat
Theme URI: https://heyharryreclame.nl
Author: Hey Harry Reclame
Author URI: https://heyharryreclame.nl
Description: Custom thema voor Schaapskooi van Asschat. Boerderij en vergaderlocatie. Vier pagina's met ACF-beheerde content en een offerte-aanvraagflow.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: schaapskooi
*/

/* =====================================================
   1. Tokens
===================================================== */
:root {
  --olijf: #899064;
  --olijf-licht: #aab285;
  --olijf-zacht: #d8dcc4;
  --moss: #2e3322;
  --nacht: #171a11;
  --linnen: #f5f2e8;
  --linnen-donker: #eae5d3;
  --stro: #c7b07f;
  --ink: #24271c;
  --ink-zacht: #5a5e4d;
  --wit: #fdfcf8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --maat: 1140px;
  --maat-smal: 760px;
  --rand: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --schaduw: 0 18px 50px -24px rgba(23, 26, 17, 0.35);
}

/* =====================================================
   2. Reset & basis
===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linnen);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  color: var(--moss);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--maat); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.wrap--smal { max-width: var(--maat-smal); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olijf);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--olijf);
  vertical-align: middle;
  margin-right: 12px;
}

.knop {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--moss);
  background: var(--moss);
  color: var(--linnen);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.knop:hover { background: var(--olijf); border-color: var(--olijf); color: var(--nacht); transform: translateY(-1px); }
.knop[hidden] { display: none; }
.knop--licht { background: var(--olijf); border-color: var(--olijf); color: var(--nacht); }
.knop--licht:hover { background: var(--linnen); border-color: var(--linnen); }
.knop--lijn { background: transparent; color: var(--moss); }
.knop--lijn:hover { background: var(--moss); border-color: var(--moss); color: var(--linnen); }

/* Placeholder voor afbeeldingen die nog komen */
.beeld {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linnen-donker);
}
.beeld img { width: 100%; height: 100%; object-fit: cover; }
.beeld--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(137,144,100,.12) 14px 15px),
    var(--linnen-donker);
  border: 1px dashed var(--olijf-licht);
  color: var(--ink-zacht);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* Reveal animatie */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-zichtbaar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =====================================================
   3. Header
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 26, 17, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(137, 144, 100, 0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo img { width: 64px; height: 64px; }
.site-logo__naam {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--linnen);
  line-height: 1.15;
}
.site-logo__naam small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olijf-licht);
  margin-top: 3px;
}
.hoofdmenu ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.hoofdmenu a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--linnen);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.hoofdmenu a:hover { color: var(--olijf-licht); }
.hoofdmenu .current-menu-item > a,
.hoofdmenu .current_page_item > a { color: var(--olijf-licht); }
.hoofdmenu .menu-cta > a,
.hoofdmenu a.menu-cta-link {
  background: var(--olijf);
  color: var(--nacht);
  margin-left: 10px;
}
.hoofdmenu .menu-cta > a:hover { background: var(--linnen); color: var(--nacht); }

.menu-knop {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.menu-knop span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--linnen);
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}
@media (max-width: 880px) {
  .menu-knop { display: block; }
  .hoofdmenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nacht);
    border-bottom: 1px solid rgba(137,144,100,.3);
    display: none;
    padding: 12px var(--rand) 24px;
  }
  .hoofdmenu.is-open { display: block; }
  .hoofdmenu ul { flex-direction: column; gap: 2px; }
  .hoofdmenu a { display: block; padding: 13px 8px; font-size: 1.05rem; }
  .hoofdmenu .menu-cta > a { margin: 10px 0 0; text-align: center; }
  body.menu-open .menu-knop span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-knop span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-knop span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =====================================================
   4. Hero — het dak van de kooi als signatuur
===================================================== */
.hero {
  position: relative;
  background: var(--nacht);
  color: var(--linnen);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(90px, 12vw, 160px);
}
.hero h1 { color: var(--linnen); }
.hero h1 em { font-style: italic; color: var(--olijf-licht); }
.hero p.intro { font-size: 1.15rem; color: #cfd2bd; max-width: 46ch; }
.hero__acties { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__beeld { position: relative; }
.hero__beeld .beeld { aspect-ratio: 4 / 5; box-shadow: var(--schaduw); }
.hero__stempel {
  position: absolute;
  bottom: -36px;
  left: -36px;
  width: 150px;
  height: 150px;
  animation: draai 28s linear infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.4));
}
@keyframes draai { to { transform: rotate(360deg); } }

/* dak-silhouet onderaan donkere secties */
.dak {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 7vw, 90px);
  background: var(--linnen);
  clip-path: polygon(0 100%, 0 62%, 50% 0, 100% 62%, 100% 100%);
}
.dak--linnen-donker { background: var(--linnen-donker); }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(110px, 18vw, 160px); }
  .hero__stempel { width: 96px; height: 96px; bottom: -20px; left: auto; right: 14px; }
}

/* =====================================================
   5. Secties
===================================================== */
.sectie { padding: clamp(64px, 9vw, 120px) 0; }
.sectie--donker { background: var(--nacht); color: var(--linnen); position: relative; }
.sectie--donker h2, .sectie--donker h3 { color: var(--linnen); }
.sectie--donker p { color: #cfd2bd; }
.sectie--tint { background: var(--linnen-donker); }
.sectie-kop { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.sectie-kop--midden { margin-left: auto; margin-right: auto; text-align: center; }
.sectie-kop--midden .eyebrow::before { display: none; }

/* Tweeluik: tekst + beeld */
.tweeluik {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.tweeluik .beeld { aspect-ratio: 4 / 3; box-shadow: var(--schaduw); }
.tweeluik--omgekeerd > :first-child { order: 2; }
@media (max-width: 880px) {
  .tweeluik { grid-template-columns: 1fr; }
  .tweeluik--omgekeerd > :first-child { order: 0; }
}

/* Kaarten (usp's / faciliteiten) */
.kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.kaart {
  background: var(--wit);
  border: 1px solid rgba(137,144,100,.3);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.kaart__icoon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--olijf-zacht);
  color: var(--moss);
  margin-bottom: 16px;
}
.kaart__icoon svg { width: 22px; height: 22px; }
.kaart h3 { font-size: 1.2rem; margin-bottom: 6px; }
.kaart p { margin: 0; color: var(--ink-zacht); font-size: .98rem; }
.sectie--donker .kaart { background: rgba(245, 242, 232, 0.04); border-color: rgba(137,144,100,.35); }
.sectie--donker .kaart h3 { color: var(--linnen); }
.sectie--donker .kaart p { color: #b9bda6; }

/* Galerij */
.galerij {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.galerij .beeld { aspect-ratio: 1 / 1; height: 100%; }
.galerij > *:last-child { grid-column: 1 / -1; }
.galerij > *:last-child .beeld { aspect-ratio: 3 / 1; }
@media (max-width: 720px) {
  .galerij { grid-template-columns: repeat(2, 1fr); }
  .galerij > *:last-child { grid-column: span 2; }
  .galerij > *:last-child .beeld { aspect-ratio: 2 / 1; }
}

/* CTA-band */
.cta-band { position: relative; background: var(--moss); color: var(--linnen); text-align: center; }
.cta-band h2 { color: var(--linnen); }
.cta-band p { color: #d6d9c4; max-width: 52ch; margin: 0 auto 26px; }

/* Eitjes-blok */
.eitjes { display: grid; grid-template-columns: 130px 1fr auto; gap: 28px; align-items: center; }
.eitjes img { width: 130px; }
.eitjes p { margin: 0; color: var(--ink-zacht); }
@media (max-width: 720px) { .eitjes { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* =====================================================
   6. Over ons
===================================================== */
.pagina-kop {
  position: relative;
  background: var(--nacht);
  color: var(--linnen);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 13vw, 150px);
}
.pagina-kop h1 { color: var(--linnen); }
.pagina-kop p { color: #cfd2bd; max-width: 56ch; margin: 0 auto; font-size: 1.1rem; }

.waarden { counter-reset: waarde; }
.waarde {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(137,144,100,.35);
}
.waarde:last-child { border-bottom: 1px solid rgba(137,144,100,.35); }
.waarde__nr {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--olijf);
  line-height: 1;
}
.waarde h3 { margin-bottom: 4px; }
.waarde p { margin: 0; color: var(--ink-zacht); }

/* =====================================================
   7. Vergaderen
===================================================== */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(137,144,100,.35); border: 1px solid rgba(137,144,100,.35); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--wit); padding: 26px 22px; }
.spec strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--moss); }
.spec span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-zacht); }

.arrangementen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.arrangement {
  background: var(--wit);
  border: 1px solid rgba(137,144,100,.3);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.arrangement--uitgelicht { border: 2px solid var(--olijf); box-shadow: var(--schaduw); }
.arrangement__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olijf); font-weight: 700; margin-bottom: 10px; }
.arrangement ul { list-style: none; margin: 14px 0 0; padding: 0; }
.arrangement li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed rgba(137,144,100,.35); font-size: .97rem; color: var(--ink-zacht); }
.arrangement li:last-child { border-bottom: 0; }
.arrangement li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--olijf-zacht);
  border: 2px solid var(--olijf);
}

/* =====================================================
   8. Offerte-flow
===================================================== */
.offerte {
  background: var(--wit);
  border: 1px solid rgba(137,144,100,.3);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}
.offerte__kop {
  background: var(--moss);
  color: var(--linnen);
  padding: 26px 32px;
}
.offerte__kop h3 { color: var(--linnen); margin: 0; font-size: 1.3rem; }
.offerte__voortgang { display: flex; gap: 8px; margin-top: 16px; }
.offerte__voortgang span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(245,242,232,.2);
  transition: background .3s;
}
.offerte__voortgang span.is-actief { background: var(--olijf-licht); }
.offerte__body { padding: clamp(26px, 4vw, 40px); }
.offerte-stap { display: none; }
.offerte-stap.is-actief { display: block; animation: stapIn .35s ease; }
@keyframes stapIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.offerte-stap__vraag { font-family: var(--font-display); font-size: 1.45rem; color: var(--moss); margin-bottom: 6px; }
.offerte-stap__sub { color: var(--ink-zacht); font-size: .95rem; margin-bottom: 22px; }

.keuze-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.keuze {
  position: relative;
  display: block;
  border: 2px solid rgba(137,144,100,.35);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.keuze:hover { border-color: var(--olijf); }
.keuze input { position: absolute; opacity: 0; pointer-events: none; }
.keuze:has(input:checked) { border-color: var(--moss); background: var(--olijf-zacht); }
.keuze small { display: block; font-weight: 400; color: var(--ink-zacht); margin-top: 4px; font-size: .82rem; }

.veld { margin-bottom: 18px; }
.veld label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.veld input, .veld select, .veld textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 2px solid rgba(137,144,100,.35);
  border-radius: var(--radius);
  background: var(--wit);
  color: var(--ink);
}
.veld input:focus, .veld select:focus, .veld textarea:focus {
  outline: none;
  border-color: var(--olijf);
  box-shadow: 0 0 0 3px rgba(137,144,100,.2);
}
.veld--fout input, .veld--fout select { border-color: #b3502f; }
.veld__fout { display: none; color: #b3502f; font-size: .85rem; margin-top: 5px; }
.veld--fout .veld__fout { display: block; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .veld-rij { grid-template-columns: 1fr; } }

.offerte__voeten {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  margin-top: 8px;
  border-top: 1px solid rgba(137,144,100,.25);
}
.offerte__terug {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink-zacht);
  cursor: pointer;
  padding: 10px 14px;
}
.offerte__terug:hover { color: var(--moss); }
.offerte__terug[hidden] { visibility: hidden; display: inline-block; }

.samenvatting { background: var(--linnen); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.samenvatting dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; row-gap: 8px; }
.samenvatting dt { font-weight: 700; font-size: .88rem; color: var(--ink-zacht); }
.samenvatting dd { margin: 0; font-size: .95rem; }

.offerte-succes { text-align: center; padding: 30px 10px; }
.offerte-succes svg { width: 60px; height: 60px; color: var(--olijf); margin-bottom: 14px; }

/* honeypot */
.veld-hp { position: absolute !important; left: -9999px !important; opacity: 0; }

/* =====================================================
   9. Contact
===================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-info li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(137,144,100,.3); align-items: flex-start; }
.contact-info svg { width: 20px; height: 20px; color: var(--olijf); flex-shrink: 0; margin-top: 4px; }
.contact-info strong { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-zacht); }
.contact-info a { color: var(--moss); text-decoration: none; font-weight: 700; }
.contact-info a:hover { text-decoration: underline; }
.contact-form { background: var(--wit); border: 1px solid rgba(137,144,100,.3); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--schaduw); }
.kaartblok { margin-top: clamp(40px, 6vw, 64px); }
.kaartblok .beeld { aspect-ratio: 21 / 9; }

.formulier-melding { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; font-weight: 700; }
.formulier-melding--ok { background: var(--olijf-zacht); color: var(--moss); }
.formulier-melding--fout { background: #f3ded5; color: #8c3a1c; }

/* =====================================================
   10. Footer
===================================================== */
.site-footer { background: var(--nacht); color: #b9bda6; position: relative; }
.site-footer__dak {
  height: clamp(40px, 7vw, 90px);
  background: var(--nacht);
  clip-path: polygon(0 100%, 0 62%, 50% 0, 100% 62%, 100% 100%);
  margin-top: -1px;
}
.sectie--tint + .site-footer .site-footer__dak,
.footer-dak--tint { background: var(--nacht); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 7vw, 80px) 0 40px;
}
.site-footer img.footer-logo { width: 110px; margin-bottom: 18px; }
.site-footer h4 { color: var(--linnen); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #b9bda6; text-decoration: none; }
.site-footer a:hover { color: var(--olijf-licht); }
.site-footer__onder {
  border-top: 1px solid rgba(137,144,100,.25);
  padding: 20px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Focus zichtbaar */
a:focus-visible, button:focus-visible, .keuze:focus-within {
  outline: 3px solid var(--olijf);
  outline-offset: 2px;
}
