/* ----------------------------------------------------
   LEO • La Terrasse - Elite Side-by-Side Design CSS
   Strict split screen on both mobile and desktop.
   Ensures ultimate legibility and visual-rich aesthetics.
   ---------------------------------------------------- */

/* Reset & Base System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Color Palette */
  --bg-cream: #FCFAF2;         /* Warm off-white */
  --bg-forest: #0B2B26;        /* Deep Forest Green */
  --gold: #D2A290;             /* Muted Rose Gold Brand Accent */
  --gold-light: rgba(210, 162, 144, 0.2);
  --gold-trans: rgba(210, 162, 144, 0.04);
  --text-dark: #0B2B26;
  --text-body: #1F3633;
  --text-muted: #5E726F;       /* Higher contrast muted text for legibility */
  --divider: #EBE6D9;
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;
  
  --transition-speed: 0.3s;
}

body, html {
  background-color: var(--bg-forest);
  color: var(--text-body);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   1. CORE VIEWPORT CONTAINER: Strict Split Screen
   ---------------------------------------------------- */
.split-viewport {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-forest);
}

/* ----------------------------------------------------
   2. LEFT SIDEBAR: Visual Collage (30% Width on all devices)
   ---------------------------------------------------- */
.collage-sidebar {
  width: 30%;
  max-width: 280px;
  min-width: 0;
  background-color: var(--bg-forest);
  border-right: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.sidebar-scroll-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 2.5rem 1.25rem 2rem 1.25rem;
  transition: transform 0.05s ease-out;
  will-change: transform;
  box-sizing: border-box;
}

/* Hide scrollbar for sidebar */
.collage-sidebar::-webkit-scrollbar {
  display: none;
}
.collage-sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lion-logo {
  display: block;
  margin: 0 auto 0.5rem auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
  filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}

.sidebar-brand-txt {
  font-family: 'Bodoni Moda', serif;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  transform: scaleX(0.72) scaleY(1.3);
  transform-origin: center;
  margin-top: 0.25rem;
}

/* Stack of collage thumbnail images */
.sidebar-image-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sidebar-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background-color: rgba(7, 29, 26, 0.5);
}

.sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

/* Hover / Active Indicator */
.expand-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 29, 26, 0.6);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.sidebar-img-wrapper:hover .sidebar-thumb,
.sidebar-img-wrapper:active .sidebar-thumb {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.sidebar-img-wrapper:hover .expand-indicator,
.sidebar-img-wrapper:active .expand-indicator {
  opacity: 1;
}

.sidebar-footer {
  text-align: center;
  margin-top: auto;
}

.rotated-house-stamp {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold);
  display: inline-block;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 auto;
}

/* ----------------------------------------------------
   3. RIGHT COLUMN: Cream Menu scroll list (70% Width)
   ---------------------------------------------------- */
.menu-scroll-container {
  width: 70%;
  flex-grow: 1;
  min-width: 0;
  background-color: var(--bg-cream);
  padding: 3.5rem 3rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: inset 5px 0 20px rgba(7, 29, 26, 0.03);
}

/* Scrollbar customization for menu */
.menu-scroll-container::-webkit-scrollbar {
  width: 5px;
}
.menu-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
.menu-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--gold-light);
  border-radius: 3px;
}

/* Watermark Outline Overlay */
.menu-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%23D4AF37" stroke-width="0.22" opacity="0.045"><path d="M50 8C43.1 8 36.5 9.7 30.7 12.9C37.8 13.2 43.8 11.6 50 11.6C56.2 11.6 62.2 13.2 67.5 16.1C63.5 9.7 56.9 8 50 8Z"/><path d="M50 20C47.2 20 44.5 20.4 41.9 21.2C45.3 23.8 47.6 23.5 50 23.5C52.4 23.5 54.7 23.8 57 24.5C55.5 20.4 52.8 20 50 20Z"/><path d="M50 26C45 26 39 28.5 36 32C33.5 34.9 33 38.5 33 42.5C33 46 34.5 49 37.5 51.5C38.5 52.3 39.5 53 40.5 53.5C40 55.5 39 57.5 37 59C35.5 60.1 33.5 60.5 31.5 60.5C29.5 60.5 27.5 59.5 26.5 58C25.5 56.5 25.5 54.5 25.5 53C25.5 50.5 24.5 48.5 23 47C21.5 45.5 19.5 45 17 45C16.5 45 15.5 45.5 14.5 46.5C15.5 49 17 50.8 19.5 52C20.5 53.5 21 55 21 57C21 60 23 62.5 25.5 64C28 65.5 31 66 34 65.5C37.5 65 40.5 63 42.5 60C44.5 57 45.5 53 46.5 49.5C47.5 46 48.5 43.5 50 43.5C51.5 43.5 52.5 46 53.5 49.5C54.5 53 55.5 57 57.5 60C59.5 63 62.5 65 66 65.5C69 66 72 65.5 74.5 64C77 62.5 79 60 79 57C79 55 79.5 53.5 80.5 52C83 50.8 84.5 49 85.5 46.5C84.5 45.5 83.5 45 83 45C80.5 45 78.5 45.5 77 47C75.5 48.5 74.5 50.5 74.5 53C74.5 54.5 74.5 56.5 73.5 58C72.5 59.5 70.5 60.5 68.5 60.5C66.5 60.5 64.5 60.1 63 59C61 57.5 60 55.5 59.5 53.5C60.5 53 61.5 52.3 62.5 51.5C65.5 49 67 46 67 42.5C67 38.5 66.5 34.9 64 32C61 28.5 55 26 50 26Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  pointer-events: none;
  z-index: 0;
}

/* Header Inside Menu Area */
.menu-top-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.brand-leo {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.gold-line-accent {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 0 auto;
}

/* Sticky Header Wrapper (Tabs + Category Navigation) */
.sticky-header-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: -3.5rem; /* Offsets container top padding */
  z-index: 100;
  background-color: rgba(252, 250, 242, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-left: -3rem;
  margin-right: -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-bottom: 1px solid var(--divider);
  transition: box-shadow var(--transition-speed);
}

.sticky-header-wrapper.scrolled {
  box-shadow: 0 4px 15px rgba(11, 43, 38, 0.05);
}

/* Top-Level Menu Tabs Bar */
.menu-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.menu-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed);
}

.menu-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--text-dark);
  transition: width var(--transition-speed), left var(--transition-speed);
}

.menu-tab-btn:hover {
  color: var(--text-dark);
}

.menu-tab-btn.active {
  color: var(--text-dark);
  font-weight: 700;
}

.menu-tab-btn.active::after {
  width: 100%;
  left: 0;
}

/* Category Navigation Bar */
.sticky-nav-bar {
  padding: 0.75rem 0;
  margin-bottom: 0.25rem;
}

.nav-scroll-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.4rem;
  padding: 0;
}

.nav-scroll-row::-webkit-scrollbar {
  display: none;
}
.nav-scroll-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-pill {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-body);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(11, 43, 38, 0.15);
  background-color: transparent;
  transition: all var(--transition-speed);
}

.nav-pill:hover {
  border-color: var(--gold);
  color: var(--text-dark);
}

.nav-pill.active {
  background-color: var(--bg-forest);
  color: #FCFAF2;
  border-color: var(--bg-forest);
  font-weight: 600;
}

/* Menu Content Sections */
.menu-content-feed {
  position: relative;
  z-index: 1;
}

.menu-section {
  padding-top: 5.5rem;
  margin-top: -3.5rem;
  margin-bottom: 3rem;
}

.section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.accent-diamond {
  width: 5px;
  height: 5px;
  background-color: var(--gold);
  transform: rotate(45deg);
}

.items-list {
  display: flex;
  flex-direction: column;
}

/* Traditional Premium Item Rows */
.menu-item {
  display: flex;
  flex-direction: column;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.22);
}

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

.item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.item-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  flex: 1;
  min-width: 0;
  padding-right: 0.75rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}

.item-price {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}

.item-description {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Boxed layout for signature platters */
.premium-box-item {
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1.15rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--gold-trans);
}

.premium-box-item:last-child {
  margin-bottom: 0;
}

.box-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
}

/* Advisory */
.disclaimer-note {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3rem;
  border-top: 1px solid var(--divider);
  padding-top: 1.5rem;
}

/* Footer elements */
.menu-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--divider);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-social:hover {
  color: var(--gold);
}

.copyright-txt {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ----------------------------------------------------
   4. INTERACTIVE LIGHTBOX MODAL STYLING
   ---------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 29, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: 90%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.lightbox-full-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.open .lightbox-full-img {
  transform: scale(1);
}

.lightbox-caption {
  color: #FCFAF2;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.75rem;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Floating Action Back To Top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-forest);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 99;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

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

.back-to-top:hover,
.back-to-top:active {
  background-color: var(--gold);
}

.back-to-top:hover svg path,
.back-to-top:active svg path {
  stroke: var(--bg-forest);
}

/* ----------------------------------------------------
   5. RESPONSIVE DESIGN (Adaptive Split View for Mobile)
   ---------------------------------------------------- */
@media (max-width: 768px) {
  /* Retain strict split panel layout widths on mobile screens */
  .collage-sidebar {
    width: 32%; /* Allocate 32% to images sidebar */
    padding: 0;
    align-items: stretch;
    border-right: 1px solid rgba(212, 175, 55, 0.5);
  }
  
  .sidebar-scroll-wrapper {
    padding: 1.5rem 0.5rem;
    align-items: center;
  }
  
  .sidebar-header {
    margin-bottom: 1.5rem;
  }
  
  .sidebar-brand-txt {
    font-size: 1.6rem;
    letter-spacing: -0.05em;
  }

  .lion-logo {
    width: 32px;
    height: 32px;
  }

  .sidebar-image-list {
    gap: 0.85rem;
  }
  
  .sidebar-img-wrapper {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .rotated-house-stamp {
    font-size: 1.1rem;
  }

  /* Optimize Menu Container on Mobile (68% Width) */
  .menu-scroll-container {
    width: 68%;
    padding: 2.25rem 0.85rem;
  }

  .menu-watermark {
    background-size: 95%;
  }

  .brand-title {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }

  .brand-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }

  /* Sticky header wrapper adjustments on mobile */
  .sticky-header-wrapper {
    top: -2.25rem;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .menu-tabs-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0.65rem auto 0.35rem auto;
    width: 100%;
    max-width: 320px;
    gap: 0.4rem;
  }

  .menu-tab-btn {
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background-color: rgba(11, 43, 38, 0.03);
    padding: 0.55rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: all var(--transition-speed);
  }

  .menu-tab-btn::after {
    display: none;
  }

  .menu-tab-btn.active {
    background-color: var(--bg-forest);
    color: #FCFAF2;
    border-color: var(--bg-forest);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(11, 43, 38, 0.15);
  }

  .sticky-nav-bar {
    padding: 0.5rem 0;
    margin-bottom: 0.1rem;
  }

  .nav-scroll-row {
    padding: 0;
    gap: 0.3rem;
  }

  .nav-pill {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
  }

  .menu-section {
    padding-top: 4.25rem;
    margin-top: -2.25rem;
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  /* Make typography tight and legible */
  .item-name {
    font-size: 0.82rem;
  }
  .item-price {
    font-size: 0.85rem;
  }
  .item-description {
    font-size: 0.68rem;
    margin-top: 0.15rem;
  }

  .premium-box-item {
    padding: 1rem 0.75rem;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* Micro reveal fade in animation */
.menu-item, .premium-box-item {
  opacity: 0;
  transform: translateY(8px);
  animation: revealItem 0.6s forwards ease;
}

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

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
