/* ============================================================
   VIVA Rooftop & Restaurant — cinematic scroll edition
   Brand: charcoal/cream/teal + sunset orange/coral/gold
   ============================================================ */

:root {
  --charcoal: #141414;
  --charcoal-soft: #1d1c1a;
  --cream: #faf6f0;
  --cream-dim: #e9e2d6;
  --cream-muted: #b8b2a8;
  --teal: #2e6f62;
  --teal-light: #7cc0b0;
  --sunset: #ff6b35;
  --coral: #ff8a66;
  --gold: #e8b04b;
  --dusk: #43285c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-light); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(20, 20, 20, 0.9);
}
::selection { background: var(--sunset); color: var(--charcoal); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 120;
  transform: translateY(-300%);
  background: var(--charcoal); color: var(--cream);
  padding: 0.7rem 1.2rem; border-radius: 10px;
  border: 2px solid var(--gold);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { position: relative; padding-block: clamp(4.5rem, 11vh, 8rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.h-display { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.015em; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream-muted); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.75rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn-primary { background: var(--sunset); color: var(--charcoal); }
.btn-primary:hover { background: var(--coral); box-shadow: 0 6px 30px rgba(255, 107, 53, 0.35); }
.btn-ghost { background: rgba(20, 20, 20, 0.25); color: var(--cream); border-color: rgba(250, 246, 240, 0.55); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250, 246, 240, 0.08); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.2rem; font-size: 0.9rem; }

/* ---------- Fixed chrome ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.65) 0%, transparent 100%);
  transition: background 300ms ease;
}
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: 0.65rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
  border: 1px solid transparent;
  transition: background 350ms ease, border-color 350ms ease, border-radius 350ms ease,
              margin 350ms ease, padding 350ms ease, box-shadow 350ms ease,
              -webkit-backdrop-filter 350ms ease, backdrop-filter 350ms ease;
}

/* iOS-style liquid glass capsule — always on, hugs its content */
.nav.glass { background: transparent; }
.nav.glass .nav-inner {
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  margin: 0.6rem auto 0;
  padding: 0.4rem clamp(0.7rem, 2vw, 1.1rem);
  gap: clamp(0.7rem, 1.6vw, 1.3rem);
  border-radius: 999px;
  background: rgba(26, 25, 23, 0.36);
  -webkit-backdrop-filter: blur(26px) saturate(1.85);
  backdrop-filter: blur(26px) saturate(1.85);
  border-color: rgba(250, 246, 240, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.nav.glass .nav-links { gap: clamp(0.7rem, 1.6vw, 1.3rem); margin-left: 0; }
.nav.glass .nav-links a { text-shadow: none; white-space: nowrap; }
.nav.glass .nav-cta { margin-left: 0; }
.nav-logo img { height: 3.2rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.6rem; margin-left: auto; list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.1rem; border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }
.nav-cta { margin-left: auto; }
@media (min-width: 64rem) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* mobile bottom bar */
.action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: flex; gap: 0.6rem;
  padding: 0.6rem max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(20, 20, 20, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(250, 246, 240, 0.1);
}
.action-bar .btn { flex: 1; white-space: nowrap; font-size: 0.95rem; padding-inline: 1rem; }
@media (min-width: 64rem) { .action-bar { display: none; } }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; }
.cine-hero { height: 520vh; }
.cine-dish { height: 420vh; }
.sticky-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid; place-items: center;
  background: #0b0b10;
}
.sticky-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.cine-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 48%, rgba(8, 6, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 6, 10, 0.5) 0%, transparent 22%, transparent 72%, rgba(8, 6, 10, 0.66) 100%);
}

/* scroll-synced overlay lines */
.overlay { position: relative; z-index: 10; width: 100%; text-align: center; padding: 0 24px; }
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: min(92vw, 56rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
  opacity: 0;
  text-shadow: 0 4px 50px rgba(8, 6, 10, 0.75);
  will-change: opacity, transform;
  text-wrap: balance;
}
.reveal-line em { font-style: italic; color: var(--gold); }
.reveal-line .sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  margin-top: 1.1rem;
  white-space: normal;
  max-width: 86vw;
  margin-inline: auto;
}

/* corner captions */
.cine-tag {
  position: absolute; z-index: 12;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(250, 246, 240, 0.85);
  text-shadow: 0 1px 12px rgba(8, 6, 10, 0.6);
}
.cine-tag.tl { top: 5.5rem; left: 28px; }
.cine-tag.tr { top: 5.5rem; right: 28px; color: var(--gold); }

/* progress + hint */
.progress {
  position: absolute; left: 28px; right: 28px; bottom: 44px;
  height: 2px;
  background: rgba(250, 246, 240, 0.16);
  z-index: 12;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--sunset));
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}
.scroll-hint {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(250, 246, 240, 0.7);
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Regular sections ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

.story-band { background: linear-gradient(180deg, #0b0b10 0%, var(--charcoal) 100%); }
.story-band .pull {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem; margin: 1.75rem 0;
  max-width: 50ch;
}
.story-band p { color: var(--cream-dim); max-width: 68ch; margin-bottom: 1rem; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--gold);
  display: block;
}
.stat-label { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-muted); }

/* ============================================================
   THE MAKERS — the people behind VIVA
   ============================================================ */
.makers { display: grid; gap: clamp(3rem, 7vw, 5.5rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.maker { display: grid; gap: clamp(1.6rem, 4vw, 3.25rem); align-items: center; }
@media (min-width: 64rem) {
  .maker { grid-template-columns: 0.9fr 1.1fr; }
  .maker.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .maker.reverse .maker-portrait { order: 2; }
}
.maker-portrait {
  position: relative; margin: 0; aspect-ratio: 1;
  border-radius: 18px; overflow: hidden;
  background: var(--charcoal-soft);
  outline: 1px solid rgba(232, 176, 75, 0.30); outline-offset: 7px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}
.maker-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.maker:hover .maker-portrait img { transform: scale(1.04); }
.maker .eyebrow { margin-bottom: 0; }
.maker-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.0;
  margin: 0.55rem 0 0;
}
.maker-name::after {
  content: ""; display: block; width: 3.25rem; height: 1px; margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.maker-body { margin-top: 1.5rem; }
.maker-body p { color: var(--cream-dim); max-width: 54ch; margin-bottom: 1rem; }
.maker-body p:last-child { margin-bottom: 0; }
/* tighten the Story → Chef transition and add a clear divider between the two */
#story { padding-bottom: clamp(3rem, 6vh, 4.5rem); }
#makers { padding-top: clamp(2.5rem, 5vh, 3.5rem); }
#makers .container::before {
  content: ""; display: block; height: 1px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(90deg, transparent, rgba(232, 176, 75, 0.5), transparent);
}

/* dish grid */
.dish-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 64rem) { .dish-row { grid-template-columns: repeat(4, 1fr); } }
.dish-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--charcoal-soft); }
.dish-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 72%;
  transition: transform 500ms ease;
}
.dish-card:hover img { transform: scale(1.045); }
.dish-card figcaption {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  height: 100%; padding: 1rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.85) 100%);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.badge {
  display: inline-flex; align-items: center;
  padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid rgba(124, 192, 176, 0.4);
  color: var(--teal-light); font-size: 0.88rem; font-weight: 500;
}

/* amenities strip */
.amenity-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1.6rem;
  list-style: none; margin-top: 2.5rem;
}
@media (min-width: 64rem) { .amenity-row { grid-template-columns: repeat(3, 1fr); } }
.amenity-row li { display: flex; gap: 0.85rem; align-items: flex-start; }
.amenity-row svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--teal-light); margin-top: 0.15rem; }
.amenity-row strong { display: block; font-weight: 600; }
.amenity-row small { color: var(--cream-muted); font-size: 0.88rem; }

/* ratings */
.rating-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.rating-badge {
  display: block; text-align: center; text-decoration: none;
  padding: 1.4rem 1rem; border-radius: 14px;
  background: var(--charcoal-soft);
  border: 1px solid rgba(250, 246, 240, 0.1);
  color: var(--cream);
  transition: border-color 200ms ease;
}
.rating-badge:hover { border-color: var(--gold); }
.rating-badge .score { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--gold); display: block; }
.rating-badge .src { font-size: 0.88rem; font-weight: 600; display: block; margin-top: 0.3rem; }
.rating-badge .cnt { font-size: 0.78rem; color: var(--cream-muted); }

/* visit */
.visit-band { background: var(--charcoal-soft); }
.visit-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 64rem) { .visit-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.info-list { list-style: none; display: grid; gap: 0.9rem; color: var(--cream-dim); }
.info-list a { color: var(--cream); }
.info-list a:hover { color: var(--gold); }
.faq-item {
  border: 1px solid rgba(250, 246, 240, 0.12);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  background: var(--charcoal);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1;
  color: var(--gold); flex: none;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--cream-muted); font-size: 0.95rem; }

/* footer */
.footer {
  background: #0e0e0e;
  border-top: 1px solid rgba(250, 246, 240, 0.08);
  padding: 3.5rem 0 7rem;
  color: var(--cream-muted);
  font-size: 0.92rem;
}
@media (min-width: 64rem) { .footer { padding-bottom: 3.5rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
.footer-logo { height: 4rem; width: auto; margin-bottom: 1rem; }
.footer-echo { font-family: var(--font-display); font-style: italic; color: var(--cream-dim); font-size: 1.1rem; }
.footer-heading { color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a { color: var(--cream-muted); text-decoration: none; transition: color 180ms ease; }
.footer a:hover { color: var(--gold); }
.footer ul.footer-social { display: flex; gap: 0.9rem; margin-top: 1.1rem; }
.footer-social a { display: inline-flex; padding: 0.55rem; border: 1px solid rgba(250, 246, 240, 0.18); border-radius: 50%; color: var(--cream-muted); transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); background: rgba(232, 176, 75, 0.08); }
.footer-social svg { width: 1.15rem; height: 1.15rem; display: block; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 240, 0.08);
  font-size: 0.82rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.footer-legal .credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-legal .credit a:hover { text-decoration: underline; }

/* ---------- Mobile polish ---------- */
@media (max-width: 47.99rem) {
  .cine-hero { height: 380vh; }
  .cine-dish { height: 300vh; }
  .reveal-line { font-size: clamp(2rem, 9.5vw, 2.9rem); }
  .reveal-line .sub { font-size: 0.9rem; letter-spacing: 0.03em; }
  .cine-tag { font-size: 0.62rem; letter-spacing: 0.2em; }
  .cine-tag.tl { top: 4.6rem; left: 16px; }
  .cine-tag.tr { top: 4.6rem; right: 16px; }
  /* keep the scrub chrome clear of the bottom action bar */
  .progress { left: 16px; right: 16px; bottom: 6.2rem; }
  .scroll-hint { bottom: 5rem; }
  .nav-logo img { height: 2.6rem; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
