/* ── Design tokens ── */
:root {
  --primary: #8b0000;
  --on-primary: #ffffff;
  --surface: #fefccf;
  --surface-white: #ffffff;
  --surface-dim: #dedcb1;
  --surface-container: #f2f0c3;
  --on-surface: #1c1c16;
  --on-surface-variant: #49473a;
  --outline: #7a7768;
  --outline-variant: #cbc7b6;
  --font: 'EB Garamond', serif;
  --nav-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2rem;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
nav.scrolled {
  background: var(--primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255,200,80,0.5));
  transition: filter 0.35s ease;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 18px rgba(255,200,80,0.85)) drop-shadow(0 0 6px rgba(255,230,140,0.6));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #ffffff; }
.nav-book {
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 8px 18px;
  margin-left: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.nav-book:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

/* Nav text legibility over parchment backgrounds */
.nav-links a,
.nav-book {
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
nav.scrolled .nav-links a,
nav.scrolled .nav-book {
  text-shadow: none;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.2rem;
  }
  .nav-mobile-open .nav-links { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-book { display: none; }
}

/* ── Footer ── */
footer {
  background: var(--primary);
  color: #ffffff;
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo img {
  width: 100%;
  height: auto;
  max-width: 260px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255,200,80,0.5));
  transition: filter 0.35s ease;
}
.footer-logo img:hover {
  filter: drop-shadow(0 0 18px rgba(255,200,80,0.85)) drop-shadow(0 0 6px rgba(255,230,140,0.6));
}
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ffffff; }
.footer-col p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #ffffff; }
.btn-white {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; }

/* ── Phone CTA card ── */
.phone-cta-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.phone-cta-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}
.phone-cta-label {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.phone-cta-number {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
}
.section-title--white { color: #ffffff; }
.section { padding: 5rem 0; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #1c1b1b;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Featured Dishes ── */
.featured {
  background: #1c1b1b;
  padding: 5rem 0;
  position: relative;
}
.featured-header {
  text-align: center;
  margin-bottom: 3rem;
}
/* ── Chef's Specials Spotlight ── */
.spotlight {
  overflow: hidden;
  border-top: 1px solid rgba(254,252,207,0.06);
}
.sp-stage {
  display: flex;
  width: 100%;
  min-height: 420px;
  will-change: transform;
}
.sp-stage.flipped {
  flex-direction: row-reverse;
}
.sp-left {
  width: 35%;
  flex-shrink: 0;
  padding: 3rem 2.5rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(254,252,207,0.06);
  border-left: none;
  text-align: right;
}
.sp-stage.flipped .sp-left {
  border-right: none;
  border-left: 1px solid rgba(254,252,207,0.06);
  padding: 3rem 3.5rem 3rem 2.5rem;
  text-align: left;
}
.sp-stage.flipped .sp-desc { margin-left: 0; }
.sp-stage.flipped .sp-nav  { justify-content: flex-start; }
.sp-counter {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(254,252,207,0.25);
  margin-bottom: 1rem;
  display: block;
}
.sp-cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}
.sp-zh {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--primary);
  display: block;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}
.sp-en {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  color: #fefccf;
  display: block;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.sp-desc {
  font-size: 0.88rem;
  color: rgba(254,252,207,0.52);
  font-style: italic;
  line-height: 1.78;
  margin-bottom: 1rem;
  max-width: 28ch;
  margin-left: auto;
}
.sp-price {
  font-size: 0.72rem;
  color: rgba(254,252,207,0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: block;
}
.sp-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}
.sp-menu-btn {
  margin-top: 1.5rem;
  align-self: flex-end;
  font-size: 0.72rem;
  padding: 9px 20px;
}
.sp-stage.flipped .sp-menu-btn {
  align-self: flex-start;
}
.sp-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.sp-dot {
  width: 24px;
  height: 3px;
  background: rgba(254,252,207,0.18);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.sp-dot--active {
  background: var(--primary);
  width: 32px;
}
.sp-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.sp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sp-right:hover .sp-photo {
  transform: scale(1.05);
}
.sp-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(254,252,207,0.25);
  background: rgba(0,0,0,0.55);
  color: #fefccf;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}
.sp-arrow:hover {
  background: rgba(139,0,0,0.7);
  border-color: var(--primary);
}
.sp-arrow--mobile { display: none; }
.sp-edge-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #8b0000;
  width: 36px;
  height: 64px;
  border: none;
  color: #fefccf;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}
.sp-edge-btn:hover { background: #a00000; }
#sp-prev { left: 0; border-radius: 0 3px 3px 0; }
#sp-next { right: 0; border-radius: 3px 0 0 3px; }

@media (max-width: 700px) {
  .sp-stage {
    flex-direction: column;
    min-height: auto;
  }
  .sp-stage.flipped {
    flex-direction: column;
  }
  .sp-left {
    width: 100%;
    border-right: none;
    border-top: 1px solid rgba(254,252,207,0.06);
    padding: 1.75rem 1.5rem 2rem;
    order: 2;
    justify-content: flex-start;
  }
  .sp-stage.flipped .sp-left {
    border-left: none;
    border-top: 1px solid rgba(254,252,207,0.06);
    padding: 1.75rem 1.5rem 2rem;
  }
  .sp-right {
    order: 1;
    min-height: 240px;
    flex: none;
  }
  .sp-desc { max-width: 100%; }
  .sp-edge-btn { display: none; }
  .sp-arrow--mobile { display: flex; }
}

/* ── Heritage ── */
.heritage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.heritage-text p {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.8;
}
.heritage-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .heritage-inner { grid-template-columns: 1fr; }
  .heritage-img { order: -1; }
  .heritage-img img { height: 260px; }
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--primary);
  padding: 5rem 0;
}

/* ── About page ── */
.page-quote-hero {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--nav-height);
}
.page-quote-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-quote-hero .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.page-quote-hero blockquote {
  position: relative; z-index: 1;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #ffffff;
  max-width: 700px;
  padding: 2rem;
  line-height: 1.5;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-text p { color: var(--on-surface-variant); line-height: 1.9; margin-top: 1rem; font-size: 1.05rem; }
.story-img img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 768px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-img img { height: 260px; }
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }
.value-item { text-align: center; padding: 2rem 1rem; }
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-item h3 { font-size: 1.1rem; font-weight: 600; color: var(--on-surface); margin-bottom: 0.5rem; }
.value-item p { color: var(--on-surface-variant); font-size: 0.95rem; line-height: 1.7; }

/* ── Catering section ── */
.catering-section { background: #1c1b1b; }
.catering-header { text-align: center; margin-bottom: 2.5rem; }
.catering-body {
  max-width: 740px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.catering-body p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  text-align: center;
}
.catering-pillars .value-item h3 { color: #fefccf; }
.catering-pillars .value-item p { color: rgba(255,255,255,0.65); }

/* ── Contact page ── */
.contact-hero {
  background: var(--surface-white);
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--outline-variant);
}
.contact-hero p { color: var(--on-surface-variant); margin-top: 0.5rem; font-size: 1.1rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}
.contact-detail-value {
  font-size: 1.1rem;
  color: var(--on-surface);
  line-height: 1.6;
}
.contact-detail-value a { color: var(--on-surface); border-bottom: 1px solid var(--outline-variant); }
.contact-detail-value a:hover { border-bottom-color: var(--primary); color: var(--primary); }
.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 4px;
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1),
              transform 0.7s cubic-bezier(.4,0,.2,1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-delay="75"]  { transition-delay: 75ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="225"] { transition-delay: 225ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }

/* Hero page-load keyframe */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Home hero — staggered load animation */
.hero-content .eyebrow     { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 0ms   both; }
.hero-content h1           { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 150ms both; }
.hero-content p            { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 300ms both; }
.hero-content .btn-primary { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 450ms both; }
.hero-scroll-hint          { animation: heroReveal 0.8s ease                    650ms both; }

/* Menu hero — staggered load animation */
.menu-hero-content .eyebrow { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 0ms   both; }
.menu-hero-content h1       { animation: heroReveal 0.8s cubic-bezier(.4,0,.2,1) 150ms both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .hero-content .eyebrow, .hero-content h1, .hero-content p,
  .hero-content .btn-primary, .hero-scroll-hint,
  .menu-hero-content .eyebrow, .menu-hero-content h1 {
    animation: none;
    opacity: 1;
  }
  .hero-slide { transition: none; }
  .sp-stage { transition: none; }
}

/* ── Tiled gallery (2×5 desktop, 2-col mobile) ── */
.gallery-section {
  padding: 0;
  overflow: hidden;
}
.gallery-tiled {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.gallery-tiled-item {
  overflow: hidden;
}
.gallery-tiled-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-tiled-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 640px) {
  .gallery-tiled {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Gathering / Restaurant section ── */
.gathering-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
}
.gathering-photo-wrap {
  overflow: hidden;
}
.gathering-photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gathering-photo-wrap:hover img {
  transform: scale(1.05);
}
.gathering-body {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gathering-body p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  text-align: center;
}
@media (max-width: 640px) {
  .gathering-photos { grid-template-columns: 1fr; }
}

/* ── Contact phone prominence ── */
.contact-phone-big {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  display: block;
  margin: 0.5rem 0 1.25rem;
  text-decoration: none;
}
.contact-phone-big:hover {
  text-decoration: underline;
}

/* ── Footer socials ── */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
}
