/* Het Schapenkopje — herfstige huiskamer: kaneel en okergeel op havermout, zachte toffeetinten voor de banden.
   Layout: rustige secties met veel lucht, foto's met zachte hoeken die bij het scrollen in beeld "morphen". */
:root {
  --bg: #f6f0e8;
  --surface: #fffaf3;
  --soft: #efe2d2;
  --river: #8d5236;
  --river-soft: #f2dfd2;
  --ink: #3a2c25;
  --muted: #76655b;
  --line: #e2d4c4;
  --caramel: #8a5d16;
  --caramel-soft: #f5e6c8;
  --wool: #fffaf3;
  --face: #3d302a;
  --ok: #55743a;
  --ok-soft: #e7ecd8;
  --error: #a23b2e;

  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #221b17; --surface: #3a2e26; --soft: #2a211c; --river: #e3ab8a; --river-soft: #3e2c23;
    --ink: #f3e9df; --muted: #bca99a; --line: #47382f; --caramel: #e6bb6c; --caramel-soft: #3b2f1c;
    --wool: #fff8ef; --face: #3d302a; --ok: #b7d091; --ok-soft: #2a3220; --error: #f0a093;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #221b17; --surface: #3a2e26; --soft: #2a211c; --river: #e3ab8a; --river-soft: #3e2c23;
    --ink: #f3e9df; --muted: #bca99a; --line: #47382f; --caramel: #e6bb6c; --caramel-soft: #3b2f1c;
    --wool: #fff8ef; --face: #3d302a; --ok: #b7d091; --ok-soft: #2a3220; --error: #f0a093;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caramel); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-soft { background: var(--soft); }
.section-head { display: grid; gap: 10px; max-width: 60ch; margin-bottom: 28px; }

/* Demo-balk en kop */
.demo-bar { background: var(--river); color: var(--surface); font-size: 0.85rem; text-align: center; padding-block: 8px; }
.demo-bar a { color: inherit; font-weight: 600; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 1.3rem; }
.sheep { width: 42px; height: 42px; flex: none; }
.sheep-bg { fill: var(--river-soft); }
.sheep-face { fill: var(--face); }
.sheep-wool circle { fill: var(--wool); stroke: var(--face); stroke-width: 1.4; }
.sheep-eye { fill: var(--wool); }
.sheep-nose { fill: none; stroke: var(--wool); stroke-width: 1.6; stroke-linecap: round; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.nav a:hover { color: var(--river); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--f-body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--river); color: var(--surface); }
.btn-soft { background: var(--river-soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: var(--caramel-soft); color: var(--caramel); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-open="true"] { background: var(--ok-soft); color: var(--ok); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 28px 120px; }
.tag { position: absolute; right: 16px; bottom: 16px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 4px 16px rgb(0 0 0 / .08); }

/* Taart van de dag */
.special { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; background: var(--caramel-soft); border-radius: var(--radius); padding: 22px 28px; margin-bottom: 8px; }
.special > div { display: grid; gap: 2px; min-width: 0; }
.special-name { font-family: var(--f-display); font-size: 1.4rem; }
.special-desc { color: var(--muted); }
.special-price { font-family: var(--f-display); font-size: 1.6rem; color: var(--caramel); font-variant-numeric: tabular-nums; }

/* Kaart */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { font: 600 0.95rem var(--f-body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--river); border-color: var(--river); color: var(--surface); }
.menu-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.panel-head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
.panel-head p { color: var(--muted); font-size: 0.95rem; }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-block: 14px; border-bottom: 1px dashed var(--line); }
.dish-name { font-weight: 600; }
.dish-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; }
.price { font-variant-numeric: tabular-nums; color: var(--caramel); font-weight: 600; }
.menu-meta { margin-top: 14px; }
.demo-note { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--river-soft); color: var(--ink); max-width: 70ch; }
.menu-error { color: var(--error); }

/* Over ons */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photos { position: relative; padding-bottom: 48px; padding-right: 48px; }
.about-photos img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-photos img:last-child { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--soft); }
.about-text { display: grid; gap: 16px; min-width: 0; }
.about-text p { max-width: 58ch; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts li { display: grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.facts span { font-size: 0.9rem; color: var(--muted); }

/* Taart bestellen */
.order { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.order-text { display: grid; gap: 16px; min-width: 0; }
.order-text p { max-width: 50ch; }
.cakes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.cakes li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px dashed var(--line); }
.cakes li span:first-child { min-width: 0; }
.cakes small { display: block; color: var(--muted); font-size: 0.88rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form { display: grid; gap: 16px; padding: clamp(20px, 4vw, 32px); min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--river); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.88rem; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--river); }
.form .btn { justify-self: start; }
.form-result { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ink); }

/* Bezoek */
.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit > div:first-child { display: grid; gap: 16px; min-width: 0; }
.visit > div:first-child p { max-width: 52ch; }
.contact { margin: 8px 0 0; display: grid; gap: 12px; }
.contact div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; user-select: all; }
.hours-card { padding: clamp(20px, 4vw, 28px); display: grid; gap: 12px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr[data-today="true"] th, .hours tr[data-today="true"] td { font-weight: 700; color: var(--river); }

/* Voet */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.9rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Privacypagina */
.legal { padding-block: 48px 80px; }
.legal .wrap { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal ul { margin: 0; padding-left: 1.2em; }

@media (max-width: 860px) {
  .hero-grid, .about, .order, .visit { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; }
  .about-photos { max-width: 520px; }
}
@media (max-width: 560px) {
  .row2, .facts { grid-template-columns: 1fr; }
  .nav { gap: 2px 16px; font-size: 0.95rem; }
  .hero-photo img { border-radius: 22px 22px 22px 72px; }
  .special { padding: 18px 20px; }
}

/* Foto's morphen in beeld bij het scrollen (alleen als het script draait en beweging is toegestaan) */
.morph { transition: opacity .8s ease, transform 1s cubic-bezier(.22,.8,.24,1); backface-visibility: hidden; }
.morph-ready .morph:not(.is-in) { opacity: 0; transform: translate3d(0, 32px, 0) scale(.9); will-change: opacity, transform; }
.about-photos img.morph:last-child { transition-delay: .25s; }
.morph-ready .about-photos img.morph:last-child:not(.is-in) { transform: translate3d(0, 32px, 0) scale(.6); }
@media (prefers-reduced-motion: reduce) { .morph { transition: none; } }
