/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.7s ease both;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --card-bg:    #161616;
  --border:     #2a2a2a;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f5f0e8;
  --text:       #e0d8cc;
  --text-muted: #888880;
  --white:      #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: 7rem 2rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 2rem;
}

.centered { text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-outline {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1px solid rgba(201,168,76,0.6);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  transition: background 0.3s, color 0.3s;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

/* =============================================
   MOBILE MENU OVERLAY (body-level, escapes navbar stacking context)
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 0;
  margin: 0;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold-light); }

.mobile-menu-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  padding: 0.4rem;
}
.mobile-menu-close:hover { opacity: 1; color: var(--gold-light); }
.mobile-menu-close svg { width: 28px; height: 28px; display: block; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 2rem;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* Slideshow */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

/* object-position set dynamically via JS focal-point algorithm */

@keyframes kenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.06); }
}

/* Desktop: portrait images shown in landscape viewport — use contain so
   the full photo is visible; dark hero background fills the sides */
@media (min-width: 1024px) {
  #hero {
    background: var(--black);
  }
  .hero-img {
    object-fit: contain;
    object-position: center center;
  }
  @keyframes kenBurns {
    from { transform: scale(1);    }
    to   { transform: scale(1.04); }
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.28) 45%,
    rgba(10,10,10,0.88) 100%
  );
}

/* Slide dots */
.hero-dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem 7.5rem;
  animation: fadeUp 1.2s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1.1rem;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 1.1rem;
  border-radius: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 0.7rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}


/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: var(--section-pad);
  background: var(--dark);
}

.about-grid {
  max-width: 780px;
  margin: 0 auto;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 0.8rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  line-height: 1.5;
}

/* =============================================
   RESTAURANTS
   ============================================= */
#restaurants {
  padding: var(--section-pad);
  background: var(--black);
}

#restaurants .section-heading.centered {
  margin-bottom: 4rem;
}

.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.restaurant-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.restaurant-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.4);
}

.restaurant-card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  padding: 1.5rem 2rem 0;
}

.restaurant-card-body {
  padding: 2rem;
}

.restaurant-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.restaurant-sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.restaurant-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.restaurant-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold);
}

.restaurant-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.restaurant-highlight {
  font-size: 0.8rem !important;
  color: var(--gold) !important;
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* =============================================
   PHILOSOPHY
   ============================================= */
#philosophy {
  padding: var(--section-pad);
  background: var(--black);
}

.philosophy-content {
}

.philosophy-content .section-heading {
  margin-bottom: 3.5rem;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.philosophy-col h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.philosophy-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =============================================
   RECOGNITION
   ============================================= */
#recognition {
  padding: var(--section-pad);
  background: var(--dark);
}

#recognition .section-heading.centered {
  margin-bottom: 3rem;
}

/* Featured James Beard card */
.recognition-featured {
  background: linear-gradient(135deg, #1a1508 0%, var(--card-bg) 100%);
  border: 1px solid rgba(201,168,76,0.5);
  padding: 3rem;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.recognition-star {
  color: var(--gold);
  margin-bottom: 1rem;
}
.recognition-star svg { width: 36px; height: 36px; }

.recognition-year {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.recognition-featured h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.recognition-category {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.recognition-featured > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.recognition-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.recognition-link:hover { color: var(--cream); border-color: var(--cream); }

/* Press grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.press-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
}
.press-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}

.press-outlet {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.press-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.press-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* =============================================
   FOOTER
   ============================================= */
#contact {
  background: var(--dark);
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-inner h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-restaurant-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer-restaurant-col a {
  color: var(--gold-light);
  transition: color 0.2s;
}
.footer-restaurant-col a:hover { color: var(--gold); }
.footer-inner h4 a {
  color: var(--gold);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.footer-inner h4 a:hover { color: var(--cream); }

.footer-hours {
  font-size: 0.8rem !important;
  color: var(--text-muted);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.footer-bottom {
  padding-top: 1.8rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .restaurants-grid { grid-template-columns: 1fr 1fr; }
  .recognition-grid { grid-template-columns: 1fr 1fr; }
  .recognition-card.featured { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem 1.5rem; }
  /* object-position handled dynamically by JS */

  .nav-links { display: none; }
  .nav-hamburger { display: flex; z-index: 201; }

  .restaurants-grid { grid-template-columns: 1fr; }
  .philosophy-columns { grid-template-columns: 1fr; gap: 2rem; }
  .press-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 3rem; }
}
