/* RAMA – stylesheet
   Kleuren komen uit het logo: RAMA-rood en goudgeel, op wit.
   Alle afstanden gebruiken logische eigenschappen (inline/block), zodat de
   Arabische versie (dir="rtl") vanzelf gespiegeld wordt. */

/* Lettertype: zet ReadexPro.woff2 of ReadexPro.ttf in assets/fonts/ (zie README).
   Zelf hosten = geen verbinding met Google, dus geen AVG-gedoe. */
@font-face {
  font-family: 'Readex Pro';
  src: url('../fonts/ReadexPro.woff2') format('woff2'),
       url('../fonts/ReadexPro.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
}

:root {
  /* Merkkleuren (uit het logo) */
  --red: #D20A11;
  --red-dark: #A8080E;
  --red-deep: #7C060A;
  --gold: #FBBA00;
  --gold-light: #FFD866;
  --gold-tint: #FFF5D6;
  --yellow: #FDEA1B; /* geel van de categoriebalken op de menukaart */

  /* Neutralen */
  --ink: #2A1414;
  --muted: #6F5753;
  --line: #EFE3D6;
  --paper: #FFFFFF;
  --on-red: #FFFFFF;
  --halal: #157A34; /* groen voor halal */

  --font: 'Readex Pro', 'Noto Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-tab: 22px;
  --radius-pill: 999px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 3.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
:lang(ar) { line-height: 1.75; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 700; text-wrap: balance; }
h1:lang(ar), h2:lang(ar), h3:lang(ar), h4:lang(ar) { line-height: 1.5; }
p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(2rem, 6vw, 3.5rem); }
.section-title { font-size: var(--step-3); color: var(--red); margin-block-end: 1.5rem; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- Header: rode balk met witte logo-tab, zoals op de menukaart ---------- */

.site-header {
  background: var(--red);
  color: var(--on-red);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-block-size: 4.25rem;
}
.brand {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-inline-end: auto;
  background: var(--paper);
  padding: 0.5rem 1rem;
  border-end-start-radius: var(--radius-tab);
  border-end-end-radius: var(--radius-tab);
}
.brand img { inline-size: clamp(7rem, 16vw, 10rem); }
/* Op de homepage hangt de tab over de rode hero heen, zoals op de voorkant van de kaart. */
.page-home .brand { align-self: flex-start; padding: 0.6rem 1.1rem 0.75rem; margin-block-end: -1.75rem; }
.page-home .brand img { inline-size: clamp(7.5rem, 18vw, 11rem); }

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.25rem;
  border-block-end: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current] { border-block-end-color: var(--gold); }

.lang-switch {
  display: flex;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.lang-switch a {
  min-inline-size: 2.4rem;
  text-align: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.6;
}
.lang-switch a:hover { background: rgb(255 255 255 / 0.15); }
.lang-switch a[aria-current] { background: var(--gold); color: var(--red-deep); }

/* ---------- Knoppen ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--red-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1rem;
}
.button:hover { background: var(--gold-light); }
.button-light { background: transparent; color: var(--on-red); border-color: rgb(255 255 255 / 0.75); }
.button-light:hover { background: var(--paper); color: var(--red); }
.button-red { background: var(--red); color: var(--on-red); }
.button-red:hover { background: var(--red-dark); }
.button-outline { background: transparent; color: var(--red); border-color: var(--red); }
.button-outline:hover { background: var(--red); color: var(--on-red); }
.text-link { color: var(--red); font-weight: 600; text-underline-offset: 0.2em; }

/* Halal: altijd groen */
.halal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--halal);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
}
.halal::before {
  content: '';
  inline-size: 0.85rem;
  block-size: 0.85rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.halal-lg { font-size: 0.9375rem; padding: 0.4rem 1rem; }
.halal-word {
  padding: 0 0.3em;
  border-radius: 4px;
  background: var(--halal);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Algemene secties ---------- */

.section-top-0 { padding-block-start: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1.5rem; margin-block-end: 1.5rem; }
.section-head .section-title { margin-block-end: 0.25rem; }
.section-sub { color: var(--muted); }
.lead { font-size: var(--step-1); font-weight: 300; max-inline-size: 42ch; margin-block-end: 1.75rem; }

/* Foto naast tekst */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}
.split-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--gold-tint); }
.split-photo img, .gallery-photo img, .home-hero-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.prose p { max-inline-size: 62ch; margin-block-end: 1rem; }

/* Placeholder zolang er nog geen foto is */
.photo-ph { position: relative; display: grid; place-items: center; background: var(--gold-tint); }
.photo-ph .photo-ph-mark { inline-size: 22%; max-inline-size: 7rem; block-size: auto; object-fit: contain; opacity: 0.3; }
.photo-ph-label {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px dashed #E1CDB7;
}

/* ---------- Home ---------- */

.home-hero { background: var(--red); color: var(--on-red); overflow: hidden; }
.home-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.home-hero-text { display: flex; flex-direction: column; align-items: center; }
.greet-ar { font-size: clamp(2.75rem, 8vw, 4.75rem); font-weight: 700; line-height: 1.3; color: var(--gold); }
.greet { font-size: clamp(2.25rem, 6.5vw, 3.75rem); font-weight: 700; line-height: 1.1; color: var(--gold); }
.greet-ar + .greet,
.greet + .greet-ar { color: var(--on-red); }
.hero-tagline { margin-block-start: 1.25rem; font-size: var(--step-1); font-weight: 600; }
.hero-intro { margin-block: 0.6rem 1.75rem; max-inline-size: 40ch; font-weight: 300; color: rgb(255 255 255 / 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; margin-block-start: 1.5rem; }
.home-hero-photo {
  aspect-ratio: 4 / 3;
  border: 8px solid var(--paper);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: var(--gold-tint);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.45);
}
@media (min-width: 52rem) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; text-align: start; }
  .home-hero-text { align-items: flex-start; }
  .hero-actions, .hero-meta { justify-content: flex-start; }
  .home-hero-photo { transform: rotate(1.5deg); }
  [dir='rtl'] .home-hero-photo { transform: rotate(-1.5deg); }
}

.featured { background: var(--paper); }
@media (max-width: 40rem) {
  /* Uitgelicht: horizontaal swipen op mobiel */
  .cards.cards-featured {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block-end: 0.5rem;
    scrollbar-width: none;
  }
  .cards-featured::-webkit-scrollbar { display: none; }
  .cards-featured .card { flex: 0 0 72%; scroll-snap-align: start; }
  .cards-featured .card a { flex-direction: column; }
  .cards-featured .card-media { inline-size: auto; aspect-ratio: 4 / 3; }
}

.about-teaser { background: var(--gold-tint); }

.visit { background: var(--paper); }
.visit-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.visit-address { font-size: var(--step-1); font-weight: 500; margin-block-end: 1.25rem; }
.visit-sub { font-size: var(--step-1); margin-block-end: 1rem; }

/* Openingstijden */
.hours { display: grid; gap: 0; max-inline-size: 26rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.75rem; border-block-end: 1px solid var(--line); border-radius: 6px; }
.hours dt { text-transform: capitalize; }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.hours .is-today { background: var(--gold-tint); border-color: transparent; font-weight: 700; }
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  background: #E3F1D3;
  color: #2E5414;
  margin-block: 0.75rem;
}
.open-status::before { content: ''; inline-size: 0.55rem; block-size: 0.55rem; border-radius: 50%; background: currentColor; }
.open-status.is-closed { background: #FFE0D6; color: var(--red-dark); }
.home-hero .open-status { margin: 0; }

/* Contactknoppen */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}
.action svg { color: var(--red); flex: none; }
.action:hover { border-color: var(--red); color: var(--red); }
.actions + * { margin-block-start: 1.5rem; }
.placeholder-text + .actions { margin-block-start: 0.75rem; }

.socials h3 { font-size: var(--step-0); margin-block-end: 0.5rem; }
.socials ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }


/* ---------- Reviews ---------- */

.reviews { background: var(--red); color: var(--on-red); }
.reviews .section-title { color: var(--on-red); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-block-end: 1.75rem; }
.reviews-head .section-title { margin: 0; }
.reviews .placeholder-text { color: rgb(255 255 255 / 0.9); border-color: rgb(255 255 255 / 0.5); }
.rating-summary { display: flex; align-items: center; gap: 1rem; }
.rating-score { font-size: 3.25rem; font-weight: 700; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.rating-count { font-size: 0.9375rem; color: rgb(255 255 255 / 0.9); }
.review-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.review {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.review blockquote p::before { content: '“'; }
.review blockquote p::after { content: '”'; }
.review blockquote:lang(ar) p::before { content: '«'; }
.review blockquote:lang(ar) p::after { content: '»'; }
.review-lang { font-size: 0.8125rem; color: var(--muted); }
.review-meta { margin-block-start: auto; font-size: 0.875rem; color: var(--muted); }
.review-meta strong { color: var(--ink); }
.review-ph { background: rgb(255 255 255 / 0.12); color: var(--on-red); border: 1.5px dashed rgb(255 255 255 / 0.5); font-style: italic; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.reviews .button-outline { color: var(--on-red); border-color: rgb(255 255 255 / 0.75); }
.reviews .button-outline:hover { background: var(--paper); color: var(--red); }
@media (max-width: 40rem) {
  .review-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .review-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---------- Over ons ---------- */

.values { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.value { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--gold-tint); border-block-start: 5px solid var(--red); }
.value h3 { font-size: var(--step-1); color: var(--red); margin-block-end: 0.4rem; }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; block-size: 100%; }
@media (min-width: 52rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery li:first-child .gallery-photo { aspect-ratio: auto; }
}
@media (max-width: 51.99rem) {
  .gallery li:first-child { grid-column: span 2; }
}

.cta-band { background: var(--red); padding-block: 2.25rem; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.page-about .site-footer { margin-block-start: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.contact-card { padding: 1.5rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-card h2 { font-size: var(--step-1); margin-block-end: 0.75rem; }
.contact-card .visit-address { font-size: 1.0625rem; }
.contact-card-yellow { background: var(--yellow); border-color: var(--yellow); }
.contact-card-yellow h2 { color: var(--red); }

.map { position: relative; inline-size: 100%; block-size: 22rem; border-radius: var(--radius); overflow: hidden; background: var(--gold-tint); }
.map iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center; }
.map-mark { inline-size: 3.5rem; }
.map-address { font-weight: 600; font-size: 1.0625rem; }
.map-note { font-size: 0.8125rem; color: var(--muted); max-inline-size: 32ch; }
@media (min-width: 52rem) { .map { block-size: 28rem; } }

/* ---------- Categorietegels (home + menu-overzicht) ---------- */

.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.tile {
  display: grid;
  grid-template-rows: auto 1fr;
  block-size: 100%;
  overflow: hidden;
  background: var(--gold-tint);
  border-radius: var(--radius);
  text-decoration: none;
}
.tile-media { aspect-ratio: 16 / 9; background: var(--gold-tint); overflow: hidden; }
.tile-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tile-body { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding: 1rem 1.25rem 1.15rem; align-items: baseline; }
.tile-name { font-size: var(--step-2); font-weight: 700; color: var(--red); line-height: 1.25; }
.tile-name-2 { grid-column: 2; grid-row: 1; color: var(--red); font-weight: 600; font-size: 1.0625rem; }
.tile-subs { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; }
.tile-count { grid-column: 1 / -1; font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.tile:hover { background: var(--gold-light); }
.tile:hover .tile-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) {
  .tile-media img { transition: transform 0.3s; }
}

/* Mobiel: compacte tegels naast elkaar (foto links, tekst rechts). */
@media (max-width: 40rem) {
  .tiles { gap: 0.6rem; }
  .tile { grid-template-rows: none; grid-template-columns: 7.5rem 1fr; }
  .tile-media { aspect-ratio: auto; block-size: 100%; min-block-size: 6.5rem; }
  .tile-body { padding: 0.8rem 1rem; align-content: center; }
  .tile-name { font-size: var(--step-1); }
  .tile-body { grid-template-columns: 1fr; }
  .tile-name-2 { grid-column: 1; grid-row: auto; font-size: 0.9375rem; }
}

/* ---------- Categorie-balk (zoals de gele balken op de menukaart) ---------- */

.band { background: var(--yellow); }
.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-block-size: 4.5rem;
  padding-block: 0.6rem;
}
.band-title { font-size: clamp(1.6rem, 4.5vw, 2.25rem); color: var(--red); line-height: 1.2; }
.band-title-2 { justify-self: end; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: var(--red); line-height: 1.3; }
.band-mark { inline-size: 3.1rem; }
@media (max-width: 30rem) {
  .band-inner { min-block-size: 3.75rem; }
  .band-mark { inline-size: 2.1rem; }
}

/* ---------- Menu-overzicht ---------- */

.page-head {
  background: var(--red);
  color: var(--on-red);
  padding-block: clamp(2rem, 6vw, 3.25rem) 1.75rem;
}
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-block-start: 0.4rem; max-inline-size: 52ch; color: rgb(255 255 255 / 0.9); }

/* ---------- Categoriebalk met alle categorieën (sticky) ---------- */

.category-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  box-shadow: 0 4px 12px -8px rgb(42 20 20 / 0.25);
}
.scroller { position: relative; }
.scroller-track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  min-block-size: var(--nav-h);
  align-items: center;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: 2.75rem;
}
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-track li { scroll-snap-align: start; flex: none; }
.scroller-track a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--gold-tint);
}
.scroller-track a:hover { background: var(--gold-light); }
.scroller-track a[aria-current] { background: var(--red); color: var(--on-red); }

/* Vervaging + pijl aan de kant waar nog meer categorieën staan. */
.scroller::before,
.scroller::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inline-size: 3.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.scroller::before { inset-inline-start: 0; background: linear-gradient(to right, var(--paper) 35%, transparent); }
.scroller::after { inset-inline-end: 0; background: linear-gradient(to left, var(--paper) 35%, transparent); }
[dir='rtl'] .scroller::before { background: linear-gradient(to left, var(--paper) 35%, transparent); }
[dir='rtl'] .scroller::after { background: linear-gradient(to right, var(--paper) 35%, transparent); }
.scroller.can-start::before,
.scroller.can-end::after { opacity: 1; }

.scroll-btn {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgb(42 20 20 / 0.25);
}
.scroll-btn-start { inset-inline-start: 0.25rem; }
.scroll-btn-end { inset-inline-end: 0.25rem; }
.scroll-btn:hover { background: var(--red-dark); }

/* ---------- Categoriepagina ---------- */

.category-body { padding-block-start: 1.25rem; }
.crumbs { color: var(--muted); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.crumbs a { color: var(--muted); text-underline-offset: 0.2em; }
.crumbs a:hover { color: var(--red); }
.crumbs-count { margin-inline-start: auto; font-weight: 600; color: var(--ink); }
.section-intro { color: var(--muted); margin-block-start: 0.75rem; max-inline-size: 60ch; }

.category-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-start; justify-content: space-between; margin-block: 1rem 0.5rem; }

.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subnav a {
  display: block;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--red);
  border-radius: var(--radius-pill);
  color: var(--red);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.subnav a:hover { background: var(--red); color: var(--on-red); }

.group { padding-block: 1.25rem 0.5rem; }
.group-title { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step-1); margin-block-end: 1rem; }
.group-title::after { content: ''; flex: 1; block-size: 3px; border-radius: 3px; background: var(--gold); }

/* Allergenenfilter */
.allergen-filter { margin-inline-start: auto; }
.allergen-filter summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
}
.allergen-filter summary::-webkit-details-marker { display: none; }
.allergen-filter[open] summary { background: var(--red); }
.filter-badge {
  min-inline-size: 1.3rem; block-size: 1.3rem; padding-inline: 0.3rem;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--gold); color: var(--red-deep); font-size: 0.75rem;
}
.filter-panel {
  margin-block-start: 0.6rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  max-inline-size: 34rem;
}
.filter-title { font-weight: 600; margin-block-end: 0.6rem; }
.filter-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span {
  display: block;
  padding: 0.25rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
}
.chip-check input:checked + span { background: var(--red); border-color: var(--red); color: var(--on-red); text-decoration: line-through; }
.chip-check input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.filter-status { margin-block-start: 0.75rem; font-weight: 600; color: var(--red); }
.filter-status:empty { display: none; }
.filter-clear { margin-block-start: 0.5rem; padding: 0; border: 0; background: none; color: var(--red); font-weight: 600; text-decoration: underline; cursor: pointer; }
.filter-note { margin-block-start: 0.6rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 40rem) {
  .allergen-filter { margin-inline-start: 0; inline-size: 100%; }
}

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-block-start: 1rem; }
.pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--gold-tint);
  text-decoration: none;
  font-weight: 700;
  color: var(--red);
}
.pager a span { display: flex; flex-direction: column; line-height: 1.3; }
.pager small { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.pager-next { margin-inline-start: auto; text-align: end; }
.pager a:hover { background: var(--gold-light); }

/* ---------- Gerechtkaarten ---------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
}
.card a {
  display: flex;
  flex-direction: column;
  block-size: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s;
}
.card a:hover { border-color: var(--red); }
.card a:hover .card-name { color: var(--red); }

.card-media { aspect-ratio: 4 / 3; background: var(--gold-tint); overflow: hidden; }
.card-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1rem; flex: 1; }
.card-name { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.card-nr { display: inline-grid; place-items: center; min-inline-size: 1.6rem; block-size: 1.6rem; padding-inline: 0.3rem; margin-inline-end: 0.45rem; border-radius: 0.45rem; background: var(--gold); color: var(--ink); font-size: 0.8rem; font-weight: 700; vertical-align: 0.1em; position: relative; }
.detail-nr { display: inline-block; margin-block-end: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: 0.875rem; font-weight: 700; }
.card-name-2 { color: var(--red); font-size: 0.875rem; line-height: 1.4; }
.card-short {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .tags { margin-block-start: 0.15rem; }
.card-allergens { margin-block-start: 0.15rem; }
.card-foot { margin-block-start: auto; padding-block-start: 0.5rem; }

.card-price { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.card-price-variants { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.card-price-variants div { display: flex; align-items: baseline; gap: 0.35rem; }
.card-price-variants dt { font-size: 0.75rem; font-weight: 500; color: var(--muted); }

/* Mobiel: horizontale kaart (foto links), zodat er meer gerechten in beeld passen. */
@media (max-width: 40rem) {
  .cards { gap: 0.6rem; }
  .card a { flex-direction: row; }
  .card-media { flex: none; inline-size: 7.25rem; aspect-ratio: auto; }
  .card-body { padding: 0.75rem 0.85rem; gap: 0.25rem; min-inline-size: 0; }
  .card-name { font-size: 1rem; }
  .card-short { -webkit-line-clamp: 2; font-size: 0.8125rem; }
  .card-price { font-size: 1.0625rem; }
  .card-foot { padding-block-start: 0.35rem; }
}

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.05rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #E3F1D3;
  color: #2E5414;
}
.tag-spicy { background: #FFE0D6; color: var(--red-dark); }

.allergen-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.allergen-chips li {
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.05rem 0.55rem;
  border: 1px solid #E8C9A8;
  background: #FFFBF0;
  color: #6B3B12;
  border-radius: var(--radius-pill);
}
.allergen-none { font-size: var(--step--1); color: var(--muted); }

.allergy-banner { margin-block: clamp(2rem, 5vw, 3rem) 1rem; }
.allergy-banner p {
  padding: 1rem 1.25rem;
  background: var(--gold-tint);
  border-inline-start: 4px solid var(--red);
  border-radius: 6px;
  max-inline-size: 62ch;
}

/* ---------- Gerecht (detail) ---------- */

.page-dish main { padding-block-start: 1.25rem; }
.page-dish .crumbs { padding-block-end: 1rem; }
.back { margin-block-start: 2rem; }
.back a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--muted); font-weight: 500; }
.back a:hover { color: var(--red); }
[dir='rtl'] .icon-dir { transform: scaleX(-1); }

.dish-detail { display: grid; gap: 1.75rem; padding-block-end: 2.5rem; }
.detail-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--gold-tint); }
.detail-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tags-overlay { position: absolute; inset-block-start: 0.85rem; inset-inline-start: 0.85rem; }
.tags-overlay .tag { font-size: 0.8125rem; padding: 0.15rem 0.7rem; box-shadow: 0 1px 4px rgb(0 0 0 / 0.15); }
@media (min-width: 56rem) {
  .dish-detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .detail-media { position: sticky; inset-block-start: 1.5rem; }
}
@media (max-width: 40rem) {
  .detail-media { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
}

.detail-head h1 { font-size: var(--step-4); }
.detail-name-2 { color: var(--red); font-size: var(--step-1); margin-block-start: 0.25rem; }
.detail-short { margin-block-start: 0.75rem; font-size: 1.0625rem; color: var(--muted); max-inline-size: 46ch; }

.detail-price { margin-block: 1.25rem 0.5rem; font-size: var(--step-3); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.detail-price-variants { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: var(--step-0); }
.detail-price-variants div {
  display: flex; flex-direction: column;
  min-inline-size: 8.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--gold-tint);
}
.detail-price-variants dt { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.detail-price-variants dd { font-size: var(--step-2); }

.detail-section { margin-block-start: 1.75rem; }
.detail-section h2 { font-size: var(--step-1); margin-block-end: 0.6rem; }
.detail-section p { max-inline-size: 60ch; }
.ingredient-list { columns: 2 12rem; column-gap: 2rem; }
.ingredient-list li { break-inside: avoid; padding-block: 0.35rem; border-block-end: 1px solid var(--line); }

.placeholder-text {
  padding: 0.75rem 1rem;
  border: 1.5px dashed #E1CDB7;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-style: italic;
  font-size: 0.9375rem;
}

.allergen-box { background: var(--gold-tint); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: 0.9rem; }
.allergen-box h2 { margin: 0; }
.allergen-row h3 { font-size: var(--step--1); font-weight: 500; color: var(--muted); margin-block-end: 0.4rem; }
.allergen-box .allergen-chips li {
  font-size: 0.9375rem;
  padding: 0.3rem 0.85rem;
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--paper);
  font-weight: 600;
}
.allergen-box .allergen-chips-soft li { border-style: dashed; font-weight: 400; }
.allergen-box .allergen-none { font-size: var(--step-0); color: var(--ink); }
.allergen-draft { font-size: 0.8125rem; font-weight: 600; color: #8A5A00; background: #FFE7A3; padding: 0.35rem 0.7rem; border-radius: 6px; justify-self: start; }
.allergen-note { font-size: 0.875rem; color: var(--muted); }

.more { padding-block: 0.5rem 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--red-deep); color: var(--on-red); padding-block: 2.75rem 1.25rem; margin-block-start: clamp(3rem, 6vw, 5rem); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: start; }
.footer-logo {
  inline-size: 10rem;
  box-sizing: content-box;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border-radius: var(--radius);
}
.footer-brand > p { margin-block-start: 0.9rem; }
.footer-brand .socials { margin-block-start: 1rem; }
.socials ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
}
a.social:hover { background: var(--gold); color: var(--red-deep); }
.social-off { opacity: 0.45; cursor: default; }
.footer-contact { display: grid; gap: 0.7rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { flex: none; color: var(--gold); margin-block-start: 0.1rem; }
.footer-contact a { color: var(--on-red); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); text-decoration: underline; }
.footer-soon { opacity: 0.6; font-style: italic; }
.site-footer h3 { font-size: var(--step-0); color: var(--gold); margin-block-end: 0.5rem; }
.footer-links { display: grid; gap: 0.4rem; }
.footer-links a { color: var(--on-red); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .socials h3 { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-block-start: 2rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.75);
}
.made-by a { color: var(--gold); font-weight: 700; text-decoration: none; }
.made-by a:hover { text-decoration: underline; }
.page-home .site-footer, .page-contact .site-footer { margin-block-start: 0; }

/* ---------- Menu als PDF ---------- */

.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--red-deep);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  white-space: nowrap;
}
.pdf-button:hover { background: var(--gold-light); }
@media (max-width: 30rem) {
  /* Op kleine schermen alleen het icoon */
  .pdf-button { padding: 0.4rem; }
  .pdf-button span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 48rem) {
  .header-inner .main-nav { margin-inline-end: 0.25rem; }
}
.page-head-button { margin-block-start: 1.25rem; }
.footer-pdf { display: inline-flex; align-items: center; gap: 0.4rem; margin-block-start: 1rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.footer-pdf:hover { text-decoration: underline; }

/* ---------- Mobiele tabbalk onderin ---------- */

.tabbar { display: none; }
@media (max-width: 47.99rem) {
  .main-nav { display: none; }
  body { padding-block-end: calc(4.25rem + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block-end: env(safe-area-inset-bottom);
    background: var(--paper);
    border-block-start: 1px solid var(--line);
    box-shadow: 0 -6px 16px -10px rgb(42 20 20 / 0.3);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.25rem 0.6rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
  }
  .tabbar a[aria-current] { color: var(--red); }
  .tabbar a[aria-current] svg { background: var(--yellow); border-radius: var(--radius-pill); }
  .tabbar svg { inline-size: 3rem; block-size: 1.75rem; padding: 0.2rem 0.8rem; }
}
@media (min-width: 48rem) {
  .main-nav { display: flex; gap: 1.5rem; }
}

/* ---------- 404 en taalkeuze ---------- */

.nf-block + .nf-block { margin-block-start: 2.5rem; padding-block-start: 2.5rem; border-block-start: 1px solid var(--line); }
.nf-block h1 { font-size: var(--step-3); color: var(--red); margin-block-end: 0.5rem; }
.nf-block a { color: var(--red); font-weight: 600; }
.page-404 main { padding-block-start: 2rem; }

.page-root { min-block-size: 100vh; display: grid; place-items: start center; background: var(--red); color: var(--on-red); text-align: center; }
.root-choice { inline-size: 100%; max-inline-size: 46rem; padding: 0 var(--gutter) 3rem; }
.root-logo {
  display: inline-block;
  background: var(--paper);
  padding: 1.75rem 2rem 1.5rem;
  border-end-start-radius: 2rem;
  border-end-end-radius: 2rem;
  margin-block-end: clamp(2.5rem, 8vh, 4.5rem);
}
.root-logo img { inline-size: clamp(11rem, 45vw, 15rem); }
.root-label { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-block-end: 1.25rem; font-size: var(--step-1); font-weight: 600; }
.root-label span + span { padding-inline-start: 1.25rem; border-inline-start: 1px solid rgb(255 255 255 / 0.45); }
.root-langs { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.root-langs li { display: flex; }
.root-langs a {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  color: var(--red);
  border-radius: var(--radius);
  text-decoration: none;
}
.rl-welcome { font-size: var(--step-2); font-weight: 700; line-height: 1.4; }
.rl-name { font-size: 0.9375rem; color: var(--muted); }
.root-langs a:hover,
.root-langs a:focus-visible { background: var(--gold); color: var(--red-deep); }
.root-langs a:hover .rl-name { color: var(--red-deep); }

@media (max-width: 30rem) {
  .header-inner { gap: 0.9rem; }
  .brand { padding: 0.4rem 0.75rem; }
  .page-home .brand { padding: 0.5rem 0.8rem 0.6rem; margin-block-end: -1.25rem; }
  .footer-copy { margin-inline-start: 0; }
}

/* Social-iconen op een lichte achtergrond (contactpagina) */
.contact-card .social { background: var(--gold-tint); }
.contact-card a.social:hover { background: var(--gold); }

/* Houdt verborgen schermlezertekst binnen de kaart (voorkomt horizontaal scrollen) */
.card a { position: relative; }

/* Prijs nog niet bekend */
.price-missing { color: var(--muted); font-weight: 500; font-size: 0.9375rem; font-style: italic; }


/* Sterren (ook halve) */
.stars { position: relative; display: inline-block; letter-spacing: 0.1em; font-size: 1.15rem; line-height: 1; white-space: nowrap; color: var(--gold); }
.stars .stars-off { color: rgb(255 255 255 / 0.3); }
.review .stars .stars-off { color: #E8DDCF; }
.review-ph .stars .stars-off { color: rgb(255 255 255 / 0.3); }
.stars .stars-on { position: absolute; inset-block-start: 0; inset-inline-start: 0; overflow: hidden; color: var(--gold); }
.rating-summary .stars { font-size: 1.35rem; }

/* Uitnodiging om reviews te lezen en te schrijven */
.reviews-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block-start: 1.75rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
}
.reviews-invite h3 { font-size: var(--step-1); color: var(--red); margin-block-end: 0.25rem; }
.reviews-invite .button { background: var(--red); color: var(--on-red); }
.reviews-invite .button:hover { background: var(--red-dark); }

/* Slogan en veelgestelde vragen */
.hero-slogan { margin-block-start: 0.35rem; font-size: var(--step-1); font-weight: 700; color: var(--gold); }
.home-hero h1.hero-tagline { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.faq-list { display: grid; gap: 0.6rem; max-inline-size: 48rem; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--red); flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item[open] { border-color: var(--red); }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--ink); }
.page-contact .faq { padding-block-end: 1rem; }

/* Voorbeeldversie */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.9rem; padding: 0.45rem 1rem; background: var(--ink); color: #fff; font-size: 0.8125rem; text-align: center; }
.preview-bar a { padding: 0.15rem 0.7rem; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; }
