/* ==========================================================================
   Bakkerij Wouters-Segers — main stylesheet
   Design language: "Warm atelier" (editorial bakery, after Sweetie Bakes)
   Mobile-first. Breakpoints: 640 / 900 / 1100 / 1400
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mr De Haviland"; src: url("../fonts/mr-de-haviland-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #111010;
  --ink-soft: #2f2b28;
  --taupe-text: #6b5d51; /* taupe for small text: >=4.6:1 on white, cream, wheat-soft and linen */
  --taupe-bar: #75675b;  /* scrolled header / back-to-top: white text 5.5:1 */
  --paper: #ffffff;
  --cream: #f1ede8;
  --cream-deep: #e8e1d8;
  --taupe: #988779;
  --taupe-dark: #7d6e62;
  --wheat: #d9b47e;
  --wheat-soft: #ecd9bb;
  --terracotta: #a5553a;
  --line: #e5e1dc;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-script: "Mr De Haviland", cursive;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(6rem, 12vw, 10.5rem);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-sm: 0 1px 2px rgba(17, 16, 16, .05);
  --shadow-md: 0 6px 18px rgba(17, 16, 16, .08);
  --shadow-lg: 0 18px 50px rgba(17, 16, 16, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.75; font-weight: 400; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--wheat); color: var(--ink); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--taupe); border: 2px solid var(--cream); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; font-size: .875rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section); position: relative; overflow-x: hidden; overflow-x: clip; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--cream { background: var(--cream); }
.section--wheat { background: var(--wheat-soft); }
.section--ink { background: var(--ink); color: var(--paper); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.kicker { display: block; font-family: var(--f-body); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-text); margin-bottom: 1.4rem; }
.section--ink .kicker, .on-dark .kicker { color: var(--wheat); }

.display, h1, h2 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; line-height: 1.08; letter-spacing: .015em; text-wrap: balance; }
h1, .h1 { font-size: clamp(2.25rem, 5.5vw + 1rem, 5.5rem); }
h2, .h2 { font-size: clamp(1.85rem, 2.6vw + .9rem, 3.4rem); }
h3, .h3 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem); line-height: 1.15; letter-spacing: .02em; }
.lead { font-size: clamp(1.125rem, .4vw + 1.05rem, 1.3rem); line-height: 1.7; color: var(--ink-soft); }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-soft); }
.section--ink .prose p, .section--ink .lead { color: rgba(255,255,255,.88); }

/* Signature: serif headline with a handwritten script word laid over its end */
.title { position: relative; display: inline-block; padding-bottom: .6em; }
.title__end { position: relative; white-space: nowrap; }
.title__end[data-script]::after {
  content: attr(data-script);
  position: absolute; left: 55%; top: 50%;
  padding: .2em .45em .4em .35em; /* room for the swashes inside the clip box */
  font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 1.25em; line-height: 1; color: var(--wheat); white-space: nowrap;
  transform: rotate(-5deg); transform-origin: left center; pointer-events: none; z-index: 1;
}
.js .reveal .title__end::after { clip-path: inset(-.3em 100% -.3em -.3em); transition: clip-path 1.1s var(--ease) .35s; }
.js .reveal.is-visible .title__end::after { clip-path: inset(-.3em -.3em -.3em -.3em); }
.title-block { margin-bottom: clamp(4rem, 7vw, 6rem); }
.title-block.center { max-width: 820px; margin-inline: auto; }
.title-block .lead { margin-top: 2.75rem; }
.title-block.center .lead { max-width: 640px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .95rem 2.4rem; overflow: hidden; isolation: isolate;
  font-family: var(--f-body); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--taupe-bar); }
.btn--solid:hover { border-color: var(--taupe-bar); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.btn-row--spaced { margin-top: clamp(4rem, 7vw, 5.5rem); }
.center .btn-row, .btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .3rem; background: linear-gradient(var(--terracotta), var(--terracotta)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--ink); transition: background-color .35s var(--ease), color .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-scrolled { --header-h: 72px; background: var(--taupe-bar); color: var(--paper); box-shadow: var(--shadow-md); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; gap: .35rem; }
.logo__name { font-family: var(--f-display); font-weight: 500; font-size: 1.55rem; letter-spacing: .02em; white-space: nowrap; }
.logo__tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.site-header .logo { align-items: flex-start; text-align: left; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1.75rem, 2.6vw, 3rem); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding-block: .5rem; font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after { background: var(--terracotta); height: 2px; }
.site-header.is-scrolled .nav__link[aria-current="page"]::after, .site-header.is-scrolled .nav__item.is-current > .nav__link::after { background: var(--paper); }

.nav__item--sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.15rem; }
.sub-toggle svg { width: 11px; transition: transform .3s var(--ease); }
.nav__item--sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.subnav { position: absolute; top: calc(100% + .75rem); left: -1.5rem; min-width: 250px; padding: 1rem 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.subnav::before { content: ""; position: absolute; top: -.75rem; left: 0; right: 0; height: .75rem; }
.nav__item--sub:hover .subnav, .nav__item--sub:focus-within .subnav, .nav__item--sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .55rem 1.5rem; font-size: .9375rem; transition: color .25s, padding .25s var(--ease); }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--terracotta); padding-left: 1.85rem; }

.open-badge { display: none; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.open-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); flex: none; }
.open-badge.is-open .open-badge__dot { background: #5f8b5a; box-shadow: 0 0 0 0 rgba(95,139,90,.55); animation: pulse 2.4s infinite; }
.open-badge.is-closed .open-badge__dot { background: var(--terracotta); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,139,90,.5); } 70% { box-shadow: 0 0 0 8px rgba(95,139,90,0); } 100% { box-shadow: 0 0 0 0 rgba(95,139,90,0); } }

/* Hamburger */
.burger { position: relative; z-index: 120; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; }
.burger__lines { position: relative; width: 26px; height: 14px; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .25s, top .4s var(--ease); }
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6.25px; width: 70%; left: auto; right: 0; }
.burger__lines span:nth-child(3) { top: 12.5px; }
.nav-open .burger__lines span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.nav-open .burger__lines span:nth-child(2) { opacity: 0; }
.nav-open .burger__lines span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }
.nav-open .site-header { z-index: 130; color: var(--ink); background: transparent; box-shadow: none; }

/* Mobile menu panel */
.mobile-nav { position: fixed; inset: 0; z-index: 110; background: var(--cream); color: var(--ink); padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; transform: translateY(-100%); visibility: hidden; transition: transform .55s var(--ease-out), visibility .55s; }
.nav-open .mobile-nav { transform: none; visibility: visible; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__link { display: block; flex: 1; padding: .85rem 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 6vw, 2.1rem); text-transform: uppercase; line-height: 1.2; letter-spacing: .02em; }
.mobile-nav__link[aria-current="page"] { color: var(--terracotta); }
.mobile-nav .sub-toggle { width: 48px; height: 48px; margin: 0; }
.mobile-nav .sub-toggle svg { width: 14px; }
.mobile-nav__sub { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.mobile-nav__item.is-open .mobile-nav__sub { max-height: 480px; }
.mobile-nav__item.is-open .sub-toggle svg { transform: rotate(180deg); }
.mobile-nav__sub ul { padding: 0 0 1rem 1rem; border-left: 1px solid var(--wheat); margin-bottom: 1rem; }
.mobile-nav__sub a { display: flex; align-items: center; min-height: 44px; font-size: 1.05rem; }
.mobile-nav__sub a[aria-current="page"] { color: var(--terracotta); }
.mobile-nav__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .35rem; font-size: 1.0625rem; }
.mobile-nav__foot a { display: inline-flex; min-height: 44px; align-items: center; }
.mobile-nav__foot .open-badge { display: inline-flex; margin-bottom: .75rem; }

@media (min-width: 1100px) {
  .burger, .mobile-nav { display: none; }
  .nav { display: block; }
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .logo { align-items: center; text-align: center; }
  .site-header__inner .logo { grid-column: 2; grid-row: 1; }
  .nav--left { grid-column: 1; grid-row: 1; }
  .nav--left { justify-self: start; }
  .nav--right { grid-column: 3; grid-row: 1; justify-self: end; }
  .logo__name { font-size: 1.85rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; background: var(--cream); overflow: hidden; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; filter: saturate(.92) contrast(1.03); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(241,237,232,.55) 0%, rgba(241,237,232,.9) 32%, rgba(241,237,232,.96) 100%); }
.hero__content { position: relative; z-index: 1; width: 100%; text-align: center; }
.hero__content .lead { max-width: 520px; margin: clamp(2.5rem, 4vw, 3.5rem) auto 0; }
.hero h1 .title__end::after { font-size: .9em; left: 48%; top: 52%; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.75rem; z-index: 1; display: none; flex-direction: column; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe-text); transform: translateX(-50%); }
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--taupe), transparent); animation: scrollcue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (min-width: 900px) {
  .hero { padding-bottom: 6rem; }
  .hero__media::after { background: linear-gradient(90deg, rgba(241,237,232,0) 30%, rgba(241,237,232,.85) 55%, rgba(241,237,232,.96) 75%); }
  .hero__content { display: grid; grid-template-columns: .8fr 1.2fr; }
  .hero h1 { font-size: clamp(3rem, 3.6vw + 1rem, 5.2rem); }
  .hero__text { grid-column: 2; }
  .hero__scroll { display: flex; }
}

/* Hero entrance choreography */
.hero [data-enter] { opacity: 0; transform: translateY(24px); animation: enter 1s var(--ease-out) forwards; }
.hero [data-enter="1"] { animation-delay: .15s; }
.hero [data-enter="2"] { animation-delay: .3s; }
.hero [data-enter="3"] { animation-delay: .55s; }
.hero [data-enter="4"] { animation-delay: .7s; }
.hero h1 .title__end::after { clip-path: inset(-.3em 100% -.3em -.3em); animation: write 1.3s var(--ease) 1s forwards; }
.hero__media img { animation: heroZoom 2.4s var(--ease-out) both; }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes write { to { clip-path: inset(-.3em -.3em -.3em -.3em); } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; background: var(--cream); padding: calc(var(--header-h) + clamp(4.5rem, 9vw, 8rem)) 0 clamp(4.5rem, 8vw, 7rem); overflow: hidden; text-align: center; }
.page-banner__media { position: absolute; inset: 0; }
.page-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; filter: saturate(.9); }
.page-banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(241,237,232,.55) 0%, rgba(241,237,232,.93) 38%, rgba(241,237,232,.97) 100%); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2.2rem, 5vw + 1rem, 5rem); }
.page-banner .lead { max-width: 620px; margin: clamp(3rem, 5vw, 3.5rem) auto 0; }
.breadcrumbs { margin-top: 1.75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-text); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: clamp(4rem, 8vw, 8.5rem); align-items: center; }
.split--top { align-items: start; }
.split__text { max-width: 560px; }
.split__text .prose { margin-top: 2.5rem; }
.center-mobile { text-align: center; margin-inline: auto; }
.center-mobile .btn-row { justify-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .split--wide-media { grid-template-columns: 1.1fr .9fr; }
  .split--reverse.split--wide-media { grid-template-columns: .9fr 1.1fr; }
  .center-mobile { text-align: left; margin-inline: 0; }
  .center-mobile .btn-row { justify-content: flex-start; }
  .split__text.is-centered { text-align: center; margin-inline: auto; }
  .split__text.is-centered .btn-row { justify-content: center; }
}

/* ---------- Arch media (motif from the shop's arched niches) ---------- */
.arch { position: relative; isolation: isolate; }
.arch__img { position: relative; overflow: hidden; border-radius: 100vmax 100vmax 0 0; aspect-ratio: 4 / 5; background: var(--cream); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch:hover .arch__img img { transform: scale(1.04); }
.arch--outline::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--wheat); border-radius: 100vmax 100vmax 0 0; z-index: -1; transition: inset .6s var(--ease); }
.arch--outline:hover::before { inset: -20px 20px 20px -20px; }
.arch--right.arch--outline::before { inset: -14px -14px 14px 14px; }
.arch--tall .arch__img { aspect-ratio: 3 / 4.2; }
.arch__caption { margin-top: 1rem; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: var(--taupe-text); text-align: center; }
.arch-pair { position: relative; padding-bottom: 18%; }
.arch-pair .arch:nth-child(2) { position: absolute; width: 46%; right: 0; bottom: 0; }
.arch-pair .arch:nth-child(2) .arch__img { border: 8px solid var(--paper); box-shadow: var(--shadow-lg); }
.arch-pair .arch:first-child { width: 78%; }
.section--cream .arch-pair .arch:nth-child(2) .arch__img { border-color: var(--cream); }

/* ---------- Decorative wheat sprigs ---------- */
.decor { position: absolute; z-index: 0; pointer-events: none; color: var(--wheat); opacity: .55; }
.decor svg { width: 100%; height: auto; }
.decor--tl { top: 2rem; left: -2rem; width: clamp(110px, 14vw, 190px); transform: rotate(-20deg); }
.decor--br { bottom: 1rem; right: -1.5rem; width: clamp(110px, 14vw, 200px); transform: rotate(160deg); }
.decor--tr { top: 3rem; right: -2rem; width: clamp(100px, 12vw, 170px); transform: rotate(25deg) scaleX(-1); }
.section > .container { position: relative; z-index: 1; }

/* ---------- Features (troeven) ---------- */
.features { display: grid; gap: 4rem 2.5rem; grid-template-columns: 1fr; }
.feature { text-align: center; max-width: 320px; margin-inline: auto; }
.feature__icon { width: 74px; height: 74px; margin: 0 auto 1.5rem; color: var(--wheat); }
.feature__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.feature:hover .feature__icon svg { transform: translateY(-4px) rotate(-3deg); }
.feature h3 { margin-bottom: .75rem; }
.feature p { color: var(--ink-soft); font-size: 1.0625rem; }
.feature__num { display: block; font-family: var(--f-display); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--taupe); margin-bottom: .75rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .features--5 { grid-template-columns: repeat(5, 1fr); gap: 2rem; }
  .features--3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .features--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 1099px) { .features--5 > :last-child { grid-column: 1 / -1; } .features--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Product cards ---------- */
.cards { display: grid; gap: 4rem 2rem; grid-template-columns: 1fr; }
.card { display: block; text-align: center; }
.card__img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream); }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1s var(--ease), filter .6s; }
.card__img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.85); border-radius: 100vmax 100vmax 0 0; opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); filter: saturate(1); }
.card:hover .card__img::after { opacity: 1; transform: none; }
.card h3 { margin-top: 1.5rem; }
.card p { margin-top: .5rem; font-size: 1.0625rem; color: var(--ink-soft); }
.card .link-arrow { margin-top: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } .card__img { aspect-ratio: 4 / 5; } }
@media (min-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 4.5rem 2.75rem; }
  .cards--stagger > :nth-child(even) { margin-top: 2.5rem; }
}
@media (min-width: 640px) and (max-width: 1099px) { .cards--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - .75rem); margin-inline: auto; } }

/* ---------- Moment picker ("Zin in…") ---------- */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.moment { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 160px; padding: 1.75rem 1rem; background: var(--paper); text-align: center; overflow: hidden; transition: color .4s var(--ease); isolation: isolate; }
.moment::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.moment:hover, .moment:focus-visible { color: var(--paper); }
.moment:hover::before, .moment:focus-visible::before { transform: none; }
.moment__script { font-family: var(--f-script); font-size: 2.1rem; line-height: 1; color: var(--wheat); }
.moment__name { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.moment__to { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-text); }
.moment:hover .moment__to { color: var(--wheat); }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(3, 1fr); } .moment { min-height: 200px; } }

/* ---------- Parallax band ---------- */
.band { position: relative; display: grid; place-items: center; min-height: clamp(460px, 70vh, 720px); padding: 5rem 0; color: var(--paper); text-align: center; background-color: var(--ink); background-size: cover; background-position: center; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,16,.6), rgba(17,16,16,.5) 50%, rgba(17,16,16,.65)); }
.band .container { position: relative; z-index: 1; }
.band .kicker { color: var(--wheat); }
.band .lead { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); max-width: 560px; margin: 1.5rem auto 0; }
@media (min-width: 1100px) and (hover: hover) { .band--fixed { background-attachment: fixed; } }
.band--brood { background-image: url("../images/sfeer/broodmand-donker.webp"); }
.band--deeg { background-image: url("../images/sfeer/deeg-kneden.webp"); }
.band--taart { background-image: url("../images/assortiment/feesttaart.webp"); }
.band--rekken { background-image: url("../images/sfeer/broden-stapel.webp"); }

/* ---------- Linen texture section ---------- */
.linen { position: relative; background: var(--cream) url("../images/sfeer/linnen.webp") center / cover; }
.linen::before { content: ""; position: absolute; inset: 0; background: rgba(241,237,232,.55); }
.linen > * { position: relative; }

/* ---------- Menu list with dotted leaders ---------- */
.menu-list { display: grid; gap: 2rem; margin-top: 3rem; }
.menu-item--compact .menu-item__name { font-size: clamp(1.2rem, .8vw + 1rem, 1.45rem); }
.menu-list:has(.menu-item--compact) { gap: 1.1rem; }
.menu-panel__note { margin-top: 3rem; }
.menu-item__head { display: flex; align-items: baseline; gap: .9rem; }
.menu-item__name { min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); text-transform: uppercase; line-height: 1.2; letter-spacing: .02em; }
.menu-item__dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted var(--ink); transform: translateY(-.3em); opacity: .55; }
.menu-item__tag { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--taupe-text); white-space: nowrap; }
.menu-item p { margin-top: .35rem; font-size: 1.0625rem; color: var(--ink-soft); }
.menu-panel { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu-panel__media { min-height: 320px; position: relative; overflow: hidden; }
.menu-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-panel__body { padding: clamp(5rem, 10vw, 8.5rem) var(--gutter); }
.menu-panel__body h2 { margin-bottom: 2.25rem; }
@media (min-width: 900px) {
  .menu-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
  .menu-panel--reverse .menu-panel__media { order: 2; }
  .menu-panel__body { align-self: center; padding-inline: clamp(2.5rem, 6vw, 6.5rem); max-width: 720px; }
}

/* ---------- Opening hours board ---------- */
.hours { border-top: 1px solid var(--line); }
.hours__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.hours__day { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.hours__time { font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours__row.is-closed .hours__time { color: var(--taupe-text); font-style: italic; }
.hours__row.is-today { position: relative; }
.hours__row.is-today .hours__day::after { content: "vandaag"; margin-left: .75rem; font-family: var(--f-script); text-transform: none; font-weight: 400; font-size: 1.6rem; color: var(--terracotta); letter-spacing: 0; vertical-align: -.1em; }
.section--ink .hours, .section--ink .hours__row { border-color: rgba(255,255,255,.15); }
.section--ink .hours__time { color: rgba(255,255,255,.9); }

/* ---------- Info blocks / contact ---------- */
.info-grid { display: grid; gap: 2.5rem; }
.info { text-align: center; }
.info__icon { width: 46px; height: 46px; margin: 0 auto 1.1rem; color: var(--wheat); }
.info__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.info h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.info p, .info address { color: var(--ink-soft); }
.info a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.info a:hover { color: var(--terracotta); border-color: currentColor; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-grid--4 { grid-template-columns: repeat(4, 1fr); } .info-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.big-mail { display: inline-block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 4.5vw, 3.4rem); line-height: 1.15; word-break: break-word; background: linear-gradient(var(--wheat), var(--wheat)) 0 92% / 100% .18em no-repeat; transition: background-size .5s var(--ease), color .3s; }
.big-mail:hover { color: var(--terracotta); background-size: 100% .5em; }

.legal-card { margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); background: var(--paper); font-size: 1.0625rem; color: var(--ink-soft); }
.legal-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-text); }
.legal-card dd + dt { margin-top: .9rem; }
.legal-card dd { color: var(--ink); }

.map { position: relative; height: clamp(360px, 55vh, 560px); background: var(--cream-deep); filter: grayscale(.85) sepia(.15) contrast(1.02); }
.map .leaflet-control-attribution { font-size: 10px; }
.map-pin { width: 44px; height: 56px; }
.map-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--ink-soft); }

/* ---------- Steps (bestellen) ---------- */
.steps { display: grid; gap: 2.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.step__num { display: block; font-family: var(--f-display); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--taupe); margin-bottom: .75rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-soft); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.ways { display: grid; gap: 1.5rem; }
.way { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.75rem 1.75rem; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.way:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.way .info__icon { margin-bottom: 1.25rem; }
.way h3 { margin-bottom: .6rem; }
.way p { color: var(--ink-soft); font-size: 1.0625rem; }
.way__cta { margin-top: auto; padding-top: 1.5rem; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.way__cta a { border-bottom: 1px solid var(--wheat); }
.way__cta a:hover { color: var(--terracotta); }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }

.notice { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; background: var(--wheat-soft); border-left: 3px solid var(--wheat); }
.notice svg { width: 28px; flex: none; color: var(--taupe-dark); fill: none; stroke: currentColor; stroke-width: 1.5; }
.notice strong { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 680px; }

/* ---------- Announcement strip ---------- */
.announce { background: var(--ink); color: var(--paper); }
.announce__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-block: 1.75rem; text-align: center; }
.announce__label { font-family: var(--f-script); font-size: 2rem; line-height: 1; color: var(--wheat); }
.announce p { font-size: 1.0625rem; color: rgba(255,255,255,.92); }
.announce strong { color: var(--paper); font-weight: 500; }
.announce .link-arrow { color: var(--paper); }
@media (min-width: 900px) { .announce__inner { flex-direction: row; justify-content: center; gap: 2rem; text-align: left; } }

/* ---------- Quote / story ---------- */
.quote { max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 2.4vw + 1rem, 2.6rem); line-height: 1.3; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: .6; color: var(--wheat); font-style: normal; margin-bottom: .75rem; }
.quote figcaption { margin-top: 1.75rem; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-text); }
.quote__sign { display: block; font-family: var(--f-script); font-size: 2.6rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: .25rem; }

.timeline { display: grid; gap: 2.5rem; position: relative; }
.timeline__item { position: relative; padding-left: 2rem; border-left: 1px solid var(--wheat); }
.timeline__item::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--wheat); }
.timeline__year { font-family: var(--f-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--ink); }
.timeline__item h3 { margin: .5rem 0; font-size: 1.3rem; }
.timeline__item p { color: var(--ink-soft); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--wheat); padding-top: 2.5rem; }
  .timeline__item { border-left: 0; padding: 0 2rem 0 0; }
  .timeline__item::before { left: 0; top: calc(-2.5rem - 5px); }
}

/* ---------- CTA block ---------- */
.cta { text-align: center; }
.cta .lead { max-width: 560px; margin: 1.5rem auto 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.85); font-size: 1.0625rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 50%; width: min(240px, 50%); height: 1px; background: var(--wheat); transform: translateX(-50%); }
.footer-top { padding: clamp(4rem, 8vw, 6rem) 0 3rem; text-align: center; }
.footer-top .logo { color: var(--paper); }
.footer-top .logo__name { font-size: 2.2rem; }
.footer-top p { max-width: 480px; margin: 1.25rem auto 0; font-size: 1.0625rem; }
.footer-grid { display: grid; gap: 2.75rem; padding-bottom: 3.5rem; text-align: center; }
.footer-col h2 { font-size: 1.45rem; color: var(--paper); margin-bottom: 1.25rem; letter-spacing: .03em; }
.footer-col li + li { margin-top: .35rem; }
.footer-col a { display: inline-flex; min-height: 32px; align-items: center; background: linear-gradient(var(--wheat), var(--wheat)) 0 85% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.footer-col a:hover { color: var(--paper); background-size: 100% 1px; }
.footer-col address { line-height: 1.9; }
.footer-hours { display: grid; gap: .25rem; max-width: 260px; margin-inline: auto; }
.footer-hours div { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours dt { color: var(--paper); }
.footer-hours dd { font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem 0; font-size: .9375rem; color: rgba(255,255,255,.75); }
.footer-bottom__inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--wheat); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); text-align: left; gap: 2rem; }
  .footer-hours { margin-inline: 0; }
  .footer-bottom__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; background: var(--taupe-bar); color: var(--paper); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease), visibility .35s, background-color .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 16px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img img { opacity: 0; transition: opacity .9s var(--ease); }
.js .reveal-img img.is-loaded { opacity: 1; }

/* ---------- Page transition ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Grain ---------- */
.grain::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4.5rem; }
.muted { color: var(--taupe-text); }
.small { font-size: .9375rem; }
.divider { width: 70px; height: 1px; background: var(--wheat); margin: 2rem auto; border: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); margin: 2.75rem 0 1rem; }
.legal h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 1rem 0; }
.legal a { border-bottom: 1px solid var(--wheat); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 1rem; }
.legal th, .legal td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero [data-enter] { opacity: 1; transform: none; }
  .title__end::after { clip-path: none !important; }
  .band--fixed { background-attachment: scroll; }
}

/* Wide arch for landscape shop renders */
.arch--wide .arch__img { aspect-ratio: 4 / 3; }
.notice ul { list-style: disc; padding-left: 1.1rem; }
.notice li + li { margin-top: .25rem; }
.menu-list > li { min-width: 0; }
@media (max-width: 479px) {
  .menu-item__head { flex-wrap: wrap; gap: .1rem .9rem; }
  .menu-item__dots { display: none; }
  .menu-item__tag { flex-basis: 100%; font-size: 1.05rem; }
}

/* ---------- Spacing helpers & single-page assortiment ---------- */
.lead--spaced { margin-top: 2.75rem; }
.hours-wrap { margin-top: 2.5rem; }
.cta__mail { margin-top: 3rem; }
.notice__list { margin-top: .75rem; }
.cta .lead { margin-top: 2.5rem; }
.band .lead { margin-top: 2.5rem; }
.cards--flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 4rem 2rem; }
.cards--flex > * { flex: 0 1 100%; scroll-margin-top: calc(var(--header-h) + 2rem); }
@media (min-width: 640px) { .cards--flex > * { flex-basis: calc(50% - 1rem); } }
@media (min-width: 1100px) { .cards--flex { gap: 5rem 2.5rem; } .cards--flex > * { flex-basis: calc(25% - 1.875rem); } }
#specialiteiten { scroll-margin-top: var(--header-h); }
@media (max-width: 639px) { .title__end[data-script]::after, .hero h1 .title__end::after { left: auto; right: -.2em; top: 58%; transform-origin: right center; } }
