@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* Ed's Catering. Colours from their own site and logo (edscatering.nl/layout.css and layout/logo.jpg), see ../BRAND.md */
:root {
  --red: #bf290c;        /* their link and heading red (layout.css) */
  --red-dark: #9a210a;   /* darker shade of their red, for hover */
  --logo-red: #db0117;   /* the ring in their logo */
  --gold: #8a6d0f;       /* darker shade of the logo gold, AA on cream */
  --gold-line: #dccb9a;  /* light tint of the logo gold (#dbc392) */
  --black: #000;         /* their page background */
  --ink: #1b1512;        /* near black for text */
  --muted: #5e544c;      /* warm grey, AA on cream */
  --cream: #faf6ec;      /* light tint of the logo gold */
  --cream-2: #f2ead6;    /* second tint for alternating sections */
  --white: #fff;

  --f-display: 'Alegreya', Georgia, serif;
  --f: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--f); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; color: var(--ink); text-wrap: balance; }
h3 { line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
::selection { background: var(--gold-line); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--r); border: 1px solid var(--red); background: var(--red); color: var(--white); font: 600 .95rem/1.2 var(--f); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.dark .btn.ghost { color: var(--white); border-color: rgba(255,255,255,.65); }
.dark .btn.ghost:hover { background: var(--white); color: var(--black); }
.textlink { color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header: cream band, original logo */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--gold-line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.brand span { font: 700 1.15rem/1.1 var(--f-display); }
.brand small { display: block; font: 400 .8rem/1.3 var(--f); color: var(--muted); }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 1.75rem; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.nav-link { font-size: .98rem; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--gold-line); }
.nav-link[aria-current="page"] { border-bottom-color: var(--red); }
.menu-btn { display: none; }
.header-call { min-height: 42px; }

/* Dark sections: their site was black */
.dark { background: var(--black); color: #efe8dc; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }

/* Hero */
.hero { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; max-width: 34rem; color: #e6dccb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.facts { list-style: none; border-top: 1px solid rgba(220,203,154,.35); max-width: 34rem; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(220,203,154,.35); font-size: .98rem; }
.facts .k { font-weight: 700; color: var(--gold-line); }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hero-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.hero-photos .big { grid-column: span 2; }
.hero-photos .big img { aspect-ratio: 430 / 298; }
.photo-cap { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.dark .photo-cap { color: #b9ad9a; }

/* Page intro (subpages) */
.intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.intro h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); margin-bottom: 1rem; }
.intro p { font-size: 1.18rem; max-width: 38rem; }
.intro.dark p { color: #e6dccb; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tint { background: var(--cream-2); }
.section.white { background: var(--white); }
.sec-head { max-width: 46rem; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .75rem; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Register list (REFS 1) */
.register { list-style: none; border-top: 1px solid var(--gold-line); }
.register li { border-bottom: 1px solid var(--gold-line); }
.register a, .register .row { display: grid; grid-template-columns: minmax(0, 17rem) 1fr auto; gap: 1.5rem; align-items: center; min-height: 76px; padding: .9rem 0; text-decoration: none; }
.register .desc { font-size: .92rem; color: var(--muted); }
.register .name { font: 700 clamp(1.45rem, 2.4vw, 1.95rem)/1.15 var(--f-display); }
.register svg { width: 22px; height: 22px; color: var(--red); transition: transform .2s var(--ease); }
.register a:hover .name { color: var(--red); }
.register a:hover svg { transform: translateX(4px); }

/* Photo left, text right (REFS 2). Their photos are small scans, so they stay at a modest size. */
.split { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: 1fr minmax(0, 470px); }
.split.flip > figure { order: 2; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.split .pre > p { max-width: 34em; }
.lines { list-style: none; border-top: 1px solid var(--gold-line); margin: 1.5rem 0; }
.lines li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--gold-line); }
.lines.plain li { grid-template-columns: 1fr; }
.lines .k { font-weight: 700; }
.split-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Photo grid: real buffet photos from their archive */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.photos.three { grid-template-columns: repeat(3, 1fr); }
.photos-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* Rijsttafels */
.rt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.75rem; }
.rt { border-top: 2px solid var(--ink); padding-top: 1rem; }
.rt img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 1rem; mix-blend-mode: multiply; }
.rt h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.rt ul { list-style: none; }
.rt li { padding: .32rem 0; border-bottom: 1px solid var(--gold-line); font-size: .98rem; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin: 0 0 2.5rem; padding: 1.1rem 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.price-row strong { font: 700 1.6rem/1.1 var(--f-display); }
.price-row span { color: var(--muted); }

/* Dish list with allergens */
.dish-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
.dish-cat h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.dish-cat .id { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.dishes { list-style: none; border-top: 1px solid var(--gold-line); }
.dishes li { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--gold-line); }
.dishes .n { font-weight: 700; }
.dishes .d { grid-column: 1; color: var(--muted); font-size: .95rem; }
.dishes .a { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: .82rem; color: var(--gold); max-width: 12rem; }
.allergy-note { max-width: 46rem; padding: 1rem 1.2rem; background: var(--white); border-left: 0; border: 1px solid var(--gold-line); border-radius: var(--r); margin-bottom: 2.5rem; }
.allergy-note p { margin: 0; }

/* Band (REFS 4, once per page): their red block */
.red { background: var(--red); color: var(--white); }
.red h2 { color: var(--white); }
.red .btn { background: var(--white); border-color: var(--white); color: var(--red); }
.red .btn:hover { background: var(--cream-2); border-color: var(--cream-2); }
.red .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.red .btn.ghost:hover { background: var(--white); color: var(--red); }
.red :focus-visible { outline-color: var(--white); }
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.band h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .75rem; }
.band p { max-width: 36rem; margin: 0 auto 1.75rem; color: #fff3ef; }
.band .btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Contact rows */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rows { list-style: none; border-top: 1px solid var(--gold-line); }
.rows li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gold-line); }
.rows .k { font-weight: 700; font-size: .98rem; }
.rows a { color: var(--red); }
.rows .sub { display: block; color: var(--muted); font-size: .92rem; }
.contact-photo { margin-top: 2rem; max-width: 470px; }
.contact-photo img { width: 100%; border-radius: var(--r); }

/* Form (demo only) */
.form { background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.form h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.form > p { color: var(--muted); font-size: .98rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #b9a978; border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: 1rem; padding: .85rem 1rem; background: var(--cream-2); border-radius: var(--r); font-size: .98rem; }
.opt { color: var(--muted); font-weight: 400; }

/* Footer (labelled groups) */
.site-footer { background: var(--black); color: #e9e1d2; padding: 3.5rem 0 6rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-top strong { font: 700 1.7rem/1.1 var(--f-display); color: var(--white); }
.footer-top p { margin: 0; color: #c8bda9; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2rem 0; }
.f-label { font-size: .85rem; color: #a89c87; margin-bottom: .6rem; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-color: currentColor; }
.f-small { font-size: .92rem; color: #c8bda9; margin-top: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: #a89c87; }
.callbar { display: none; }

/* Reveal */
.reveal.pre { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .rt-grid { grid-template-columns: repeat(2, 1fr); }
  .header-call .num { display: none; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .split.flip, .contact-grid, .dish-cats { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .split figure, .hero-photos { max-width: 560px; }
  .photos, .photos.three { grid-template-columns: repeat(2, 1fr); }
  .photos.three figure:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: var(--r); padding: .5rem .75rem; font: 600 .95rem var(--f); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-list { flex-direction: column; gap: 0; position: fixed; inset: 76px 0 auto 0; margin: 0; width: 100%; padding: .5rem 1.25rem 1rem; background: var(--white); border: 0; border-bottom: 1px solid var(--gold-line); }
  .nav-list:not(:popover-open) { display: none; }
  .nav-link { display: block; padding: .9rem 0; font-size: 1.08rem; border-bottom: 1px solid var(--gold-line); }
  .nav-link[aria-current="page"] { color: var(--red); border-bottom-color: var(--gold-line); }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--gold-line); }
  .callbar .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { height: 50px; }
  .brand > span { display: none; }
  .header-in { gap: .75rem; min-height: 68px; }
  .nav-list { inset: 68px 0 auto 0; }
  .header-call { display: none; }
  .facts li, .rows li, .lines li { grid-template-columns: 1fr; gap: .1rem; }
  .register a, .register .row { grid-template-columns: 1fr auto; gap: .25rem 1rem; }
  .register .desc { grid-column: 1; grid-row: 1; }
  .register .name { grid-column: 1; grid-row: 2; }
  .register svg { grid-column: 2; grid-row: 1 / span 2; }
  .rt-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dishes li { grid-template-columns: 1fr; }
  .dishes .a { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
