/* ============================================
   Jace Hout & Zo — stylesheet
   Modern CSS: custom properties, clamp(), grid,
   :focus-visible, prefers-reduced-motion.
   ============================================ */

:root {
  --hout-donker: #3d2b1c;
  --hout: #7a5232;
  --hout-licht: #e7d3b4;
  --terracotta: #a8532c;
  --terracotta-dark: #8a4322;
  --groen: #4c6b3f;
  --geel: #f0b93e;
  --blauw: #3f6f8f;
  --crème: #faf5ea;
  --wit: #fffdf9;
  --tekst: #2a2016;
  --tekst-zacht: #5b4d3d;
  --rand: #e4d6bf;

  --font-koppen: "Patrick Hand", "Segoe Print", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(61, 43, 28, 0.25);
}

/* Zelf gehost lettertype (geen Google Fonts) — geen IP-adressen van
   bezoekers die naar een derde partij gestuurd worden. */
@font-face {
  font-family: "Patrick Hand";
  src: url("assets/fonts/patrick-hand-v25-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tekst);
  background: var(--crème);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta-dark);
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hout-donker);
  color: var(--wit);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--geel);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-koppen);
  color: var(--hout-donker);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 1rem, 1.5rem); }

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
h2.center { max-width: 40ch; }

.lead {
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem);
  color: var(--tekst-zacht);
  max-width: 60ch;
}
.lead-small {
  color: var(--tekst-zacht);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 234, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--hout-donker);
}

.brand-mark {
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-koppen);
  font-size: 1.4rem;
  color: var(--hout-donker);
}
.brand-name em {
  font-style: normal;
  color: var(--terracotta);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--tekst);
  font-weight: 600;
}
.nav-menu a:hover {
  color: var(--terracotta);
}
.nav-menu a.btn-small {
  background: var(--terracotta);
  color: var(--wit);
  border-color: var(--terracotta);
}
.nav-menu a.btn-small:hover {
  background: var(--terracotta-dark);
  color: var(--wit);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--hout);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hout-donker);
  position: relative;
  transition: transform 0.2s ease;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
}
.burger::before { top: -7px; }
.burger::after { top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--terracotta);
  color: var(--wit);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--hout-donker);
  border-color: var(--hout);
}
.btn-whatsapp {
  background: #3fa34d;
  color: var(--wit);
}
.btn-whatsapp:hover {
  background: #348a40;
}
.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.cta-col {
  flex-direction: column;
  align-items: stretch;
}
.cta-col .btn {
  justify-content: center;
}
.cta-center {
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 20, 10, 0.82) 5%, rgba(30, 20, 10, 0.35) 55%, rgba(30, 20, 10, 0.15) 100%);
}
.hero-content {
  position: relative;
  color: var(--wit);
  padding-block: 3rem 3.5rem;
}
.hero-content h1 {
  color: var(--wit);
}
.hero-content .lead {
  color: rgba(255, 255, 255, 0.92);
}
.hero-content .eyebrow {
  color: var(--geel);
}
.hero-content .btn-ghost {
  color: var(--wit);
  border-color: rgba(255, 255, 255, 0.85);
}
.hero-content .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--wit);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--hout-donker);
  color: var(--wit);
  padding-block: 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-koppen);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  color: var(--geel);
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.alt-bg {
  background: var(--hout-licht);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.two-col.reverse .col-media {
  order: 2;
}
.two-col .col-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
.two-col figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--tekst-zacht);
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--terracotta);
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  font-style: italic;
  color: var(--tekst-zacht);
}
blockquote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Bestellen ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}
.product-card,
.order-card {
  background: var(--wit);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-photo {
  aspect-ratio: 4 / 5;
  background: var(--hout-licht);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-body,
.order-card {
  padding: 1.75rem;
}
.order-card {
  margin-top: 2rem;
}
.price {
  font-family: var(--font-koppen);
  font-size: 2.2rem;
  color: var(--terracotta);
  margin: 0.2rem 0 1rem;
}
.price span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--tekst-zacht);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.check-list li::before {
  content: "✔";
  color: var(--groen);
  margin-right: 0.5rem;
  font-weight: 700;
}
.note {
  font-size: 0.9rem;
  color: var(--tekst-zacht);
  margin-top: 1.2rem;
}

/* ---------- Aantal-stepper ---------- */
.qty-row {
  background: var(--crème);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1.3rem 0;
}
.qty-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--tekst);
}
.qty-label-spaced {
  margin-top: 1.1rem;
}
.qty-row select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 2px solid var(--hout);
  background: var(--wit);
  color: var(--tekst);
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--hout);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--hout-licht);
  color: var(--hout-donker);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.qty-stepper button:hover {
  background: var(--terracotta);
  color: var(--wit);
}
.qty-stepper input {
  width: 3.2rem;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-total {
  margin: 0.8rem 0 0;
  font-size: 1rem;
}
.qty-total strong {
  color: var(--terracotta);
  font-size: 1.3rem;
}

/* ---------- Nieuws ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--wit);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.news-body {
  padding: 1.5rem;
}
.news-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

/* ---------- Galerij ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: var(--groen);
  color: var(--wit);
}
.contact-cta h2,
.contact-cta .eyebrow {
  color: var(--wit);
}
.contact-cta .lead-small {
  color: rgba(255, 255, 255, 0.9);
}

.not-found-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hout-donker);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-heading {
  color: var(--geel);
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-logo {
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.footer-brand {
  font-size: 1.5rem;
  color: var(--wit);
}
.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
}
.fine-print {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2.5rem;
}
.fine-print a {
  color: var(--wit);
  text-decoration: underline;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}
.lightbox[hidden] {
  display: none;
}
.lightbox figure {
  margin: 0;
  max-width: min(90vw, 900px);
  text-align: center;
}
.lightbox img {
  max-height: 80vh;
  border-radius: 12px;
  margin-inline: auto;
}
.lightbox figcaption {
  color: var(--wit);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--wit);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .two-col.reverse .col-media {
    order: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Onder deze breedte past de volledige navigatie (logo + 4 links +
     Contact-knop) niet meer netjes op één regel (getest: rond 790-800px
     ging de merknaam en "Het verhaal" al afbreken naar een tweede regel).
     Daarom hier al overschakelen naar het hamburgermenu, ruim voor het
     ook op telefoons in liggende stand of smalle vensters misgaat. */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  nav .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--crème);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--rand);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav .nav-menu.open {
    max-height: 400px;
  }
  .nav-menu li {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--rand);
  }
  .nav-menu .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  /* De herofoto is liggend (4:3) en opa Teunis staat links in beeld.
     Op een smal, hoog telefoonscherm knipt object-fit:cover anders te
     veel van de breedte weg en valt hij helemaal buiten beeld. Minder
     hoogte + een crop die meer naar links kijkt, houdt hem in beeld. */
  .hero {
    min-height: min(60vh, 480px);
  }
  .hero-media {
    object-position: 30% center;
  }
}
