/* Bici Caffè — stylesheet */
:root {
  --bg: #f4efe7;
  --bg-alt: #e8e0d4;
  --surface: #fbf8f3;
  --ink: #24170f;
  --ink-soft: #5c4a40;
  --muted: #7b645b;
  --line: rgba(36, 23, 15, 0.14);
  --accent: #9b3d27;        /* rosso mattone */
  --accent-ink: #fbf8f3;
  --green: #4f5d3a;         /* olijf */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 23, 15, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}
:root[data-theme="dark"] {
  --bg: #1b120c;
  --bg-alt: #24170f;
  --surface: #2c1f16;
  --ink: #efe7db;
  --ink-soft: #cdbfae;
  --muted: #a8968a;
  --line: rgba(232, 224, 212, 0.14);
  --accent: #d9774f;
  --accent-ink: #1b120c;
  --green: #a3b27f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b120c;
    --bg-alt: #24170f;
    --surface: #2c1f16;
    --ink: #efe7db;
    --ink-soft: #cdbfae;
    --muted: #a8968a;
    --line: rgba(232, 224, 212, 0.14);
    --accent: #d9774f;
    --accent-ink: #1b120c;
    --green: #a3b27f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em; display: block;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .01em; }
.brand-sub { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .92rem; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.theme-toggle, .menu-toggle {
  background: none; border: 1px solid var(--line); color: var(--ink);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer; display: grid; place-items: center;
}
.menu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .brand-sub { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 .95rem/1 var(--sans); padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-small { padding: 10px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fbf8f3; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,18,12,.85) 10%, rgba(27,18,12,.35) 55%, rgba(27,18,12,.15)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.hero .eyebrow { color: #f0c9a8; }
.hero h1 { max-width: 14ch; }
.hero p { color: rgba(251,248,243,.88); max-width: 52ch; font-size: 1.15rem; }
.hero .btn-ghost { color: #fbf8f3; border-color: rgba(251,248,243,.5); }

.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section.block { padding: 64px 0; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 16/10; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-strip .photo { aspect-ratio: 1; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip .photo:last-child { display: none; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }

.quote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; font-style: italic;
  border-left: 3px solid var(--accent); padding-left: 24px; margin: 0;
}

/* Info band */
.info-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-band > div { background: var(--surface); padding: 28px; }
.info-band h3 { font-size: 1.25rem; margin-bottom: .4em; }
.info-band p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .info-band { grid-template-columns: 1fr; } }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: var(--muted); }
.hours tr.today td { font-weight: 600; color: var(--accent); }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-badge.is-open::before { background: #3f9d4f; }

/* ---------- Menu ---------- */
.menu-nav {
  position: sticky; top: 70px; z-index: 40; background: var(--bg);
  border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav .wrap { display: flex; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
.menu-nav a { text-decoration: none; font-size: .9rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); }
.menu-nav a:hover, .menu-nav a.active { background: var(--bg-alt); color: var(--ink); }

.menu-section { padding: 64px 0 24px; scroll-margin-top: 130px; }
.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: 28px; }
.menu-head .intro { color: var(--ink-soft); }
.menu-head .intro p:last-child { margin: 0; }
@media (max-width: 800px) { .menu-head { grid-template-columns: 1fr; gap: 8px; } }
.menu-sub { font-family: var(--serif); font-size: 1.5rem; margin: 28px 0 8px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
@media (max-width: 800px) { .menu-cols { grid-template-columns: 1fr; } }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; }
.item-name { font-weight: 600; }
.item-desc { grid-column: 1 / 2; color: var(--muted); font-size: .92rem; }
.item-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price-head { display: flex; justify-content: flex-end; gap: 8px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.note { margin-top: 20px; padding: 16px 20px; border-radius: 10px; background: var(--bg-alt); color: var(--ink-soft); font-size: .95rem; }
.note strong { color: var(--ink); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); margin-left: 6px; vertical-align: 2px; }
.story { font-size: .95rem; color: var(--ink-soft); }
details.story summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field.error input, .field.error select { border-color: #c0392b; }
.field .err { font-size: .82rem; color: #c0392b; margin-top: 6px; display: none; }
.field.error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips label {
  margin: 0; font-weight: 500; font-size: .92rem; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.chips input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips input:disabled + label { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.form-success { display: none; }
.form-success.show { display: block; }

/* Placeholder marker for content still to be confirmed */
.todo {
  background: color-mix(in srgb, #e0a800 22%, transparent);
  border-bottom: 1px dashed #b88900; padding: 0 3px; border-radius: 3px;
}
.todo-banner {
  border: 1px dashed #b88900; background: color-mix(in srgb, #e0a800 12%, transparent);
  padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer { background: #24170f; color: #e8e0d4; padding: 64px 0 32px; margin-top: 0; }
.site-footer a { color: #e8e0d4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(232,224,212,.6); margin: 0 0 12px; font-weight: 600; }
.footer-grid p, .footer-grid li { font-size: .95rem; margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-brand { font-family: var(--serif); font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(232,224,212,.15); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: rgba(232,224,212,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Menukaart: foto iets groter naast de titel (alleen op grotere schermen) */
@media (min-width: 901px) {
  .hero-photo-right { grid-template-columns: 0.95fr 1.05fr; gap: 48px; }
}

/* Contact: foto iets kleiner naast de titel (alleen op grotere schermen) */
@media (min-width: 901px) {
  .hero-photo-small { grid-template-columns: 1.25fr 0.75fr; gap: 48px; }
}

/* ---------- Allergenen ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.allergen-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.allergen-table th, .allergen-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.allergen-table thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.allergen-table tbody tr:last-child th, .allergen-table tbody tr:last-child td { border-bottom: 0; }
.allergen-table tbody th { font-weight: 600; }
.allergen-table tbody th a { text-decoration: none; }
.allergen-table tbody th a:hover { text-decoration: underline; }
.allergen-table .ac { text-align: center; color: var(--accent); width: 64px; }
.allergen-table .gel { color: var(--muted); font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.allergen-card { scroll-margin-top: 90px; }
.allergen-tags { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.allergen-tags .label { font-size: .85rem; font-weight: 600; margin-right: 2px; }
.allergen-tags .tag { margin-left: 0; font-size: .78rem; padding: 3px 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.allergen-tags .tag-muted { background: var(--bg-alt); color: var(--ink-soft); }
.ingr { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.ingr strong { color: var(--ink); }

/* Logo in de header */
.brand-logo { height: 56px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 40px; } }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(0.92); } }

/* ---------- Cookiemelding ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(36,23,15,.18);
  padding: 18px 20px; display: grid; gap: 12px; font-size: .92rem;
}
.cookie-banner p { margin: 0; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
