@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&family=Lato:wght@400;700&display=swap');

/* Bakkerij Gorthuis. Colours from their own site CSS (gorthuis.css, theme.custom-1.css) and logo, see ../BRAND.md */
:root {
  --blue: #3fa0c1;       /* their main colour: menu, buttons, banners, packaging */
  --blue-dark: #266074;  /* their darker blue (theme css), white text AA */
  --deep: #005162;       /* their deepest blue (theme css), hover */
  --ink: #111;           /* their text colour; logo is black */
  --muted: #4b5559;      /* neutral grey, AA on white and tint */
  --tint: #eef6f9;       /* light tint of their blue */
  --tint-2: #dcedf3;     /* second tint */
  --line: #c9e0e8;       /* tint of their blue, for rules */
  --black: #0d0d0d;      /* their product photos are shot on black */
  --white: #fff;

  --f-display: 'Libre Caslon Text', Georgia, serif;
  --f: 'Lato', '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(--white); -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.12; margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -.01em; }
h3 { line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
::selection { background: var(--tint-2); }
:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible, .blue :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(--blue-dark); background: var(--blue-dark); color: var(--white); font: 700 .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(--deep); border-color: var(--deep); }
.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(--blue-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }

/* Header: white, original logo (black on transparent) */
.topline { background: var(--blue); color: var(--ink); font-size: .9rem; }
.topline .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .4rem 0; }
.topline a { font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.brand { display: block; text-decoration: none; flex: none; }
.brand img { height: 56px; width: auto; }
.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(--line); }
.nav-link[aria-current="page"] { border-bottom-color: var(--blue); }
.menu-btn { display: none; }
.header-call { min-height: 42px; }

/* Dark sections: their product photos sit on black */
.dark { background: var(--black); color: #e4e7e8; }
.dark h1, .dark h2, .dark h3 { color: var(--white); }

/* Hero */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0; background: var(--tint); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.facts { list-style: none; border-top: 1px solid var(--line); max-width: 36rem; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts .k { font-weight: 700; }
.hero-photo img { width: 100%; aspect-ratio: 1100 / 655; object-fit: cover; border-radius: var(--r); }
.photo-cap { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.dark .photo-cap { color: #a9b2b5; }

/* Page intro (subpages) */
.intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--tint); }
.intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.intro p { font-size: 1.18rem; max-width: 40rem; }
.intro .jump { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin-top: 1.5rem; font-size: .98rem; }
.intro .jump a { color: var(--blue-dark); font-weight: 700; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tint { background: var(--tint); }
.sec-head { max-width: 46rem; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .75rem; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.dark .sec-head p { color: #b9c1c4; }

/* Register list (REFS 1) */
.register { list-style: none; border-top: 1px solid var(--line); }
.register li { border-bottom: 1px solid var(--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: .95rem; color: var(--muted); }
.register .name { font: 700 clamp(1.4rem, 2.3vw, 1.85rem)/1.2 var(--f-display); }
.register svg { width: 22px; height: 22px; color: var(--blue-dark); transition: transform .2s var(--ease); }
.register a:hover .name { color: var(--blue-dark); }
.register a:hover svg { transform: translateX(4px); }
.register .year { font: 700 1.5rem/1.2 var(--f-display); color: var(--blue-dark); }
.register.timeline .row { grid-template-columns: 9rem 1fr; align-items: baseline; }
.register.timeline .row p { margin: 0; }
.register.timeline .row strong { display: block; font-size: 1.1rem; }

/* Photo left, text right (REFS 2) */
.split { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: 1fr minmax(0, 520px); }
.split.flip > figure { order: 2; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.split img.square { aspect-ratio: 1; }
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.split p { max-width: 36em; }
.lines { list-style: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.lines li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.lines.plain li { grid-template-columns: 1fr; }
.lines .k { font-weight: 700; }
.dark .lines, .dark .lines li { border-color: rgba(255,255,255,.18); }
.split-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Products on black: their own studio photos */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; list-style: none; }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: #000; }
.product img.contain { object-fit: contain; }
.product h3 { font-size: 1.25rem; margin: .9rem 0 .2rem; }
.product p { margin: 0; font-size: .95rem; color: #b9c1c4; }
.product .price { color: var(--white); font-weight: 700; }

/* Price lists */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 3.5rem; }
.cat h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.cat .id { font-size: .95rem; color: var(--muted); margin-bottom: .75rem; }
.cat figure { margin-bottom: 1rem; }
.cat figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: #000; }
.prices { list-style: none; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.prices .p { white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { max-width: 48rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 2.5rem; }
.note p { margin: 0; }

/* Band (REFS 4, once per page): their blue block */
.blue { background: var(--blue-dark); color: var(--white); }
.blue h2 { color: var(--white); }
.blue .btn { background: var(--white); border-color: var(--white); color: var(--deep); }
.blue .btn:hover { background: var(--tint-2); border-color: var(--tint-2); }
.blue .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.blue .btn.ghost:hover { background: var(--white); color: var(--deep); }
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .75rem; }
.band p { max-width: 38rem; margin: 0 auto 1.75rem; color: #e6f1f5; }
.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; }
.contact-grid h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.rows .k { font-weight: 700; font-size: .98rem; }
.rows a { color: var(--blue-dark); font-weight: 700; }
.rows .sub { display: block; color: var(--muted); font-size: .93rem; }
.hours { list-style: none; border-top: 1px solid var(--line); max-width: 30rem; }
.hours li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* Form (demo only) */
.form { background: var(--tint); border: 1px solid var(--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: 700; font-size: .95rem; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #8fb7c6; 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, .field select:focus { outline: 2px solid var(--blue-dark); outline-offset: 0; border-color: var(--blue-dark); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: 1rem; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font-size: .98rem; }
.opt { color: var(--muted); font-weight: 400; }

/* Footer (labelled groups) */
.site-footer { background: var(--ink); color: #e3e6e7; 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.6rem/1.1 var(--f-display); color: var(--white); }
.footer-top p { margin: 0; color: #c3c9cb; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2rem 0; }
.f-label { font-size: .85rem; color: #9fa8ab; 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: #c3c9cb; 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: #9fa8ab; }
.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) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .header-call .num { display: none; }
  .nav-list { gap: 1.25rem; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .split.flip, .contact-grid, .cats { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .split figure, .hero-photo { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .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: 700 .95rem var(--f); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav-list { flex-direction: column; gap: 0; position: fixed; inset: 80px 0 auto 0; margin: 0; width: 100%; padding: .5rem 1.25rem 1rem; background: var(--white); border: 0; border-bottom: 1px solid var(--line); }
  .nav-list:not(:popover-open) { display: none; }
  .nav-link { display: block; padding: .9rem 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--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(--line); }
  .callbar .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topline .wrap { justify-content: center; text-align: center; }
  .topline .hide-s { display: none; }
  .brand img { height: auto; width: min(58vw, 230px); }
  .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; }
  .register.timeline .row { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .product h3 { font-size: 1.08rem; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

.more { margin: 1.75rem 0 0; }
.dark .textlink { color: var(--white); }
.split img.natural { aspect-ratio: auto; }
.gap-top { margin-top: 2.5rem; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
