/**
 * La Buca Italian Cafe - Mobile-First Base Styles
 * Preserves rustic Italian trattoria aesthetic
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Rustic Italian Color Palette */
  --color-dark-bg: #1f1e1f;
  --color-dark-bg-95: rgba(31, 30, 31, 0.95);
  --color-dark-border: rgba(18, 17, 18, 0.95);
  --color-accent-red: #d30000;
  --color-accent-red-dark: #ad2a2a;
  --color-accent-green: #22a55b;
  --color-accent-green-dark: #1b8a4b;
  --color-accent-blue: #3b82f6;
  --color-accent-blue-dark: #2563eb;
  --color-accent-toast: #d97706;
  --color-accent-toast-dark: #b45309;
  --color-text-light: #ffffff;
  --color-text-dark: #444444;
  --color-text-muted: #666666;
  --color-link: #0e97e6;
  --color-link-hover: #0d87ce;
  --color-white-95: rgba(255, 255, 255, 0.95);
  --color-black-95: rgba(0, 0, 0, 0.95);

  /* Typography */
  --font-fancy: 'Cousine', monospace;
  --font-body: Arial, Helvetica, sans-serif;

  /* Fluid Typography Scale */
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;
  --font-size-h1: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --font-size-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --font-size-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Touch Target Minimums (WCAG) */
  --touch-min: 44px;
  --touch-comfortable: 48px;

  /* Z-Index Scale */
  --z-content: 1;
  --z-header: 100;
  --z-nav: 200;
  --z-sticky: 500;
  --z-overlay: 900;
  --z-modal: 1000;

  /* iOS Safe Areas */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);

  /* Ancient Rome Stone Colors (for menu buttons) */
  --stone-beige: #E8DCC7;
  --stone-beige-dark: #DFD5C0;
  --stone-text: #8B7355;
  --stone-text-dark: #6B5845;

  /* Component Sizes */
  --header-height-mobile: 60px;
  --action-bar-height: 60px;
  --nav-width-mobile: 280px;

  /* Browser Chrome Padding - accounts for mobile browser address bars */
  --browser-chrome-padding: 8px;
}


/* ==========================================================================
   Critical Mobile Overrides
   ========================================================================== */

/* Remove desktop-only min-width constraint */
body {
  min-width: auto !important;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Better box model */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ==========================================================================
   Mobile Navigation - Hamburger Menu
   ========================================================================== */

/* Hamburger Toggle Button */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: var(--spacing-sm);
  background: var(--color-dark-bg-95);
  border: 1px solid var(--color-dark-border);
  border-radius: 4px;
  cursor: pointer;
  position: fixed;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: var(--z-nav);
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background: var(--color-black-95);
  outline: 2px solid var(--color-accent-red);
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Overlay (dark backdrop) - starts below header to not dim logo */
/* z-index MUST be above action bar (500) but below nav panel (915) */
.mobile-nav-overlay {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-overlay); /* 900: above action bar (500), below nav (915) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out navigation - Safari iOS compatible (uses left, not transform) */
.mainmenu.is-open {
  left: 0 !important;
}

/* Body scroll lock when nav is open */
body.nav-open {
  overflow: hidden;
}

/* Raise action bar above nav when nav is open - keeps buttons usable */
body.nav-open .quick-actions-bar {
  z-index: 950; /* Above nav (915) so buttons remain clickable */
}

/* Mobile Menu Hours Section - Hidden on desktop */
.mobile-menu-hours {
  display: none;
}

/* Review Badges Section - Hidden on desktop */
.review-badges-section {
  display: none;
}


/* ==========================================================================
   Sticky Quick Actions Bar
   ========================================================================== */

.quick-actions-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: var(--color-dark-bg);
  border-top: 2px solid var(--color-accent-red);
  padding: 6px;
  /* Only add safe-area for iOS notch devices */
  padding-bottom: calc(6px + var(--safe-area-bottom));
  z-index: var(--z-sticky);
  height: var(--action-bar-height);
  box-sizing: content-box;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  min-height: var(--touch-min);
  background: transparent;
  border: none;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: var(--font-size-xs);
  font-family: var(--font-fancy);
  font-weight: bold;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.quick-action:hover,
.quick-action:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* Individual button colors - vibrant and distinct */
.quick-action--call {
  background: var(--color-accent-green);
  color: #fff !important;
  border-radius: 4px;
  margin: var(--spacing-xs);
  flex: 1;
}

.quick-action--call:hover,
.quick-action--call:focus {
  background: var(--color-accent-green-dark);
}

.quick-action--directions {
  background: var(--color-accent-blue);
  color: #fff !important;
  border-radius: 4px;
  margin: var(--spacing-xs);
  flex: 1;
}

.quick-action--directions:hover,
.quick-action--directions:focus {
  background: var(--color-accent-blue-dark);
}

.quick-action--takeout {
  background: var(--color-accent-toast);
  color: #fff !important;
  border-radius: 4px;
  margin: var(--spacing-xs);
  flex: 1;
}

.quick-action--takeout:hover,
.quick-action--takeout:focus,
.quick-action--takeout:active {
  background: var(--color-accent-toast-dark);
}

/* Menu button - brown/stone color matching site theme */
.quick-action--menu {
  background: var(--stone-text-dark);
  color: #fff !important;
  border-radius: 4px;
  margin: var(--spacing-xs);
  flex: 1;
}

.quick-action--menu:hover,
.quick-action--menu:focus {
  background: #5a4a3a;
}

/* Dual delivery icons (DoorDash + Uber Eats) */
.dual-delivery-icons {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}

.dual-delivery-icons svg {
  width: 18px;
  height: 18px;
}

.quick-action-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  fill: currentColor;
}

/* Hours Popup */
.hours-popup {
  position: fixed;
  bottom: calc(var(--action-bar-height) + var(--safe-area-bottom) + var(--browser-chrome-padding) + var(--spacing-sm));
  left: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--color-dark-bg-95);
  border: 1px solid var(--color-accent-red);
  border-radius: 12px;
  padding: var(--spacing-lg);
  padding-top: calc(var(--spacing-lg) + 8px);
  z-index: calc(var(--z-sticky) + 1);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.hours-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.hours-popup h3 {
  font-family: var(--font-fancy);
  font-size: var(--font-size-h3);
  color: var(--color-text-light);
  margin: 0 0 var(--spacing-md);
  text-align: center;
}

.hours-popup p {
  color: var(--color-text-light);
  margin: 0 0 var(--spacing-sm);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Hours grid layout for better alignment */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.hours-grid .hours-day {
  color: var(--color-text-light);
  font-weight: bold;
  text-align: left;
}

.hours-grid .hours-time {
  color: var(--color-text-light);
  text-align: right;
  white-space: nowrap;
}

.hours-popup .no-reservations {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--spacing-sm);
}

/* Alternative hours-list structure (dl/dt/dd) */
.hours-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xs) var(--spacing-md);
  margin: 0 0 var(--spacing-md);
  padding: 0;
}

.hours-list dt {
  color: var(--color-text-light);
  font-weight: bold;
  text-align: left;
  margin: 0;
}

.hours-list dd {
  color: var(--color-text-light);
  text-align: right;
  white-space: nowrap;
  margin: 0;
}

.hours-popup-content {
  position: static;
}

/* Close button - inside top-right of popup */
.hours-popup .hours-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.hours-popup .hours-popup-close:hover,
.hours-popup .hours-popup-close:active {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
}

.hours-note {
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--spacing-sm);
}

.hours-popup-close {
  display: block;
  width: 100%;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-accent-red);
  border: none;
  border-radius: 4px;
  color: var(--color-text-light);
  font-family: var(--font-fancy);
  font-weight: bold;
  font-size: var(--font-size-base);
  cursor: pointer;
  min-height: var(--touch-min);
}

.hours-popup-close:hover {
  background: var(--color-accent-red-dark);
}


/* ==========================================================================
   Menu Page - Horizontal Tabs
   ========================================================================== */

.menu-tabs {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  padding: var(--spacing-sm) 0;
}

.tabs-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.9rem 1.8rem;
  min-height: var(--touch-min);
  background: var(--stone-beige);
  color: var(--stone-text);
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle stone texture using CSS noise pattern */
.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.02) 2px, rgba(139, 115, 85, 0.02) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 115, 85, 0.02) 2px, rgba(139, 115, 85, 0.02) 4px);
  pointer-events: none;
  opacity: 0.5;
}

/* Hover state - subtle warmth */
.tab-btn:hover {
  background: var(--stone-beige-dark);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Active/selected state - clearly distinct */
.tab-btn.is-active {
  background: var(--stone-text-dark);
  color: var(--color-text-light);
  border-color: var(--stone-text-dark);
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    0 3px 8px rgba(107, 88, 69, 0.3);
}

/* Remove texture overlay on active for cleaner look */
.tab-btn.is-active::before {
  opacity: 0.15;
}

/* Active + hover - slight lift */
.tab-btn.is-active:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    0 5px 12px rgba(107, 88, 69, 0.35);
}

.tab-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Focus state for accessibility */
.tab-btn:focus {
  outline: none;
}

/* Only show focus ring for keyboard navigation, not mouse clicks */
.tab-btn:focus-visible {
  outline: 3px solid rgba(139, 115, 85, 0.5);
  outline-offset: 3px;
}

.tab-btn.is-active:focus-visible {
  outline-color: rgba(107, 88, 69, 0.6);
}

.tab-panel {
  padding: var(--spacing-sm) var(--spacing-md);
}

.tab-panel[hidden] {
  display: none;
}

/* Dietary Legend - below menu tabs */
.dietary-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.dietary-legend .legend-item {
  white-space: nowrap;
}

.dietary-legend em {
  font-style: italic;
  color: var(--color-text-dark);
  margin-right: 2px;
}

/* Menu item spacing - add breaks between items */
.tab-panel p {
  line-height: 1.6;
  margin: 0;
}

/* Section title (first bold) - minimal spacing */
.tab-panel p b:first-child,
.tab-panel p strong:first-child {
  display: inline;
  margin: 0;
}

/* Target menu item lines - moderate line height */
.tabs-content-container .tab-panel p {
  line-height: 1.8;
}

/* Make each menu item a distinct block - only items starting with ~ */
.tabs-content-container .tab-panel p br + b,
.tabs-content-container .tab-panel p br + strong {
  display: inline-block;
  margin-top: var(--spacing-sm);
}

/* Menu subsection (e.g., "additions") - extra spacing above */
.menu-subsection {
  margin-top: var(--spacing-lg) !important;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}

/* Catering serving note - italic styling */
.catering-note {
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* Catering footer - separated from menu content with horizontal bar */
.catering-footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--stone-border);
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
}

.catering-footer p {
  margin: var(--spacing-xs) 0;
  line-height: 1.6;
}

.catering-footer a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.catering-footer a:hover {
  color: var(--stone-text);
}


/* ==========================================================================
   Menu Item Cards
   ========================================================================== */

.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.menu-item-card {
  background: var(--color-white-95);
  border-left: 4px solid var(--color-accent-red);
  padding: var(--spacing-md);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.menu-item-name {
  font-family: var(--font-fancy);
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--color-text-dark);
  margin: 0;
  line-height: var(--line-height-tight);
}

.menu-item-price {
  font-family: var(--font-fancy);
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-accent-red);
  flex-shrink: 0;
}

.menu-item-description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-sm);
}

.menu-item-tags {
  display: flex;
  gap: var(--spacing-xs);
}

.dietary-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: var(--font-size-xs);
  font-weight: bold;
  border-radius: 50%;
  background: var(--color-dark-bg);
  color: var(--color-text-light);
}

.dietary-tag--gf {
  background: #8B4513;
}

.dietary-tag--v {
  background: #228B22;
}


/* ==========================================================================
   Swipeable Image Gallery
   ========================================================================== */

.gallery-carousel {
  position: relative;
  width: 100%;
  margin: var(--spacing-lg) 0;
}

.gallery-scroll-container {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--spacing-sm);
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 85vw;
  max-width: 400px;
  scroll-snap-align: center;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-dark-bg);
}

.gallery-item figcaption {
  padding: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* Gallery Pagination Dots */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-dark-bg-95);
  border: 1px solid var(--color-text-light);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.gallery-dot.is-active,
.gallery-dot:hover {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
}

/* ==========================================================================
   Mobile Gallery Slideshow (Home Page)
   ========================================================================== */

@media (max-width: 767px) {
  /* Hide the background slider on ALL mobile pages - only show photo gallery */
  .slider-container,
  .background {
    display: none !important;
  }

  /* Home page content - remove padding for full-width galleries */
  body.home #container,
  body.home #content {
    padding: 0 !important;
  }

  body.home .mainpage {
    padding-bottom: var(--action-bar-height) !important;
    min-height: auto !important;
  }

  body.home #container {
    min-height: auto !important;
    background: #fff !important;
  }

  body.home .subpage {
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  body.home footer,
  body.home #page-footer {
    display: none !important;
  }

  /* Cover dark html background with white on home page */
  html:has(body.home),
  body.home,
  body.home .mainpage,
  body.home .left-area,
  body.home .left.area,
  body.home .site {
    background: #fff !important;
  }

  /* Reduce bottom padding - minimal gap to action bar */
  body.home .mainpage {
    padding-bottom: 0 !important;
  }

  /* Ensure food gallery extends closer to action bar */
  body.home .gallery-section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.home .gallery-section:last-of-type .gallery-carousel {
    margin-bottom: 0 !important;
  }

  /* Mobile social icons on home page */
  .mobile-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    background: #fff;
    /* Add bottom margin to clear fixed action bar so icons are scrollable into view */
    margin-bottom: calc(var(--action-bar-height) + var(--safe-area-bottom) + var(--browser-chrome-padding) + 10px);
  }

  .mobile-social-icons .social-icon-link {
    display: block;
    line-height: 0;
  }

  .mobile-social-icons .social-icon {
    width: 36px;
    height: 36px;
  }

  /* Our Menu link button on home page - stone tab style (active/selected state) */
  .home-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.7rem 1.4rem;
    line-height: 1;
    margin: 2px auto 10px;
    background: var(--stone-text-dark);
    color: var(--color-text-light) !important;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--stone-text-dark);
    border-radius: 4px;
    width: fit-content;
    min-width: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.2),
      0 3px 8px rgba(107, 88, 69, 0.3);
    position: relative;
    overflow: hidden;
  }

  /* Stone texture overlay - subtle for dark button */
  .home-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
      repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    opacity: 0.15;
  }

  .home-menu-link:hover,
  .home-menu-link:active {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.2),
      0 5px 12px rgba(107, 88, 69, 0.35);
  }

  /* Gallery section - full-width edge to edge */
  .gallery-section {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .gallery-section + .gallery-section {
    margin-top: 12px;
  }

  .gallery-title {
    padding: 4px var(--spacing-xs) 0;
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text-dark);
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 500;
  }

  .gallery-carousel {
    margin: 0 !important;
    overflow: hidden !important;
    position: relative;
    width: 100% !important;
  }

  /* Convert scroll container to slideshow container */
  .gallery-scroll-container {
    display: flex !important;
    width: 100% !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    gap: 0 !important;
    transition: transform 0.5s ease-in-out;
  }

  /* Full-width slides */
  .gallery-item {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 0 !important;
    display: block;
    margin: 0 !important;
  }

  .gallery-item figcaption {
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: -40px;
    position: relative;
    z-index: 1;
  }

  /* Hide pagination dots */
  .gallery-pagination {
    display: none;
  }

  /* Compact restaurant gallery (first section) - shorter aspect ratio */
  .gallery-section[aria-label="Our Restaurant Gallery"] .gallery-item img {
    aspect-ratio: 21 / 9;
    object-position: center 40%;
  }

  .gallery-section[aria-label="Our Restaurant Gallery"] .gallery-item figcaption {
    margin-top: -36px;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
  }

  /* Review Badges Section (Mobile Menu) */
  .review-badges-section {
    display: block;
    padding: var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid var(--color-dark-border);
    text-align: center;
  }

  .review-badges-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--spacing-md);
  }

  .review-badges {
    display: flex;
    gap: var(--spacing-sm);
  }

  .review-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .review-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .review-badge--google:hover {
    border-color: #4285F4;
  }

  .review-badge--tripadvisor:hover {
    border-color: #00AA6C;
  }

  .review-badge-logo {
    flex-shrink: 0;
  }

  .review-badge-stars {
    display: flex;
    gap: 2px;
  }

  .review-badge-rating {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-light);
  }

  .review-badge-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .review-badge-cta {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
  }

  .review-badge:hover .review-badge-cta {
    color: rgba(255, 255, 255, 0.8);
  }

  /* Mobile Menu Hours Section */
  .mobile-menu-hours {
    display: block;
    padding: var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid var(--color-dark-border);
    margin-top: auto;
    text-align: center;
  }

  .mobile-menu-hours .info-label {
    display: block;
    font-size: 11px;
    color: #aaa;
    font-weight: bold;
    text-transform: lowercase;
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }

  .mobile-menu-hours .hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 16px;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .mobile-menu-hours .day {
    text-align: left;
    color: #bbb;
  }

  .mobile-menu-hours .time {
    text-align: right;
    color: #fff;
    font-weight: 500;
  }

  .mobile-menu-hours .no-reservations {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: var(--spacing-md) 0;
  }

  .mobile-menu-hours .social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
  }

  .mobile-menu-hours .social-icon {
    width: 36px;
    height: 36px;
  }

  /* Mobile Menu Welcome Section */
  .mainmenu .welcome-section {
    padding: var(--spacing-lg) var(--spacing-lg) !important;
    margin: 0 !important;
    border-top: 1px solid var(--color-dark-border) !important;
    border-bottom: none !important;
    text-align: center;
  }

  /* Mobile welcome-section inherits base .welcome-msg and .no-reservations styles */
}


/* ==========================================================================
   Button Group and Delivery Modal
   ========================================================================== */

/* Button group for menu actions */
.home-menu-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}

.home-menu-link--takeout {
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: inherit;
}

.home-menu-link--takeout:hover {
  background: var(--color-brand-dark, #6B3410);
}

/* Delivery Modal */
/* Takeout Modal - Polished Design */
.delivery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;  /* Fallback */
  height: 100dvh; /* Dynamic viewport height for proper centering on mobile/tablet */
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.delivery-modal[aria-hidden="false"] {
  display: flex;
}

.delivery-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;  /* Fallback */
  height: 100dvh; /* Dynamic viewport height */
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.delivery-modal-content {
  position: relative;  /* Let flexbox parent handle centering */
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  max-width: 420px;
  width: calc(100% - 40px);
  max-height: 90vh;    /* Fallback */
  max-height: 90dvh;   /* Dynamic viewport height for mobile/tablet */
  overflow-y: auto;    /* Scroll if content exceeds max-height */
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Respect user motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
  .delivery-modal-content {
    animation: none;
  }
}

.delivery-modal-header {
  position: relative;
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.delivery-modal-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.delivery-modal-subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin: 0;
}

.delivery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  padding: 0;
}

.delivery-modal-close:hover {
  background: #e5e7eb;
  transform: rotate(90deg);
}

.delivery-modal-body {
  padding: 24px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.delivery-option:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Brand-specific hover colors */
.delivery-option.doordash:hover {
  box-shadow:
    0 10px 40px -10px rgba(255, 49, 49, 0.3),
    0 0 0 2px rgba(255, 49, 49, 0.15);
}

.delivery-option.ubereats:hover {
  box-shadow:
    0 10px 40px -10px rgba(6, 197, 100, 0.3),
    0 0 0 2px rgba(6, 197, 100, 0.15);
}

.delivery-option.grubhub:hover {
  box-shadow:
    0 10px 40px -10px rgba(248, 102, 36, 0.3),
    0 0 0 2px rgba(248, 102, 36, 0.15);
}

.delivery-option.postmates:hover {
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(0, 0, 0, 0.15);
}

.delivery-option:active {
  transform: translateY(0);
}

/* Icon Container */
.icon-container {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.delivery-option:hover .icon-container {
  transform: scale(1.05);
}

.doordash .icon-container {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.ubereats .icon-container {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.grubhub .icon-container {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.postmates .icon-container {
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.icon-container svg {
  width: 32px;
  height: 32px;
}

/* Service Name */
.delivery-name {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Mobile responsive modal */
@media (max-width: 480px) {
  .delivery-modal-content {
    border-radius: 20px;
  }

  .delivery-modal-content h3 {
    font-size: 24px;
  }

  .delivery-option {
    padding: 16px;
  }

  .icon-container {
    width: 48px;
    height: 48px;
  }

  .icon-container svg {
    width: 28px;
    height: 28px;
  }
}


/* ==========================================================================
   Click-to-Call Enhancement
   ========================================================================== */

a[href^="tel:"] {
  color: var(--color-accent-red);
  font-weight: bold;
  text-decoration: none;
}

a[href^="tel:"]:hover {
  text-decoration: underline;
}

/* Phone link in tagline */
.tagline a[href^="tel:"] {
  color: var(--color-text-light);
  display: inline-block;
  padding: var(--spacing-xs) 0;
}


/* ==========================================================================
   SVG Icons (Inline)
   ========================================================================== */

.icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.icon-directions {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.55.45-1 1-1h5V7.5l3.5 3.5-3.5 3.5z'/%3E%3C/svg%3E");
}

.icon-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

.quick-action-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}


/* ==========================================================================
   Social Icons
   ========================================================================== */

.social-icon-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon-link:hover,
.social-icon-link:focus {
  transform: scale(1.1);
  opacity: 0.9;
}

.social-icon {
  display: block;
}


/* ==========================================================================
   Side Panel Contact Info (Mobile-Optimized)
   ========================================================================== */

.tagline {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: #fff;
}

/* Welcome Section (groups welcome message + no reservations) */
.welcome-section {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* Welcome Message - Shared Typography (Desktop & Mobile) */
.welcome-msg {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-style: italic;
  color: #fff;
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

/* Remove border when inside welcome-section (same section as no-reservations) */
.welcome-section .no-reservations {
  margin-top: var(--spacing-sm);
  padding-top: 0;
  border-top: none;
}

.contact-info {
  margin-bottom: 0;
}

.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  min-height: var(--touch-min);
}

.info-label {
  font-weight: bold;
  min-width: 55px;
  color: #aaa; /* Improved contrast for WCAG AA */
  text-transform: lowercase;
  font-size: 11px;
  padding-top: 2px;
}

.info-value {
  color: #fff;
  flex: 1;
}

.info-value a,
.tagline a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}

.info-value a:hover,
.tagline a:hover {
  text-decoration: underline;
}

/* Phone link special styling for touch */
.info-value a[href^="tel:"] {
  color: #fff;
  font-weight: bold;
}

.hours-info {
  margin-bottom: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hours-info .info-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: bold;
  text-transform: lowercase;
  color: #aaa; /* Improved contrast for WCAG AA */
  font-size: 11px;
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.hours-grid .day {
  color: #bbb;
  white-space: nowrap;
}

.hours-grid .time {
  color: #fff;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}

/* No Reservations - Shared Typography (Desktop & Mobile) */
.no-reservations {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: bold;
  text-transform: lowercase;
  text-align: center;
  color: #ccc;
  line-height: var(--line-height-normal);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.no-reservations .emoji {
  font-style: normal;
  font-size: 16px;
}

/* Desktop Takeout Button */
.desktop-takeout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: var(--spacing-sm);
  padding: 8px 16px;
  background: var(--color-accent-toast);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-takeout-btn:hover {
  background: var(--color-accent-toast-dark);
}

.desktop-takeout-btn:active {
  transform: scale(0.98);
}

.desktop-takeout-btn .takeout-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Social Icons in Side Panel */
.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-sm);
  padding-top: 0;
}

/* ==========================================================================
   Desktop Review Badges (Sidebar)
   ========================================================================== */

.desktop-review-badges {
  margin-top: var(--spacing-md);
  padding-top: 0;
  text-align: center;
}

.desktop-review-badges .review-badges-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 var(--spacing-sm);
}

.desktop-review-badges .review-badges {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.desktop-review-badges .review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.desktop-review-badges .review-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.desktop-review-badges .review-badge--google:hover {
  border-color: #4285F4;
}

.desktop-review-badges .review-badge--tripadvisor:hover {
  border-color: #00AA6C;
}

.desktop-review-badges .review-badge-logo {
  flex-shrink: 0;
}

.desktop-review-badges .review-badge-rating {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-text-light);
}

.desktop-review-badges .review-badge-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Hide desktop review badges on mobile (shown in mobile menu instead) */
@media (max-width: 767px) {
  .desktop-review-badges {
    display: none;
  }
}

.social-icons .social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons .social-icon {
  width: 34px;
  height: 34px;
}


/* ==========================================================================
   Food Gallery Grid (Menu Page)
   ========================================================================== */

.food-gallery {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

.food-gallery .gallery-title {
  font-family: var(--font-fancy);
  font-size: var(--font-size-h2);
  text-transform: lowercase;
  text-align: center;
  color: var(--color-text-dark);
  margin: 0 0 var(--spacing-lg);
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.gallery-grid .gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: var(--color-dark-bg);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-item:hover,
.gallery-grid .gallery-item:focus {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.3s ease;
}

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

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-xs);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--color-text-light);
  font-family: var(--font-fancy);
  font-size: var(--font-size-sm);
  font-weight: bold;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for gallery grid */
@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
  }
}

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


/* ==========================================================================
   Desktop Navigation (Sidebar - Top Position)
   ========================================================================== */

/* Desktop Navigation - positioned at top of sidebar (below logo) */
.desktop-nav {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.desktop-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav .menu-item {
  margin: 0;
}

.desktop-nav .menu-item a {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: lowercase;
  font-family: var(--font-fancy);
  transition: color 0.2s ease;
}

.desktop-nav .menu-item a:hover {
  color: #D4A56A;
}

.desktop-nav .current-menu-item a,
.desktop-nav .current_page_item a {
  color: #D4A56A;
}

.desktop-nav .current-menu-item a::before,
.desktop-nav .current_page_item a::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4A56A'%3E%3Cpath d='M12 3L2 9v1h2v9H2v2h20v-2h-2v-9h2V9L12 3zm-4 8v7H6v-7h2zm4 0v7h-2v-7h2zm4 0v7h-2v-7h2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Fade-in transition for dynamically loaded sidebar content */
.tagline {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tagline.loaded {
  opacity: 1;
}

/* Fallback: if JavaScript fails or is slow, show content after 2s */
@media (min-width: 1024px) {
  .tagline:not(.loaded) {
    animation: tagline-fallback 0.01s 2s forwards;
  }

  @keyframes tagline-fallback {
    to {
      opacity: 1;
    }
  }
}
