/*
Theme Name: Bakkerij De Molen
Author: Bakkerij De Molen
Description: Een warm, responsive WordPress-theme voor Bakkerij De Molen in Den Haag.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bakkerij-de-molen
*/

:root {
  --rood: #8b1a1a;
  --donkerrood: #5c0f0f;
  --geel: #f5c800;
  --oranje: #e8780a;
  --wit: #ffffff;
  --creme: #fff9f0;
  --donker: #1a0a0a;
  --grijs: #6a5050;
  --zand: #f5ede0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--creme);
  color: var(--donker);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-underline-offset: 0.18em; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 16px;
  color: var(--donker);
  background: var(--geel);
  border-radius: 6px;
  font-weight: 800;
}

/* Navigatie */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 66px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--donkerrood);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}
.admin-bar .site-nav { top: 32px; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wit);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img,
.nav-brand .custom-logo {
  width: auto;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.nav-brand span {
  font-family: 'Fraunces', serif;
  color: var(--wit);
  font-size: 1.25rem;
  font-weight: 900;
}
.nav-brand span em { color: var(--geel); font-style: normal; }
.nav-wrap { display: flex; align-items: center; gap: 8px; }
.nav-wrap ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.nav-wrap ul li { margin: 0; }
.nav-wrap ul li a,
.nav-order {
  display: block;
  padding: 8px 14px;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.nav-wrap ul li a:hover,
.nav-wrap ul li a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--geel);
}
.nav-order {
  background: var(--geel);
  color: var(--donker);
  font-weight: 900;
  white-space: nowrap;
}
.nav-order:hover { background: #e0b400; }
.menu-toggle {
  display: none;
  padding: 8px 11px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--wit);
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* Hero */
.hero { width: 100%; background: var(--donker); position: relative; }
.hero > img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: none;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-geel {
  background: var(--geel);
  color: var(--donker);
  box-shadow: 0 4px 14px rgba(245, 200, 0, 0.4);
}
.btn-geel:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(245, 200, 0, 0.55); }
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: var(--wit);
}
.btn-outline:hover { border-color: var(--geel); color: var(--geel); }
.btn-donker { background: var(--donker); color: var(--geel); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.btn-donker:hover { transform: translateY(-3px); }

/* Lopende balk */
.ticker { background: var(--geel); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.ticker-track {
  display: inline-block;
  min-width: max-content;
  animation: ticker 34s linear infinite;
  color: var(--donker);
  font-size: 0.88rem;
  font-weight: 800;
}
.ticker-track span { margin: 0 2rem; }
.ticker-track .td { color: var(--rood); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Deal */
.deal-sectie { background: var(--rood); padding: 5rem 2rem; }
.deal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.deal-tekst h1,
.deal-tekst h2 {
  margin-bottom: 1rem;
  color: var(--wit);
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}
.deal-tekst h1 em,
.deal-tekst h2 em { color: var(--geel); font-style: normal; }
.deal-tekst p {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 600;
}
.deal-tekst .deal-note {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}
.prijs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 14px;
  background: var(--oranje);
  color: var(--wit);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 900;
}
.prijs-pill span { font-size: 1rem; font-weight: 700; opacity: 0.8; }
.deal-img { border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.deal-img img { width: 100%; display: block; }

/* Producten */
.producten-sectie { padding: 5.5rem 2rem; }
.container { width: min(1160px, 100%); margin: 0 auto; }
.kop { text-align: center; margin-bottom: 3.5rem; }
.kop h1,
.kop h2 {
  color: var(--rood);
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
}
.kop .streep { width: 56px; height: 5px; margin: 0.7rem auto 0; border-radius: 3px; background: var(--geel); }
.kop p {
  max-width: 460px;
  margin: 0.8rem auto 0;
  color: var(--grijs);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 600;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.8rem; }
.card {
  overflow: hidden;
  border: 2.5px solid transparent;
  border-radius: 20px;
  background: var(--wit);
  box-shadow: 0 4px 22px rgba(139, 26, 26, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-7px); border-color: var(--geel); box-shadow: 0 14px 38px rgba(139, 26, 26, 0.18); }
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 228px; object-fit: cover; display: block; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.br { background: var(--rood); color: var(--wit); }
.bo { background: var(--oranje); color: var(--wit); }
.by { background: var(--geel); color: var(--donker); }
.card-body { padding: 1.4rem 1.7rem 1.8rem; }
.card-body h3 { margin-bottom: 0.6rem; color: var(--donker); font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 700; }
.card-body p { color: var(--grijs); font-size: 0.9rem; line-height: 1.6; font-weight: 600; }
.card-tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 4px 12px;
  border: 1.5px solid var(--rood);
  border-radius: 20px;
  background: var(--creme);
  color: var(--rood);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* Prijslijst */
.prijslijst-sectie { padding: 5.5rem 2rem; background: var(--zand); }
.prijslijst-sectie .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.prijslijst-sectie .kop { text-align: left; margin-bottom: 1.5rem; }
.prijslijst-sectie .kop .streep { margin-left: 0; }
.prijslijst-copy { max-width: 420px; margin-bottom: 1.5rem; color: var(--grijs); font-size: 1rem; line-height: 1.8; font-weight: 600; }
.prijslijst-img { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14); }
.prijslijst-img img { width: 100%; display: block; }

/* Locatie */
.maps-sectie { padding: 5.5rem 2rem; background: var(--creme); }
.maps-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.maps-info h2 { margin-bottom: 1.2rem; color: var(--rood); font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; }
.info-rij { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.info-icon { flex-shrink: 0; margin-top: 2px; font-size: 1.3rem; }
.info-tekst { color: var(--grijs); font-size: 0.97rem; font-weight: 700; line-height: 1.5; }
.info-tekst strong { display: block; color: var(--donker); }
.info-tekst a { color: var(--rood); text-decoration: none; }
.maps-kaart { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13); }
.maps-kaart iframe { width: 100%; height: 420px; border: none; display: block; }

/* Over ons */
.over-banner {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 2rem;
  background: linear-gradient(160deg, var(--donkerrood) 0%, var(--rood) 50%, #7a1515 100%);
  text-align: center;
}
.over-banner::before {
  content: '1980';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.05);
  font-family: 'Fraunces', serif;
  font-size: 20rem;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}
.over-banner-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.over-banner-inner h2 { margin-bottom: 1.3rem; color: var(--wit); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.over-banner-inner h2 em { color: var(--geel); font-style: normal; }
.over-banner-inner p { margin-bottom: 1rem; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; line-height: 1.8; font-weight: 600; }
.over-ons-pagina { display: none; padding: 6rem 2rem; }
.over-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 2rem; }
.over-foto { position: relative; }
.over-foto img { width: 100%; height: 460px; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
.over-foto::after { content: ''; position: absolute; right: -14px; bottom: -14px; z-index: -1; width: 100%; height: 100%; border: 4px solid var(--geel); border-radius: 20px; }
.over-tekst h2 { margin-bottom: 1.3rem; color: var(--rood); font-family: 'Fraunces', serif; font-size: 2.3rem; font-weight: 900; line-height: 1.15; }
.over-tekst p { margin-bottom: 1rem; color: var(--grijs); font-size: 0.98rem; line-height: 1.82; font-weight: 600; }
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat .getal { display: block; color: var(--rood); font-family: 'Fraunces', serif; font-size: 2.8rem; font-weight: 900; line-height: 1; }
.stat .naam { display: block; margin-top: 4px; color: var(--grijs); font-size: 0.76rem; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }

/* Standaard WordPress-pagina's */
.content-shell { min-height: 58vh; padding: 5rem 2rem; }
.content-card { width: min(900px, 100%); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 20px; background: var(--wit); box-shadow: 0 8px 32px rgba(139, 26, 26, 0.1); }
.entry-title { margin-bottom: 1.5rem; color: var(--rood); font-family: 'Fraunces', serif; font-size: clamp(2rem, 5vw, 3rem); }
.entry-content { color: var(--grijs); line-height: 1.8; }
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content h2,
.entry-content h3 { color: var(--rood); font-family: 'Fraunces', serif; }
.entry-content a { color: var(--rood); }

/* Footer */
.site-footer { padding: 3rem 2rem; background: var(--donker); color: rgba(255, 255, 255, 0.55); text-align: center; }
.foot-logo { margin-bottom: 0.3rem; color: var(--wit); font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 900; }
.foot-logo em { color: var(--geel); font-style: normal; }
.site-footer p { font-size: 0.86rem; line-height: 1.9; }
.site-footer a { color: var(--geel); text-decoration: none; }
.foot-lijn { width: 40px; height: 3px; margin: 0.9rem auto; border-radius: 2px; background: var(--geel); }
.foot-note { margin-top: 0.4rem; font-size: 0.78rem !important; opacity: 0.5; }

@media (max-width: 960px) {
  .site-nav { padding: 0 1.25rem; }
  .menu-toggle { display: block; }
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--donkerrood);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  }
  .nav-wrap.is-open { display: block; }
  .nav-wrap ul { display: block; }
  .nav-wrap ul li a { padding: 11px 10px; }
  .nav-order { display: inline-block; margin-top: 8px; }
}

@media (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .site-nav { padding-inline: 0.9rem; }
  .nav-brand span { font-size: 1.12rem; }
  .hero > img { height: 300px; min-height: 0; max-height: none; object-position: center; }
  .hero-overlay { padding: 1rem; }
  .deal-sectie,
  .producten-sectie,
  .prijslijst-sectie,
  .maps-sectie,
  .over-banner,
  .over-ons-pagina { padding: 3.25rem 0.9rem; }
  .deal-inner,
  .prijslijst-sectie .container,
  .maps-inner,
  .over-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .deal-img { order: -1; }
  .prijs-pill { font-size: 2rem; }
  .card-img img { height: 250px; }
  .over-foto::after { display: none; }
  .over-foto img { height: 280px; }
  .maps-kaart iframe { height: 300px; }
  .over-banner::before { font-size: 9rem; }
}

@media (max-width: 420px) {
  .site-nav { min-height: 60px; }
  .nav-brand img,
  .nav-brand .custom-logo { height: 34px; }
  .hero-btns { gap: 0.6rem; }
  .btn { padding: 12px 18px; font-size: 0.88rem; }
  .cards { grid-template-columns: 1fr; }
}
