/* ============================================================
   CASA MARI — WordPress-Ready Theme Stylesheet V2
   High-fidelity clone · BEM · Mobile-First · Scroll Animations
   ============================================================ */

/* --- Design Tokens (CSS Variables) --- */
:root {
  /* Primario — azul-cantabrico */
  --color-primary: #003B5C;
  --color-primary-light: #004d78;
  --color-primary-mid: #00344f;
  --color-primary-hover: #002233;
  /* azul-noche */

  /* Acento 1 — dorado-sidra (iconos, bordes, detalles) */
  --color-sidra: #C9AF3E;
  /* Refined Sidra Gold */
  --color-accent: #C5A065;
  --color-accent-hover: #d4b07a;
  --color-accent-dark: #a88550;

  /* Acento 2 — teja-puerto (CTAs) */
  --color-cta: #BF5B30;
  --color-cta-hover: #d4683d;
  --color-cta-dark: #a34e28;

  /* Secundario — arena-fina */
  --color-secondary: #E6DCCF;
  --color-gold: #C5A065;

  /* Éxito/Bio — verde-alga */
  --color-success: #567E63;

  /* Neutrals */
  --color-white: #F9FBFD;
  /* blanco-espuma */
  --color-off-white: #f0ede8;
  --color-light-gray: #E6DCCF;
  --color-mid-gray: #8899a6;
  --color-dark-gray: #4a5568;
  --color-text: #2C3E50;
  /* gris-pizarra */
  --color-text-light: #b8c4ce;

  /* Footer */
  --color-footer-bg: #002233;
  /* azul-noche */
  --color-footer-text: #8899a6;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(2.8rem, 7vw, 6rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.75rem);
  --fs-h4: 1.1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;

  /* Layout */
  --max-width: 1280px;
  --header-h: 60px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s var(--ease);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
}


/* ============================================================
   RESET & BASE — Mobile First
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

body.no-scroll {
  overflow: hidden;
  position: relative;
  height: 100dvh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

figure {
  margin: 0;
}


/* ============================================================
   SCROLL-REVEAL ANIMATION ENGINE
   Elements with [data-reveal] start hidden, then transition
   to visible when .is-revealed is added by IntersectionObserver
   ============================================================ */

/* Base hidden state */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

/* Revealed state */
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

/* Direction variants */
[data-reveal="fade-up"] {
  transform: translate3d(0, 40px, 0);
}

[data-reveal="fade-down"] {
  transform: translate3d(0, -40px, 0);
}

[data-reveal="fade-left"] {
  transform: translate3d(40px, 0, 0);
}

[data-reveal="fade-right"] {
  transform: translate3d(-40px, 0, 0);
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   1. HEADER / NAV — BEM: .header__* + .mobile-menu-overlay
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease),
    padding 0.4s var(--ease);
  background-color: rgba(255, 255, 255, 0.02);
  /* Initial highly transparent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle border */
}

.site-header.is-scrolled {
  background-color: rgba(0, 59, 92, 0.85);
  /* 85% opacity Primary Blue */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--header-h);
}

/* Logo */
.header__logo img {
  height: auto;
  max-height: 50px;
  width: auto;
  transition: opacity var(--transition);
}

.header__logo:hover img {
  opacity: 0.8;
}

/* Header CTA — hidden on mobile, shown on desktop */
.header__cta {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

/* ---- HAMBURGER TRIGGER (Button in Header) ---- */
.hamburger-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  /* Slightly rounded */
  cursor: pointer;
  z-index: 1002;
  -webkit-transition: background-color 0.3s var(--ease), -webkit-transform 0.2s;
  transition: background-color 0.3s var(--ease), transform 0.2s;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.hamburger-trigger:hover {
  background-color: var(--color-primary-hover);
}

.hamburger-trigger:active {
  -webkit-transform: scale(0.95) translateZ(0);
  transform: scale(0.95) translateZ(0);
}

.hamburger-trigger .line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}

.hamburger-trigger.is-active .line:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg) translateZ(0);
  transform: translateY(7px) rotate(45deg) translateZ(0);
}

.hamburger-trigger.is-active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-trigger.is-active .line:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg) translateZ(0);
  transform: translateY(-7px) rotate(-45deg) translateZ(0);
}

/* ============================================================
   MOBILE MENU OVERLAY — Dual-Panel Sibuya Replica
   ============================================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh; /* Fallback for older browsers */
  height: 100dvh; /* Primary dynamic viewport height */
  overflow: hidden;
  z-index: 9999;

  /* Flex Column Layout for Dual Panels */
  display: flex;
  flex-direction: column;

  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.4s ease, visibility 0.4s ease;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2147483647;
}

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

/* ---- PANEL 1: White Header ---- */
.menu-header {
  flex: 0 0 auto;
  background-color: #ffffff;
  padding: 80px 24px 32px; 
  color: var(--color-primary);
  /* Dark Text */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-header__top-row {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 var(--space-md);
  z-index: 2147483647;
  pointer-events: none;
}

.menu-logo {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  margin: 0;
  pointer-events: auto;
}

.menu-logo img {
  width: auto;
  max-height: 65px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* Circle Close Button (Dark on White) */
.close-btn {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #000000;
  width: 44px;
  height: 44px;
  border-radius: 50%; /* Perfect circle */
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.05);
  background-color: rgba(0,0,0,0.05);
}

/* Action Links (Stacked) */
.menu-header__actions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 4px;
  /* Slight indent */
}

.menu-header__actions li a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  /* Dark Text */
  font-family: var(--font-body);
  font-size: 14px;
  /* 0.875rem */
  font-weight: 700;
  /* Bold */
  text-transform: uppercase;
  /* Uppercase */
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.menu-header__actions li a .icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.menu-header__actions li a:hover {
  opacity: 0.8;
}


/* ---- PANEL 2: Navy Body ---- */
.menu-body {
  position: relative;
  flex: 1 1 auto;
  background-color: var(--color-footer-bg);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
  z-index: 1;
}

.menu-body::before {
  display: none;
}

/* Main Vert Nav */
.menu-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Generous spacing */
  margin-bottom: auto;
  /* Push footer down */
}

/* Footer & Social */
.menu-footer {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.menu-nav li a {
  display: block;
  font-family: var(--font-body);
  /* Sans-serif aesthetic */
  font-size: 1.5rem;
  /* Large but not massive */
  font-weight: 800;
  /* Extra Bold */
  text-transform: uppercase;
  color: #ffffff;
  /* White Text */
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.menu-nav li a:hover {
  color: var(--color-accent);
}

/* Footer Section */
.menu-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Optional subtle divider */
}

/* Social Icons Row */
.menu-social {
  display: flex;
  gap: 16px;
}

.menu-social a {
  color: #ffffff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  /* Subtle button bg */
  transition: all 0.3s ease;
}

.menu-social a svg {
  width: 30px;
  height: 30px;
  display: block;
}

.menu-social a i {
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-social a img {
  width: 36px; /* Approx 75-80% of 48px container */
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* Force PNG to appear strictly white */
  transition: transform 0.3s ease;
  transform: scale(1.25); /* Significant visual boost */
}

.menu-social a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Apps Row (Language + Buttons) */
.menu-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--color-text);
  cursor: pointer;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.app-btn:hover,
.lang-select:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(0, 59, 92, 0.05);
}


/* Utility: No Scroll */
.no-scroll {
  overflow: hidden;
}

/* Staggered Animation for Menu Items */
.menu-header,
.menu-nav li,
.menu-footer {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.is-active .menu-header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(2) {
  transition-delay: 0.15s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(4) {
  transition-delay: 0.25s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(5) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-nav li:nth-child(6) {
  transition-delay: 0.35s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-active .menu-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}


/* ============================================================
   2. BTN-FLAVIA-CTA — Global CTA Buttons
   ============================================================ */
.btn-flavia-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85em 2em;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* very subtle */
}

.btn-flavia-cta:active {
  transform: scale(0.96) !important;
}

.btn-flavia-cta--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.btn-flavia-cta--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-flavia-cta--filled {
  color: var(--color-white);
  background-color: var(--color-cta);
  border-color: var(--color-cta);
}

.btn-flavia-cta--filled:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 91, 48, 0.35);
}

.btn-flavia-cta--accent {
  color: var(--color-white);
  background-color: var(--color-cta);
  border-color: var(--color-cta);
  padding: 0.9em 2.2em;
  font-size: var(--fs-body);
}

.btn-flavia-cta--accent:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191, 91, 48, 0.4);
}

.btn-flavia-cta--text {
  color: var(--color-accent);
  background: transparent;
  border: none;
  padding: 0.5em 0;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.btn-flavia-cta--text:hover {
  color: var(--color-accent-hover);
}

.btn-flavia-cta--dark {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 0.9em 2.2em;
}

.btn-flavia-cta--dark:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 34, 51, 0.4);
}


/* ============================================================
   3. HERO — BEM: .hero__*
   ============================================================ */
/* ============================================================
   3. HERO — STANDARD CENTERED LAYOUT (REVERTED)
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Hide img tag if present */

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 59, 92, 0.25) 0%, rgba(0, 34, 51, 0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  margin: 0;
  margin-bottom: var(--space-sm);
  text-transform: none;
  /* Reset uppercase if needed */
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  display: block;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Primary Blue Button for Carta in Hero */
.hero__actions .btn-flavia-cta[href="#carta"],
.btn-flavia-cta--outline-white {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 59, 92, 0.4);
}

.hero__actions .btn-flavia-cta[href="#carta"]:hover,
.btn-flavia-cta--outline-white:hover {
  background-color: var(--color-primary-hover, #002233) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Floating Actions Removed */


/* ============================================================
   4. ABOUT — BEM: .about__*
   ============================================================ */
.about {
  position: relative;
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--color-white);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/casamari_banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

@media (min-width: 1024px) {
  .about::before {
    background-position: center 35%; /* Shift focal point lower for desktop */
  }
}

.about__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about__title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.about__text p {
  margin-bottom: var(--space-sm);
  color: var(--color-dark-gray);
  line-height: 1.8;
}

.about__statement {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-primary);
  margin-top: 2rem;
  border-left: 3px solid var(--color-sidra);
  padding-left: 2rem;
  opacity: 0.95;
}

.about__highlight {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  margin-top: var(--space-sm);
}

.about__image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  order: -1;
  /* Image first on mobile */
  max-height: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.6s var(--ease);
  display: block;
}

.about__image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.about__image:hover img {
  transform: scale(1.05);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(197, 160, 101, 0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
}


/* ============================================================
   5. CARTA / MENU CAROUSEL — BEM: .carta__*
   ============================================================ */
.carta {
  padding: var(--space-2xl) 0;
  background-color: var(--color-off-white);
}

.carta__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.carta__title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.carta__header p {
  color: var(--color-dark-gray);
  margin-bottom: var(--space-md);
}

/* ============================================================
   REFACTORED CAROUSEL (Transform-based Infinite Loop)
   ============================================================ */
.carta__carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.carta__viewport {
  width: 100%;
  overflow: hidden; 
  padding: 50px 0; /* Space for scaling effect */
  cursor: grab;
}

.carta__viewport:active {
  cursor: grabbing;
}

.carta__track {
  display: flex !important;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  padding: 0 !important;
  margin: 0 !important;
}

.carta__track.is-jumping .carta__card {
  transition: none !important;
}

/* Individual dish card */
.carta__card {
  flex: 0 0 280px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  transform: scale(0.9);
  opacity: 0.5;
  user-select: none;
}

@media (max-width: 768px) {
  .carta__card {
    flex: 0 0 240px;
  }
}

.carta__card.is-active {
  transform: scale(1.1) !important;
  opacity: 1 !important;
  z-index: 10;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Controls Container */
.carta__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

/* Dots Styling */
.carta__dots {
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-mid-gray);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  padding: 0;
}

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

/* Shared Arrow Styling (Bottom Position) - Glassmorphism Update */
.carta__arrow {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 59, 92, 0.6) !important; /* Translucent Navy */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white) !important;
  border-radius: 12px !important; /* Rounded Square */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  transition: all 0.3s var(--ease) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  position: static !important;
  transform: none !important;
}

.carta__arrow:hover {
  background-color: var(--color-sidra) !important;
  color: var(--color-primary) !important;
  transform: translateY(-2px) !important;
}



.carta__card-image {
  aspect-ratio: auto !important;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.carta__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}



.carta__card-category {
  display: block;
  padding: var(--space-sm) var(--space-sm) 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.carta__card-name {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-primary);
}


/* ============================================================
   6. EXPERIENCE — BEM: .experience__*
   ============================================================ */
.experience {
  position: relative;
  padding: var(--space-2xl) var(--space-md);
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.experience__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.experience__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 59, 92, 0.55) 0%,
      rgba(0, 34, 51, 0.75) 100%);
  z-index: 1;
}

.experience__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
}

.experience__content h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.experience__content p {
  margin-bottom: var(--space-sm);
  font-weight: var(--fw-light);
  line-height: 1.8;
  opacity: 0.9;
}

.experience__content .btn-flavia-cta {
  margin-top: var(--space-md);
}


/* ============================================================
   7. INSTAGRAM — SOCIAL PROFILE FEED
   ============================================================ */
.instagram {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .instagram {
    max-width: 1200px; /* Wider container for desktop */
  }
}

.instagram__header {
  margin-bottom: var(--space-lg);
}

.instagram__profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.instagram__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--color-primary);
  padding: 4px;
}

.instagram__info {
  flex: 1;
  min-width: 200px;
}

.instagram__username {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.instagram__username:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

.instagram__bio {
  font-size: var(--fs-small);
  color: var(--color-dark-gray);
  margin: 0;
}

.instagram__follow-btn {
  background-color: var(--color-sidra);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}

.instagram__follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #dcb33e;
}

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

@media (min-width: 1024px) {
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr); /* 3 larger columns for desktop */
    gap: 8px;
  }
}

.instagram__item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  border-radius: 4px;
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.instagram__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 59, 92, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.instagram__icon {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
  background-size: cover;
  transform: translateY(10px);
  transition: transform 0.3s var(--ease);
}

.instagram__item:hover .instagram__overlay {
  opacity: 1;
}

.instagram__item:hover .instagram__icon {
  transform: translateY(0);
}

.instagram__item:hover img {
  transform: scale(1.05);
}


/* ============================================================
   8. LOYALTY / NEWSLETTER — BEM: .loyalty__*
   ============================================================ */
.loyalty {
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold) 100%);
  text-align: center;
}

.loyalty__content {
  max-width: 700px;
  margin: 0 auto;
}

.loyalty__title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.loyalty__content p {
  color: var(--color-primary-light);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}


/* ============================================================
   9. FOOTER — BEM: .footer__*
   ============================================================ */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-xl) var(--space-md) 0;
  padding-bottom: 80px;
  /* space for mobile bar */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--color-footer-text);
  transition: color 0.3s var(--ease);
}

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

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-footer-text);
  transition: all 0.3s var(--ease);
}

.footer__social a:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding: var(--space-md) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   FOOTER REDESIGN
   ============================================================ */
.footer {
  background-color: var(--color-footer-bg);
  /* Match Menu Body (Deep Navy) */
  padding: 40px 0;
  color: #ffffff;
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__logo {
  max-height: 80px;
  /* Increased Size */
  width: auto;
  display: block;
}

.footer__socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.footer__socials a {
  color: #ffffff;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__socials a:hover {
  opacity: 0.8;
}

.footer__socials img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: scale(1.15);
}

.footer__socials svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* Mobile Spacing Fix (Crucial) */
@media (max-width: 768px) {
  .footer {
    padding-bottom: 90px !important;
    /* Reduced from 120px */
  }
}


/* ============================================================
   10. MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  gap: var(--space-xs);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-bar__btn {
  flex: 1;
  text-align: center;
  padding: 0.65em 0.5em;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-bar__btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.mobile-bar__btn--wa {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--color-white);
}



/* Button Variant: Sidra */
.btn-flavia-cta--sidra {
  background-color: var(--color-sidra);
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  padding: 0.8em 2em;
  transition: all 0.3s ease;
}

.btn-flavia-cta--sidra:hover {
  background-color: #dcb33e;
  /* Darker gold */
  transform: translateY(-2px);
  color: var(--color-primary);
}

/* ============================================================
   MOBILE STICKY BAR (Floating Liquid Glass)
   ============================================================ */
@media (max-width: 768px) {
  .mobile-sticky-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    z-index: 9999;
    
    /* Liquid Glass Effect */
    background-color: rgba(0, 59, 92, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Shape & Box */
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    
    /* Flexbox Alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    
    /* Animation */
    transform: translateY(200%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .mobile-sticky-bar.is-visible {
    transform: translateY(0);
  }
}
@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

.sticky-btn {
  flex: 1; /* Symmetric 50/50 internal split */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px !important;
  text-transform: uppercase;
  padding: 8px 12px !important; /* Slightly more compact padding */
  border-radius: 20px;
  background-color: #b59b34 !important;
  color: #ffffff !important;
  border: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sticky-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Hide Legacy Bars */
.mobile-bar,
.mobile-menu,
.nav-overlay {
  display: none !important;
}

/* Global Button Override for Sidra (Immediate Fix) */
button,
input[type="submit"],
.btn-flavia-cta,
.btn-flavia-cta--outline,
.btn-flavia-cta--filled,
.header__cta .btn-flavia-cta {
  background-color: var(--color-sidra) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-sidra) !important;
}

.btn-flavia-cta:hover,
button:hover {
  background-color: #b59b34 !important;
  /* Slightly Darker Gold */
  color: var(--color-primary) !important;
}

/* Hamburger Exception */
.hamburger-trigger {
  background-color: transparent !important;
  border: none !important;
  color: inherit !important;
  /* Inherit from header (white/dark) */
}

/* 'Ver Todos' Outline Style Override */
.btn-flavia-cta--text {
  background-color: transparent !important;
  color: var(--color-primary) !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 0 1rem !important;
  /* Minimal padding */
}

.btn-flavia-cta--text:hover {
  background-color: transparent !important;
  color: var(--color-primary-light) !important;
  text-decoration: underline !important;
}

/* Strict Gallery Image Sizing */
.carta__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom !important;
  transform-origin: center bottom;
  transition: transform 0.5s var(--ease);
}

/* ============================================================
   HEADER SCROLL & LOGO SWAP
   ============================================================ */
.site-header {
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.75) !important;
  /* Glassy 75% */
  backdrop-filter: blur(15px);
  /* Strong Blur */
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--color-dark-gray);
}

.site-header.is-scrolled .header__nav a {
  color: var(--color-primary);
}

.site-header.is-scrolled .hamburger-trigger {
  color: var(--color-primary) !important;
}

/* Force Hamburger Lines on Scroll */
.site-header.is-scrolled .hamburger-trigger .line {
  background-color: var(--color-primary) !important;
}

/* Logo Logic */
.header__logo img {
  max-height: 65px !important;
  transition: opacity 0.3s ease;
}

.logo-white {
  display: block;
}

.logo-dark {
  display: none;
}

.site-header.is-scrolled .logo-white {
  display: none;
}

.site-header.is-scrolled .logo-dark {
  display: block;
}

/* Typography */
.sub-heading {
  display: block;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
  color: var(--color-sidra);
  font-weight: var(--fw-bold);
}

/* Hero Outline Button Override */
.btn-flavia-cta--outline-white {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-flavia-cta--outline-white:hover {
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
}

/* HERO ALIGNMENT */
.hero__actions {
  justify-content: center !important;
}

/* ABOUT REORDERING (Mobile) */
@media (max-width: 767px) {
  .about__grid {
    display: flex;
    flex-direction: column;
  }

  .about__text {
    order: 0;
  }

  .about__image {
    order: 1;
    margin-top: 2rem;
  }
}

/* ============================================================
   RESPONSIVE — Tablet (min-width: 600px)
   ============================================================ */
@media (min-width: 600px) {
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carta__card {
    flex: 0 0 230px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}


/* ============================================================
   RESPONSIVE — Tablet landscape+ (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --header-h: 80px;
  }

  /* Desktop Header Logic (> 768px) */
  .hamburger-trigger {
    display: none !important;
  }

  .header__cta {
    display: flex !important;
  }

  /* Show only Reservar button (if multiple exist, target specific or assumption based on HTML update) */
  /* In updated HTML, only RESERVAR is present in .header__cta, so just ensure container is visible */

  .mobile-sticky-bar {
    display: none !important;
  }

  /* Logo Sizing Desktop */
  .header__logo img {
    max-height: 50px;
    height: auto;
    width: auto;
  }

  .hero__scroll-indicator {
    bottom: var(--space-lg);
  }

  .carta__card {
    flex: 0 0 260px;
  }

  .carta__arrow {
    display: flex;
  }

  .carta__carousel {
    padding: 0 var(--space-lg);
  }

  .carta__arrow--prev {
    left: var(--space-sm);
  }

  .carta__arrow--next {
    right: var(--space-sm);
  }

  .experience {
    min-height: 65vh;
  }

  .instagram__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}


/* Desktop Nav — hidden on mobile */
.header__nav {
  display: none;
}

/* ============================================================
   RESPONSIVE — Desktop (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {

  /* Show Desktop Nav */
  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .header__nav a {
    font-size: 13px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    position: relative;
    padding: var(--space-xs) 0;
  }

  .header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s var(--ease);
  }

  .header__nav a:hover::after {
    width: 100%;
  }

  /* Hide Mobile Elements */
  .header__toggle,
  .mobile-menu,
  .nav-overlay {
    display: none !important;
  }

  /* Show Desktop CTA */
  /* Show Desktop CTA (Animated) */
  .header__cta {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
  }

  /* Reveal CTA on Scroll */
  .site-header.is-scrolled .header__cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__logo img {
    height: auto;
    /* Moved to 768px block */
  }

  /* About: side-by-side grid */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .about__image {
    order: 0;
    /* back to natural order */
    max-height: none;
  }

  /* Footer: 3-column */
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-lg);
  }

  /* Hide mobile bar */
  .mobile-bar {
    display: none;
  }

  .footer {
    padding-bottom: 0;
  }

  .experience {
    min-height: 70vh;
  }
}


/* ============================================================
   RESPONSIVE — Large desktop (min-width: 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .carta__arrow {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}

/* ============================================================
   ACCORDION MENU SECTION
   ============================================================ */
.carta-accordion {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-white);
}

.heading-single-line {
  font-size: 1.8rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .heading-single-line {
    font-size: 5.5vw !important; /* Scale to fit viewport width */
    letter-spacing: -0.01em;
  }
}

.accordion__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.accordion__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 0.5rem;
}

.accordion__container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion__item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: transparent !important;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__trigger:hover {
  background-color: transparent !important;
  opacity: 0.8;
}

.accordion__category {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Plus Icon Logic */
.accordion__icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-sidra);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::before {
  width: 100%;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 100%;
}

/* Expanded State: Rotate to X */
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(135deg);
}

/* Content Area */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion__content-inner {
  padding-bottom: 2rem;
  padding-top: 0.5rem;
}

/* Dish Items — Single Line Layout */
.dish-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  width: 100%;
}

.dish-name {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem; /* Slightly reduced for better mobile fit */
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.dish-leader {
  flex-grow: 1;
  border-bottom: 1px dotted #bbbbbb;
  margin: 0 8px 4px;
  min-width: 10px;
  height: 1px;
}

.dish-price {
  color: var(--color-sidra);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: right;
}

.dish-desc {
  width: 100%;
  color: var(--color-mid-gray);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ============================================================
   11. SMART BOOKING MODAL (Livia AI)
   ============================================================ */
#booking-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.9);
  z-index: 2147483647;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

#booking-overlay.show {
  display: flex !important;
  /* Visible when class is added */
}

.booking-modal-container {
  background-color: #2D2D2D;
  /* Dark Charcoal */
  width: 100%;
  max-width: 900px;
  position: relative;
  padding: 40px;
  box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
  /* Pure Black Hard Shadow */
  border: 1px solid rgba(197, 160, 89, 0.1);
  /* Subtle Gold Border */
}

#close-booking-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

#close-booking-modal:hover {
  transform: rotate(90deg) scale(1.1);
}

.booking-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Left Column */
.booking-col-left {
  color: #F2F0E6;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 8px;
}

.booking-col-left h2 {
  font-family: var(--font-heading);
  color: var(--color-sidra);
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.booking-steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.booking-step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(197, 160, 89, 0.1);
  transition: background 0.3s ease;
}

.booking-step-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-num {
  width: 28px;
  height: 28px;
  background-color: var(--color-sidra);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-step-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #F2F0E6;
}

.booking-step-item p strong {
  color: var(--color-sidra);
  display: block;
  margin-bottom: 2px;
}

/* CTA Button */
.btn-whatsapp-livia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366; /* WhatsApp Green */
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  padding: 18px 32px;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 6px 6px 0px 0px rgba(0, 0, 0, 1);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.btn-whatsapp-livia:hover {
  transform: translate(-3px, -3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 9px 9px 0px 0px rgba(0, 0, 0, 1);
  background-color: #20bd5a;
}

.btn-whatsapp-livia:active {
  transform: translate(2px, 2px);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2), 2px 2px 0px 0px rgba(0, 0, 0, 1);
}

/* Right Column */
.booking-col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.booking-mockup {
  max-width: 280px;
  /* Adjust based on asset */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  border: 4px solid #1a1a1a;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
}

.powered-by span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #8899a6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.powered-logo {
  height: 24px;
  width: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-modal-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .booking-col-left {
    text-align: center;
    padding: 20px;
  }

  .booking-steps-container {
    text-align: left;
    gap: 15px;
  }

  .booking-step-item {
    padding: 12px;
  }

  .btn-whatsapp-livia {
    width: 100%;
  }

  .booking-col-right {
    order: 2;
  }

  .booking-modal-container {
    padding: 30px 20px;
  }
}

/* ============================================================
   CHIARA — WhatsApp Chat UI Section
   ============================================================ */
.chiara {
  background-color: var(--color-off-white, #f0ede8);
  padding: var(--space-2xl) 0;
  color: var(--color-primary);
  overflow: hidden;
  position: relative;
}

.chiara__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  align-items: center;
}

@media (min-width: 992px) {
  .chiara__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --- Left Column: Text Content --- */
.chiara__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .chiara__content {
    align-items: flex-start;
    text-align: left;
  }
}

.chiara__overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mid-gray);
  margin-bottom: 1.5rem;
  display: block;
}

.chiara__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.chiara__description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-dark-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Steps */
.chiara__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
  text-align: left;
}

.chiara__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  text-align: left;
}

.chiara__step-number {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--color-white);
  background-color: var(--color-sidra);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chiara__step-text {
  font-weight: 500;
}

/* CTA Button */
.chiara__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.chiara__cta:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.chiara__cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --- Right Column: Phone Mockup --- */
.chiara__phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.chiara__phone {
  width: 100%;
  max-width: 320px;
  background-color: #111B21;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.chiara__phone:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Phone Notch */
.chiara__phone-notch {
  width: 120px;
  height: 28px;
  background-color: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* WhatsApp Header */
.chiara__wa-header {
  background-color: #1F2C34;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chiara__wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #2A3942;
  flex-shrink: 0;
}

.chiara__wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chiara__wa-contact {
  display: flex;
  flex-direction: column;
}

.chiara__wa-name {
  color: #E9EDEF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.chiara__wa-status {
  color: #8696A0;
  font-family: var(--font-body);
  font-size: 0.75rem;
}

/* Chat Body */
.chiara__wa-body {
  background-color: #0B141A;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 211, 102, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0, 59, 92, 0.05) 0%, transparent 50%);
  padding: 16px 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

/* Bubbles */
.chiara__wa-bubble {
  max-width: 85%;
  padding: 8px 10px 6px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
  animation: chiaraBubbleIn 0.4s ease-out both;
}

.chiara__wa-bubble:nth-child(1) { animation-delay: 0.2s; }
.chiara__wa-bubble:nth-child(2) { animation-delay: 0.5s; }
.chiara__wa-bubble:nth-child(3) { animation-delay: 0.9s; }
.chiara__wa-bubble:nth-child(4) { animation-delay: 1.3s; }
.chiara__wa-bubble:nth-child(5) { animation-delay: 1.8s; }

@keyframes chiaraBubbleIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Received (left) */
.chiara__wa-bubble--received {
  background-color: #1F2C34;
  color: #E9EDEF;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

/* Sent (right) */
.chiara__wa-bubble--sent {
  background-color: #005C4B;
  color: #E9EDEF;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chiara__wa-bubble p {
  margin: 0 0 2px;
}

.chiara__wa-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.65rem;
  color: rgba(233, 237, 239, 0.5);
  text-align: right;
}

.chiara__wa-link {
  display: inline-block;
  color: #53BDEB;
  font-size: 0.8rem;
  text-decoration: none;
  word-break: break-all;
}

.chiara__wa-link:hover {
  text-decoration: underline;
}

/* Input Bar */
.chiara__wa-input {
  background-color: #1F2C34;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chiara__wa-input-field {
  flex: 1;
  background-color: #2A3942;
  border-radius: 20px;
  padding: 8px 16px;
  color: #8696A0;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.chiara__wa-send {
  width: 36px;
  height: 36px;
  background-color: #00A884;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.chiara__wa-send svg {
  width: 18px;
  height: 18px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .chiara {
    padding: var(--space-xl) 0;
  }

  .chiara__grid {
    gap: 2rem;
  }

  .chiara__phone {
    width: 100%;
    max-width: 320px;
    transform: none;
  }

  .chiara__phone:hover {
    transform: none;
  }

  .chiara__wa-body {
    min-height: 280px;
  }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-sidra);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.back-to-top.is-visible.in-footer {
  opacity: 0.6;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 90px; /* Above mobile bar */
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   INFO & MAP SECTION
   ============================================================ */
.info-map {
  padding: var(--space-2xl) var(--space-md);
  background-color: var(--color-white);
}

.info-map__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 991px) {
  .info-map__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.info-map__title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.info-map__item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-map__item svg {
  flex-shrink: 0;
  color: var(--color-sidra);
  margin-top: 0.25rem;
}

.info-map__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}

.info-map__item p {
  color: var(--color-dark-gray);
  line-height: 1.6;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.2) contrast(1.1);
}

/* ============================================================
   MENU ACCORDION FONT AWESOME ICONS
   ============================================================ */
.accordion__category-icon {
  width: 24px;
  display: inline-block;
  text-align: center;
  margin-right: 12px;
  color: var(--color-sidra);
  font-size: 1.25rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   STICKY BAR Z-INDEX OVERRIDE
   ============================================================ */
.mobile-sticky-bar {
  z-index: 9999 !important;
}


/* ============================================================
   12. GENERIC PAGE STYLES (Privacy Policy, etc.)
   ============================================================ */
.site-main {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  overflow: visible;
  width: 100%;
}

.generic-page {
  line-height: 1.8;
  color: var(--color-dark-gray);
  font-family: var(--font-body);
}

.generic-page h2 {
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  font-family: var(--font-heading);
}

.generic-page p {
  margin-bottom: 1.5rem;
}


/* ============================================================
   PRIVACY POLICY & GENERIC PAGE STYLES
   ============================================================ */
.site-main--privacy {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 800px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.privacy-surgical-wrap {
    position: relative;
    z-index: 99 !important;
    display: block !important;
    visibility: visible !important;
}

.privacy-surgical-wrap .entry-content h2 { 
    color: #003B5C !important; 
    margin: 2.5rem 0 1.25rem; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    border-bottom: 2px solid #C9AF3E; 
    display: inline-block; 
    padding-bottom: 5px; 
}

.privacy-surgical-wrap .entry-content p { 
    margin-bottom: 1.5rem; 
    color: #4a5568 !important; 
}

.privacy-surgical-wrap .entry-content ul { 
    margin-bottom: 1.5rem; 
    padding-left: 1.5rem; 
    list-style: disc; 
}

.privacy-surgical-wrap .entry-content li { 
    margin-bottom: 0.75rem; 
    color: #4a5568 !important; 
}

