/* ========================================
   CANELA — Design System & Components
   ======================================== */

/* --- Design Tokens --- */
:root,
[data-theme='light'] {
  /* Surfaces — Canela Warm Palette */
  --color-bg: #F7F3ED;
  --color-surface: #FBF9F5;
  --color-surface-2: #FFFFFF;
  --color-surface-offset: #F2EBE2;
  --color-surface-offset-2: #ECE3D7;
  --color-surface-dynamic: #E6DBCC;
  --color-divider: #DFD4C5;
  --color-border: #D2C4B2;
  --color-overlay: rgba(247, 243, 237, 0.85);

  /* Text — Chocolate & Warm Tones */
  --color-text: #3D2B1F;
  --color-text-muted: #8B7B6E;
  --color-text-faint: #C4B5A8;
  --color-text-inverse: #F7F3ED;

  /* Primary — Terracotta / Copper */
  --color-primary: #B8623A;
  --color-primary-hover: #A0522D;
  --color-primary-active: #8B4513;
  --color-primary-highlight: #F0E0D5;
  --color-accent: #C8854E;

  /* Secondary — Olive Green */
  --color-secondary: #6B7B4A;
  --color-secondary-hover: #5A6A3E;

  /* Warm Brown for dark sections */
  --color-deep-brown: #2A1F17;
  --color-deep-brown-2: #362920;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — warm-toned */
  --shadow-sm: 0 1px 3px oklch(0.3 0.03 50 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.3 0.03 50 / 0.1);
  --shadow-lg: 0 16px 48px oklch(0.3 0.03 50 / 0.15);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
  --text-hero: clamp(3.5rem, 1rem + 9vw, 9rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --header-height: 72px;
  --announcement-height: 44px; /* fallback; measured at runtime in app.js */
}

[data-theme='dark'] {
  --color-bg: #1C1510;
  --color-surface: #231A14;
  --color-surface-2: #2A2018;
  --color-surface-offset: #251C16;
  --color-surface-offset-2: #2E241C;
  --color-surface-dynamic: #382C22;
  --color-divider: #2E241C;
  --color-border: #3D3024;
  --color-overlay: rgba(28, 21, 16, 0.85);

  --color-text: #E8DFD5;
  --color-text-muted: #A89484;
  --color-text-faint: #6B5D52;
  --color-text-inverse: #1C1510;

  --color-primary: #C8854E;
  --color-primary-hover: #D4955E;
  --color-primary-active: #B8753E;
  --color-primary-highlight: #3D2E24;
  --color-accent: #D4955E;
  --color-secondary: #8B9B6A;

  --color-deep-brown: #0F0B08;
  --color-deep-brown-2: #1A130E;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1C1510;
    --color-surface: #231A14;
    --color-surface-2: #2A2018;
    --color-surface-offset: #251C16;
    --color-surface-offset-2: #2E241C;
    --color-surface-dynamic: #382C22;
    --color-divider: #2E241C;
    --color-border: #3D3024;
    --color-overlay: rgba(28, 21, 16, 0.85);
    --color-text: #E8DFD5;
    --color-text-muted: #A89484;
    --color-text-faint: #6B5D52;
    --color-text-inverse: #1C1510;
    --color-primary: #C8854E;
    --color-primary-hover: #D4955E;
    --color-primary-active: #B8753E;
    --color-primary-highlight: #3D2E24;
    --color-accent: #D4955E;
    --color-secondary: #8B9B6A;
    --color-deep-brown: #0F0B08;
    --color-deep-brown-2: #1A130E;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.5);
  }
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
}

.section-tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-20));
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition:
    background 400ms var(--ease-out),
    box-shadow 400ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.site-header--scrolled {
  background: var(--color-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition-interactive);
}

.site-header--scrolled .nav-logo {
  color: var(--color-text);
}

.nav-logo-img {
  height: 56px;
  width: auto;
  transition: opacity var(--transition-interactive);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  padding-block: var(--space-1);
}

.site-header--scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-interactive);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: color var(--transition-interactive);
}

.site-header--scrolled .theme-toggle {
  color: var(--color-text);
}

.theme-toggle:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 300ms var(--ease-out);
  border-radius: 2px;
}

.site-header--scrolled .nav-toggle span {
  background: var(--color-text);
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* --- Nav ink vs. backdrop -------------------------------------------------
   The nav needs light ink only when the surface behind it is dark:
     (a) unscrolled over a dark hero  -> body[data-header="over-dark"]
     (b) dark theme active            -> [data-theme='dark']
   Every other combination uses the theme's normal text color, set above. */

body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .nav-logo,
body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .nav-links a,
body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .theme-toggle,
[data-theme='dark'] .nav-logo,
[data-theme='dark'] .nav-links a,
[data-theme='dark'] .theme-toggle {
  color: #F7F3ED;
}

body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .nav-toggle span,
[data-theme='dark'] .nav-toggle span {
  background: #F7F3ED;
}

/* --- Nav logo crossfade --------------------------------------------------
   Two stacked marks: terracotta for light backdrops, cream for dark. */

.nav-logo {
  position: relative;
  line-height: 0;
}

.nav-logo-img--cream {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.nav-logo-img--terracotta {
  opacity: 1;
  transition: opacity 300ms var(--ease-out);
}

body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .nav-logo-img--cream,
[data-theme='dark'] .nav-logo-img--cream {
  opacity: 1;
}

body[data-header="over-dark"] .site-header:not(.site-header--scrolled) .nav-logo-img--terracotta,
[data-theme='dark'] .nav-logo-img--terracotta {
  opacity: 0;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--color-deep-brown);
  z-index: 99;
  transform: translateX(101%);
  /* Hidden rather than merely translated: subpixel/scrollbar rounding let the
     panel's first link bleed in at the right edge, and a closed-but-visible
     panel keeps its links in the keyboard tab order. */
  visibility: hidden;
  transition:
    transform 400ms var(--ease-out),
    visibility 400ms var(--ease-out);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu--open {
  transform: translateX(0);
  visibility: visible;
}

/* The hamburger is hidden from 768px up, so the panel can never be opened at
   desktop widths — take it out of the layout entirely there. */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  text-decoration: none;
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(232, 223, 213, 0.1);
  transition: color var(--transition-interactive), padding-left var(--transition-interactive);
}

.mobile-menu a:hover {
  color: var(--color-accent);
  padding-left: var(--space-4);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.5);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}

.mobile-menu-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1px solid rgba(232, 223, 213, 0.4);
}

.btn--ghost:hover {
  background: rgba(232, 223, 213, 0.1);
  border-color: rgba(232, 223, 213, 0.8);
  transform: translateY(-1px);
}

.site-header--scrolled .btn--ghost {
  color: var(--color-text);
  border-color: rgba(61, 43, 31, 0.3);
}

.site-header--scrolled .btn--ghost:hover {
  background: rgba(61, 43, 31, 0.05);
  border-color: rgba(61, 43, 31, 0.6);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-deep-brown);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 68% at 50% 38%,
      rgba(184, 98, 58, 0.34) 0%,
      rgba(184, 98, 58, 0.12) 46%,
      transparent 74%),
    radial-gradient(ellipse 75% 48% at 50% 100%,
      rgba(139, 69, 19, 0.26) 0%,
      transparent 68%),
    linear-gradient(168deg,
      #38281D 0%,
      #2A1F17 46%,
      #1F1710 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.30;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 105% 85% at 50% 46%,
    transparent 38%,
    rgba(20, 14, 10, 0.42) 82%,
    rgba(20, 14, 10, 0.62) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-6);
  max-width: 900px;
}

.hero-logo {
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: min(280px, 60vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 223, 213, 0.9);
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(232, 223, 213, 0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(232, 223, 213, 0.6));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section: Story Intro --- */
.story-intro {
  text-align: center;
  background: var(--color-surface);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.section-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

/* --- Featured Menu Section --- */
.featured-menu {
  background: var(--color-bg);
}

.featured-menu-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .dish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dish-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dish-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.dish-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dish-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.dish-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.dish-card:hover .dish-card-image img {
  transform: scale(1.05);
}

.dish-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.dish-card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.dish-card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.dish-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.dish-card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: var(--space-3);
}

/* --- Cocktail Section --- */
.cocktail-section {
  background: var(--color-deep-brown);
  /* Fixed cream, not the theme variable: this section's background stays
     dark in both light and dark mode, but --color-text-inverse flips to a
     dark color in dark mode (it's meant for light backgrounds), which made
     this text unreadable at night. */
  color: #F7F3ED;
  overflow: hidden;
}

.cocktail-section .eyebrow {
  color: var(--color-accent);
}

.cocktail-section .section-title {
  color: #F7F3ED;
}

.cocktail-section .section-title em {
  color: var(--color-accent);
}

.cocktail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .cocktail-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.cocktail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.cocktail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cocktail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cocktail-item {
  border-bottom: 1px solid rgba(232, 223, 213, 0.1);
  padding-bottom: var(--space-5);
}

.cocktail-item:last-child {
  border-bottom: none;
}

.cocktail-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.cocktail-item-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #F7F3ED;
}

.cocktail-item-price {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
}

.cocktail-item-desc {
  font-size: var(--text-sm);
  color: rgba(232, 223, 213, 0.65);
  line-height: 1.6;
}

/* --- Private Events --- */
.events-section {
  background: var(--color-surface-offset);
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.event-chip {
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

.event-chip:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Gallery --- */
.gallery-section {
  background: var(--color-bg);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item:nth-child(1) {
  aspect-ratio: 1;
}

.gallery-item:nth-child(3) {
  grid-column: span 2;
  aspect-ratio: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

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

/* --- Our Story --- */
.story-section {
  background: var(--color-deep-brown);
  color: #F7F3ED;
  position: relative;
  overflow: hidden;
}

.story-section .eyebrow {
  color: var(--color-accent);
}

.story-section .section-title {
  color: #F7F3ED;
}

.story-section .section-title em {
  color: var(--color-accent);
}

.story-content {
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
}

.story-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: rgba(232, 223, 213, 0.8);
  margin-bottom: var(--space-6);
}

.story-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-accent);
  margin: var(--space-10) 0;
  line-height: 1.4;
}

.story-signature {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: rgba(232, 223, 213, 0.5);
  margin-top: var(--space-8);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--color-surface);
}

.cta-section .container {
  max-width: 56ch;
}

.cta-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.cta-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-deep-brown);
  color: rgba(232, 223, 213, 0.7);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo-img {
  width: 140px;
  height: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(232, 223, 213, 0.7);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(232, 223, 213, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(232, 223, 213, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 223, 213, 0.2);
  color: rgba(232, 223, 213, 0.6);
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive);

  svg { width: 16px; height: 16px; }
}

.footer-social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal-clip {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* --- GSAP Fallback Reveal (for browsers without scroll-timeline) --- */
.reveal-gsap {
  opacity: 0;
}

/* --- Menu Page Styles --- */
.menu-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-12);
  background: var(--color-surface-offset);
  text-align: center;
}

.menu-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.menu-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.menu-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--color-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.menu-nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-nav-inner::-webkit-scrollbar {
  display: none;
}

.menu-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-interactive);
}

.menu-nav a:hover,
.menu-nav a.active {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.menu-category {
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}

.menu-category:last-child {
  border-bottom: none;
}

.menu-category-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.menu-category-header h2 {
  font-size: var(--text-xl);
}

.menu-category-header span {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  flex: 1;
  border-bottom: 1px dotted var(--color-border);
  align-self: center;
  margin-left: var(--space-2);
}

.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .menu-items {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.menu-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.menu-item-tags {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.menu-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.menu-tag--veg {
  background: oklch(0.8 0.05 130 / 0.15);
  color: var(--color-secondary);
}

.menu-tag--gf {
  background: oklch(0.8 0.05 60 / 0.15);
  color: var(--color-accent);
}

.menu-tag--spicy {
  background: oklch(0.8 0.08 30 / 0.15);
  color: var(--color-primary);
}

.menu-tag--chef {
  background: oklch(0.8 0.05 250 / 0.1);
  color: var(--color-text-muted);
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-12);
  background: var(--color-surface-offset);
  text-align: center;
}

.contact-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.contact-item-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.contact-item-value {
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}

.contact-item-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact-item-value a:hover {
  color: var(--color-accent);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* --- Cinnamon Stick Brand Element --- */
.canela-mark {
  display: inline-flex;
  align-items: center;
}

.canela-mark svg {
  width: 100%;
  height: auto;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Menu Sub-categories --- */
.menu-subcategory {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

.menu-subcategory-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.menu-subcategory-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- Build Your Own Section --- */
.menu-build-your-own {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
}

.menu-byo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.menu-byo-group h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.menu-byo-group p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.5;
}

/* --- Protein List --- */
.menu-item-proteins {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}

/* --- Menu Legend --- */
.menu-legend {
  text-align: center;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border-subtle);
}

.menu-legend-items {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.menu-legend-item {
  display: inline-flex;
}

.menu-legend-note {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.menu-legend-fda {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .menu-byo-options {
    grid-template-columns: 1fr;
  }
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 8px 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1001;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  max-height: 60px;
  overflow: hidden;
}

.announcement-bar.dismissed {
  max-height: 0;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
}

.announcement-bar a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

.announcement-bar-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.announcement-bar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.announcement-bar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-size: 18px;
}

.announcement-bar-close:hover {
  opacity: 1;
}

body:has(.announcement-bar:not(.dismissed)) .site-header {
  top: var(--announcement-height);
}

/* Once scrolled, the announcement bar has left the viewport, so the header
   returns to the very top. */
body:has(.announcement-bar:not(.dismissed)) .site-header--scrolled {
  top: 0;
}

/* --- Careers Page --- */
.careers-hero {
  background: linear-gradient(135deg, var(--color-deep-brown) 0%, #3d2a1f 100%);
  color: var(--color-cream);
  padding: calc(var(--space-20) + 40px) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.careers-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="none" stroke="%23B8623A" stroke-width="0.5" opacity="0.08"><circle cx="30" cy="30" r="25"/></g></svg>');
  background-size: 60px 60px;
}

.careers-hero .container {
  position: relative;
  z-index: 1;
}

.careers-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  color: var(--color-cream);
}

.careers-hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.careers-hero p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  max-width: 580px;
  margin: 0 auto;
  color: rgba(232, 223, 213, 0.9);
  line-height: 1.6;
}

.careers-values {
  padding: var(--space-20) 0;
}

.careers-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.career-value {
  text-align: center;
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.career-value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.career-value h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.career-value p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.careers-positions {
  padding: var(--space-20) 0;
  background: var(--color-surface-offset);
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.position-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.position-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.position-card-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.position-card-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.position-card-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(184, 98, 58, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* --- Application Form --- */
.apply-section {
  padding: var(--space-20) 0;
}

.apply-form {
  max-width: 640px;
  margin: var(--space-12) auto 0;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-field label .required {
  color: var(--color-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(184, 98, 58, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2380766E" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

.form-success {
  text-align: center;
  padding: var(--space-12);
  display: none;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-primary);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .careers-values-grid {
    grid-template-columns: 1fr;
  }
  .positions-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .announcement-bar-close {
    right: 8px;
  }
}
