:root {
  --bg-1: #E5DBC8;
  --bg-2: #CAB8A1;
  --accent: #8E745F;
  --heading: #8E745F;
  --text: #111;
  --muted: rgba(17, 17, 17, 0.72);
  --border: rgba(142, 116, 95, 0.28);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --container: 1080px;
  --gutter: clamp(16px, 3vw, 28px);

  --font: "Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stack {
  display: grid;
  gap: 18px;
}

/* Optional: subtle brand texture using the leaf icon.
   Place the leaf PNG at: assets/logo/DICHTBIJ-logo-alleen-blad.png
*/
.page {
  min-height: 100vh;
  background: transparent;
  position: relative;
}

.page.page--leaf {
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(202, 184, 161, 0.9), rgba(229, 219, 200, 0) 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(202, 184, 161, 0.65), rgba(229, 219, 200, 0) 62%),
    transparent;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, auto;
  background-position: 0 0, 0 0;
  background-blend-mode: normal, normal;
  position: relative;
  background-color: transparent;
}

/* Single large leaf background (fixed) — starts at the top and scales with viewport */
.page.page--leaf::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;

  background-image: url("assets/background.svg");
  background-repeat: no-repeat;
  /* Start at the very top */
  background-position: center top;
  /* Force responsive scaling with the viewport width */
  background-size: 130vw auto;
  opacity: 0.55;
}

/* Ensure page content sits above the fixed background layer
   (but don't override header/topbar stacking, otherwise the mobile nav can end up underneath content) */
.page.page--leaf > *:not(.topbar):not(.header) {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .page.page--leaf::before {
    background-position: center top;
    background-size: 170vw auto;
    opacity: 0.45;
  }
}

/* Top utility bar (phone/email) */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px var(--gutter);
}

.topbar__item {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Header + nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(229, 219, 200, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  isolation: isolate;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px var(--gutter);
  min-height: 0;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
}

.brand__logo {
  width: auto;
  height: 48px; /* logo slightly larger */
  max-height: 48px;
  display: block;
  transform: scale(1.45);
  transform-origin: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  line-height: 1;
}

.nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.82);
  padding: 2px 6px;
  line-height: 1.05;
  border-radius: 10px;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: none;
  background: rgba(202, 184, 161, 0.55);
}

.nav a[aria-current="page"] {
  background: rgba(202, 184, 161, 0.75);
}

.spacer-16 { height: 16px; }

/* Typography */
.h1,
h1 {
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--heading);
}

.h2,
h2 {
  font-size: clamp(24px, 4vw, 56px);
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--heading);
}

h3 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

h3::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--heading);
  margin-right: 10px;
  vertical-align: -2px;
}

p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.small {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(26px, 4vw, 52px) 0;
}

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__pad {
  padding: clamp(18px, 3vw, 28px);
}

.divider {
  height: 1px;
  background: var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(142, 116, 95, 0.5);
  background: rgba(202, 184, 161, 0.7);
  color: rgba(17, 17, 17, 0.92);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn:hover {
  background: rgba(202, 184, 161, 0.9);
  text-decoration: none;
}

.btn--accent {
  background: rgba(142, 116, 95, 0.9);
  border-color: rgba(142, 116, 95, 0.9);
  color: #fff;
}

.btn--accent:hover {
  background: rgba(142, 116, 95, 1);
}

/* Footer */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer__inner {
  display: grid;
  gap: 16px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__nav a {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.78);
}

.footer .small {
  font-size: 12px;
}

/* Responsive tweaks */
@media (max-width: 860px) {
  .header__inner {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

  .brand__logo {
    height: 44px;
    max-height: 44px;
    width: auto;
    transform: scale(1.35);
    transform-origin: left center;
  }

  .nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

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

/* ------------------------------
   Home components (hero, splits, grids, modal)
   ------------------------------ */

.hero {
  padding: 0;
}

.hero__media {
  position: relative;
  height: clamp(320px, 52vh, 560px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 0;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.0) 20%, rgba(17, 17, 17, 0.55) 100%);
  z-index: 1;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  transform-origin: center;
}

.hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 62vw);
  height: auto;
  z-index: 2;
  opacity: 0.92;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 0;
}

.hero__content h1 {
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
}

/* Media frames */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.82);
}

.media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Use when you want a fixed framed photo that should be cropped nicely */
.media--cover {
  aspect-ratio: 4 / 3;
}

.media--cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Use for logo/illustration blocks: don't crop */
.media--contain img {
  object-fit: contain;
  padding: 22px;
}

/* Two-column feature blocks */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.split--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

/* 3-column news */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile__pad {
  padding: 18px;
}

.tile h3 {
  margin-bottom: 10px;
}

/* Modal (Important update popup) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 80;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.modal__title {
  margin: 0;
}

.modal__close {
  border: 1px solid rgba(142, 116, 95, 0.45);
  background: rgba(202, 184, 161, 0.65);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__body {
  padding: 0 18px 18px 18px;
}

.modal__body p + p {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .grid3 {
    grid-template-columns: 1fr;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
}

/* Info & Route (3-column block like the original) */
.infoBox {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
}

.infoGrid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.55fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.infoTitle {
  margin: 0 0 14px 0;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
}

.infoH {
  margin: 0 0 12px 0;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.infoBox a {
  color: var(--heading);
  text-decoration: none;
}

.infoBox a:hover {
  text-decoration: underline;
}

.menuList {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.menuList a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.85);
}

@media (max-width: 960px) {
  .infoGrid {
    grid-template-columns: 1fr;
  }
}

/* Reserveren banner (tekst in beeld, geen knop) */
.reserveBanner { padding: 0; }
.reserveBanner__media {
  position: relative;
  height: clamp(260px, 32vw, 520px);
  overflow: hidden;
}
.reserveBanner__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.15) 55%, rgba(17,17,17,0.0) 100%);
  z-index: 1;
}
.reserveBanner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center;
  filter: saturate(1.05);
}
.reserveBanner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 56px) var(--gutter);
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.reserveBanner__content h2 { color: #fff; }
.reserveBanner__content p { color: rgba(255,255,255,0.92); max-width: 60ch; }
.reserveBanner__content .small { color: rgba(255,255,255,0.92); }

/* Nieuws: outer card + inset tiles */
.newsCard { background: rgba(255, 255, 255, 0.82); }
.tile.tile--inset {
  background: rgba(202, 184, 161, 0.55);
  border: 1px solid rgba(142, 116, 95, 0.18);
}

.newsCard .card__pad > h2 {
  margin: 0 0 18px 0;
}

/* Make news tiles feel roomier */
.newsCard .grid3 { gap: 22px; }
.newsCard .tile__pad { padding: 22px; }
/* Quote section: override .section padding (otherwise it doubles) */
.section[aria-label="Sfeerbeeld quote"] {
  padding: clamp(0px, 0.8vw, 3px) 0 !important;
}
/* Quote image (mei-quotebg_0.jpg): full width, low landscape strip */
section[aria-label="Sfeerbeeld quote"] .media--cover {
  width: 100%;
  aspect-ratio: 18 / 5; /* ~3.6:1 keeps it wide without becoming too tall */
}

section[aria-label="Sfeerbeeld quote"] .media--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   Menukaart (layout + spacing)
   =========================== */

/* Two-column layout for the menu page */
/* Two-column layout for the menu page */
.menuGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; /* use column padding + divider instead of a big gap */
}

.menuGrid .menuCol:first-child{
  padding-right: clamp(18px, 3vw, 34px);
  border-right: 1px solid rgba(142, 116, 95, 0.35);
}

.menuGrid .menuCol:last-child{
  padding-left: clamp(18px, 3vw, 34px);
}

@media (max-width: 900px) {
  .menuGrid { grid-template-columns: 1fr; }
  .menuGrid .menuCol:first-child{
    padding-right: 0;
    border-right: none;
  }
  .menuGrid .menuCol:last-child{
    padding-left: 0;
  }
}

/* Shared list reset */
.menuRows {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Dish rows: more breathing room */
.menuRows--dishes li {
  padding: 14px 0;
  border-bottom: none;
}

.menuRows--dishes li:last-child { border-bottom: none; }

/* Pricing rows (3/4/5 gangen under Chef’s menu) */
.menuRows--pricing li {
  display: grid;
  grid-template-columns: 1fr 54px;
  column-gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: none;
}

.menuRows--pricing li:last-child { border-bottom: none; }

.menuRows--pricing strong {
  min-width: 0;
  text-align: right;
  font-weight: 700;
}

.menuRows--pricing strong::before { content: ""; }

/* Dish line: name left, price right */
.menuDish__top {
  display: grid;
  grid-template-columns: 1fr 84px;
  column-gap: 18px;
  align-items: baseline;
}

.menuDish__top span {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menuDish__top strong {
  min-width: 0;
  text-align: right;
  font-weight: 700;
}

.menuDish__top strong::before { content: ""; }

/* Ingredients on a new line, with comfortable spacing */
.menuDish__sub {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.72);
}


/* ===========================
   Menukaart – heading consistency + column registration
   =========================== */

/* Make h4 section titles look like the styled h3 headings */
.menuBlock__title{
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.menuBlock__title::before{
  content: "";
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--heading);
  margin-right: 10px;
  vertical-align: -2px;
}

/* Better ‘registration’: consistent vertical rhythm in both columns */
.menuGrid{
  align-items: start;
}

.menuGrid .menuCol{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Push the PDF block to the bottom of the LEFT column */
.menuGrid .menuCol:first-child .menuBlock--pdf{
  margin-top: auto;
}

/* Give the PDF helper text and button a little more separation */
.menuBlock--pdf .small{
  margin-bottom: 22px;
}
.wineGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .wineGrid {
    grid-template-columns: 1fr;
  }
}

.wineCol h3 {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px 0;
}

.wineList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wineItem {
  padding-bottom: 12px;
}

.wineTop {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: baseline;
}

.wineName {
  font-weight: 600;
}

.winePrice {
  text-align: right;
  white-space: nowrap;
}

.wineMeta {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.wineSpacer {
  height: 32px;
}

.wineDivider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.wineCta {
  margin-top: 32px;
}

.wineCta .btn {
  margin-top: 12px;
}

/* =========================
   WIJNKAART: 2 kolommen + verticale lijn
   ========================= */

   .wineGrid{
    display: grid;
    grid-template-columns: 1fr 1px 1fr;   /* links | lijn | rechts */
    column-gap: 40px;                    /* afstand tussen kolommen en lijn */
    align-items: start;
  }
  
  /* De verticale lijn in het midden */
  .wineVline{
    width: 1px;
    background: var(--border);
    align-self: stretch;                 /* trekt mee met hoogste kolom */
  }
  
  /* Rechterkolom optisch iets los van de lijn */
  .wineCol--right{
    padding-left: 0;                     /* we doen spacing via column-gap */
  }
  
  /* Ruimte tussen "Overzicht" divider en eerste h3 (Mousserend) */
  .wineGrid .wineCol h3:first-of-type,
  .wineGrid .wineCol--right h3:first-of-type{
    margin-top: 14px;
  }
  
  /* Nettere flow van wine-items */
  .wineList{
    display: grid;
    gap: 18px;                           /* meer lucht tussen items */
  }
  
  /* Titel + prijs netjes uitlijnen */
  .wineTop{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
  }
  
  /* Prijzen nooit afbreken */
  .winePrice{
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: right;
  }
  
  /* Namen + meta wél netjes laten afbreken */
  .wineName,
  .wineMeta{
    overflow-wrap: anywhere;             /* voorkomt overlopen zoals in jouw screenshot */
    word-break: normal;
  }
  
  /* Als je meta soms 2 regels (zoals Xavier Vignon) hebt, iets compacter */
  .wineMeta{
    margin-top: 2px;
    line-height: 1.25;
  }
  
  /* Eventuele oude divider in de lijst: uitzetten/veilig maken */
  .wineDivider{
    display: none;
  }
  
  /* Mobile hamburger navigation */
.navToggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.navToggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.navToggle__bar + .navToggle__bar { margin-top: 0; }

@media (max-width: 900px) {
  .header__inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 62px;
  }

  /* show hamburger */
  .navToggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* turn the existing nav into a hidden panel */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 12px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;

    /* use existing theme colors if defined; otherwise fall back gracefully */
    background: var(--surface, rgba(20, 16, 12, .96));
    color: var(--textOnSurface, #fff);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    z-index: 1100;
  }

  .nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
  }

  .nav a:focus-visible,
  .nav a:hover {
    background: rgba(255,255,255,.08);
  }

  /* open state */
  .nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 1100;
  }

  /* animate hamburger into X */
  .nav-open .navToggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-open .navToggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-open .navToggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* optional: prevent page behind from scrolling when menu is open */
  .nav-open body {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  /* ensure desktop keeps existing layout; hamburger hidden */
  .navToggle { display: none; }
}