/* ==========================================================================
   components.css — herbruikbare UI-onderdelen. Bruikbaar op elke pagina:
   eyebrow, tekstknoppen, sectiekop, menukaart, aanbevolen-blok, formulier +
   infokaart, openingsuren, cookiebanner.
   ========================================================================== */

/* — Eyebrow / kicker — */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0;
}
.eyebrow--sand { color: var(--sand-500); }

/* — Tekstknop: geen vulling, uppercase, met een lijntje dat uitschuift — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.btn::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: currentColor;
  align-self: center;
  transition: width 0.35s var(--ease);
}
.btn:hover { color: var(--cream-050); }
.btn:hover::after { width: 70px; }
.btn-primary { color: var(--accent); }
.btn-ghost { color: var(--inverse-text); }
.btn-outline { color: var(--sand-500); }
.btn--muted { color: var(--muted-400); }
.btn--sand { color: var(--sand-500); }
.btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }
@media (max-width: 480px) {
  /* Lange knoplabels ("Cookie-instellingen wijzigen") anders krap
     genoeg om op twee regels te breken, waarbij het lijntje er dan
     verkeerd — halverwege — tussen komt te staan. */
  .btn { letter-spacing: 0.26em; gap: 12px; }
}


/* — Sectiekop (grote serif-titel + intro) — gebruikt op home én menupagina's — */
.stitle {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--gold-500);
  letter-spacing: -0.01em;
}
.stitle em { font-style: italic; color: var(--cream-050); }
.stitle .amp { color: var(--cream-050); font-style: italic; }

.carta__head { text-align: center; max-width: 66ch; margin: 0 auto clamp(34px, 5vw, 54px); }
.carta__head p { color: var(--sand-500); opacity: 0.85; }


/* — Menukaart: groep-label + lijst met gerechten/drankjes — */
.grouplabel {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sand-400);
  background: var(--wine-card-d);
  padding: 9px 20px; margin: 0 0 26px;
  border: 1px solid var(--sand-dim);
}
.group + .group { margin-top: clamp(46px, 6vw, 72px); }

.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(40px, 6vw, 80px); }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--hairline-soft);
}
.item__name {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.28rem); font-weight: 500;
  color: var(--cream-050); line-height: 1.3; margin: 0;
}
.item__price {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--wine-card-d); background: var(--sand-500);
  border-radius: 999px; padding: 5px 13px; white-space: nowrap;
  align-self: center;
}
.item__desc { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.7; color: var(--muted-400); margin: 0; max-width: 52ch; }
.veg { display: inline-block; margin-left: 8px; vertical-align: middle; width: 15px; height: 15px; color: var(--sand-500); opacity: 0.9; }
.spicy { display: inline-block; margin-left: 8px; vertical-align: middle; width: 15px; height: 15px; color: var(--rose-500); opacity: 0.9; }
.menu-note { font-size: 12.5px; font-style: italic; color: var(--muted-400); margin: -10px 0 0; }

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


/* — Aanbevolen-blok (afbeelding + tekstvak), bv. Tabla de Bebidas — */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; gap: 0; }
.feature__img { min-height: clamp(300px, 42vw, 560px); background-size: cover; background-position: center; background-repeat: no-repeat; }
.feature__box { background: var(--wine-700); padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature__price { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--gold-500); margin: 10px 0 22px; }
.plank { border-top: 1px solid var(--hairline-soft); padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; }
.plank h4 { font-size: 1.05rem; font-weight: 500; color: var(--cream-050); margin: 0; }
.plank p { grid-column: 1/-1; font-size: 13px; margin: 0; color: var(--muted-400); }
.plank .item__price { align-self: center; }

@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; }
  .feature__img { min-height: 300px; }
}


/* — Fotogalerij — gebruikt op home (teaser) en de volledige Sfeer-pagina.
   Elke foto op een vaste 4:5-verhouding i.p.v. het vorige masonry-grid
   (dat gaf lange, smalle stroken); op mobiel gewoon één kolom onder
   elkaar. — */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: clamp(34px, 5vw, 54px);
}
.gallery figure { margin: 0; overflow: hidden; background: var(--wine-900); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.6s var(--ease); filter: saturate(0.95); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.15); }
@media (max-width: 680px) {
  .gallery { grid-template-columns: 1fr; }
}

/* — Sfeer-carousel (enkel homepage) — zelfde fotokaartjes als .gallery,
   maar in een onophoudelijk schuivende rij i.p.v. een vast grid. De
   track bevat de foto's twee keer na elkaar; site.js schuift scrollLeft
   met rAF en springt onzichtbaar terug op de helft, zodat de naad
   tussen de twee sets nooit te zien is. Omdat het een gewone
   overflow-x:auto-container is, blijft hij overal met de vinger/muis/
   trackpad versleepbaar — de auto-scroll is een extra, geen vervanging. —*/
/* Staat los van .wrap (zie index.html), dus bewust volle breedte —
   alleen een linker gutter zodat de eerste kaart niet plakt. */
.carousel {
  margin-top: clamp(34px, 5vw, 54px); padding-left: var(--gut);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track { display: flex; gap: 14px; width: max-content; }
.carousel figure {
  flex: 0 0 auto; margin: 0; overflow: hidden; background: var(--wine-900);
  width: clamp(240px, 30vw, 500px); aspect-ratio: 4 / 5;
}
.carousel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); -webkit-user-drag: none; user-select: none; }


/* — Bezoek-/contactblok (adres, uren, contact + kaart) — gebruikt op home
   en de volledige Contact-pagina. — */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info { margin-top: 34px; display: grid; gap: 30px; }
.info h3 {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px;
}
.info p, .info a { color: var(--sand-500); font-size: 14.5px; line-height: 1.9; }
.info a:hover { color: var(--gold-500); }
.icon-links { display: flex; gap: 12px; margin-top: 14px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--gold-500);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-link svg { width: 18px; height: 18px; }
a.icon-link:hover { background: var(--gold-500); color: var(--rose-500); transform: translateY(-2px); }
.hours { display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; max-width: 290px; gap: 20px; color: var(--sand-500); font-size: 14.5px; }
.hours-note { margin-top: 8px; font-size: 12px; color: var(--muted-400); max-width: 290px; }
.hours span:first-child { color: var(--muted-400); }
.map { border: 1px solid var(--sand-dim); overflow: hidden; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }
@media (max-width: 1024px) {
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hours div { max-width: none; }
}


/* — RestoManager-reserveringswidget: het widget-eigen iframe krijgt van
   de browser soms een ondoorzichtige witte achtergrond; forceer transparant
   zodat enkel de eigen knoppen van de widget zichtbaar blijven. — */
#restomanager-iframe { background: transparent !important; color-scheme: light; }


/* — Contactformulier — */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, var(--sp-7));
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-top: var(--sp-4); min-width: 0; }
.field input, .field textarea { width: 100%; }
.field label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-500);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--cream-050);
  background: var(--wine-card-d);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-400); opacity: 0.8; }
.field input:focus, .field textarea:focus {
  outline: 3px solid var(--accent-ring);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-card .btn-primary { margin-top: var(--sp-6); }
.form-hint { margin-top: var(--sp-3); font-size: 0.8125rem; color: var(--muted-400); }


/* — Formulier: verplicht-markering, validatie en statusmelding — */
.field-req { color: var(--danger); margin-left: 0.15em; }

.field-error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--danger-strong);
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-veil-soft);
}
.field.has-error input:focus,
.field.has-error textarea:focus {
  outline-color: var(--danger-ring);
  border-color: var(--danger-strong);
}

.form-status {
  display: none;
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: var(--success-veil);
  border-color: var(--success);
  color: var(--success-strong);
}
.form-status.is-error {
  background: var(--danger-veil);
  border-color: var(--danger);
  color: var(--danger-strong);
}
.form-status a { font-weight: 600; }

/* Honeypot: onzichtbaar voor mensen, wel invulbaar voor bots. */
.field-trap {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* — Cookiebanner — */
.cookie-banner {
  position: fixed;
  left: var(--sp-5);
  right: auto;
  bottom: var(--sp-5);
  z-index: 90;
  max-width: 480px;
  background: var(--inverse-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lift);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p {
  font-size: var(--fs-small);
  color: var(--inverse-text-bright);
  line-height: 1.55;
}
.cookie-banner p a { color: var(--accent-inverse); font-weight: 600; }
.cookie-actions {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  /* Rechts blijft bewust vrij: daar zit de floating RestoManager-knop
     zodra iemand zijn cookiekeuze (opnieuw) via de footer-link opent. */
  .cookie-banner { left: var(--sp-4); right: 84px; bottom: var(--sp-4); max-width: none; }
}


/* — Opening-aankondiging (centrale popup, tijdelijk tot de grand opening) — */
html.announce-open { overflow: hidden; }
.announce {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(30, 9, 9, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.announce.is-visible { opacity: 1; }
.announce__dialog {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: var(--wine-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.announce.is-visible .announce__dialog { transform: none; }
.announce__title { margin-top: 10px; font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.2rem); }
.announce__body { margin-top: var(--sp-4); color: var(--sand-500); line-height: 1.7; }
.announce__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--sand-500);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s;
}
.announce__close:hover { color: var(--gold-500); }
.announce__close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }


/* — Motion policy: componenten — */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .cookie-banner { transition: none; }
  .announce, .announce__dialog { transition: none; }
}
