/* ==========================================================================
   Madame Marianné — Riverside Bistro, Vianden
   Design tokens: natural stone, deep green, cream, muted tomato, warm wood
   ========================================================================== */

:root {
  --cream: #faf3e6;
  --cream-alt: #f1e7d2;
  --stone: #e4dac2;
  --stone-line: #d8caa9;
  --stone-deep: #a5967a;
  --ink: #2b2419;
  --ink-soft: #55492f;
  --green: #3d5a44;
  --green-dark: #26392c;
  --green-tint: #eef1e9;
  --tomato: #bd5138;
  --tomato-dark: #9a3f2a;
  --wood: #8c5a3c;
  --wood-light: #b0805b;
  --white: #ffffff;
  --gold: #c99a3a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(43, 36, 25, 0.08);
  --shadow-md: 0 12px 32px rgba(43, 36, 25, 0.14);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tomato-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.section-alt { background: var(--cream-alt); }
.section-green {
  background: var(--green);
  color: var(--cream);
}
.section-green h2, .section-green .eyebrow { color: var(--cream); }

.section-head {
  max-width: 640px;
  margin: 0 0 2.5rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-green .section-head p { color: rgba(250, 243, 230, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--tomato); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--tomato-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--cream); border-color: var(--green-dark); }
.btn-outline-light { background: transparent; border-color: rgba(250, 243, 230, 0.6); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--green-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: var(--cream); border-color: rgba(250, 243, 230, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stone-line);
}
/* Blur lives on a pseudo-element, not the header itself — backdrop-filter on an
   ancestor turns it into the containing block for position:fixed descendants
   (the off-canvas mobile nav), which breaks full-viewport fixed positioning. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: blur(8px);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 600;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--tomato-dark);
  border-bottom-color: var(--tomato);
}

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--stone);
  border-radius: 999px;
  padding: 0.2rem;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-switch button.active { background: var(--green-dark); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm.call-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--cream);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38, 57, 44, 0.55) 0%, rgba(38, 57, 44, 0.78) 100%),
    linear-gradient(135deg, #6b7d5a 0%, #3d5a44 45%, #26392c 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(250, 243, 230, 0.14);
  border: 1px solid rgba(250, 243, 230, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.rating-badge .stars { color: var(--gold); letter-spacing: 1px; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero-sub {
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(250, 243, 230, 0.9);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.hero-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(250, 243, 230, 0.1);
  border: 1px solid rgba(250, 243, 230, 0.3);
}

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--white);
  border-bottom: 1px solid var(--stone-line);
}
.info-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}
.info-item { display: flex; gap: 0.7rem; align-items: flex-start; }
.info-item .ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.info-item strong { display: block; font-size: 0.9rem; color: var(--green-dark); }
.info-item span { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .info-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Placeholder images ---------- */
.ph-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--wood-light) 0%, var(--wood) 45%, var(--green-dark) 100%);
  display: flex;
  align-items: flex-end;
  color: rgba(250, 243, 230, 0.92);
}
.ph-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
}
.ph-image .ph-label {
  position: relative;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.ph-image .ph-label b { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.6rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card .card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.8rem; }
.card-link { font-weight: 700; font-size: 0.85rem; color: var(--tomato-dark); }

/* ---------- Review highlights ---------- */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: rgba(250, 243, 230, 0.08);
  border: 1px solid rgba(250, 243, 230, 0.22);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.review-card .stars { color: var(--gold); margin-bottom: 0.6rem; display: block; letter-spacing: 2px; }
.review-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--cream); }
.review-card p { font-size: 0.88rem; color: rgba(250, 243, 230, 0.82); margin: 0; }
.review-source {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- Menu ---------- */
.menu-note {
  background: var(--stone);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  border: 1px solid var(--stone-line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

.menu-category { margin-bottom: 3rem; }
.menu-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--stone-line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
}
.menu-category-head span { font-size: 0.82rem; color: var(--stone-deep); }

.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.4rem; }
@media (max-width: 720px) { .menu-items { grid-template-columns: 1fr; } }

.menu-item { display: flex; gap: 1rem; align-items: flex-start; }
.menu-item .ph-image { flex: none; width: 76px; height: 76px; border-radius: var(--radius-sm); }
.menu-item .ph-image .ph-label { display: none; }
.menu-item-body { flex: 1; }
.menu-item-body h4 { margin: 0 0 0.25rem; font-size: 1.02rem; color: var(--green-dark); font-family: var(--font-display); }
.menu-item-body p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.tbc {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wood);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Hours / location ---------- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--stone-line); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.today td { font-weight: 700; color: var(--tomato-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.contact-block { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-block .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-block strong { display: block; color: var(--green-dark); }
.contact-block span, .contact-block a { font-size: 0.92rem; color: var(--ink-soft); }
.contact-block a:hover { color: var(--tomato-dark); }

.todo-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--stone);
  color: var(--wood);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--stone-deep); margin-top: 1rem; }
.form-success {
  display: none;
  background: var(--green-tint);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1.2rem;
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--tomato);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band .eyebrow { color: var(--white); }
.cta-band .eyebrow { opacity: 0.85; }
.cta-band .btn-outline-light { border-color: rgba(255,255,255,0.7); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(250, 243, 230, 0.85);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 243, 230, 0.15);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { font-size: 0.9rem; }
.footer-grid a:hover { color: var(--cream); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.6rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 0.7rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250, 243, 230, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { background: rgba(250, 243, 230, 0.15); }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
