/* ===== Pizza Lab — palette pulled from the printed menu ===== */
:root {
  /* Palette derived from the Pizza Lab logo — navy wordmark + wheat peel */
  --cream:        #f7f1e6;   /* warm paper (logo background) */
  --cream-deep:   #efe6d4;
  --teal:         #34618a;   /* logo navy — primary dark, headings */
  --teal-soft:    #3d6f9c;
  --steel:        #7ba0c0;   /* the lighter "LAB" blue */
  --wheat:        #d6b488;   /* the pizza-peel tan — decorative fills */
  --terracotta:   #a9763f;   /* readable warm-ochre accent (eyebrows, labels) */
  --terracotta-d: #a9763f17;
  --tomato:       #c2502f;   /* warm CTA / price pop */
  --ink:          #25303a;   /* ink with a cool navy cast */
  --muted:        #6c6a63;
  --line:         #ddd0ba;
  --white:        #fffdf8;
  --on-dark:      #f7f1e6;   /* light text that must stay light in BOTH themes */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow: 0 18px 40px -18px rgba(42, 39, 35, 0.45);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }

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

.container { width: min(1140px, 92vw); margin-inline: auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; color: var(--teal); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  text-align: center;
  margin-top: 0.4rem;
}
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0.7rem auto 0; }

/* Tighter vertical rhythm (2026 pizzeria sites favour denser, snappier sections) */
section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.gallery { padding-top: clamp(2rem, 4vw, 3rem); }
.menu { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 224, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); }
.brand-logo { height: 46px; width: auto; display: block; transition: transform .3s ease; }
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-logo--light { filter: brightness(0) invert(1); }   /* white logo on dark surfaces */
.footer-inner .brand-logo { height: 52px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--terracotta); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--tomato); }
.btn-ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--teal); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid; place-items: center;
  text-align: center;
  color: var(--on-dark);
  overflow: hidden;
  padding: 6rem 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(21,64,59,.45), rgba(21,64,59,.78)),
    var(--hero-img, #15403b) center/cover no-repeat;
  z-index: -1;
  transform: scale(1.05);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--terracotta); }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0.6rem 0 1rem; text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero p { font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 40ch; margin: 0 auto 2rem; opacity: 0.96; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero .badge { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .badge {
  display:inline-block; margin-top: 2.4rem; font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--on-dark); opacity: .85;
}
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); animation: bob 2s infinite; opacity:.8; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* ===== About (2026 editorial redesign) ===== */
.about { background: var(--cream); position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(214,180,136,.22), transparent 70%); pointer-events: none;
}
.about-split {
  display: grid; grid-template-columns: 1fr .82fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.about-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-align: left; margin-top: .4rem; }
.about-head p { color: var(--muted); margin-top: 1.1rem; font-size: 1.06rem; max-width: 56ch; }

/* Social-proof stats */
.about-stats {
  display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); margin-top: 1.8rem; flex-wrap: wrap;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.about-stats .stat strong {
  display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1; color: var(--terracotta);
}
.about-stats .stat span { font-size: .76rem; letter-spacing: .04em; color: var(--muted); }

/* CTA row */
.about-cta { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.about-cta .ig-btn { gap: .5rem; }
.about-cta .ig-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }

/* Reel video — clean, no chrome */
.about-reel { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.reel-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta);
}
.reel-kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato);
  box-shadow: 0 0 0 4px rgba(194,80,47,.18); animation: reelpulse 1.8s ease-in-out infinite;
}
@keyframes reelpulse { 0%,100%{ opacity:1 } 50%{ opacity:.45 } }
.reel-frame {
  position: relative; border-radius: 22px; overflow: hidden; background: #000;
  aspect-ratio: 9 / 16; box-shadow: 0 26px 54px -24px rgba(42,39,35,.62);
  border: 1px solid var(--line);
}
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

/* Feature cards */
.about-features {
  list-style: none; display: grid; grid-template-columns: 1fr;
  gap: .7rem; margin-top: 1.6rem;
}
.about-features .feat {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; box-shadow: 0 10px 30px -26px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-features .feat:hover { transform: translateY(-3px); border-color: var(--wheat); box-shadow: 0 18px 36px -24px rgba(42,39,35,.5); }
.feat-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--terracotta); background: var(--terracotta-d);
}
.feat-tx { min-width: 0; }
.about-features .feat strong { display: block; font-family: var(--serif); font-size: 1.18rem; line-height: 1.2; color: var(--teal); }
.about-features .feat span { display: block; margin-top: .15rem; font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .about-reel { order: -1; max-width: 320px; justify-self: center; }
  .about-features { grid-template-columns: 1fr; }
}

/* ===== Menu ===== */
.menu { background: var(--cream-deep); }
.menu-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.8rem); }
.menu-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.9rem;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(0,0,0,.4);
}
.menu-card .cat-head { display:flex; align-items: baseline; justify-content: space-between; border-bottom: 2px dotted var(--line); padding-bottom: .7rem; margin-bottom: 1.1rem; }
.menu-card h3 { font-size: 1.5rem; }
.menu-card .cat-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .65rem 0; border-bottom: 1px solid #00000008; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-name { font-weight: 600; color: var(--ink); }
.menu-item .mi-price { font-family: var(--serif); font-weight: 700; color: var(--tomato); white-space: nowrap; }
.menu-item .mi-price::before { content: "€"; font-size: .8em; margin-right: 1px; }
.menu-item .mi-desc { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.menu-scans { display:flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }
.menu-scans a { font-size: .85rem; }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.gallery-grid figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 8px 24px -18px rgba(0,0,0,.5); }
.gallery-grid img { width: 100%; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(21,64,59,.85));
  color: #fff; font-size: .82rem; opacity: 0; transition: opacity .3s; transform: translateY(6px);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(21,64,59,.94); display: none; place-items: center; z-index: 100; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-cap { color: var(--on-dark); text-align: center; margin-top: 1rem; letter-spacing: .05em; }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; font-size: 2.4rem; color: var(--on-dark); cursor: pointer; line-height: 1; background:none; border:0; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; color: var(--on-dark); background: none; border: 0; cursor: pointer; padding: 1rem; user-select: none; }
.lightbox .lb-prev { left: 1vw; } .lightbox .lb-next { right: 1vw; }

/* ===== Visit / Contact ===== */
.visit { background: var(--teal); color: var(--on-dark); }
.visit h2 { color: #fff; text-align: left; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.visit .section-head { text-align: left; margin-bottom: 2rem; }
.visit .section-head p { margin-left: 0; color: rgba(246,239,224,.8); }
.info-block { margin-bottom: 1.6rem; }
.info-block .lbl { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.info-block .val { font-size: 1.08rem; margin-top: .2rem; }
.info-block a:hover { color: var(--terracotta); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.social-links a { display: inline-flex; align-items: center; gap: .45rem; }
.social-links svg { flex: 0 0 auto; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.hours-table td { padding: .5rem 0; border-bottom: 1px solid rgba(246,239,224,.16); font-size: .96rem; }
.hours-table td:last-child { text-align: right; color: var(--on-dark); }
.hours-table tr.closed td:last-child { color: var(--terracotta); }
.hours-table tr.today { background: rgba(224,138,44,.12); }
.hours-table tr.today td:first-child::after { content: " • today"; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); border: 4px solid rgba(246,239,224,.1); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ===== Footer ===== */
footer {
  position: relative;
  background: #16323f;
  background-image:
    radial-gradient(120% 140% at 12% -10%, rgba(169,118,63,.18), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(52,97,138,.32), transparent 50%);
  color: rgba(247,241,230,.72);
  padding: 4rem 0 1.8rem;
}
footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta) 30%, var(--wheat) 70%, transparent);
  opacity: .5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 2.4rem 2rem;
  align-items: start;
}
.footer-brand { max-width: 320px; }
.footer-inner .brand .logo-pizza, .footer-brand .brand .logo-pizza { color: var(--on-dark); }
.footer-brand .brand { display: inline-block; }
.footer-brand .brand-logo { height: 50px; }
.footer-tagline { font-size: .9rem; line-height: 1.65; margin-top: 1.1rem; color: rgba(247,241,230,.66); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--on-dark);
  background: rgba(247,241,230,.07);
  border: 1px solid rgba(247,241,230,.14);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--wheat); margin-bottom: .3rem;
}
.footer-col a { font-size: .9rem; color: rgba(247,241,230,.74); width: fit-content; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--terracotta); padding-left: 4px; }
.footer-hours { font-size: .9rem; line-height: 1.7; color: rgba(247,241,230,.74); }
.footer-status {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .3rem; font-size: .78rem; font-weight: 500;
  padding: .3rem .7rem; border-radius: 999px; width: fit-content;
  background: rgba(247,241,230,.06); border: 1px solid rgba(247,241,230,.12);
}
.footer-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.footer-status.open { color: #b7e4c7; }
.footer-status.open::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.footer-status.closed { color: rgba(247,241,230,.65); }
.footer-status.closed::before { background: var(--tomato); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(247,241,230,.12);
}
footer .copy { font-size: .78rem; opacity: .7; }
.footer-bottom-links { display: flex; gap: 1.4rem; font-size: .8rem; }
.footer-bottom-links a { color: rgba(247,241,230,.6); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--terracotta); }

/* Reveal on scroll */
/* Visible by default — only hidden once JS confirms it can animate them back in.
   This guarantees content shows even if a script error stops the reveal logic. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ===== Language switch ===== */
.lang-switch { display: inline-flex; align-items: center; gap: .25rem; }
.lang-btn { background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--muted); padding: .25rem .35rem; border-radius: 6px; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--terracotta); }
.lang-btn.active { color: var(--terracotta); background: var(--terracotta-d); }
.lang-sep { color: var(--line); font-size: .8rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .lang-switch { justify-content: center; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: var(--cream); flex-direction: column; gap: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow); }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display:block; padding: .9rem; }
  .nav-toggle { display: block; }
  .menu-cats, .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.6rem; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
  .gallery-grid { columns: 2 140px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  footer { padding: 3rem 0 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   2026 interactive layer — dark mode, micro-interactions, live status
   ===================================================================== */

/* ---- Dark mode ---- */
body.dark {
  --cream:      #1a1714;
  --cream-deep: #14110f;
  --white:      #221d19;
  --ink:        #f3ead9;
  --muted:      #b3a892;
  --line:       #3a332b;
  --teal:       #8fb6d6;
  --teal-soft:  #7ba0c0;
}
body.dark .menu-card { box-shadow: 0 10px 30px -20px #000; }
body.dark .nav { background: rgba(26,23,20,.85); }
body.dark .visit { background: #0f100e; }
body.dark footer {
  background: #0c0d0b;
  background-image:
    radial-gradient(120% 140% at 12% -10%, rgba(169,118,63,.16), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(52,97,138,.14), transparent 50%);
}
body.dark .about-features .feat strong,
body.dark .menu-card .cat-sub,
body.dark .eyebrow { color: var(--terracotta); }
body, .nav, .menu-card, .about-photo img, footer, .visit, .map-wrap iframe {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

.theme-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; transition: transform .4s, background .2s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--terracotta); transform: rotate(-18deg); }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--terracotta), var(--tomato));
  z-index: 60; transition: width .1s linear;
}

/* ---- Live open/closed badge ---- */
.open-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(21,64,59,.08); color: var(--teal); white-space: nowrap;
}
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.open-badge.open { color: #1f9d57; background: rgba(31,157,87,.12); }
.open-badge.open::before { animation: pulse 2s infinite; }
.open-badge.closed { color: var(--tomato); background: rgba(194,59,34,.1); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(31,157,87,.5);} 70%{ box-shadow: 0 0 0 7px rgba(31,157,87,0);} 100%{ box-shadow: 0 0 0 0 rgba(31,157,87,0);} }

.hero-status {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: .82rem; font-weight: 600; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}
.hero-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; }
.hero-status.closed::before { background: #ff8a6a; }

/* ---- Hero parallax / Ken Burns ---- */
.hero { background: var(--teal); }
.hero::after { display: none; }
.hero-bg {
  position: absolute; inset: -4%;
  background:
    radial-gradient(ellipse at center, rgba(20,40,60,.55), rgba(18,36,54,.9)),
    var(--hero-img, #34618a) center/cover no-repeat;
  z-index: 0; will-change: transform; animation: kenburns 22s ease-in-out infinite alternate;
}
.hero .container { position: relative; z-index: 1; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16) translateY(-1.5%); } }

/* On the dark hero, the ghost button must read light, not navy-on-navy */
.hero .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--teal); border-color: #fff; }
.btn-link { background: transparent; color: var(--on-dark); border: 0; padding: .7rem .6rem; }
.btn-link:hover { color: var(--terracotta); }
.btn { position: relative; overflow: hidden; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---- Active nav link (scrollspy) ---- */
.navlink { position: relative; }
.navlink::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--terracotta); transition: right .3s ease; }
.navlink:hover::after, .navlink.active::after { right: 0; }
.navlink.active { color: var(--terracotta); }

/* ---- Menu filter tabs ---- */
.menu-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.menu-filters button {
  font-family: var(--sans); font-weight: 600; font-size: .85rem; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--muted); transition: all .2s;
}
.menu-filters button:hover { border-color: var(--terracotta); color: var(--ink); transform: translateY(-2px); }
.menu-filters button.active { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.menu-card.hide { display: none; }
.menu-card { transition: opacity .35s ease, transform .35s ease; }

/* ---- Card & gallery tilt/hover lift ---- */
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(0,0,0,.5); }

/* ---- Reservation modal ---- */
.modal { position: fixed; inset: 0; background: rgba(21,64,59,.55); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 110; padding: 5vw 4vw; }
.modal.open { display: grid; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: var(--white); color: var(--ink); width: min(540px, 100%); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow); position: relative; animation: pop .3s cubic-bezier(.2,.8,.3,1.2); max-height: 90vh; overflow:auto; }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card h2 { font-size: 1.8rem; margin: .3rem 0 .4rem; }
.modal-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--tomato); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.modal .field { margin-bottom: .9rem; }
.modal label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; font-weight: 600; }
.modal input, .modal select { width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; }
.modal input:focus, .modal select:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(224,138,44,.15); }
.modal-or { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.modal-or a { color: var(--terracotta); font-weight: 600; }

/* ---- Back to top ---- */
.to-top { position: fixed; bottom: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--tomato); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; z-index: 55; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--teal); color: var(--cream); padding: .8rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow); transition: transform .35s ease; z-index: 120; font-size: .9rem; }
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .open-badge { display: none; }
  .nav-links .theme-toggle { margin: .5rem auto; }
}
@media (max-width: 520px) { .modal-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Motion layer — scrollytelling reveals, kinetic hero, menu hover preview
   ===================================================================== */

/* Staggered + directional reveals (delay set per-item via --rd in JS) */
html.js .reveal { transition-delay: var(--rd, 0s); }
html.js .reveal-left  { opacity: 0; transform: translateX(-40px); }
html.js .reveal-right { opacity: 0; transform: translateX(40px); }
html.js .reveal-scale { opacity: 0; transform: scale(.92); }
html.js .reveal-left.in, html.js .reveal-right.in, html.js .reveal-scale.in { opacity: 1; transform: none; }

/* Kinetic hero entrance — oversized type slides up, line by line */
@keyframes heroRise { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
html.js .hero .eyebrow { opacity: 0; animation: heroRise .8s cubic-bezier(.2,.7,.2,1) .15s forwards; }
html.js .hero h1       { opacity: 0; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .3s forwards; }
html.js .hero > .container > p { opacity: 0; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .5s forwards; }
html.js .hero-actions  { opacity: 0; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .68s forwards; }
html.js .hero .badge   { opacity: 0; animation: heroFade 1s ease 1s forwards; }
html.js .hero-status   { opacity: 0; animation: heroRise .8s ease 0s forwards; }

/* Menu items: lift + accent line on hover, cursor-friendly */
.menu-item { border-radius: 8px; padding-inline: .5rem; margin-inline: -.5rem; transition: background .25s, transform .2s; cursor: default; }
.menu-item:hover { background: color-mix(in srgb, var(--terracotta) 9%, transparent); transform: translateX(4px); }
.menu-item.has-photo { cursor: pointer; }
.menu-item.has-photo .mi-name::after { content: " ◍"; color: var(--terracotta); font-size: .7em; opacity: .5; }

/* Floating dish preview that follows the cursor (Orno-style hover reveal) */
.dish-preview {
  position: fixed; top: 0; left: 0; width: 190px; height: 190px; border-radius: 16px;
  object-fit: cover; pointer-events: none; z-index: 90; opacity: 0; transform: scale(.8) rotate(-4deg);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); border: 3px solid var(--white);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1.2); will-change: transform;
}
.dish-preview.show { opacity: 1; transform: scale(1) rotate(-3deg); }

/* Gallery items pop a touch on reveal.
   SAFE PATTERN: figures are visible by default; .in only ADDS an entrance
   animation. If the observer never fires (lazy images can have zero height
   in a columns layout) the gallery still shows — it just doesn't animate. */
@keyframes figIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
html.js .gallery-grid figure.in { animation: figIn .6s ease both; animation-delay: var(--rd, 0s); }

@media (hover: none) { .dish-preview { display: none; } .menu-item.has-photo .mi-name::after { display: none; } }

/* ---- Respect reduced motion (accessibility / 2026 best practice) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-bg { animation: none; }
  html.js .reveal, html.js .reveal-left, html.js .reveal-right, html.js .reveal-scale,
  html.js .gallery-grid figure,
  html.js .hero .eyebrow, html.js .hero h1, html.js .hero > .container > p,
  html.js .hero-actions, html.js .hero .badge, html.js .hero-status { opacity: 1 !important; transform: none !important; }
  .dish-preview { display: none !important; }
}
