/* ============================================================
   Bow River Vietnamese Restaurant — Design System
   ============================================================ */

:root {
  --bg: #0e0c0a;
  --bg-elev: #161310;
  --bg-warm: #1c1814;
  --ink: #f5efe6;
  --ink-dim: #b8ad9c;
  --ink-muted: #7a7163;
  --gold: #c8a55b;
  --gold-bright: #e6c478;
  --rust: #8a3a1f;
  --line: rgba(200, 165, 91, 0.18);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6);
  --max: 1280px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

/* ----------------------------- Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 3px;
}

.display { font-size: clamp(2.6rem, 6.5vw, 5.6rem); font-style: italic; font-weight: 300; }
.h2     { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.h3     { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.55;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  margin: 8px 0 24px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--line);
}

/* ----------------------------- Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ----------------------------- Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 32px;
  border-bottom-color: var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-brand span { color: var(--gold); font-style: italic; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  width: 28px; height: 22px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------- Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,12,10,0.55) 0%, rgba(14,12,10,0.4) 40%, rgba(14,12,10,0.95) 100%),
              linear-gradient(90deg, rgba(14,12,10,0.7) 0%, rgba(14,12,10,0.2) 60%);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s var(--ease) infinite alternate;
}
@keyframes heroZoom {
  to { transform: scale(1.15); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
}
.hero-est {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: 12ch;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
  display: block;
}
.hero-sub {
  max-width: 42ch;
  color: var(--ink-dim);
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: var(--sans);
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(245, 239, 230, 0.4); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----------------------------- Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink-dim);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 80px; }
.marquee-track span::after { content: "✦"; color: var(--gold); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----------------------------- Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.story-text .h2 { margin: 16px 0 28px; }
.story-text p { color: var(--ink-dim); margin-bottom: 20px; max-width: 52ch; }
.story-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.story-meta .num {
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.story-meta .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
}
.story-media {
  position: relative;
  height: 640px;
}
.story-media .img-a, .story-media .img-b {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-media .img-a {
  top: 0; left: 0;
  width: 70%; height: 70%;
}
.story-media .img-b {
  bottom: 0; right: 0;
  width: 55%; height: 55%;
  border: 8px solid var(--bg);
}
.story-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story-media:hover img { transform: scale(1.04); }

/* ----------------------------- Signature dishes */
.signature {
  background: var(--bg-elev);
  position: relative;
}
.signature-head {
  text-align: center;
  margin-bottom: 80px;
}
.signature-head .h2 { margin: 16px 0 20px; }
.signature-head p { color: var(--ink-dim); max-width: 56ch; margin: 0 auto; }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.dish {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-warm);
}
.dish-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.dish-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dish:hover .dish-img img { transform: scale(1.08); }
.dish-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,12,10,0.95) 100%);
}
.dish-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}
.dish-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.dish-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 8px;
  line-height: 1.15;
}
.dish-desc {
  font-size: 13px;
  color: var(--ink-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease);
}
.dish:hover .dish-desc { max-height: 100px; opacity: 1; margin-top: 8px; }

/* ----------------------------- Pull quote */
.quote {
  text-align: center;
  padding: clamp(100px, 14vw, 180px) 0;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  max-width: 22ch;
  margin: 0 auto 32px;
  position: relative;
}
.quote blockquote::before {
  content: "“";
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}
.quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ----------------------------- Experience strip */
.experience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-card {
  padding: 64px 48px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.exp-card:last-child { border-right: none; }
.exp-card .icon {
  width: 48px; height: 48px;
  margin: 0 auto 24px;
  color: var(--gold);
}
.exp-card h3 { margin-bottom: 12px; }
.exp-card p { color: var(--ink-dim); font-size: 14px; }

/* ----------------------------- Visit / footer */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.visit-info .h2 { margin: 16px 0 32px; }
.info-block { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: none; }
.info-block .label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.info-block p, .info-block a { color: var(--ink); font-size: 1.05rem; }
.info-block a:hover { color: var(--gold); }
.visit-img {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}
.visit-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ----------------------------- Footer */
footer {
  background: #080706;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand span { color: var(--gold); font-style: italic; }
.footer p, .footer a { font-size: 14px; color: var(--ink-dim); }
.footer a:hover { color: var(--gold); }
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ----------------------------- Menu page */
.page-hero {
  height: 60vh;
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,10,0.6), rgba(14,12,10,0.85));
}
.page-hero-inner { position: relative; z-index: 2; padding-top: 80px; }
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 300;
  margin: 16px 0;
}
.page-hero p { color: var(--ink-dim); max-width: 50ch; margin: 0 auto; }

.menu-section {
  padding: clamp(80px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.menu-section:last-child { border-bottom: none; }
.menu-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
  align-items: end;
}
.menu-head .h2 { margin: 12px 0 0; }
.menu-head p { color: var(--ink-dim); }
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
}
.menu-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}
.menu-item-img {
  width: 96px; height: 96px;
  overflow: hidden;
  flex-shrink: 0;
}
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.menu-item:hover .menu-item-img img { transform: scale(1.08); }
.menu-item-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.menu-item-name .price { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.menu-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }

/* ----------------------------- Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .5s; }

/* ----------------------------- Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elev);
    padding: 32px;
    gap: 24px;
    border-top: 1px solid var(--line);
  }
  .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .story-media { height: 500px; }
  .dish-grid { grid-template-columns: 1fr; }
  .experience { grid-template-columns: 1fr; }
  .exp-card { border-right: none; border-bottom: 1px solid var(--line); }
  .exp-card:last-child { border-bottom: none; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-img { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .menu-head { grid-template-columns: 1fr; gap: 24px; }
  .menu-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .container { padding: 0 22px; }
  .nav { padding: 16px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .story-meta { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 72px 1fr; gap: 16px; }
  .menu-item-img { width: 72px; height: 72px; }
}
