/* ==========================================================================
   Sam's Bakery & lunchroom, Gouda
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #14110F;
  --ink-2: #221C18;
  --ink-3: #6B5F55;
  --cream: #F7F1E6;
  --cream-2: #EFE5D4;
  --goud: #C9A227;
  --goud-licht: #E3C877;
  --terra: #B4572B;
  --terra-tekst: #98461F;
  --lijn: rgba(20, 17, 15, .16);
  --lijn-licht: rgba(247, 241, 230, .2);

  --kop: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --tekst: "Karla", "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(1.25rem, 5vw, 4rem);
  --max: 1280px;
  --sectie: clamp(4.5rem, 9vw, 8.5rem);
  --soepel: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--tekst);
  font-size: clamp(1rem, .97rem + .2vw, 1.1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .7rem 1rem; background: var(--ink); color: var(--cream); text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--marge), var(--max)); margin-inline: auto; }
.section { padding: var(--sectie) 0; }

/* ---------- typografie ---------- */
h1, h2, h3 { margin: 0; font-family: var(--kop); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }

/* ---------- knoppen ---------- */
.acties { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.4rem;
  background: var(--goud); color: var(--ink);
  font-family: var(--kop); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; border-radius: 2px;
  transition: background-color .25s var(--soepel), transform .25s var(--soepel);
}
.btn svg { width: 1.15rem; height: 1.15rem; transition: transform .35s var(--soepel); }
.btn:hover { background: var(--goud-licht); }
.btn:hover svg { transform: translateX(4px); }
.btn--goud { width: 100%; justify-content: center; margin-top: 1.5rem; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-color: var(--goud); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- mededeling ---------- */
.notice { padding: .6rem var(--marge); background: var(--terra); color: #fff; font-size: .95rem; text-align: center; }
.notice p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem var(--marge);
  background: var(--ink); color: var(--cream);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: .8rem; margin-right: auto; text-decoration: none; }
.brand__logo { width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.brand__naam { display: flex; flex-direction: column; font-family: var(--kop); font-weight: 700; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.02em; }
.brand__naam em { font-family: var(--tekst); font-style: normal; font-size: .72rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--goud-licht); }
.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { padding: .3rem 0; font-size: 1rem; text-decoration: none; }
.nav a:hover, .nav a.is-active { color: var(--goud-licht); }
.header__tools { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border: 1px solid var(--lijn-licht); border-radius: 999px;
  font-size: .85rem; white-space: nowrap; text-decoration: none;
}
.status__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink-3); }
.status.is-open .status__dot { background: #7FB069; }
.status.is-closed .status__dot { background: var(--terra); }
.ig-link { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--cream); transition: color .25s, background-color .25s; }
.ig-link svg { width: 1.3rem; height: 1.3rem; }
.ig-link:hover { color: var(--goud-licht); background: rgba(247, 241, 230, .08); }
.taal { display: flex; font-size: .85rem; }
.taal button { padding: .3rem .4rem; border: 0; background: none; color: rgba(247, 241, 230, .55); font: inherit; font-family: var(--kop); font-weight: 600; cursor: pointer; }
.taal button[aria-pressed="true"] { color: var(--goud-licht); text-decoration: underline; text-underline-offset: .35em; }
.menu-btn { display: none; width: 2.6rem; height: 2.6rem; place-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-btn__lijnen, .menu-btn__lijnen::before { display: block; width: 1.4rem; height: 2px; background: currentColor; transition: transform .3s var(--soepel); }
.menu-btn__lijnen { position: relative; transform: translateY(-4px); }
.menu-btn__lijnen::before { content: ""; position: absolute; top: 8px; left: 0; }
.menu-open .menu-btn__lijnen { transform: translateY(0) rotate(45deg); }
.menu-open .menu-btn__lijnen::before { transform: translateY(-8px) rotate(-90deg); }

/* ---------- foto's ---------- */
.kiek { overflow: hidden; background: var(--cream-2); border-radius: 3px; }
.kiek img { width: 100%; height: 100%; object-fit: cover; }
.kiek--groot { aspect-ratio: 4 / 5; }
.kiek--klein { aspect-ratio: 1; }
.kiek--tegel { aspect-ratio: 3 / 4; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); background: var(--ink); color: var(--cream); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero__kop { margin: 0 0 1.5rem; font-family: var(--kop); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--goud); }
.hero__titel { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.4rem); font-weight: 800; overflow-wrap: break-word; }
.hero__titel br + * { color: var(--goud); }
.hero__lead { max-width: 34rem; margin: 1.75rem 0 2.25rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(247, 241, 230, .8); }
.hero__vandaag { display: flex; flex-wrap: wrap; gap: .2rem .7rem; margin: 2.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--lijn-licht); font-size: .95rem; color: rgba(247, 241, 230, .7); }
.hero__vandaag:empty { display: none; }
.hero__vandaag strong { color: var(--goud-licht); }
.hero__beeld { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.hero .kiek--groot { grid-column: 1 / -1; }
.hero .kiek--klein { grid-column: 2; transform: rotate(-2deg); }

/* ---------- vandaag in de kast ---------- */
.vandaag { background: var(--cream); }
.vandaag__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.vandaag__kop p { max-width: 26rem; margin: 1.25rem 0 0; color: var(--ink-3); }
.stempel { display: inline-block; margin-top: 1.25rem !important; padding: .35rem .8rem; border: 1px solid var(--goud); border-radius: 999px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.stempel:empty { display: none; }
.kast { list-style: none; margin: 0; padding: 0; columns: 2 14rem; column-gap: 2.5rem; }
.kast li {
  break-inside: avoid;
  padding: .7rem 0 .7rem 1.6rem;
  border-bottom: 1px solid var(--lijn);
  font-family: var(--kop); font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); font-weight: 600; letter-spacing: -.02em;
  position: relative;
}
.kast li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: .5rem; height: .5rem; background: var(--goud); border-radius: 2px; transform: rotate(45deg); }
.kast .empty { font-family: var(--tekst); font-weight: 400; font-size: 1rem; color: var(--ink-3); }
.specials { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.special { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding: .9rem 1.1rem; background: var(--ink); color: var(--cream); border-radius: 3px; }
.special__dag { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--goud); }
.special__titel { font-family: var(--kop); font-weight: 700; font-size: 1.2rem; }
.special__sub { font-size: .95rem; color: rgba(247, 241, 230, .65); }

/* ---------- uit de oven ---------- */
.oven { background: var(--cream-2); }
.oven__kop { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.oven__kop p { margin: 1.25rem 0 0; color: var(--ink-3); }
.oven__grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.kaart h3 {
  display: inline-block; margin-bottom: 1.1rem; padding: .4rem .9rem;
  background: var(--ink); color: var(--goud-licht);
  font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.kaart ul { list-style: none; margin: 0; padding: 0; }
.kaart li { padding: .55rem 0; border-top: 1px solid var(--lijn); font-family: var(--kop); font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.kaart li:last-child { border-bottom: 1px solid var(--lijn); }
.kaart li span { display: block; font-family: var(--tekst); font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--terra-tekst); }
.oven .kiek--tegel:nth-of-type(odd) { transform: rotate(1.5deg); }
.oven .kiek--tegel:nth-of-type(even) { transform: rotate(-1.5deg); }

/* ---------- over ---------- */
.over { background: var(--ink); color: var(--cream); }
.over__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.over__foto img { border-radius: 3px; }
.over__tekst .lead { color: var(--cream); }
.over__tekst p:not(.lead) { color: rgba(247, 241, 230, .72); }
.over .h2 { margin-bottom: 1.5rem; color: var(--goud); }
.over__foto { border-radius: 3px; overflow: hidden; }
.over__foto img { width: 100%; height: auto; }

/* ---------- bezoek ---------- */
.bezoek { background: var(--cream); }
.bezoek__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.bezoek__info .lead { margin: 1.5rem 0 2.25rem; color: var(--ink-3); }
.contact { list-style: none; margin: 0 0 1.5rem; padding: 0; border-bottom: 1px solid var(--lijn); }
.contact a { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--lijn); text-decoration: none; }
.contact a span:first-child { color: var(--ink-3); }
.contact a span:last-child { font-family: var(--kop); font-weight: 600; font-size: 1.1rem; }
.contact a:hover span:last-child { color: var(--terra); }
.beoordeling { font-size: .95rem; color: var(--ink-3); }
.beoordeling strong { font-family: var(--kop); font-size: 1.35rem; color: var(--ink); }

.uren { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--ink); color: var(--cream); border-radius: 3px; }
.uren h3 { margin-bottom: 1.25rem; font-size: 1.6rem; color: var(--goud); }
.uren__tabel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.uren__tabel th, .uren__tabel td { padding: .6rem 0; text-align: left; font-weight: 400; border-top: 1px solid var(--lijn-licht); }
.uren__tabel tr:first-child th, .uren__tabel tr:first-child td { border-top: 0; }
.uren__tabel td { text-align: right; }
.uren__tabel .closed { color: rgba(247, 241, 230, .45); }
.uren__tabel tr.is-today th, .uren__tabel tr.is-today td { color: var(--goud-licht); font-weight: 700; }
.uren__afwijkend { list-style: none; margin: 1.25rem 0 0; padding: .9rem 1rem; background: rgba(180, 87, 43, .18); border-left: 3px solid var(--terra); font-size: .9rem; }
.uren__afwijkend li + li { margin-top: .3rem; }
.uren__afwijkend strong { margin-right: .4rem; color: var(--goud-licht); }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; background: var(--ink); color: var(--cream); border-top: 1px solid var(--lijn-licht); overflow: hidden; }
.footer__woord {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-family: var(--kop); font-weight: 800; letter-spacing: -.045em; line-height: .8;
  font-size: min(calc((100vw - 2 * var(--marge)) / 6.5), calc(var(--max) / 6.5));
  color: transparent; -webkit-text-stroke: 1.5px var(--goud); white-space: nowrap;
}
.footer__kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.footer__kolommen p { margin: 0; color: rgba(247, 241, 230, .78); }
.footer__h { margin-bottom: .5rem !important; font-family: var(--kop); font-weight: 600; color: var(--goud); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--goud-licht); }
.footer__ig { display: inline-flex; align-items: center; gap: .5rem; }
.footer__ig svg { width: 1.15rem; height: 1.15rem; }
.footer__onder { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--lijn-licht); font-size: .85rem; color: rgba(247, 241, 230, .5); }
.footer__onder p { margin: 0; }

/* ---------- demo-chip ---------- */
.demo-chip { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; display: flex; align-items: center; gap: .9rem; padding: .6rem .7rem .6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .8rem; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6); }
.demo-chip button, .demo-chip a { padding: .3rem .7rem; border: 1px solid var(--lijn-licht); border-radius: 999px; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(1rem); transition: opacity .8s var(--soepel), transform .8s var(--soepel); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: opkomst .9s var(--soepel) var(--d, 0s) both; }
@keyframes opkomst { from { opacity: 0; transform: translateY(1rem); } }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .hero__beeld { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .kiek--groot { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
  .hero .kiek--klein { grid-column: 2; margin-top: -3.5rem; }

  .vandaag__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .oven__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .over__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }
  .over__foto--tweede { margin-top: 3rem; }
  .bezoek__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: .5rem;
    padding: 6rem var(--marge) 3rem;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--soepel), visibility .35s;
  }
  .nav a { font-family: var(--kop); font-weight: 700; font-size: clamp(2rem, 8vw, 3rem); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .over__foto--tweede { display: none; }
}

@media (max-width: 560px) {
  .status { display: none; }
  .brand__naam { font-size: 1rem; }
  .contact a { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
  .kiek--klein, .oven .kiek--tegel { transform: none !important; }
}

/* aanraakvlakken van minimaal 44px op mobiel (richtlijn toegankelijkheid) */
.taal button { min-height: 44px; min-width: 44px; }
.ig-link { width: 2.75rem; height: 2.75rem; }
.acties .link, .contact a, .nav a { min-height: 44px; display: inline-flex; align-items: center; }
.contact a { display: grid; align-items: center; }

.brand { min-height: 44px; }

/* mededeling: compacter op mobiel en wegklikbaar */
.notice { position: relative; padding-right: 3.25rem; }
.notice__sluit {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: inherit;
  font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .75;
}
.notice__sluit:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
@media (max-width: 560px) {
  .notice { padding-block: .45rem; font-size: .8rem; line-height: 1.35; }
}
