/* 
  UwU Café - Core Design System & Styling
  Ratio: 70% Cozy Café / 20% Botanical / 10% Kawaii
*/

:root {
  /* Color Variables */
  --bg-cream: #f7f4eb;
  --bg-cream-dark: #f0ebe0;
  --bg-cream-light: #fdfbf7;
  
  --color-sage: #8ea890;
  --color-sage-dark: #708a72;
  --color-sage-light: #a5bda7;
  --color-sage-ultra-light: #f1f5f2;
  
  --color-pink: #e0b0b0;
  --color-pink-dark: #d49b9b;
  --color-pink-light: #f4e3e3;
  --color-pink-ultra-light: #fbf6f6;
  
  --color-wood: #2c1b18;
  --color-wood-light: #523b37;
  --color-wood-dark: #1b100e;
  
  --color-gold: #ffd8a8;
  --color-gold-light: #fff4e6;
  
  --btn-primary-bg: #4a6350;
  --btn-primary-text: #fdfbf7;
  --btn-primary-hover-bg: #5c7963;
  --btn-secondary-bg: #7a4e4a;
  --btn-secondary-text: #fdfbf7;
  --btn-secondary-hover-bg: #8f5f5b;
  
  --input-border: rgba(44, 27, 24, 0.1);
  
  /* Frosted Glass & Tooltip theme variables */
  --glass-bg-start: rgba(253, 251, 247, 0.65);
  --glass-bg-end: rgba(240, 235, 224, 0.52);
  --glass-border: rgba(255, 255, 255, 0.50);
  --glass-border-top: rgba(255, 255, 255, 0.80);
  --glass-shadow: rgba(44, 27, 24, 0.12);
  --glass-shadow-inset: rgba(255, 255, 255, 0.75);

  --tooltip-bg-start: rgba(253, 251, 247, 0.88);
  --tooltip-bg-end: rgba(240, 235, 224, 0.82);
  --tooltip-border: rgba(44, 27, 24, 0.12);
  --tooltip-text: var(--color-wood);
  --tooltip-arrow-color: rgba(240, 235, 224, 0.85);
  
  /* Fonts */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Quicksand', 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout Metrics */
  --header-height: 96px;
  --announcement-height: 36px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(44, 27, 24, 0.04);
  --shadow-medium: 0 8px 20px rgba(44, 27, 24, 0.06);
  --shadow-deep: 0 16px 36px rgba(44, 27, 24, 0.1);
  --shadow-glow: 0 4px 12px rgba(196, 145, 78, 0.35);
}

html.dark-theme, body.dark-theme {
  --bg-cream: #1e1513;             /* Cozy dark espresso bean background */
  --bg-cream-dark: #140d0c;        /* Even darker roast background */
  --bg-cream-light: #2c1e1c;       /* Warm dark cocoa card/container background */
  
  --color-sage: #a5bda7;           /* Lighter sage for contrast */
  --color-sage-dark: #c1dcc3;      /* Brighter sage green text */
  --color-sage-light: #445646;     /* Darker sage accent background */
  --color-sage-ultra-light: #1b261d;/* Dark forest green backdrop */
  
  --color-pink: #e0b0b0;           /* Soft dusty pink remains cozy */
  --color-pink-dark: #f5d5d5;      /* Milky pink text */
  --color-pink-light: #442c2c;     /* Deep dark rose background */
  --color-pink-ultra-light: #2d1c1c;/* Very dark warm rose backdrop */
  
  --color-wood: #faf4f2;           /* Soft cream/white text */
  --color-wood-light: #dcd0cd;     /* Light warm gray-brown text */
  --color-wood-dark: #ffffff;      /* Pure white for details */
  
  --color-gold: #ffd8a8;           /* Warm candle gold */
  --color-gold-light: #2b1f1a;     /* Very dark gold backdrop */
  
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 16px 36px rgba(0, 0, 0, 0.55);
  
  --btn-primary-bg: #4c624e;
  --btn-primary-text: #faf4f2;
  --btn-primary-hover-bg: #5e7960;
  --btn-secondary-bg: #3d2b29;
  --btn-secondary-text: #faf4f2;
  --btn-secondary-hover-bg: #4d3734;
  
  --input-border: rgba(250, 244, 242, 0.18);
  
  /* Frosted Glass & Tooltip theme variables */
  --glass-bg-start: rgba(44, 30, 28, 0.55);
  --glass-bg-end: rgba(30, 21, 20, 0.45);
  --glass-border: rgba(250, 244, 242, 0.12);
  --glass-border-top: rgba(250, 244, 242, 0.22);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --glass-shadow-inset: rgba(250, 244, 242, 0.15);

  --tooltip-bg-start: rgba(44, 30, 28, 0.85);
  --tooltip-bg-end: rgba(30, 21, 20, 0.8);
  --tooltip-border: rgba(250, 244, 242, 0.2);
  --tooltip-text: #2c1b18;
  --tooltip-arrow-color: rgba(30, 21, 20, 0.85);
  
}

/* ==========================================================================
   DARK THEME — SPECIFIC COMPONENT OVERRIDES
   ========================================================================== */

/* Vines: much dimmer glow in dark mode so they don't bloom too bright */
html.dark-theme .botanical-vine-left,
html.dark-theme .botanical-vine-right {
  filter: drop-shadow(0 0 3px rgba(100, 130, 102, 0.25)) drop-shadow(0 0 6px rgba(80, 60, 40, 0.1));
  opacity: 0.55;
}

/* Hero buttons: ALWAYS use light-mode colors — never change with theme */
html.dark-theme .hero-buttons .btn-primary {
  background-color: #4a6350 !important;
  color: #fdfbf7 !important;
}
html.dark-theme .hero-buttons .btn-primary:hover {
  background-color: #5c7963 !important;
  box-shadow: 0 4px 12px rgba(44, 27, 24, 0.3), 0 0 8px rgba(74, 99, 80, 0.45) !important;
}
html.dark-theme .hero-buttons .btn-secondary {
  background-color: #7a4e4a !important;
  color: #fdfbf7 !important;
}
html.dark-theme .hero-buttons .btn-secondary:hover {
  background-color: #8f5f5b !important;
  box-shadow: 0 4px 12px rgba(44, 27, 24, 0.35), 0 0 8px rgba(122, 78, 74, 0.5) !important;
}

/* Dark theme price tags: make font color dark brown to be readable on cream glass tags */
html.dark-theme .fav-price,
html.dark-theme .menu-card-price,
html.dark-theme .price-span {
  color: #2c1b18;
}

/* Dark theme carousel dots: make inactive dots lighter and clearly visible */
html.dark-theme .carousel-dot {
  background-color: rgba(250, 244, 242, 0.3);
}
html.dark-theme .carousel-dot.active {
  background-color: var(--color-pink-dark);
}

/* Dark theme rating paws: use dusty pink on hover/checked without bright glow */
html.dark-theme .star-rating-input label:hover,
html.dark-theme .star-rating-input label:hover ~ label,
html.dark-theme .star-rating-input input:checked ~ label {
  color: var(--color-pink);
  text-shadow: none;
}

/* Dark theme toggle button: keep cozy dark wood color so it doesn't flash bright cream */
html.dark-theme #theme-toggle-btn {
  background-color: #523b37;
}
html.dark-theme #theme-toggle-btn:hover {
  background-color: #684d48;
}

/* Dark theme hero card: dark-tinted frosted glass — blends with the dim header photo */
html.dark-theme .hero-text-container {
  background: rgba(10, 10, 10, 0.70);
  backdrop-filter: blur(20px) saturate(100%);
  -webkit-backdrop-filter: blur(20px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Dark theme cat ears: dark tint to match card */
html.dark-theme .hero-text-wrapper::before,
html.dark-theme .hero-text-wrapper::after {
  background: radial-gradient(circle at 50% 60%, rgba(200, 150, 155, 0.12) 0%, transparent 65%),
              rgba(10, 10, 10, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
}

/* Dark theme: tone down the loud glow on the hero headline */
html.dark-theme .hero-headline {
  animation:
    titleShimmer 32s linear infinite,
    heroGlowPulseDark 5s ease-in-out infinite alternate,
    titleFloat 6s ease-in-out infinite;
}

@keyframes heroGlowPulseDark {
  0%, 100% {
    filter:
      drop-shadow(0 0 3px rgba(192, 96, 112, 0.35))
      drop-shadow(0 0 8px rgba(192, 96, 112, 0.2))
      drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
  }
  50% {
    filter:
      drop-shadow(0 0 3px rgba(142, 168, 144, 0.35))
      drop-shadow(0 0 8px rgba(142, 168, 144, 0.2))
      drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
  }
}

/* Dark theme: muted badge so it doesn't glow bright */
html.dark-theme .hero-badge {
  background-color: rgba(80, 100, 82, 0.45);
  color: rgba(200, 220, 205, 0.9);
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-wood);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
}

/* Smooth theme transitions */
html, body, 
.tab-panel, 
.section-container, 
.favorite-card, 
.menu-card, 
.feature-item,
.modal-card,
.footer-premium,
h1, h2, h3, h4, h5, h6, p, span, a,
input, textarea, select {
  transition: 
    background-color 0.4s ease, 
    color 0.4s ease, 
    border-color 0.4s ease, 
    box-shadow 0.4s ease, 
    filter 0.4s ease;
}

/* Custom Selection */
::selection {
  background-color: var(--color-pink-light);
  color: var(--color-wood);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-cream-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sage-dark);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-wood);
}

p {
  font-size: 1rem;
  font-weight: 500;
}

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

/* Content inline links (not buttons, not nav, not footer): sliding underline on hover */
p a,
.section-desc a,
.drawer-footer a {
  position: relative;
  padding-bottom: 1px;
}

p a::after,
.section-desc a::after,
.drawer-footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-sage);
  border-radius: 2px;
  transition: width 0.3s ease;
}

p a:hover::after,
.section-desc a:hover::after,
.drawer-footer a:hover::after {
  width: 100%;
}

/* ==========================================================================
   SPARKLE CURSOR
   ========================================================================== */

.cursor-sparkle {
  position: absolute;
  pointer-events: none;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sparkle-fade 0.8s forwards ease-out;
  z-index: 9999;
}

@keyframes sparkle-fade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) translate(var(--dx, 20px), var(--dy, -20px)); }
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 10px rgba(44, 27, 24, 0.15);
}

.btn-primary:hover {
  transform: scale(1.03);
  background-color: var(--btn-primary-hover-bg);
  box-shadow: 
    0 4px 12px rgba(44, 27, 24, 0.2),
    0 0 8px rgba(165, 189, 167, 0.4);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  box-shadow: 0 4px 10px rgba(44, 27, 24, 0.15);
}

.btn-secondary:hover {
  transform: scale(1.03);
  background-color: var(--btn-secondary-hover-bg);
  box-shadow: 
    0 4px 12px rgba(44, 27, 24, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
}

button:active, .btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(38, 26, 24, 0.78); /* Blurry glassy dark overlay */
  backdrop-filter: blur(20px);                  /* Blur to let colors and shapes bleed through */
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  cursor: pointer; /* Click to skip indicator */
}

.preloader-content {
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px;
  
  /* Smooth fade-in slide-up */
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderContentReveal 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

@keyframes preloaderContentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-loader {
  margin-bottom: 20px;
}

.cat-loader svg {
  overflow: visible;
}

.loader-title {
  font-size: 2.5rem;
  letter-spacing: 1.5px;
  color: #fdfbf7; /* Always warm cream white for dark overlay */
  margin-top: 15px;
  font-weight: 800;
  text-shadow:
    0 0 8px rgba(255, 216, 168, 0.85),
    0 0 20px rgba(224, 176, 176, 0.4);
}

.loader-subtitle {
  color: #e0b0b0; /* Cozy pink, always readable on dark background */
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 6px rgba(224, 176, 176, 0.7),
    0 0 15px rgba(224, 176, 176, 0.35);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.loader-subtitle::after {
  content: '';
  display: inline-block;
  width: 20px;
  text-align: left;
  animation: loaderDots 1.6s steps(4, end) infinite;
}

@keyframes loaderDots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Preloader Steam & Wiggle animations */
@keyframes steamRise {
  0% { transform: scaleY(0.3); opacity: 0; }
  15% { opacity: 0.6; }
  100% { transform: scaleY(2.2); opacity: 0; }
}

.steam {
  transform-origin: 60px 33px;
}

.steam-1 { animation: steamRise 3s infinite ease-in-out; }
.steam-2 { animation: steamRise 3s infinite ease-in-out 1s; }
.steam-3 { animation: steamRise 3s infinite ease-in-out 2s; }


@keyframes loaderTailWag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

.loader-tail {
  transform-origin: 42px 43px;
  animation: loaderTailWag 2.5s infinite ease-in-out;
}

/* Cozy Vintage Shop Door Scene */
.preloader-door-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  perspective: 1200px; /* Enable 3D perspective */
  z-index: 1;
}

.preloader-door-scene.show {
  opacity: 1;
  visibility: visible;
}

.door-frame {
  position: relative;
  width: 280px;
  height: 500px;
  border: 8px solid #523b37; /* Cozy wood frame */
  border-bottom: 12px solid #523b37;
  border-radius: 4px;
  background-color: rgba(30, 21, 20, 0.95); /* Deep dark interior behind door */
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
}

.door-leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #708a72; /* Cozy Sage Green wooden door */
  border: 4px solid #523b37;
  box-sizing: border-box;
  transform-origin: left center;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Door open state */
.door-leaf.open {
  transform: rotateY(-115deg);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
}

/* Door window */
.door-window {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 243, 219, 0.95) 20%, rgba(255, 216, 168, 0.6) 80%);
  border: 6px solid #523b37;
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 216, 168, 0.35); /* Warm light glow */
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Curtain silhouette inside window */
.door-curtain {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(224, 176, 176, 0.8) 0%, rgba(224, 176, 176, 0.4) 40%, transparent 50%, rgba(224, 176, 176, 0.4) 60%, rgba(224, 176, 176, 0.8) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 8px);
}

/* Hanging Sign */
.door-sign-hanging {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vintage-open-sign {
  background-color: #2c1b18; /* Dark backing board to make neon POP */
  border: 3px solid #523b37;
  color: #fff;
  font-family: 'Quicksand', 'Arial', sans-serif; /* Rounded modern sans-serif for realistic neon tube shape */
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 3px;
  padding: 8px 24px;
  border-radius: 6px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 0 10px rgba(0, 0, 0, 0.65);
  position: relative;
  text-align: center;
  transform: rotate(-1.5deg);
  /* Combine sign sway and realistic neon flicker animation */
  animation: signSway 4s infinite ease-in-out alternate, neonFlicker 3.5s infinite;
}

/* Sign Chains */
.door-sign-hanging::before,
.door-sign-hanging::after {
  content: '';
  position: absolute;
  top: -15px;
  width: 2px;
  height: 16px;
  background-color: #382522;
}
.door-sign-hanging::before { left: 25px; transform: rotate(-20deg); }
.door-sign-hanging::after { right: 25px; transform: rotate(20deg); }

@keyframes signSway {
  0% { transform: rotate(-2.5deg); }
  100% { transform: rotate(1deg); }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 2px #fff,
      0 0 4px #fff,
      0 0 8px #fff,
      0 0 12px #ffd8a8, /* Warm candle-gold neon glow */
      0 0 20px #ffd8a8,
      0 0 30px #e0b0b0; /* Soft warm pink outer glow */
    color: #fff;
  }
  20%, 24%, 55% {
    text-shadow: 
      0 0 1px rgba(255, 255, 255, 0.1),
      0 0 2px rgba(255, 216, 168, 0.1);
    color: rgba(255, 255, 255, 0.18); /* Dim neon tube when flickering off */
  }
}


/* Door handle */
.door-handle-brass {
  position: absolute;
  right: 12px;
  top: 54%;
  width: 12px;
  height: 48px;
  background: linear-gradient(to right, #ffd8a8, #c4914e);
  border: 2.2px solid #382522;
  border-radius: 4px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.door-handle-brass::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -4px;
  width: 6px;
  height: 6px;
  background-color: #382522;
  border-radius: 50%;
}

/* Lower wood panels */
.door-panel-lower {
  width: 100%;
  height: 120px;
  margin-top: auto;
  border: 4px solid #523b37;
  background-color: rgba(80, 100, 82, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Hanging Shop Bell */
.door-bell-container {
  position: absolute;
  top: 8px;
  right: 24px;
  transform-origin: 15px 0px;
}

.door-bell-container.ring {
  animation: bellRingFast 0.8s ease-in-out 3 alternate;
}

@keyframes bellRingFast {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(25deg); }
  40% { transform: rotate(-22deg); }
  60% { transform: rotate(15deg); }
  80% { transform: rotate(-10deg); }
}

/* Door window wood grid panel */
.window-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #523b37;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}

.window-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #523b37;
  transform: translateY(-50%);
}

.window-grid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #523b37;
  transform: translateX(-50%);
}

/* Hanging Mini String Lights over the door frame */
.door-string-lights {
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 18px;
  z-index: 12;
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
  pointer-events: none;
}

.door-string-lights::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  border-bottom: 1.5px solid #382522;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.door-bulb {
  width: 6px;
  height: 9px;
  background-color: #ffebd2;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  box-shadow: 0 0 6px #ffebd2;
  animation: bulbGlow 2.5s infinite alternate ease-in-out;
  top: 2px;
}

.door-bulb::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 2px;
  width: 2px;
  height: 2px;
  background-color: #382522;
}

.bulb-d-1 { top: 3px; animation-delay: 0.1s; }
.bulb-d-2 { top: 5px; animation-delay: 0.4s; }
.bulb-d-3 { top: 6px; animation-delay: 0.2s; }
.bulb-d-4 { top: 6px; animation-delay: 0.5s; }
.bulb-d-5 { top: 5px; animation-delay: 0.3s; }
.bulb-d-6 { top: 3px; animation-delay: 0.6s; }

/* Climbing Ivy Vines on the door frame side columns */
.door-ivy {
  position: absolute;
  top: -15px;
  width: 75px;
  height: 180px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 14; /* Sits on top of the door frame */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.door-ivy-left {
  left: -20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 180'><path d='M 30,0 Q 20,40 32,80 T 15,140 Q 22,160 20,180' fill='none' stroke='%23708a72' stroke-width='2' stroke-linecap='round'/><path d='M 30,0 C 15,10 5,20 18,28 Z' fill='%238ea890'/><path d='M 26,30 C 35,42 42,32 30,48 Z' fill='%23708a72'/><path d='M 28,62 C 12,65 18,78 28,70 Z' fill='%238ea890'/><path d='M 30,90 C 45,95 40,110 28,102 Z' fill='%23708a72'/><path d='M 20,120 C 5,115 8,135 18,128 Z' fill='%238ea890'/><path d='M 18,145 C 32,150 25,165 15,158 Z' fill='%23708a72'/></svg>");
  transform-origin: top left;
  animation: ivySwayLeft 5s infinite alternate ease-in-out;
}

.door-ivy-right {
  right: -20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 180'><path d='M 50,0 Q 60,40 48,80 T 65,140 Q 58,160 60,180' fill='none' stroke='%23708a72' stroke-width='2' stroke-linecap='round'/><path d='M 50,0 C 65,10 75,20 62,28 Z' fill='%238ea890'/><path d='M 54,30 C 45,42 38,32 50,48 Z' fill='%23708a72'/><path d='M 52,62 C 68,65 62,78 52,70 Z' fill='%238ea890'/><path d='M 50,90 C 35,95 40,110 52,102 Z' fill='%23708a72'/><path d='M 60,120 C 75,115 72,135 62,128 Z' fill='%238ea890'/><path d='M 62,145 C 48,150 55,165 65,158 Z' fill='%23708a72'/></svg>");
  transform-origin: top right;
  animation: ivySwayRight 6s infinite alternate ease-in-out;
}

@keyframes ivySwayLeft {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1deg) scaleX(1.02); }
}
@keyframes ivySwayRight {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-1deg) scaleX(1.02); }
}

/* Door wrapper and click tag */
.door-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.door-entry-tag {
  color: #ffd8a8; /* Warm candle gold */
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 
    0 0 8px rgba(255, 216, 168, 0.6),
    0 0 20px rgba(224, 176, 176, 0.35);
  cursor: pointer;
  animation: tagPulse 1.8s infinite ease-in-out alternate;
  user-select: none;
  pointer-events: none; /* Ignore clicks on the tag so they trigger the preloader */
}

@keyframes tagPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
    text-shadow: 
      0 0 12px rgba(255, 216, 168, 0.85),
      0 0 24px rgba(224, 176, 176, 0.45);
  }
}

/* ==========================================================================
   ANNOUNCEMENT BAR & HEADER
   ========================================================================== */

.botanical-vine-left {
  position: fixed;
  left: 0;
  top: 0;
  width: 90px;
  height: 100vh;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 800' preserveAspectRatio='none'><path d='M 10,0 Q 25,100 12,200 T 22,400 T 8,600 T 15,800' fill='none' stroke='%23708a72' stroke-width='2.5' stroke-linecap='round'/><path d='M 10,0 Q 5,80 -10,120 T -15,300' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 12,200 Q -5,220 -8,280' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 22,400 Q 5,420 0,480' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 8,600 Q -10,620 -12,680' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 16,110 Q 25,130 28,160' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 19,290 Q 32,310 35,340' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 14,490 Q 25,510 28,540' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 13,690 Q 24,710 27,740' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M12,40 C25,30 35,40 30,55 C22,60 15,50 12,40 Z' fill='%238ea890'/><path d='M16,110 C5,100 0,115 5,125 C12,130 18,120 16,110 Z' fill='%23708a72'/><path d='M13,190 C25,180 32,195 28,205 C20,210 15,200 13,190 Z' fill='%238ea890'/><path d='M19,290 C5,280 2,295 7,305 C15,310 20,300 19,290 Z' fill='%23708a72'/><path d='M21,390 C35,380 40,395 36,405 C28,410 23,400 21,390 Z' fill='%238ea890'/><path d='M14,490 C2,480 -2,495 3,505 C10,510 16,500 14,490 Z' fill='%23708a72'/><path d='M9,590 C22,580 28,595 24,605 C16,610 11,600 9,590 Z' fill='%238ea890'/><path d='M13,690 C2,680 -2,695 3,705 C10,710 15,700 13,690 Z' fill='%23708a72'/><path d='M10,150 C25,140 32,155 28,165 C20,210 15,160 10,150 Z' fill='%23708a72'/><path d='M15,80 C30,70 35,85 30,95 C22,100 15,90 15,80 Z' fill='%238ea890'/><path d='M15,230 C0,220 -5,235 0,245 C7,250 12,240 15,230 Z' fill='%238ea890'/><path d='M18,260 C32,250 38,265 34,275 C26,280 20,270 18,260 Z' fill='%23708a72'/><path d='M14,330 C0,320 -5,335 0,345 C7,350 12,340 14,330 Z' fill='%238ea890'/><path d='M16,360 C30,350 36,365 32,375 C24,380 18,370 16,360 Z' fill='%23708a72'/><path d='M20,430 C5,420 0,435 5,445 C12,450 18,440 20,430 Z' fill='%238ea890'/><path d='M15,460 C28,450 35,465 31,475 C23,480 17,470 15,460 Z' fill='%23708a72'/><path d='M11,530 C-2,520 -7,535 -2,545 C5,550 10,540 11,530 Z' fill='%238ea890'/><path d='M13,560 C27,550 33,565 29,575 C21,580 15,570 13,560 Z' fill='%23708a72'/><path d='M10,630 C-3,620 -8,635 -3,645 C4,650 9,640 10,630 Z' fill='%238ea890'/><path d='M12,660 C26,650 32,665 28,675 C20,680 14,670 12,660 Z' fill='%23708a72'/><path d='M13,730 C0,720 -5,735 0,745 C7,750 12,740 13,730 Z' fill='%238ea890'/><path d='M15,760 C28,750 35,765 31,775 C23,780 17,770 15,760 Z' fill='%23708a72'/></svg>");
  background-repeat: repeat-y;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  opacity: 0.75;
  transform-origin: top left;
  animation: vineSwingLeft 9s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(224, 176, 176, 0.65)) drop-shadow(0 0 12px rgba(255, 200, 150, 0.2));
}

.botanical-vine-right {
  position: fixed;
  right: 0;
  top: 0;
  width: 90px;
  height: 100vh;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 800' preserveAspectRatio='none'><path d='M 90,0 Q 75,100 88,200 T 78,400 T 92,600 T 85,800' fill='none' stroke='%23708a72' stroke-width='2.5' stroke-linecap='round'/><path d='M 90,0 Q 95,80 110,120 T 115,300' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 88,200 Q 105,220 108,280' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 78,400 Q 95,420 100,480' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 92,600 Q 110,620 112,680' fill='none' stroke='%238ea890' stroke-width='1.5'/><path d='M 84,110 Q 75,130 72,160' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 81,290 Q 68,310 65,340' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 86,490 Q 75,510 72,540' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M 87,690 Q 76,710 73,740' fill='none' stroke='%23708a72' stroke-width='1.2'/><path d='M88,40 C75,30 65,40 70,55 C78,60 85,50 88,40 Z' fill='%238ea890'/><path d='M84,110 C95,100 100,115 95,125 C88,130 82,120 84,110 Z' fill='%23708a72'/><path d='M87,190 C75,180 68,195 72,205 C80,210 85,200 87,190 Z' fill='%238ea890'/><path d='M81,290 C95,280 98,295 93,305 C85,310 80,300 81,290 Z' fill='%23708a72'/><path d='M79,390 C65,380 60,395 64,405 C72,410 77,400 79,390 Z' fill='%238ea890'/><path d='M86,490 C98,480 102,495 97,505 C90,510 84,500 86,490 Z' fill='%23708a72'/><path d='M91,590 C78,580 72,595 76,605 C84,610 89,600 91,590 Z' fill='%238ea890'/><path d='M87,690 C98,680 102,695 97,705 C90,710 85,700 87,690 Z' fill='%23708a72'/><path d='M85,80 C70,70 65,85 70,95 C78,100 85,90 85,80 Z' fill='%238ea890'/><path d='M90,150 C75,140 68,155 72,165 C80,170 85,160 90,150 Z' fill='%23708a72'/><path d='M85,230 C100,220 105,235 100,245 C93,250 88,240 85,230 Z' fill='%238ea890'/><path d='M82,260 C68,250 62,265 66,275 C74,280 80,270 82,260 Z' fill='%23708a72'/><path d='M86,330 C100,320 105,335 100,345 C93,350 88,340 86,330 Z' fill='%238ea890'/><path d='M84,360 C70,350 64,365 68,375 C76,380 82,370 84,360 Z' fill='%23708a72'/><path d='M80,430 C95,420 100,435 95,445 C88,450 82,440 80,430 Z' fill='%238ea890'/><path d='M85,460 C72,450 65,465 69,475 C77,480 83,470 85,460 Z' fill='%23708a72'/><path d='M89,530 C102,520 107,535 102,545 C95,550 90,540 89,530 Z' fill='%238ea890'/><path d='M87,560 C73,550 67,565 71,575 C79,580 85,570 87,560 Z' fill='%23708a72'/><path d='M90,630 C103,620 108,635 103,645 C96,650 91,640 90,630 Z' fill='%238ea890'/><path d='M88,660 C74,650 68,665 72,675 C80,680 86,670 88,660 Z' fill='%23708a72'/><path d='M87,730 C100,720 105,735 100,745 C93,750 88,740 87,730 Z' fill='%238ea890'/><path d='M85,760 C72,750 65,765 69,775 C77,780 83,770 85,760 Z' fill='%23708a72'/></svg>");
  background-repeat: repeat-y;
  background-size: contain;
  pointer-events: none;
  z-index: 5;
  opacity: 0.75;
  transform-origin: top right;
  animation: vineSwingRight 11s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(224, 176, 176, 0.65)) drop-shadow(0 0 12px rgba(255, 200, 150, 0.2));
}

@media (max-width: 800px) {
  .botanical-vine-left, .botanical-vine-right {
    display: none;
  }
}

@keyframes vineSwingLeft {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1.2deg);
  }
}

@keyframes vineSwingRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-1.2deg);
  }
}

.cozy-string-lights {
  position: absolute;
  bottom: -18px; /* Dangles more clearly below the sticky header shelf */
  left: 0;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: space-between;
  padding: 0 4%;
  pointer-events: none;
  z-index: 106; /* Ensure it stays above content and borders for header */
}

.footer-lights {
  top: 0px; /* Moved up to align perfectly with border top */
  bottom: auto;
  z-index: 1; /* behind footer content */
}

/* Primary wire */
.cozy-string-lights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  border-bottom: 2.2px solid rgba(28, 17, 15, 0.75); /* Stronger dark wire for header */
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Secondary overlapping wire - less visible for layered depth */
.cozy-string-lights::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 14px;
  border-bottom: 1.2px dashed rgba(28, 17, 15, 0.35); /* Stronger secondary wire for header */
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
}

/* Override wire styles for footer (lighter and thinner wires) */
.footer-lights::before {
  border-bottom: 1.2px solid rgba(253, 251, 247, 0.25);
}
.footer-lights::after {
  border-bottom: 0.8px dashed rgba(253, 251, 247, 0.12);
}

.fairy-bulb {
  width: 10px;
  height: 14px;
  background-color: #ffebd2; /* Default cozy warm white */
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  box-shadow: 0 0 8px #ffebd2, 0 0 15px #ffebd2;
  animation: bulbGlow 3.5s infinite alternate ease-in-out;
}

.fairy-bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 3px;
  width: 4px;
  height: 4px;
  background-color: #523b37; /* Keep dark brown base in both dark and light modes */
  border-radius: 1px;
}

/* Staggered hanging heights mapping a sagging curve across 30 bulbs */
.bulb-1, .bulb-30 { top: -2px; }
.bulb-2, .bulb-29 { top: -1px; }
.bulb-3, .bulb-28 { top: 3px; }
.bulb-4, .bulb-27 { top: 1px; }
.bulb-5, .bulb-26 { top: 5px; }
.bulb-6, .bulb-25 { top: 3px; }
.bulb-7, .bulb-24 { top: 8px; }
.bulb-8, .bulb-23 { top: 6px; }
.bulb-9, .bulb-22 { top: 10px; }
.bulb-10, .bulb-21 { top: 7px; }
.bulb-11, .bulb-20 { top: 12px; }
.bulb-12, .bulb-19 { top: 9px; }
.bulb-13, .bulb-18 { top: 13px; }
.bulb-14, .bulb-17 { top: 11px; }
.bulb-15, .bulb-16 { top: 14px; }

/* Cozy warm white slow-blinking staggered variations for 30 bulbs */
.bulb-1, .bulb-11, .bulb-21 { animation-duration: 4.8s; animation-delay: 0.1s; background-color: #fff5e6; box-shadow: 0 0 8px #fff5e6, 0 0 15px #fff5e6; }
.bulb-2, .bulb-12, .bulb-22 { animation-duration: 3.9s; animation-delay: 0.5s; background-color: #ffe8cc; box-shadow: 0 0 8px #ffe8cc, 0 0 15px #ffe8cc; }
.bulb-3, .bulb-13, .bulb-23 { animation-duration: 5.5s; animation-delay: 0.9s; background-color: #ffdcb3; box-shadow: 0 0 8px #ffdcb3, 0 0 15px #ffdcb3; }
.bulb-4, .bulb-14, .bulb-24 { animation-duration: 4.2s; animation-delay: 0.2s; background-color: #fff0db; box-shadow: 0 0 8px #fff0db, 0 0 15px #fff0db; }
.bulb-5, .bulb-15, .bulb-25 { animation-duration: 5.0s; animation-delay: 0.7s; background-color: #ffecd9; box-shadow: 0 0 8px #ffecd9, 0 0 15px #ffecd9; }
.bulb-6, .bulb-16, .bulb-26 { animation-duration: 3.6s; animation-delay: 0.4s; background-color: #ffd8a8; box-shadow: 0 0 8px #ffd8a8, 0 0 15px #ffd8a8; }
.bulb-7, .bulb-17, .bulb-27 { animation-duration: 4.5s; animation-delay: 0.8s; background-color: #fff3e3; box-shadow: 0 0 8px #fff3e3, 0 0 15px #fff3e3; }
.bulb-8, .bulb-18, .bulb-28 { animation-duration: 4.0s; animation-delay: 0.3s; background-color: #ffe3c6; box-shadow: 0 0 8px #ffe3c6, 0 0 15px #ffe3c6; }
.bulb-9, .bulb-19, .bulb-29 { animation-duration: 5.2s; animation-delay: 0.6s; background-color: #ffdfba; box-shadow: 0 0 8px #ffdfba, 0 0 15px #ffdfba; }
.bulb-10, .bulb-20, .bulb-30 { animation-duration: 4.3s; animation-delay: 1.1s; background-color: #ffeedb; box-shadow: 0 0 8px #ffeedb, 0 0 15px #ffeedb; }

@keyframes bulbGlow {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
    filter: brightness(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.2);
    box-shadow: 0 0 12px #ffe8cc, 0 0 24px #ffe8cc;
  }
}

#announcement-bar {
  background-color: #596c5b; /* Cozy forest/sage green background */
  color: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 48px; /* Compact padding for small banner height */
  border-bottom: 1px solid rgba(44, 27, 24, 0.15);
  box-sizing: border-box;
}

.announcement-content-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-btn {
  background-color: #fdfbf7;
  color: #596c5b;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.announcement-btn:hover {
  background-color: var(--color-pink);
  color: #382522;
  transform: translateY(-1px);
}

.announcement-close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: #fdfbf7;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  top: 0;
  outline: none;
}

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

#main-header {
  height: var(--header-height);
  background-color: #382522; /* Warm dark wood background */
  border-bottom: 5px solid #281a18; /* Solid shelf-edge bottom border */
  position: sticky;
  top: 0;
  z-index: 99;
  overflow: visible; /* Let badge stick out */
}

.header-container-premium {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 12px 40px 0 40px; /* Shift content down to create space above */
  display: flex;
  align-items: center;
  justify-content: center; /* Center navigation menus */
  position: relative;
}

.premium-nav.left-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 135px; /* Symmetric spacing from logo edge */
}

.premium-nav.right-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 135px; /* Symmetric spacing from logo edge */
}

.centered-logo-badge {
  position: absolute;
  left: 50%;
  top: 54%; /* Shift badge down matching navigation items */
  transform: translate(-50%, -50%);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) drop-shadow(0 10px 20px rgba(35, 20, 18, 0.4)) drop-shadow(0 20px 35px rgba(35, 20, 18, 0.25));
}

.centered-logo-badge:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Cat Ears & Dangling Bell Animations */
.badge-cat-ear-left {
  transform-origin: 104px 14px;
  animation: earJiggleLeft 8s infinite ease-in-out;
}

.badge-cat-ear-right {
  transform-origin: 136px 14px;
  animation: earJiggleRight 8s infinite ease-in-out 0.3s;
}

.badge-dangling-bell {
  transform-origin: 178px 80px;
  animation: bellSway 3s infinite ease-in-out;
}

/* Logo Vines Sway Animations */
.logo-vine-left {
  transform-origin: 70px 85px;
  animation: vineSwayLeft 5s infinite ease-in-out;
}

.logo-vine-right {
  transform-origin: 170px 85px;
  animation: vineSwayRight 5s infinite ease-in-out;
}

.centered-logo-badge:hover .badge-cat-ear-left {
  animation: earJiggleLeftHover 0.6s ease-in-out;
}

.centered-logo-badge:hover .badge-cat-ear-right {
  animation: earJiggleRightHover 0.6s ease-in-out;
}

.centered-logo-badge:hover .badge-dangling-bell {
  animation: bellJingleHover 0.8s ease-in-out;
}

.centered-logo-badge:hover .logo-vine-left {
  animation: vineSwayLeftHover 1.5s ease-in-out infinite alternate;
}

.centered-logo-badge:hover .logo-vine-right {
  animation: vineSwayRightHover 1.5s ease-in-out infinite alternate;
}


@keyframes earJiggleLeft {
  0%, 85%, 100% {
    transform: rotate(0deg);
  }
  87% {
    transform: rotate(-12deg) skewX(-6deg);
  }
  89% {
    transform: rotate(6deg) skewX(3deg);
  }
  91% {
    transform: rotate(-8deg);
  }
  93% {
    transform: rotate(3deg);
  }
  95% {
    transform: rotate(0deg);
  }
}

@keyframes earJiggleRight {
  0%, 85%, 100% {
    transform: rotate(0deg);
  }
  87% {
    transform: rotate(12deg) skewX(6deg);
  }
  89% {
    transform: rotate(-6deg) skewX(-3deg);
  }
  91% {
    transform: rotate(8deg);
  }
  93% {
    transform: rotate(-3deg);
  }
  95% {
    transform: rotate(0deg);
  }
}

@keyframes earJiggleLeftHover {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-18deg) skewX(-8deg); }
  50% { transform: rotate(10deg) skewX(4deg); }
  75% { transform: rotate(-8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes earJiggleRightHover {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(18deg) skewX(8deg); }
  50% { transform: rotate(-10deg) skewX(-4deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes bellSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes bellJingleHover {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(22deg); }
  30% { transform: rotate(-18deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
  90% { transform: rotate(-3deg); }
}

@keyframes vineSwayLeft {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-2.5deg);
  }
}

@keyframes vineSwayRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@keyframes vineSwayLeftHover {
  0% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}

@keyframes vineSwayRightHover {
  0% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(5deg);
  }
}


.premium-nav ul {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
}

.nav-item {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fdfbf7; /* Cream white nav text */
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  background-color: transparent;
  border: 1px solid transparent;
  position: relative; /* Create positioning context for hiring badge + underline */
}

.nav-item i {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sliding underline for nav items */
.nav-item::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background-color: rgba(244, 198, 206, 0.7); /* soft pink */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav-item:hover::after {
  transform: scaleX(1);
}

/* Active page indicator: always-visible soft pink underline, no pill */
.nav-item.active {
  color: #fdfbf7;
  background-color: transparent;
  box-shadow: none;
}

.nav-item.active::after {
  background-color: rgba(224, 176, 176, 0.95); /* dusty pink underline */
  transform: scaleX(1);
}

.hiring-badge {
  position: absolute;
  top: -4px; /* Position above the nav text */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-pink);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  transition: color 0.3s ease;
  animation: badgeShake 2.2s infinite ease-in-out;
  transform-origin: bottom center;
}

.nav-item.active .hiring-badge {
  color: #fdfbf7; /* Stay cream on active since no more dark pink background */
}

@keyframes badgeShake {
  0%, 60%, 100% { transform: translateX(-50%) rotate(0deg); }
  70% { transform: translateX(-50%) rotate(-4deg); }
  80% { transform: translateX(-50%) rotate(3deg); }
  90% { transform: translateX(-50%) rotate(-2deg); }
  95% { transform: translateX(-50%) rotate(1deg); }
}

.header-right-action {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 110;
}

/* Ambient sound toggle button */
#ambient-audio-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #708a72; /* Sage green paw button */
  border: none;
  color: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

#ambient-audio-btn:hover {
  background-color: #596c5b;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(112, 138, 114, 0.4);
}

#ambient-audio-btn.audio-active {
  background-color: var(--color-pink); /* Pink when ambiance is ON */
  color: #382522;
  animation: audioPulse 2s infinite alternate ease-in-out;
}

@keyframes audioPulse {
  0% { transform: scale(1); box-shadow: 0 0 4px rgba(224, 176, 176, 0.3); }
  100% { transform: scale(1.08); box-shadow: 0 0 12px rgba(224, 176, 176, 0.7); }
}

/* Custom audio button tooltip */
.audio-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.92), rgba(240, 235, 224, 0.88));
  color: #2c1b18;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(44, 27, 24, 0.12);
  box-shadow:
    0 4px 14px rgba(44, 27, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 120;
}

.audio-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--tooltip-arrow-color);
}

.audio-toggle-wrapper:hover .audio-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Theme Toggle button & tooltip styling */
#theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-wood-light);
  border: none;
  color: #fdfbf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

#theme-toggle-btn:hover {
  background-color: #684d48;
  color: #fdfbf7;
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(255, 216, 168, 0.45);
}

.theme-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.92), rgba(240, 235, 224, 0.88));
  color: #2c1b18;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(44, 27, 24, 0.12);
  box-shadow:
    0 4px 14px rgba(44, 27, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 120;
}

.theme-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(240, 235, 224, 0.92);
}

.theme-toggle-wrapper:hover .theme-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Hamburger toggle menu */
#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  outline: none;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.burger-bar {
  width: 24px;
  height: 2px;
  background-color: #fdfbf7; /* Cream/white bars for dark-wood header */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE DRAWER NAV
   ========================================================================== */

#mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: var(--bg-cream);
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 24px;
}

#mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.drawer-logo h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

#mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-wood-light);
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-item {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-wood-light);
}

.drawer-item.active {
  color: var(--color-sage-dark);
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid rgba(44, 27, 24, 0.06);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--color-wood-light);
  text-align: center;
}

.drawer-footer p {
  font-weight: 700;
  margin-bottom: 4px;
}

#drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 27, 24, 0.3);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#drawer-overlay.show {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   TAB ROUTING PANELS
   ========================================================================== */

#tab-content-container {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-cream);
}

/* Background anchors matching active page header banner height to prevent page transition flashes */
body[data-active-page="home"] #tab-content-container {
  background: linear-gradient(to bottom, #2c1b18 520px, var(--bg-cream) 520px);
}

body[data-active-page="cafe"] #tab-content-container,
body[data-active-page="menu"] #tab-content-container,
body[data-active-page="cats"] #tab-content-container,
body[data-active-page="events"] #tab-content-container,
body[data-active-page="team"] #tab-content-container,
body[data-active-page="gallery"] #tab-content-container,
body[data-active-page="careers"] #tab-content-container,
body[data-active-page="contact"] #tab-content-container {
  background: linear-gradient(to bottom, #2c1b18 280px, var(--bg-cream) 280px);
}

.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.tab-panel.active {
  display: block;
}

.tab-panel.show {
  opacity: 1;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-accent-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-pink-dark);
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.9),
    0 0 28px rgba(255, 200, 150, 0.45);
}

/* Love Notes title: plain color, no glow — let the heart icon carry the warmth */
.reviews-section-title {
  text-shadow: none;
  color: var(--color-wood);
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-wood-light);
  font-weight: 500;
}

.page-intro-header {
  background-color: #2c1b18; /* Prevent white flash while image fades in */
  background-image: linear-gradient(rgba(44, 27, 24, 0.55), rgba(44, 27, 24, 0.45)), url('assets/header.png');
  background-size: cover;
  background-position: center 62%;
  background-attachment: scroll; /* Avoid 1-frame blank rendering bug on tab switch */
  padding: 80px 100px;
  text-align: center;
  border-bottom: 1px solid rgba(44, 27, 24, 0.03);
}

/* Light text on image background for all page intro headers */
.page-intro-header .section-accent-text {
  color: var(--color-pink);
}
.page-intro-header .page-title,
.page-intro-header .section-title {
  color: #fdfbf7;
}
.page-intro-header .page-description,
.page-intro-header .section-desc {
  color: rgba(253, 251, 247, 0.82);
}

@media (max-width: 800px) {
  .page-intro-header {
    padding: 60px 24px;
  }
}

.page-title {
  font-size: 2.8rem;
  margin-bottom: 12px;
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.9),
    0 0 28px rgba(255, 200, 150, 0.45);
}

.page-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-wood-light);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ==========================================================================
   HOME TAB COMPONENT DESIGNS
   ========================================================================== */

/* Hero Banner */
.hero-banner {
  height: 520px;
  background-color: #2c1b18; /* Prevent white flash while image loads/decodes */
  background-size: cover;
  background-position: center 68%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-text-wrapper {
  position: relative; /* Create positioning context for cat ears outside the glass stacking context */
  max-width: 650px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
  z-index: 10;
}

.hero-text-container {
  padding: 40px;
  /* Frosted white glass — see-through but neutral, no color tint */
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--border-radius-lg);
  /* Clean shadow + barely-there top gloss shimmer */
  box-shadow:
    0 8px 32px rgba(44, 27, 24, 0.07),
    0 2px 8px rgba(44, 27, 24, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(44, 27, 24, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.45);
}

/* Glassmorphic cat ears protruding from the top corners of the title box, placed strictly behind the container */
.hero-text-wrapper::before,
.hero-text-wrapper::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 65px;
  /* Matching frosted white glass + soft pink inner ear blush */
  background: radial-gradient(circle at 50% 60%, rgba(224, 176, 176, 0.35) 0%, transparent 65%),
              rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 0.95);
  z-index: -1; /* Placed behind the glass card */
  top: -38px; /* Protrude further up to be taller */
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Left ear styling and subtle rotation - curved outward like ( with straighter inner side */
.hero-text-wrapper::before {
  left: 45px;
  border-top-left-radius: 45px 45px; /* Curved outer edge */
  border-top-right-radius: 12px 40px; /* Straight inner edge */
  border-bottom-left-radius: 10px;
  transform: rotate(-10deg); /* Point more upwards */
  border-bottom: none;
  border-right: none;
}

/* Right ear styling and subtle rotation - curved outward like ) with straighter inner side */
.hero-text-wrapper::after {
  right: 45px;
  border-top-right-radius: 45px 45px; /* Curved outer edge */
  border-top-left-radius: 12px 40px; /* Straight inner edge */
  border-bottom-right-radius: 10px;
  transform: rotate(10deg); /* Point more upwards */
  border-bottom: none;
  border-left: none;
}

/* Interactive hover wiggle: ears perk up and tilt slightly more outwards on mouse hover */
.hero-text-wrapper:hover::before {
  transform: rotate(-16deg) translateY(-3px);
}
.hero-text-wrapper:hover::after {
  transform: rotate(16deg) translateY(-3px);
}

/* Dangling Golden Bell at the bottom left corner of the hero box */
.hero-dangling-bell {
  position: absolute;
  left: 28px;
  bottom: -54px; /* Hangs down from the bottom of the card */
  z-index: -1; /* Placed behind the glass card container */
  transform-origin: 20px 0px; /* Pivot around top-center of the SVG */
  animation: bellSway 3.5s infinite ease-in-out;
}

.hero-text-wrapper:hover .hero-dangling-bell {
  animation: bellJingleHover 0.8s ease-in-out;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-sage-ultra-light);
  color: var(--color-sage-dark);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-headline {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(
    to right,
    #f4c6ce 0%,    /* pastel rose */
    #f9dcdb 20%,   /* pastel soft pink */
    #faf5e8 40%,   /* pastel warm cream */
    #cde1d5 60%,   /* pastel sage green */
    #dfcdc5 80%,   /* pastel latte brown */
    #f4c6ce 100%   /* pastel rose again for a seamless loop */
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: block;
  animation: 
    titleShimmer 32s linear infinite, 
    heroGlowPulse 5s ease-in-out infinite alternate, 
    titleFloat 6s ease-in-out infinite;
}

@keyframes titleShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

@keyframes heroGlowPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(192, 96, 112, 0.95))
      drop-shadow(0 0 12px rgba(192, 96, 112, 0.65))
      drop-shadow(0 2px 6px rgba(44, 27, 24, 0.7));
  }
  50% {
    filter:
      drop-shadow(0 0 6px rgba(142, 168, 144, 0.95))
      drop-shadow(0 0 16px rgba(142, 168, 144, 0.7))
      drop-shadow(0 2px 8px rgba(44, 27, 24, 0.8));
  }
}

@keyframes titleFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-wood-light);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Arrow that slides in from left → right on hover */
.hero-buttons .btn-primary {
  overflow: hidden;
}

.hero-buttons .btn-primary::after {
  content: '→';
  position: relative;
  display: inline-block;
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.25s ease;
}

.hero-buttons .btn-primary:hover::after {
  max-width: 24px;
  margin-left: 8px;
  opacity: 1;
}
.hero-buttons .btn-secondary:hover {
  box-shadow: 
    0 4px 12px rgba(44, 27, 24, 0.35),
    0 0 8px rgba(122, 78, 74, 0.5);
}

/* Arrow slides in on hover for 'Visit Us' */
.hero-buttons .btn-secondary {
  overflow: hidden;
}

.hero-buttons .btn-secondary::after {
  content: '→';
  position: relative;
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transition:
    max-width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.25s ease;
}

.hero-buttons .btn-secondary:hover::after {
  max-width: 24px;
  margin-left: 8px;
  opacity: 1;
}

/* Welcome Widgets Grid */
.welcome-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 20px;
}

.widget-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  /* Matching frosted glass — using variables to match hero-text-container */
  background: linear-gradient(
    135deg,
    var(--glass-bg-start) 0%,
    var(--glass-bg-end) 100%
  );
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-radius: var(--border-radius-md);
  box-shadow:
    0 4px 20px var(--glass-shadow),
    inset 0 1px 0 var(--glass-shadow-inset),
    inset 0 -1px 0 rgba(44, 27, 24, 0.04);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
}

.widget-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  background-color: var(--color-pink-ultra-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-icon {
  background-color: var(--color-sage-ultra-light);
}

.widget-info h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.weather-temp {
  font-weight: 700;
  color: var(--color-wood);
}

.weather-quote {
  font-size: 0.88rem;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  background-color: #ffebee;
  color: #c62828;
}

.status-badge.open {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* House Favorites on Home */
.house-favorites-section {
  padding-top: 30px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.favorite-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.favorite-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.fav-img-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  padding-top: 66.6%;
  background-color: var(--bg-cream-dark);
}

.fav-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.favorite-card:hover .fav-img {
  transform: scale(1.05);
}

.fav-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-pink);
  color: var(--color-wood);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.fav-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fav-body h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.fav-body p {
  color: var(--color-wood-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
}

.fav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(44, 27, 24, 0.05);
  padding-top: 16px;
}

.fav-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-wood-light);
  background: linear-gradient(135deg, #fdfbf7, #f0ebe0);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow:
    0 3px 8px rgba(44, 27, 24, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.fav-price::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--bg-cream-dark);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 50%;
  margin-right: 6px;
}

.favorite-card:hover .fav-price {
  transform: translateY(-2px) rotate(-3deg);
  border-color: var(--color-pink-dark);
  box-shadow:
    0 5px 12px rgba(44, 27, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
}

/* Underline sliding left → right */
.fav-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-wood-light);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Arrow appears on hover */
.fav-link::after {
  content: '→';
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transition:
    max-width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.25s ease;
}

.fav-link:hover {
  color: var(--color-sage);
}

.fav-link:hover::before {
  width: 100%;
}

.fav-link:hover::after {
  max-width: 20px;
  margin-left: 6px;
  opacity: 1;
}

/* Why Visit Us features list */
.why-visit-us {
  background-color: var(--bg-cream-dark);
  border-radius: var(--border-radius-lg);
  margin-top: 40px;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 20px 10px;
}

.feature-icon-circle {
  font-size: 2.2rem;
  width: 72px;
  height: 72px;
  background-color: var(--bg-cream-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--color-wood);
}

.feature-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.9),
    0 0 28px rgba(255, 200, 150, 0.45);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--color-wood-light);
}

/* Live previews panels */
.home-previews-section {
  padding-top: 20px;
}

.previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-panel {
  background-color: var(--bg-cream-light);
  padding: 28px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(44, 27, 24, 0.02);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.preview-header h4 {
  font-size: 1.2rem;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.preview-stat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: var(--bg-cream-dark);
  color: var(--color-wood-light);
}

.preview-stat.highlight {
  background-color: var(--color-pink-light);
  color: var(--color-pink-dark);
}

.preview-panel p {
  font-size: 0.9rem;
  color: var(--color-wood-light);
  margin-bottom: 20px;
  flex: 1;
}

.preview-btn-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-sage-dark);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

/* Sliding underline from left */
.preview-btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-wood-light);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Always-visible right arrow */
.preview-btn-link .link-arrow {
  font-style: normal;
  transition: transform 0.3s ease;
}

.preview-btn-link:hover {
  color: var(--color-sage);
}

.preview-btn-link:hover::after {
  width: 100%;
}

.preview-btn-link:hover .link-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   REVIEWS & LOVE NOTES CAROUSEL
   ========================================================================== */

.reviews-section {
  padding-top: 40px;
}

.carousel-container-outer {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: visible;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius-md);
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  padding: 30px;
  background-color: var(--bg-cream-light);
  border: 1px solid rgba(142, 168, 144, 0.1);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
}

.slide-stars {
  font-size: 1.4rem;
  color: #6b3e2e;
  margin-bottom: 12px;
  letter-spacing: 0.3em;
}

.slide-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--color-wood-light);
  font-style: italic;
}

.slide-author {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-sage-dark);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-cream-light);
  border: 1px solid rgba(44, 27, 24, 0.06);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background-color: var(--color-sage-ultra-light);
  border-color: var(--color-sage);
}

.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(44, 27, 24, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--color-pink-dark);
  transform: scale(1.3);
}

.reviews-bottom-note {
  text-align: center;
  max-width: 500px;
  margin: 24px auto 0 auto;
  font-size: 0.85rem;
  color: var(--color-wood-light);
  font-weight: 700;
}

/* Submission Form styling */
.add-review-container {
  max-width: 600px;
  margin: 60px auto 0 auto;
  background-color: var(--bg-cream-dark);
  padding: 36px;
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--color-sage-light);
}

.review-form-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-wood-light);
  text-shadow:
    0 0 6px rgba(224, 176, 176, 0.8),
    0 0 16px rgba(255, 200, 150, 0.35);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background-color: var(--bg-cream-light);
  font-family: var(--font-sans);
  color: var(--color-wood);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  border-color: var(--color-sage);
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  line-height: 1;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  color: var(--color-wood-light);
  opacity: 0.25;
  cursor: pointer;
  font-size: 2.2rem;
  padding: 0 4px;
  display: inline-block;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-shadow: none; /* Disable inherited text-shadow glow */
}

.star-rating-input label:hover {
  transform: scale(1.35) rotate(8deg);
}

.star-rating-input label:active {
  transform: scale(0.9) rotate(-4deg);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #6b3e2e;
  opacity: 1;
}

/* Custom rating tooltip styling */
.rating-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: linear-gradient(135deg, #fdfbf7, #f0ebe0);
  color: var(--color-wood);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(44, 27, 24, 0.12);
  box-shadow: 0 4px 12px rgba(44, 27, 24, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  line-height: 1.2;
}

.rating-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #f0ebe0;
}

.star-rating-input label:hover .rating-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-submit-review {
  margin-top: 10px;
  width: 100%;
}

/* ==========================================================================
   MENU TAB COMPONENTS
   ========================================================================== */

.menu-controls-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-search-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

#menu-search {
  padding-left: 45px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.4;
}

.menu-categories-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background-color: var(--bg-cream-light);
  border: 1px solid rgba(44, 27, 24, 0.05);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--color-wood-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-sage-dark);
  color: var(--bg-cream);
  border-color: var(--color-sage-dark);
  box-shadow: 0 4px 8px rgba(112, 138, 114, 0.15);
}

.favorites-filter-btn:hover, .favorites-filter-btn.active {
  background-color: var(--color-pink);
  color: var(--color-wood);
  border-color: var(--color-pink);
  box-shadow: 0 4px 8px rgba(224, 176, 176, 0.2);
}

/* Menu Grid */
.menu-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.menu-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.menu-card-img-box {
  position: relative;
  padding-top: 66.6%;
  background-color: var(--bg-cream-dark);
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.menu-card-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.menu-card:hover .menu-card-img-box img {
  transform: scale(1.05);
}

.menu-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.badge-signature { background-color: var(--color-sage-light); color: var(--bg-cream); }
.badge-favorite { background-color: var(--color-pink); color: var(--color-wood); }
.badge-seasonal { background-color: var(--color-gold); color: var(--color-wood); }
.badge-chef { background-color: var(--color-wood-light); color: var(--bg-cream-light); }

.menu-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-card-title {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.menu-card-desc {
  font-size: 0.82rem;
  color: var(--color-wood-light);
  line-height: 1.5;
  margin-top: 6px;
  flex: 1;
}

.menu-card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(44, 27, 24, 0.08);
  padding-top: 14px;
}

.menu-card-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-wood-light);
  background: linear-gradient(135deg, #fdfbf7, #f0ebe0);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow:
    0 3px 8px rgba(44, 27, 24, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.menu-card-price::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--bg-cream-dark);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 50%;
  margin-right: 6px;
}

.menu-card:hover .menu-card-price {
  transform: translateY(-2px) rotate(-3deg);
  border-color: var(--color-pink-dark);
  box-shadow:
    0 5px 12px rgba(44, 27, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Seasonal item small price tag */
.price-span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-wood-light);
  background: linear-gradient(135deg, #fdfbf7, #f0ebe0);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 10px;
  padding: 2px 8px;
  box-shadow:
    0 2px 5px rgba(44, 27, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--bg-cream-dark);
  border: 1px solid rgba(44, 27, 24, 0.12);
  border-radius: 50%;
  margin-right: 5px;
}

.seasonal-item-small:hover .price-span {
  transform: translateY(-1px) rotate(-3deg);
  border-color: var(--color-pink-dark);
}

/* Seasonal Specials Selection */
.seasonal-rotation-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 24px;
  background-color: var(--bg-cream-dark);
  border-radius: var(--border-radius-lg);
  border: 1px dashed var(--color-sage);
}

.seasonal-header {
  text-align: center;
  margin-bottom: 30px;
}

.seasonal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background-color: var(--color-sage-ultra-light);
  color: var(--color-sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.seasonal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.seasonal-header p {
  color: var(--color-wood-light);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.seasonal-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.seasonal-tab-btn {
  background-color: var(--bg-cream-light);
  border: 1px solid rgba(44, 27, 24, 0.05);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--color-wood-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.seasonal-tab-btn.active {
  background-color: var(--color-pink);
  color: var(--color-wood);
  border-color: var(--color-pink);
}

.seasonal-content-box {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  min-height: 150px;
}

.seasonal-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.seasonal-item-small {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid rgba(44, 27, 24, 0.04);
}

.seasonal-item-small img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-cream-dark);
}

.si-details h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.si-desc {
  font-size: 0.78rem;
  color: var(--color-wood-light);
  line-height: 1.4;
}

/* ==========================================================================
   OUR CATS TAB COMPONENT
   ========================================================================== */

.cats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.cat-img-box {
  position: relative;
  padding-top: 66.67%; /* 3:2 aspect ratio matching the cat SVGs */
  background-color: var(--bg-cream-dark);
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.cat-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-img-box img {
  transform: scale(1.05);
}

.cat-info-summary {
  padding: 20px;
  text-align: center;
}

.cat-info-summary h4 {
  font-size: 1.3rem;
  font-family: var(--font-sans);
  margin-bottom: 4px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.cat-role-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-sage-dark);
}

/* ==========================================================================
   EVENTS TAB COMPONENT
   ========================================================================== */

.next-event-spotlight {
  max-width: 1200px;
  margin: 40px auto 60px auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background-color: var(--bg-cream-dark);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(142, 168, 144, 0.1);
  overflow: hidden;
  gap: 24px;
}

.spotlight-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background-color: var(--color-pink-light);
  color: var(--color-pink-dark);
  font-weight: 700;
  font-size: 0.78rem;
  align-self: flex-start;
  margin-bottom: 12px;
}

.spotlight-content h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.9),
    0 0 28px rgba(255, 200, 150, 0.45);
}

.spotlight-time {
  font-size: 0.95rem;
  color: var(--color-wood-light);
  margin-bottom: 16px;
}

.spotlight-time strong {
  color: var(--color-sage-dark);
}

.spotlight-desc {
  font-size: 0.95rem;
  color: var(--color-wood-light);
  margin-bottom: 24px;
}

.spotlight-image-placeholder {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio matching the event SVGs */
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.spotlight-image-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-list-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

.subsection-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.9),
    0 0 28px rgba(255, 200, 150, 0.45);
}

.events-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.event-schedule-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  display: flex;
  flex-direction: column;
}

.event-day-badge {
  align-self: flex-start;
  background-color: var(--color-sage-ultra-light);
  color: var(--color-sage-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.event-schedule-card h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.event-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-wood-light);
  margin-bottom: 10px;
}

.event-desc {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* ==========================================================================
   THE TEAM TAB COMPONENT
   ========================================================================== */

.team-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  display: flex;
  flex-direction: column;
}

/* Card Flip styles */
.team-img-box-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio matching SVGs and generated PNGs */
  background-color: transparent;
  perspective: 1000px; /* Enable 3D depth */
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.team-img-box-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-img-box-wrapper:hover .team-img-box-inner {
  transform: rotateY(180deg);
}

.team-img-front, .team-img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  overflow: hidden;
}

.team-img-front {
  background-color: var(--bg-cream-dark);
  z-index: 2;
}

.team-img-back {
  background-color: var(--bg-cream-dark);
  transform: rotateY(180deg);
}

.team-img-front img, .team-img-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-bubble {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  border: 1px solid rgba(142, 168, 144, 0.2);
}

.team-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-body h4 {
  font-size: 1.3rem;
  margin-bottom: 2px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-pink-dark);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
}

.team-stats {
  border-top: 1px dashed rgba(44, 27, 24, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-wood-light);
}

.team-stats span strong {
  color: var(--color-wood);
}

/* ==========================================================================
   GALLERY TAB COMPONENT
   ========================================================================== */

.gallery-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.gal-filter-btn {
  background-color: var(--bg-cream-light);
  border: 1px solid rgba(44, 27, 24, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--color-wood-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gal-filter-btn:hover, .gal-filter-btn.active {
  background-color: var(--color-sage-dark);
  color: var(--bg-cream);
  border-color: var(--color-sage-dark);
}

.gallery-masonry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
  column-count: 3;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

/* Scrapbook style caption card */
.gallery-caption-card {
  padding: 18px;
  border-top: 1px solid rgba(44, 27, 24, 0.04);
}

.gallery-caption-card h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.gallery-caption-card p {
  font-size: 0.78rem;
  color: var(--color-wood-light);
  line-height: 1.4;
}

/* ==========================================================================
   CAREERS TAB COMPONENT
   ========================================================================== */

.careers-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.careers-roles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.careers-roles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-accordion-item {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.role-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.role-header h4 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.role-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  background-color: var(--color-sage-ultra-light);
  padding: 4px 10px;
  border-radius: 12px;
}

.role-body {
  padding: 0 24px 24px 24px;
}

.role-body p {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.role-body .apply-btn:hover {
  box-shadow: 
    0 4px 12px rgba(224, 130, 130, 0.4),
    0 0 6px rgba(255, 176, 176, 0.45);
}

.careers-form-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}

.careers-form-container {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  padding: 36px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(142, 168, 144, 0.15);
  position: relative;
}

.form-help-text {
  font-size: 0.82rem;
  color: var(--color-pink-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.disabled-input {
  background-color: var(--bg-cream-dark) !important;
  color: var(--color-wood-light) !important;
  font-weight: 700;
}

.check-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.check-group input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.check-group label {
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
}

/* Success applications card overlays */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 5;
  animation: fadeIn 0.4s ease forwards;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.success-message h4 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.success-message p {
  font-size: 0.95rem;
  color: var(--color-wood-light);
  max-width: 320px;
}

.success-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-wood-light);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.success-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ==========================================================================
   CONTACT TAB & ACCORDIONS
   ========================================================================== */

.contact-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 30px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* chalkboard Card for Hours */
.chalkboard-card {
  background-color: #242220; /* Chalkboard charcoal background */
  border-radius: var(--border-radius-md);
  padding: 10px;
  box-shadow: var(--shadow-deep);
  align-self: start;
}

.chalkboard-border {
  border: 2px dashed rgba(253, 251, 247, 0.4);
  border-radius: 12px;
  padding: 30px;
}

.chalkboard-title {
  color: var(--bg-cream);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(224, 176, 176, 0.9), 0 0 28px rgba(255, 200, 150, 0.45);
}

.chalkboard-hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.chalkboard-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(253, 251, 247, 0.85);
  border-bottom: 1px dashed rgba(253, 251, 247, 0.15);
  padding-bottom: 8px;
}

.chalkboard-hours li span:last-child {
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.chalkboard-footer {
  text-align: center;
  border-top: 2px solid rgba(253, 251, 247, 0.1);
  padding-top: 24px;
}

.cb-address {
  color: var(--bg-cream);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.cb-help {
  color: rgba(253, 251, 247, 0.65);
  font-size: 0.82rem;
  line-height: 1.4;
}

.contact-form-card {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.03);
  position: relative;
}

.contact-form-card h4 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.contact-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 60px;
}

.map-placeholder-element {
  position: relative;
  background-color: var(--bg-cream-dark);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(44, 27, 24, 0.05);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.map-vector {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.map-placeholder-element:hover .map-vector {
  transform: scale(1.03);
}

.map-overlay-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 27, 24, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.map-placeholder-element:hover .map-overlay-button {
  background-color: rgba(44, 27, 24, 0.3);
}

.map-overlay-button span {
  background-color: var(--bg-cream-light);
  color: var(--color-wood);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-medium);
}

.faq-container-box h4, .map-container-box h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.85),
    0 0 20px rgba(255, 200, 150, 0.4);
}

.faq-item {
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(44, 27, 24, 0.04);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-wood);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-sage-dark);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.open .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  font-size: 0.88rem;
  color: var(--color-wood-light);
  line-height: 1.5;
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

.error-404-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 0 24px;
}

.error-cat-graphic {
  margin-bottom: 24px;
}

.error-404-container h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.error-404-container p {
  font-size: 1.05rem;
  color: var(--color-wood-light);
  margin-bottom: 30px;
}

/* ==========================================================================
   VINTAGE FOOTER
   ========================================================================== */

#main-footer {
  background-color: #382522; /* Warm dark wood background */
  border-top: 5px solid #281a18; /* Shelf-edge style matching header */
  padding: 60px 100px 30px 100px;
  margin-top: auto;
  color: #fdfbf7;
  position: relative; /* Position context for footer stringlights */
}

.footer-upper {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: #fdfbf7;
}

.footer-motto {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-pink); /* Soft pink details */
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.footer-divider-thin {
  height: 1px;
  background-color: rgba(253, 251, 247, 0.1);
  margin-bottom: 20px;
}

.footer-info-row {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #fdfbf7;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.chalk-time {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-pink);
  margin-bottom: 16px;
}

.discord-footer-btn {
  background-color: #5865f2; /* Discord branding color */
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}

.discord-footer-btn:hover {
  background-color: #4752c4;
}

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

.footer-links li a, .footer-modal-trigger {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(253, 251, 247, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: var(--font-sans);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 1px;
}

.footer-links li a::after, .footer-modal-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: rgba(196, 145, 78, 0.7); /* warm brownish gold */
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-links li a:hover, .footer-modal-trigger:hover {
  color: var(--color-pink);
}

.footer-links li a:hover::after, .footer-modal-trigger:hover::after {
  width: 100%;
}

.footer-cat-tail {
  transform-origin: 22px 42px;
  animation: loaderTailWag 2s infinite ease-in-out;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(253, 251, 247, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.footer-quote-box {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 500px;
}

.quote-symbol {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: var(--color-pink);
  line-height: 1;
}

#footer-random-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-pink-light);
}

.footer-copyright p {
  font-size: 0.78rem;
  color: rgba(253, 251, 247, 0.6);
  font-weight: 600;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 27, 24, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 24px;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: linear-gradient(
    135deg,
    var(--glass-bg-start) 0%,
    var(--glass-bg-end) 100%
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--border-radius-lg);
  max-width: 720px;
  width: 100%;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 var(--glass-shadow-inset),
    inset 0 -1px 0 rgba(44, 27, 24, 0.03);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  position: relative;
  overflow: visible;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 30px;
}

.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-wood-light);
  z-index: 10;
  outline: none;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-wood);
}

/* Cat Navigation Buttons */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glass-bg-start), var(--glass-bg-end));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--color-wood-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  z-index: 15;
}

.modal-nav-btn:hover {
  background-color: var(--color-sage-dark);
  color: var(--bg-cream);
  border-color: var(--color-sage-dark);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-nav-btn.prev-cat {
  left: -68px;
}

.modal-nav-btn.next-cat {
  right: -68px;
}

@media (max-width: 880px) {
  .modal-nav-btn.prev-cat {
    left: 10px;
  }
  .modal-nav-btn.next-cat {
    right: 10px;
  }
  .modal-nav-btn {
    background: linear-gradient(135deg, var(--glass-bg-start), var(--glass-bg-end));
    box-shadow: var(--shadow-deep);
  }
}

/* Cat details specific */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
  will-change: opacity, transform;
}

.modal-grid.fade-out {
  opacity: 0;
  transform: translateY(4px) scale(0.98);
}

.modal-img-box {
  background-color: var(--bg-cream-dark);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  padding-top: 66.67%; /* 3:2 aspect ratio matching the cat SVGs */
  position: relative;
}

.modal-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body-box h3 {
  font-size: 1.8rem;
  margin-top: 6px;
  margin-bottom: 12px;
}

.modal-badge-row {
  margin-bottom: 4px;
}

.modal-accent-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-pink-dark);
  letter-spacing: 0.8px;
}

.cat-stat-pill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-pill {
  background-color: var(--bg-cream-dark);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  color: var(--color-wood-light);
  border-left: 3px solid var(--color-sage-light);
}

.stat-pill strong {
  color: var(--color-wood);
}

.modal-divider {
  height: 1px;
  background-color: rgba(44, 27, 24, 0.08);
  margin-bottom: 20px;
}

.modal-body-box h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.modal-body-box p {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  line-height: 1.5;
}

/* Lightbox gallery specific */
.lightbox-modal {
  max-width: 900px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(28, 20, 18, 0.88) 0%,
    rgba(18, 13, 12, 0.82) 100%
  );
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(250, 244, 242, 0.1);
  border-top-color: rgba(250, 244, 242, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(250, 244, 242, 0.08);
}

.lightbox-content img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  border-radius: var(--border-radius-sm);
  background-color: #1a1817;
}

.lightbox-caption-box {
  padding: 20px 10px 10px 10px;
  color: var(--bg-cream);
}

.lightbox-caption-box h4 {
  color: var(--color-gold);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.lightbox-caption-box p {
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.7);
  line-height: 1.4;
}

/* Mini Success modal & Legal modals */
.mini-modal {
  max-width: 420px;
  text-align: center;
}

.mini-modal-content {
  padding: 10px 0;
}

.event-modal-icon {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 12px;
}

.mini-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.mini-modal-content p {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  margin-bottom: 24px;
}

.close-modal-btn {
  width: 100%;
}

.text-modal {
  max-width: 650px;
}

.text-modal h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(44, 27, 24, 0.05);
  padding-bottom: 10px;
  text-shadow:
    0 0 10px rgba(224, 176, 176, 0.8),
    0 0 24px rgba(255, 200, 150, 0.4);
}

.modal-text-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-text-content h4 {
  font-size: 1.08rem;
  margin-top: 20px;
  margin-bottom: 8px;
  text-shadow:
    0 0 8px rgba(224, 176, 176, 0.75),
    0 0 20px rgba(255, 200, 150, 0.38);
}

.modal-text-content p, .modal-text-content ul {
  font-size: 0.88rem;
  color: var(--color-wood-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.modal-text-content ul {
  list-style-position: inside;
  padding-left: 10px;
}

/* Animations helpers */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .premium-nav.left-nav, .premium-nav.right-nav {
    display: none;
  }
  #mobile-menu-toggle {
    display: flex;
    left: 24px;
  }
  .header-right-action {
    right: 24px;
  }
  .centered-logo-badge {
    top: 50%; /* Center vertically on tablets/mobiles */
    transform: translate(-50%, -50%) scale(0.8);
  }
  .centered-logo-badge:hover {
    transform: translate(-50%, -50%) scale(0.85);
  }
  .header-container-premium {
    padding: 0 24px; /* Resets padding-top to 0 on tablets/mobiles */
  }
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .cats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  #main-header {
    height: 75px;
  }
  /* Announcement bar mobile updates */
  #announcement-bar {
    height: auto;
    padding: 10px 48px 10px 36px;
    font-size: 0.78rem;
    line-height: 1.4;
  }
  .announcement-content-wrapper {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .announcement-btn {
    padding: 3px 10px;
    font-size: 0.68rem;
    border-radius: 10px;
  }
  .announcement-close {
    font-size: 1.25rem;
    right: 12px;
  }
  .centered-logo-badge {
    transform: translate(-50%, -50%) scale(0.68);
  }
  .centered-logo-badge:hover {
    transform: translate(-50%, -50%) scale(0.72);
  }
  
  /* Hero Banner */
  .hero-banner {
    height: 450px;
  }
  .hero-text-wrapper {
    max-width: calc(100vw - 48px);
    margin: 0 24px;
  }
  .hero-text-container {
    padding: 24px;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
  }
  
  /* Widgets */
  .welcome-widgets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Favorites list stacked */
  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Previews stacked */
  .previews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Menu card horizontal swipes on mobile viewport */
  .menu-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 24px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .menu-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  
  /* Cats columns reduced */
  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Spotlight columns stacked */
  .next-event-spotlight {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .spotlight-content {
    padding: 10px;
  }
  .spotlight-image-placeholder {
    order: -1;
    padding-top: 66.67%;
  }
  
  /* Events list stacked */
  .events-grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Team layout stacked */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Contact section stacked */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-subgrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Careers layout stacked */
  .careers-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Footer stacked */
  .footer-upper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-info-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .footer-col {
    align-items: center;
  }
  .footer-links li a, .footer-modal-trigger {
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  /* Modal responsive grids */
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .carousel-container-outer {
    padding: 0 40px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    padding: 20px 15px;
  }
  .slide-quote {
    font-size: 1.1rem;
  }
  .add-review-container {
    padding: 20px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 340px;
    margin: 0 auto;
  }
  .gallery-masonry {
    column-count: 2; /* Still double columns masonry on mobile as per spec! */
    column-gap: 16px;
  }
  .gallery-item {
    margin-bottom: 16px;
  }
}

/* Responsive Safe Padding Adjustments */
@media (max-width: 1024px) {
  #main-footer {
    padding: 60px 40px 30px 40px;
  }
}

@media (max-width: 800px) {
  #main-footer {
    padding: 40px 20px 20px 20px;
  }
}

/* Vine safe padding zone for desktop viewports */
@media (min-width: 801px) {
  .section-container,
  .menu-controls-container,
  .menu-grid,
  .cats-grid,
  .weekly-events-container,
  .events-list-container,
  .team-grid,
  .gallery-controls,
  .gallery-masonry,
  .careers-layout,
  .contact-layout,
  .contact-subgrid,
  .next-event-spotlight,
  .seasonal-rotation-section,
  .add-review-container {
    padding-left: 100px !important;
    padding-right: 100px !important;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #382522, #4a2e2a);
  border: 2px solid rgba(255, 216, 168, 0.25);
  color: var(--color-gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(44, 27, 24, 0.35),
    0 0 0 0 rgba(255, 216, 168, 0);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  box-shadow:
    0 6px 22px rgba(44, 27, 24, 0.45),
    0 0 18px rgba(255, 216, 168, 0.45);
  border-color: rgba(255, 216, 168, 0.6);
  transform: translateY(-3px) rotate(-15deg);
}

#back-to-top:active {
  transform: translateY(0) scale(0.93);
}

/* Tooltip bubble */
.btt-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.92), rgba(240, 235, 224, 0.88));
  color: #2c1b18;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(44, 27, 24, 0.12);
  box-shadow:
    0 4px 14px rgba(44, 27, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Arrow pointing right toward button */
.btt-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(240, 235, 224, 0.92);
}

#back-to-top:hover .btt-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Field info icon tooltip (e.g. Phone Number ℹ) */
.field-info-icon {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: help;
  color: var(--color-sage);
  font-size: 0.9rem;
  margin-left: 4px;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.field-info-icon:hover {
  color: var(--color-pink);
}

.field-info-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-wood);
  color: #fdfbf7;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 200;
}

.field-info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-wood);
}

.field-info-icon:hover .field-info-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Team Contact Section */
.team-contact-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(44, 27, 24, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-wood);
}

.team-contact-links {
  display: flex;
  gap: 8px;
}

.team-contact-btn {
  position: relative; /* Positioning anchor for tooltips */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--color-wood-light);
  background-color: var(--bg-cream-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(44, 27, 24, 0.02);
}

.team-contact-btn:hover {
  transform: translateY(-2px);
  color: #fdfbf7;
  box-shadow: var(--shadow-soft);
}

/* Custom Contact Tooltips on Hover */
.contact-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background-color: var(--color-wood);
  color: #fdfbf7;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(44, 27, 24, 0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 210;
}

.contact-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-wood);
}

.team-contact-btn:hover .contact-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.team-contact-btn.contact-email:hover { background-color: var(--color-pink-dark); }
.team-contact-btn.contact-discord:hover { background-color: #5865F2; }
.team-contact-btn.contact-instagram:hover { background-color: #E1306C; }
.team-contact-btn.contact-twitter:hover { background-color: #1DA1F2; }
.team-contact-btn.contact-website:hover { background-color: var(--color-sage-dark); }

/* Team Header Contact Link */
.team-contact-link-wrapper {
  margin-top: 16px;
}

.team-contact-link-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-pink-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  border-bottom: 2px dashed rgba(224, 176, 176, 0.5);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.team-contact-link-header:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   THE CAFÉ TAB COMPONENT DESIGNS
   ========================================================================== */
.cafe-zones-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.cafe-zones-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.cafe-zone-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--bg-cream-light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 27, 24, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cafe-zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.cafe-zone-card.reversed {
  flex-direction: row-reverse;
}

.zone-image-box {
  flex: 1.2;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-cream-dark);
}

.zone-image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.cafe-zone-card:hover .zone-image-box img {
  transform: scale(1.03);
}

.zone-content-box {
  flex: 1.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-content-box h3 {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: var(--color-wood);
}

.zone-content-box p {
  font-size: 0.95rem;
  color: var(--color-wood-light);
  line-height: 1.6;
}

.zone-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  background-color: var(--color-sage-ultra-light);
  padding: 6px 14px;
  border-radius: 20px;
  align-self: flex-start;
  border: 1px solid rgba(142, 168, 144, 0.15);
}

/* Select Dropdown Styling */
select.premium-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-wood);
  background-color: var(--bg-cream-light);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c1b18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select.premium-select:focus {
  border-color: var(--color-pink-dark);
  box-shadow: 0 0 0 3px rgba(224, 176, 176, 0.15);
}

html.dark-theme select.premium-select {
  color: var(--color-wood);
  background-color: var(--bg-cream-light);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23faf4f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

@media (max-width: 768px) {
  .cafe-zone-card, .cafe-zone-card.reversed {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .zone-image-box, .zone-content-box {
    width: 100%;
  }
}

/* Cat Ears & Dangling Bell Animations */
@keyframes earJiggleLeft {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-10deg); }
  92% { transform: rotate(8deg); }
  94% { transform: rotate(-6deg); }
  96% { transform: rotate(4deg); }
  98% { transform: rotate(0deg); }
}

@keyframes earJiggleRight {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(10deg); }
  92% { transform: rotate(-8deg); }
  94% { transform: rotate(6deg); }
  96% { transform: rotate(-4deg); }
  98% { transform: rotate(0deg); }
}

.badge-cat-ear-left {
  transform-origin: 104px 14px;
  animation: earJiggleLeft 6s infinite;
}

.badge-cat-ear-right {
  transform-origin: 136px 14px;
  animation: earJiggleRight 6s infinite;
}

.centered-logo-badge:hover .badge-cat-ear-left {
  animation: earJiggleLeft 0.5s ease-in-out;
  animation-iteration-count: 2;
}

.centered-logo-badge:hover .badge-cat-ear-right {
  animation: earJiggleRight 0.5s ease-in-out;
  animation-iteration-count: 2;
}

@keyframes bellSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.badge-dangling-bell {
  transform-origin: 178px 80px;
  animation: bellSwing 2s ease-in-out infinite;
}

