/* ============================================================
   Asian Palace — Kardamena, Kos
   Palette sampled from the restaurant itself.
   ============================================================ */

:root {
  /* Brand — taken from the building */
  --red: #c10417;
  --red-deep: #94010f;
  --green: #6ea223;
  --green-deep: #4d7516;
  --saffron: #f2b01e;

  /* Neutrals */
  --paper: #fbf6ee;
  --paper-2: #f4ece0;
  --ink: #1b1512;
  --ink-2: #4a3f38;
  --muted: #7d7066;
  --line: rgba(27, 21, 18, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

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

/* overflow-x lives on <html>: putting it on <body> turns the body into the
   scroll container, which zeroes window.scrollY and breaks the sticky header
   state and every scroll-driven reveal. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
/* `hidden` must beat any layout rule that sets display */
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--red-deep); }

.container { width: min(1220px, 90%); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lede, .section-dark p { color: rgba(251, 246, 238, 0.72); }
.section-tint { background: var(--paper-2); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

h1 { font-size: clamp(2.9rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red);
}
.section-dark .eyebrow { color: var(--saffron); }
.section-dark .eyebrow::before { background: var(--saffron); }

.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 2rem; border: 1.5px solid transparent;
  border-radius: 100px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.on-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.on-photo .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  /* Above the mobile menu overlay so the logo and close button stay reachable. */
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  padding: 1.15rem 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(1320px, 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
/* positioned so z-index actually applies — it has to sit above the
   full-screen mobile menu overlay */
.brand { display: flex; align-items: center; gap: 0.7rem; position: relative; z-index: 110; }
.brand img { height: 46px; width: auto; transition: height 0.35s; }
.site-header.scrolled .brand img { height: 38px; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; letter-spacing: -0.01em; color: #fff;
  transition: color 0.35s;
}
.site-header.scrolled .brand-name { color: var(--ink); }
.brand .logo-dark { display: none; }
.site-header.scrolled .brand .logo-light,
.site-header.nav-open .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark,
.site-header.nav-open .brand .logo-dark { display: block; }
.site-header.nav-open .brand-name { color: var(--ink); }
.site-header.nav-open { background: transparent; box-shadow: none; }

.site-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-nav a:not(.btn) {
  color: #fff; font-size: 0.83rem; font-weight: 400;
  letter-spacing: 0.05em; position: relative; padding: 0.3rem 0;
  transition: color 0.3s;
}
.site-header.scrolled .site-nav a:not(.btn) { color: var(--ink); }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current]::after { transform: scaleX(1); }

.site-header .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.site-header .btn-ghost:hover { background: #fff; color: var(--ink); }
.site-header.scrolled .btn-ghost { color: var(--ink); border-color: var(--ink); }
.site-header.scrolled .btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 20s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,11,9,0.62) 0%, rgba(16,11,9,0.30) 26%, rgba(16,11,9,0.72) 62%, rgba(16,11,9,0.94) 100%),
    linear-gradient(90deg, rgba(16,11,9,0.78) 0%, rgba(16,11,9,0.34) 45%, rgba(16,11,9,0.06) 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1220px, 90%); margin-inline: auto;
  padding: 8rem 0 3.5rem;
}
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  text-shadow: 0 3px 40px rgba(0,0,0,0.55);
}
.hero h1 .accent { color: var(--saffron); font-style: italic; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--saffron); }
.hero-sub {
  max-width: 48ch; margin: 1.5rem 0 2.2rem;
  font-size: 1.12rem; color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.22);
  margin-top: 3rem; padding-top: 1.5rem;
  gap: 1rem;
}
.hero-fact strong {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.1;
}
.hero-fact span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.hero-fact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-fact a:hover { color: var(--saffron); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red); color: #fff;
  padding: 0.9rem 0; overflow: hidden;
  border-block: 3px solid var(--saffron);
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: scrollX 38s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  display: flex; align-items: center; gap: 2.5rem;
}
.marquee span::after { content: "◆"; font-size: 0.6rem; color: var(--saffron); }
@keyframes scrollX { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.split.wide-left { grid-template-columns: 1.15fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.15fr; }

.frame { position: relative; }
.frame img { border-radius: var(--radius); }
.frame::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 58%; height: 58%; border: 2px solid var(--green);
  border-left: 0; border-bottom: 0; border-radius: 0 var(--radius) 0 0;
  z-index: -1;
}
.frame-stack { position: relative; padding-bottom: 4rem; }
.frame-stack .shot-b {
  position: absolute; right: -4%; bottom: 0; width: 44%;
  border: 8px solid var(--paper); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(27,21,18,0.22);
  background: var(--paper); margin: 0;
}
.chef-card img { border-radius: 2px; }
.chef-card figcaption {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; line-height: 1.2; color: var(--ink);
  padding: 0.7rem 0.2rem 0.2rem;
}
.chef-card figcaption span {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-top: 0.2rem;
}
.section-dark .frame-stack .shot-b { border-color: var(--ink); }

.story-text p + p { margin-top: 1.1rem; }
.signature {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--red); margin-top: 1.5rem;
}
.section-dark .signature { color: var(--saffron); }

.checks { list-style: none; margin-top: 1.6rem; }
.checks li {
  padding: 0.7rem 0 0.7rem 2.1rem; position: relative;
  border-bottom: 1px solid var(--line);
}
.section-dark .checks li { border-color: rgba(251,246,238,0.15); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
}

/* ---------- Dish cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(27,21,18,0.12);
  border-color: var(--red);
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.55rem; flex: 1;
}
.card .card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card .price {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 600; color: var(--red); white-space: nowrap;
}
.card p { font-size: 0.94rem; color: var(--muted); }
.heat {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-deep); font-weight: 500; margin-top: auto; padding-top: 0.6rem;
}
.heat.veg { color: var(--green-deep); }
.heat.mild { color: var(--saffron); }
.heat.hot { color: var(--red); }
.heat::before { content: "●"; font-size: 0.55rem; }

.cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin-top: 3rem;
}

/* ---------- Quote ---------- */
.quote { text-align: center; }
.quote .rating-big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 0.8rem; color: var(--paper);
}
.quote .rating-big strong { color: var(--saffron); font-weight: 600; }
.quote .lede { color: rgba(251,246,238,0.75); }
.quote .lede strong { color: var(--paper); font-weight: 500; }
.quote .stars { color: var(--saffron); letter-spacing: 0.25em; margin-bottom: 1.2rem; font-size: 1.1rem; }
.quote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 0.85rem;
  grid-auto-flow: dense;
}
.g-item {
  border: none; padding: 0; cursor: zoom-in; background: var(--paper-2);
  overflow: hidden; position: relative; border-radius: var(--radius);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,14,11,0.4));
  opacity: 0; transition: opacity 0.4s;
}
.g-item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 11, 9, 0.96);
  display: grid; align-items: center; justify-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev stage next" "counter counter counter";
  gap: 1.2rem 1.4rem;
  padding: 4.5rem 1.5rem 1.8rem;
}
.lightbox[hidden] { display: none; }

.lb-stage { grid-area: stage; display: grid; place-items: center; width: 100%; height: 100%; }
.lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--radius);
  animation: lbIn 0.32s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

.lb-nav {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.lb-nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-nav.prev { grid-area: prev; }
.lb-nav.next { grid-area: next; }
/* A single image has nothing to page through. */
.lightbox.solo .lb-nav, .lightbox.solo .lb-counter { display: none; }

.lb-counter {
  grid-area: counter;
  font-family: var(--font-display); font-size: 1rem;
  color: rgba(255,255,255,0.65);
}
.lb-counter .lb-index { color: #fff; font-weight: 600; }

.lb-close {
  position: absolute; top: 1rem; right: 1.4rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lb-close:hover { background: #fff; color: var(--ink); }

@media (max-width: 780px) {
  /* Arrows drop below the image so they never sit on top of it. */
  .lightbox {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "stage stage stage" "prev counter next";
    padding: 4rem 1rem 1.4rem; gap: 0.9rem;
  }
  .lb-nav { width: 58px; height: 46px; border-radius: 100px; }
  .lb-close { top: 0.7rem; right: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-stage img { animation: none; }
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch;
}
.visit-info { display: flex; flex-direction: column; gap: 1.7rem; }
.info-block h3 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.45rem;
}
.section-dark .info-block h3 { color: var(--saffron); }
.info-block p { color: var(--ink-2); }
.section-dark .info-block p { color: rgba(251,246,238,0.78); }
.info-block a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.info-block a:hover { color: var(--red); }
.section-dark .info-block a:hover { color: var(--saffron); }
.visit-info .btn { align-self: flex-start; margin-top: auto; }

.visit-map {
  border-radius: var(--radius); overflow: hidden;
  min-height: 440px; border: 1px solid var(--line);
}
.section-dark .visit-map { border-color: rgba(251,246,238,0.18); }
.visit-map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding: 4rem 0 3rem;
}
.footer-brand img { margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(251,246,238,0.65); font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--saffron); margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(251,246,238,0.72); font-size: 0.93rem; }
.footer-col a:hover { color: var(--saffron); }
.footer-base {
  border-top: 1px solid rgba(251,246,238,0.13);
  text-align: center; padding: 1.4rem 1rem;
}
.footer-base p { font-size: 0.8rem; color: rgba(251,246,238,0.45); }
.footer-base a { color: rgba(251,246,238,0.62); }
.footer-base a:hover { color: var(--saffron); }

/* ---------- Menu page ---------- */
.page-banner {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
.page-banner-media { position: absolute; inset: 0; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,11,9,0.66) 0%, rgba(16,11,9,0.38) 40%, rgba(16,11,9,0.92) 100%),
    linear-gradient(90deg, rgba(16,11,9,0.76) 0%, rgba(16,11,9,0.32) 48%, rgba(16,11,9,0.06) 78%);
}
.page-banner-inner {
  position: relative; z-index: 2;
  width: min(1220px, 90%); margin-inline: auto; padding: 8rem 0 3rem;
}
.page-banner .eyebrow { color: #fff; }
.page-banner .eyebrow::before { background: var(--saffron); }
.page-banner h1 { text-shadow: 0 3px 40px rgba(0,0,0,0.55); }
.page-banner h1 .accent { color: var(--saffron); font-style: italic; }
.page-banner p { max-width: 52ch; margin-top: 1.2rem; color: rgba(255,255,255,0.9); }

.menu-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2.6rem;
}
.chip {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.06em; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line);
  padding: 0.55rem 1.1rem; cursor: pointer; border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.slider { position: relative; max-width: 800px; margin-inline: auto; }
.slider-stage {
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 26px 70px rgba(27,21,18,0.18);
  border: 1px solid var(--line); background: #fff;
}
.slider-stage img { width: 100%; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 54px; height: 54px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(27,21,18,0.14);
  transition: all 0.25s var(--ease);
}
.slider-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.slider-arrow.prev { left: -27px; }
.slider-arrow.next { right: -27px; }
.slider-counter {
  text-align: center; margin-top: 1.1rem;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--muted);
}
.slider-counter #slide-num { color: var(--red); font-weight: 600; }

.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.7rem; }
.thumb {
  padding: 0; background: transparent; cursor: pointer;
  border: 2px solid transparent; border-radius: 3px; overflow: hidden;
  opacity: 0.5; transition: all 0.25s var(--ease); line-height: 0;
}
.thumb img { width: 50px; height: 71px; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: var(--red); }

.menu-legal {
  text-align: center; margin-top: 2.4rem;
  font-size: 0.8rem; color: var(--muted);
}

/* Responsive copy swaps */
.on-narrow { display: none; }
@media (max-width: 780px) {
  .on-wide { display: none; }
  .on-narrow { display: inline; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border: 1px solid rgba(255,255,255,0.28); cursor: pointer;
  box-shadow: 0 10px 30px rgba(27,21,18,0.28);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-deep); }
.to-top svg { width: 19px; height: 19px; display: block; }

@media (max-width: 780px) {
  .to-top { right: 1rem; bottom: 1rem; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.2s, visibility 0.2s; transform: none; }
}

/* ---------- Reveal ---------- */
/* Only hide when JS is available to reveal it again — otherwise content stays visible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; }
  .split.flip-mobile > *:first-child { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer;
    padding: 10px 6px; margin-right: -6px;
    position: relative; z-index: 110;
  }
  .nav-toggle span {
    width: 28px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
  }
  .site-header.scrolled .nav-toggle span { background: var(--ink); }
  .nav-toggle[aria-expanded="true"] span { background: var(--ink); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Full-screen menu: large display type, generous tap targets. */
  .site-nav ul {
    position: fixed; inset: 0; z-index: 105;
    /* sits under the header bar — see .site-header z-index */
    background: var(--paper);
    flex-direction: column; justify-content: center; align-items: stretch;
    gap: 0; padding: 6rem 2rem 3rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
    overflow-y: auto;
  }
  .site-nav ul.open { opacity: 1; pointer-events: auto; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul li:last-child { border-bottom: none; padding-top: 1.6rem; }
  .site-nav ul a:not(.btn) {
    display: block; padding: 1.15rem 0;
    font-family: var(--font-display); font-weight: 600;
    font-size: 2rem; letter-spacing: -0.01em; text-transform: none;
    color: var(--ink);
  }
  .site-nav ul a:not(.btn)::after { display: none; }
  .site-nav ul.open .btn-ghost {
    display: flex; justify-content: center; width: 100%;
    color: #fff; background: var(--red); border-color: var(--red);
    font-size: 0.85rem; padding: 1.05rem 1.5rem;
  }

  /* Wordmark stays — the mark alone is too small to read. */
  .brand-name { display: block; font-size: 1.15rem; }
  .brand img { height: 38px; width: auto; }

  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-col { align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hero: the portrait image already carries its own gradient (storefront up
     top, dark below), so the CSS scrim only needs to help at the very edges. */
  .hero { min-height: 100svh; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(16,11,9,0.30) 0%, rgba(16,11,9,0) 14%, rgba(16,11,9,0) 44%, rgba(16,11,9,0.30) 60%, rgba(16,11,9,0.55) 100%);
  }
  .hero-inner { padding: 5rem 0 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.1rem); max-width: 12ch; }
  .hero-sub { font-size: 1rem; margin: 1rem 0 1.6rem; max-width: 32ch; }
  .hero-actions { gap: 0.7rem; }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.7rem; padding-top: 1.1rem; gap: 0.9rem 1rem;
  }
  .hero-fact strong { font-size: 1.12rem; }
  .hero-fact span { font-size: 0.74rem; line-height: 1.35; }

  /* Slider: arrows move out of the image into a control bar underneath. */
  .slider {
    display: grid; gap: 0.9rem;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "stage stage stage" "prev counter next";
  }
  .slider-stage { grid-area: stage; }
  .slider-arrow {
    position: static; transform: none;
    width: 56px; height: 48px; border-radius: 100px;
  }
  .slider-arrow.prev { grid-area: prev; }
  .slider-arrow.next { grid-area: next; }
  .slider-counter { grid-area: counter; margin: 0; align-self: center; }

  /* Thumbnails scroll sideways instead of wrapping into a block. */
  .thumbs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    gap: 0.45rem; padding-bottom: 0.5rem; margin-inline: -5vw;
    padding-inline: 5vw; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: 0 0 auto; scroll-snap-align: center; }
  .thumb img { width: 58px; height: 82px; }

  .frame-stack .shot-b { right: 0; width: 48%; }
  .frame::before { display: none; }
}
