/* ============================================================
   Bakkerij Verweij — Woerden
   Palette: gold #D4A017 | brown #8B4513 | cream #F5F0E8 | dark #2C2C2C
   Type: Playfair Display + Lato
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #2C2C2C;
  background: #F5F0E8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- Media fill helpers (CSS discipline) ---- */
.media, .img-fill, figure.photo { position: relative; overflow: hidden; }
.media > img, .img-fill > img, figure.photo > img,
.gallery img, .card__media img, .hero__media img,
.over-ons__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---- Custom properties ---- */
:root {
  --gold: #D4A017;
  --gold-dark: #B8880F;
  --brown: #8B4513;
  --cream: #F5F0E8;
  --cream-dark: #EDE5D6;
  --dark: #2C2C2C;
  --text: #3A3028;
  --text-muted: #6B5B4E;
  --white: #FDFAF5;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(44,28,10,0.10);
  --shadow-lg: 0 12px 48px rgba(44,28,10,0.16);
  --transition: 0.25s ease;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* ---- Container ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Section basics ---- */
.section {
  padding: 5rem 0;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 48px;
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: #1a1000;
  border-color: var(--gold);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--full { width: 100%; justify-content: center; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ===============================================
   HEADER
   =============================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139,69,19,0.12);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark { flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-primary {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.logo-secondary {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Desktop nav */
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.desktop-nav a {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--brown); }
.nav-cta {
  background: var(--gold);
  color: #1a1000 !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--gold-dark) !important; }

/* Hamburger button */
.mobile-menu__trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--brown);
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===============================================
   MOBILE MENU OVERLAY (fullscreen kit)
   =============================================== */
.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  z-index: 950;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-menu__overlay[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__overlay { transition: none; }
}
.mobile-menu__panel { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
.mobile-menu__close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.mobile-menu__logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}
.mobile-menu__logo .logo-primary {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
}
.mobile-menu__logo .logo-secondary {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.mobile-menu__list { flex: 1; }
.mobile-menu__item {
  display: block;
  padding: 1rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid rgba(139,69,19,0.12);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
  min-height: 44px;
}
.mobile-menu__item:hover, .mobile-menu__item:focus-visible {
  color: var(--gold-dark);
  padding-left: 0.5rem;
}
.mobile-menu__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139,69,19,0.12);
}
.mobile-menu__tel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--brown);
  font-size: 1.05rem;
}

/* ===============================================
   HERO
   =============================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 10, 0, 0.72) 0%,
    rgba(44, 22, 0, 0.55) 60%,
    rgba(20, 10, 0, 0.30) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
  padding-top: 68px;
}
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero__title {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(253,250,245,0.88);
  margin-bottom: 2.25rem;
  font-weight: 300;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(253,250,245,0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===============================================
   OVER ONS
   =============================================== */
.over-ons { background: var(--white); }
.over-ons__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.over-ons__text h2 { margin-bottom: 1.25rem; }
.over-ons__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.over-ons__highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.highlight-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(212,160,23,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}
.highlight-item strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.1rem;
}
.highlight-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.over-ons__visual {
  position: relative;
}
.over-ons__img-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.over-ons__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.over-ons__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--brown);
  color: var(--white);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--shadow);
  z-index: 2;
}
.over-ons__badge svg { margin-bottom: 0.1rem; }

/* ===============================================
   ASSORTIMENT — Card grid
   =============================================== */
.assortiment { background: var(--cream-dark); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,28,10,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(212,160,23,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}
.card h3 { font-size: 1.15rem; color: var(--dark); }
.card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }

/* ===============================================
   OPENINGSTIJDEN & LOCATIE
   =============================================== */
.openingstijden { background: var(--white); }
.openingstijden__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.openingstijden__info h2 { margin-bottom: 2rem; }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  font-size: 0.97rem;
}
.hours-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(139,69,19,0.10);
  color: var(--text);
}
.hours-table td:first-child { font-weight: 700; width: 45%; }
.hours-table td:last-child { color: var(--text-muted); }
.hours-table tr.closed td { color: #a09080; font-style: italic; }
.hours-table tr:last-child td { border-bottom: none; }
.address-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.address-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.97rem;
  color: var(--text-muted);
}
.address-item svg { color: var(--gold-dark); margin-top: 2px; flex-shrink: 0; }
.address-item a { color: var(--brown); font-weight: 600; }
.address-item a:hover { color: var(--gold-dark); }
.map-wrap {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-dark);
}

/* ===============================================
   CONTACT
   =============================================== */
.contact { background: var(--cream-dark); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact__intro h2 { margin-bottom: 1rem; }
.contact__intro p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(212,160,23,0.12);
  color: var(--gold-dark);
  flex-shrink: 0;
}
.contact-item div { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-item strong { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.contact-item a, .contact-item span { color: var(--text-muted); font-size: 0.97rem; }
.contact-item a:hover { color: var(--brown); }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
}
.form-row label span { color: var(--gold-dark); }
.form-row input,
.form-row textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(139,69,19,0.22);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #b0a090; }

/* ===============================================
   FOOTER
   =============================================== */
.footer-kit {
  background: var(--dark);
  color: rgba(245,240,232,0.75);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.10);
}
.footer-logo { margin-bottom: 0.75rem; }
.footer-logo .logo-primary {
  font-size: 1.35rem;
  color: var(--cream);
}
.footer-logo .logo-secondary {
  font-size: 0.72rem;
  color: var(--gold);
}
.footer-tagline { font-size: 0.88rem; color: rgba(245,240,232,0.5); margin-top: 0.5rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
}
.footer-col li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-col a { color: rgba(245,240,232,0.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.hours-list li { display: flex; justify-content: space-between; }
.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.35);
  text-align: center;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .over-ons__inner { gap: 3rem; }
  .openingstijden__inner { gap: 2.5rem; }
  .contact__inner { gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Show mobile trigger, hide desktop nav */
  .mobile-menu__trigger { display: flex; }
  .desktop-nav { display: none; }

  /* Body scroll lock when menu open */
  body.menu-open { overflow: hidden; }

  /* Section padding */
  .section { padding: 3.5rem 0; }

  /* Over ons */
  .over-ons__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .over-ons__visual { order: -1; }
  .over-ons__badge { width: 96px; height: 96px; font-size: 0.65rem; left: -0.5rem; bottom: -0.5rem; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Openingstijden */
  .openingstijden__inner { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.75rem; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero__content { padding-left: 1rem; padding-right: 1rem; }
  .contact-form { padding: 1.25rem; }
}

/* ---- Focus visible global ---- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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