/* Restaurant Alphitta Design System */
:root {
  --font-serif: "Playfair Display", "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --color-stone-900: #161716;
  --color-stone-850: #1e201d;
  --color-stone-800: #292c27;
  --color-stone-700: #3c4039;
  --color-stone-600: #575c53;
  --color-stone-400: #93978e;
  --color-stone-300: #cbcec6;
  --color-stone-200: #e2e4dc;
  --color-stone-100: #f1f2ec;
  --color-stone-50:  #f8f9f5;
  
  --color-pine: #28392e;
  --color-pine-dark: #1b261f;
  --color-bronze: #ab7f4e;
  --color-bronze-light: #c89d6e;
  --color-gold: #c5a059;
  
  --site-max-w: 1280px;
  --header-h: 76px;
  --radius-sm: 3px;
  --radius-md: 6px;
  
  --ease-natural: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-stone-900);
  color: var(--color-stone-100);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-stone-900);
  color: var(--color-stone-100);
  overflow-x: hidden;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-stone-200);
  font-size: 1.05rem;
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--color-stone-100);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--site-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
}

.section-pad {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-pad-sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, transform 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 23, 22, 0.85) 0%, rgba(22, 23, 22, 0.5) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled {
  background: rgba(22, 23, 22, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-badge .alt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.brand-badge .loc {
  font-size: 0.85rem;
  color: var(--color-stone-300);
  font-family: var(--font-serif);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-stone-200);
  position: relative;
  padding: 0.35rem 0;
}

.nav-desktop a:hover, .nav-desktop a.active {
  color: #fff;
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-bronze) 0%, var(--color-pine) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-bronze-light) 0%, var(--color-pine) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-stone-900);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: #d6b46f;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 17, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1050;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) 2rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-stone-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.mobile-nav-links a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section (Memory Point & First Viewport) */
.hero-scene {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background-color: var(--color-stone-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-natural);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 23, 22, 0.4) 0%,
    rgba(22, 23, 22, 0.2) 40%,
    rgba(22, 23, 22, 0.75) 85%,
    rgba(22, 23, 22, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-lockup {
  max-width: 820px;
}

.hero-pacing-line {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--color-stone-100);
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-stone-300);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2rem;
}

.hero-scroll-cue svg {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Split Showcase & Environmental Grids */
.grid-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.grid-split > * {
  min-width: 0;
  max-width: 100%;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-natural);
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 23, 22, 0.88) 100%);
  font-size: 0.85rem;
  color: var(--color-stone-200);
  display: flex;
  justify-content: space-between;
}

/* Feature Cards / Atmospheric Sections */
.bg-subtle {
  background-color: var(--color-stone-850);
}

.bg-pine-ambient {
  background: linear-gradient(180deg, var(--color-stone-900) 0%, var(--color-pine-dark) 50%, var(--color-stone-900) 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-stone-800);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.feature-card .card-badge {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  color: #fff;
}

.feature-card p {
  color: var(--color-stone-300);
  font-size: 0.98rem;
  flex-grow: 1;
}

/* Gallery Component with Touch Swipe & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-natural);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 22, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 13, 12, 0.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--color-stone-200);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  position: absolute;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Arrival Route Cards */
.route-card {
  background-color: var(--color-stone-850);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
  padding: clamp(1.2rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease;
  overflow-wrap: break-word;
}

.route-card:hover {
  transform: translateX(4px);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.route-header h3 {
  margin-bottom: 0;
  color: #ffffff;
}

.route-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  font-weight: 600;
}

/* Webcam Embed Container */
.webcam-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-stone-850);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.webcam-frame {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

.webcam-fallback {
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  background-color: var(--color-stone-800);
  box-sizing: border-box;
}

/* Event Conditions & Reservation Notice */
.conditions-panel {
  background: rgba(40, 57, 46, 0.25);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.conditions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.conditions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-stone-100);
}

.conditions-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  margin-top: 0.2rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-stone-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-stone-300);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-stone-400);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--color-stone-200);
}

/* Responsive Rules for Tablet & Mobile */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .mobile-menu-overlay {
    display: flex;
  }
  
  .grid-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  
  .grid-split > * {
    width: 100%;
    min-width: 0;
  }
  
  .hero-scene {
    min-height: 74svh;
    padding-bottom: 2.5rem;
  }
  
  .header-actions .btn-lunch {
    display: none;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }
  
  .conditions-panel {
    padding: 1.25rem 1rem;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-img {
    transform: none !important;
  }
}
