/* Sambal & Sothi — Approved Brand Direction CSS System */

:root {
  /* Emerald — four levels, do not collapse them */
  --color-bg-deep:#08221C;        /* footer, stats band, recessed areas */
  --color-bg-primary:#0D3129;     /* THE PAGE BACKGROUND */
  --color-bg-secondary:#08221C;   /* alternating section band */
  --color-bg-card:#124237;        /* cards, panels, anything raised */
  --color-brand-emerald: var(--ss-color-emerald, #17564A);  /* header bar, solid brand blocks, buttons on ivory */
  --color-emerald-hover:#1E6B5B;
  --color-emerald-bright:#2E8874;

  /* Champagne gold */
  --color-accent-gold:#C9A227;        /* hairline rules ONLY — never body text */
  --color-accent-gold-light: var(--ss-color-gold, #E8C88A);  /* prices, primary button fill, labels */
  --color-accent-gold-hover:#F2DDB4;

  /* Ivory & sand */
  --color-paper:#FBF8F2;
  --color-text-main: var(--ss-color-text-main, #F3EDE3);
  --color-text-muted: var(--ss-color-text-muted, #BDAF99);
  --color-text-faint:#9C8E79;

  /* Functional — heat and vegetarian, nothing else */
  --color-spice:#E0654B;
  --color-veg:#A8C686;

  --color-border-gold:rgba(232,200,138,.22);
  --color-border-gold-strong:rgba(232,200,138,.45);

  --font-heading: var(--ss-font-heading, 'Cormorant Garamond', Georgia, serif);
  --font-body: var(--ss-font-body, 'Jost', system-ui, -apple-system, sans-serif);

  --radius: var(--ss-btn-radius, 0px);
  --t-micro:180ms cubic-bezier(.33,1,.68,1);
  --t-standard:260ms cubic-bezier(.33,1,.68,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-primary); /* #0D3129 */
  color: var(--color-text-main);              /* #F3EDE3 */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Focus Ring State */
:focus-visible {
  outline: 2px solid var(--color-accent-gold-light);
  outline-offset: 3px;
}

/* Background Texture Noise Overlay */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2"/></filter><rect width="180" height="180" filter="url(%23n)"/></svg>');
}

/* PRELOADER & SEAMLESS TRANSITION */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg-primary);
  transition: opacity 700ms cubic-bezier(0.65, 0, 0.35, 1), visibility 700ms ease;
  pointer-events: auto;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-chef-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: top 750ms cubic-bezier(0.65, 0, 0.35, 1), left 750ms cubic-bezier(0.65, 0, 0.35, 1), transform 750ms cubic-bezier(0.65, 0, 0.35, 1), opacity 750ms ease;
  will-change: transform, top, left, opacity;
}

.preloader-chef-logo-wrapper {
  position: relative;
  width: 140px;
  height: 160px;
  border-radius: 0 !important;
  padding: 0;
  background: transparent !important;
  box-shadow: none;
  animation: chefIntroZoom 1000ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: visible;
}

.preloader-chef-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  display: block;
  background: transparent !important;
}

.preloader-ripple-ring {
  position: absolute;
  inset: -15px;
  border: 1px solid var(--color-border-gold-strong);
  border-radius: 50%;
  animation: chefRipple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

.preloader-brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent-gold-light);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: chefTextFade 700ms ease 300ms forwards;
}

@keyframes chefIntroZoom {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes chefRipple {
  0% { transform: scale(0.85); opacity: 0.95; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes chefTextFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Curtain Page Turn Transition Overlay */
.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

#iris-curtain {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle, var(--color-brand-emerald) 0%, var(--color-bg-primary) 60%, var(--color-bg-deep) 100%);
  clip-path: circle(0px at 50% 50%);
}

#ring-curtain {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-accent-gold-light);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 48px rgba(232, 200, 138, 0.3);
}

/* SITE HEADER BAR — --color-brand-emerald (#17564A) ONLY */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: var(--color-brand-emerald); /* #17564A ONLY */
  border-bottom: 1px solid var(--color-border-gold);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text-main);
}

.logo-badge-wrapper {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.logo-badge-img {
  width: 52px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  border-radius: 0 !important;
  display: block;
  background: transparent !important;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-main);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Secondary text sitting on #17564A uses #D6CBB8 per contrast rule */
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: #D6CBB8;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--t-micro);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-gold-light);
  transition: width var(--t-micro);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* BUTTONS — CUSTOMIZABLE VIA STYLE GUIDE */
.btn-primary, .btn-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ss-btn-primary-bg, var(--color-accent-gold-light)); /* #E8C88A fill */
  color: var(--ss-btn-primary-color, var(--color-bg-primary));                /* #0D3129 text */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: var(--ss-btn-transform, uppercase);
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--ss-btn-radius, 0px) !important;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform var(--t-micro), background-color var(--t-micro);
}

.btn-primary:hover, .btn-reserve:hover {
  transform: translateY(-1px);
  background-color: var(--ss-btn-primary-hover, var(--color-accent-gold-hover));
  color: var(--ss-btn-primary-color, var(--color-bg-primary));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ss-btn-sec-bg, transparent);
  color: var(--ss-btn-sec-color, var(--color-accent-gold-light));
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: var(--ss-btn-transform, uppercase);
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--ss-btn-sec-border, var(--color-border-gold-strong));
  border-radius: var(--ss-btn-radius, 0px) !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-micro), background-color var(--t-micro);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background-color: var(--ss-btn-sec-hover, rgba(232, 200, 138, 0.08));
}

.btn-emerald-on-ivory {
  background-color: var(--color-brand-emerald);
  color: var(--color-text-main);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--ss-btn-radius, 0px) !important;
}

/* Mobile Burger Menu Button */
.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-gold-strong);
  color: var(--color-text-main);
  font-size: 1.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0;
  cursor: pointer;
}

/* Mobile Drawer Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-standard), visibility var(--t-standard);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: color var(--t-micro);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent-gold-light);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--color-text-main);
  font-size: 2.5rem;
  cursor: pointer;
}

/* LAYOUT & CONTAINER */
.container {
  max-width: var(--ss-container-width, 1240px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--ss-section-pad-y, 5.5rem) 0;
}

.main-padding {
  padding-top: 10.5rem;
}

/* TYPOGRAPHY SYSTEM */
h1, h2, h3, h4, .section-title, .hero-title {
  font-family: var(--font-heading);
  text-wrap: balance;
}

.hero-title, .hero h1 {
  font-family: var(--font-heading);
  font-weight: 300; /* Never bold a large Cormorant headline */
  color: var(--color-text-main);
  font-size: clamp(2.35rem, 4.5vw, 3.8rem);
  max-width: var(--ss-hero-title-maxwidth, 30ch);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent-gold-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--color-accent-gold-light);
  font-weight: 300;
}

.section-desc, p, .body-text {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 65ch; /* Body text caps at ~65ch */
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* HERO SECTION */
.hero-section,
.hero-video-section {
  min-height: var(--ss-hero-min-height, 88vh);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(90px + var(--ss-hero-pad-top, 4rem));
  padding-bottom: var(--ss-hero-pad-bottom, 5.5rem);
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: var(--ss-hero-video-opacity, 0.75);
  background-color: var(--color-bg-primary);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ss-hero-overlay-bg, linear-gradient(180deg, rgba(13,49,41,0.3) 0%, rgba(13,49,41,0.6) 50%, rgba(13,49,41,0.96) 100%));
  pointer-events: none;
}

.hero-content-box {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

/* STATS / SOCIAL BAND — --color-bg-deep (#08221C) */
.stats-band {
  background-color: var(--color-bg-deep); /* #08221C */
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
  padding: var(--ss-social-pad-y, 2.75rem) 1.5rem;
  position: relative;
  z-index: 5;
}

.social-band-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-links-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-accent-gold-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--t-micro), transform var(--t-micro);
}

.social-icon-link:hover {
  color: var(--color-text-main);
  transform: translateY(-1px);
}

/* STORY SECTION */
.story-section {
  background-color: var(--color-bg-secondary); /* #08221C */
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.story-frame {
  border: 1px solid var(--color-border-gold-strong);
  padding: 0.5rem;
  background-color: var(--color-bg-card);
}

/* STORY IMAGE VIEWPORT OVERFLOW FIX FROM PROMPT */
.story-img {
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* SIGNATURE SECTION */
.signature-section {
  background-color: var(--color-bg-primary);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* LAYOUT BUG FIXES FOR DISH CARDS FROM PROMPT */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.dish-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg-card); /* #124237 */
  border: 1px solid var(--color-border-gold);
  border-radius: 0;
  transition: transform var(--t-micro);
}

.dish-card:hover {
  transform: translateY(-2px);
}

.dish-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex: none;
}

.dish-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--color-accent-gold-light);
  color: var(--color-bg-primary);
}

.dish-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.dish-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.dish-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500; /* 500 for dish names */
  color: var(--color-text-main);
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600; /* 600 for prices */
  color: var(--color-accent-gold-light); /* Prices are always --color-accent-gold-light */
}

.dish-desc {
  flex: 1 1 auto;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.dish-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* HEAT & VEGETARIAN MARKERS */
.marker-spice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(224, 101, 75, 0.12);
  border: 1px solid var(--color-spice);
  color: var(--color-spice);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.marker-veg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(168, 198, 134, 0.12);
  border: 1px solid var(--color-veg);
  color: var(--color-veg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* HOURS & LOCATION SECTION */
.hours-section {
  background-color: var(--color-bg-secondary); /* #08221C */
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hours-card {
  background-color: var(--color-bg-card); /* #124237 */
  border: 1px solid var(--color-border-gold-strong);
  padding: 2rem;
}

.hours-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-gold);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.hours-row span:last-child {
  color: var(--color-text-muted);
}

/* MENU BOOK VIEWER STYLES */
.menu-book-controls-top {
  background: var(--color-bg-card); /* #124237 */
  border: 1px solid var(--color-border-gold);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-page-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-gold);
}

.category-page-chip {
  background: transparent;
  border: 1px solid var(--color-border-gold-strong);
  color: var(--color-text-main);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-micro);
}

.category-page-chip:hover,
.category-page-chip.active {
  background: var(--color-accent-gold-light);
  color: var(--color-bg-primary);
  border-color: var(--color-accent-gold-light);
}

.book-turn-btn {
  background: var(--color-accent-gold-light);
  color: var(--color-bg-primary);
  border: none;
  padding: 0.5rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.book-turn-btn:hover {
  background: var(--color-accent-gold-hover);
}

/* 3D BOOK VIEWPORT & SPINE */
.native-book-viewport {
  perspective: 2500px;
  perspective-origin: 50% 50%;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  position: relative;
  display: flex;
  justify-content: center;
}

.native-book-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 600 / 850;
  transform-style: preserve-3d;
  background: #08221C;
  border-radius: 4px;
  box-shadow: 
    0 22px 50px rgba(0, 0, 0, 0.75), 
    0 0 0 1px rgba(201, 162, 39, 0.35),
    -10px 15px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  user-select: none;
}

/* Spine Crease & Shadow */
.native-book-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32px;
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.55) 0%, 
    rgba(0, 0, 0, 0.3) 30%, 
    rgba(232, 200, 138, 0.15) 65%, 
    transparent 100%);
  z-index: 60;
  pointer-events: none;
  border-radius: 4px 0 0 4px;
}

/* Book Edge Ribbon / Border */
.native-book-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 200, 138, 0.25);
  border-radius: 4px;
  pointer-events: none;
  z-index: 61;
}

/* 3D Page Sheet */
.native-book-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0D3129;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(0deg);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.65s ease, 
              opacity 0.35s ease;
  z-index: 1;
}

/* Current Active Page */
.native-book-page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateY(0deg);
  z-index: 10;
}

/* Page directly underneath during forward flip */
.native-book-page.underneath {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: rotateY(0deg);
  z-index: 5;
}

/* Page flipping forward (0deg -> -180deg) */
.native-book-page.flipping-forward {
  opacity: 1;
  visibility: visible;
  z-index: 30;
  transform: rotateY(-180deg);
  box-shadow: -30px 20px 40px rgba(0, 0, 0, 0.7);
}

/* Page flipping backward (-180deg -> 0deg) */
.native-book-page.flipping-backward {
  opacity: 1;
  visibility: visible;
  z-index: 30;
  transform: rotateY(-180deg);
  transition: none;
}

.native-book-page.flipping-backward.flip-in {
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.65s ease, 
              opacity 0.35s ease;
  transform: rotateY(0deg);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.7);
}

/* Past flipped pages */
.native-book-page.flipped {
  transform: rotateY(-180deg);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* Dynamic lighting & shadow sweep during 3D flip */
.native-book-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(0, 0, 0, 0.2) 35%, 
    rgba(255, 255, 255, 0.1) 55%, 
    rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 20;
}

.native-book-page.flipping-forward::after,
.native-book-page.flipping-backward.flip-in::after {
  opacity: 1;
}

.native-book-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* SITE FOOTER — --color-bg-deep (#08221C) ONLY */
.site-footer {
  background-color: var(--color-bg-deep); /* #08221C */
  border-top: 1px solid var(--color-border-gold);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent-gold-light);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 300;
  transition: color var(--t-micro);
}

.footer-links a:hover {
  color: var(--color-accent-gold-light);
}

/* FLOATING WHATSAPP PILL — EMERALD WITH GOLD BORDER & GREEN ICON (NOT SOLID GOLD) */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 850;
  background: var(--color-brand-emerald); /* #17564A Emerald */
  color: var(--color-text-main);           /* #F3EDE3 Warm Ivory */
  border: 1px solid var(--color-border-gold-strong);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px !important; /* The only rounded element */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--t-micro), background-color var(--t-micro), border-color var(--t-micro);
}

.whatsapp-float:hover {
  transform: translateY(-1px);
  background: var(--color-emerald-hover);
  border-color: var(--color-accent-gold-light);
  color: var(--color-accent-gold-light);
}

.whatsapp-icon-svg {
  width: 18px;
  height: 18px;
  fill: #25D366;
  flex-shrink: 0;
}

/* MOBILE RESPONSIVE OPTIMIZATION */
@media (max-width: 992px) {
  .header-container {
    padding: 0.75rem 1.25rem;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .burger-btn { display: block; }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }
  
  .brand-logo {
    gap: 0.65rem;
  }
  
  .logo-badge-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .logo-badge-img {
    width: 36px;
    height: 36px;
  }
  
  .brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }
  
  .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
  
  /* Optimize Call to Reserve button for mobile header */
  .btn-reserve {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap;
    margin-left: auto;
  }
  
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 0.65rem 1.15rem;
    font-size: 0.75rem;
  }
}

/* REVIEWS SECTION STYLES */
.reviews-section {
  background-color: var(--color-bg-secondary); /* #08221C */
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.review-card {
  background-color: var(--color-bg-card); /* #124237 */
  border: 1px solid var(--color-border-gold);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--t-micro);
}

.review-card:hover {
  transform: translateY(-2px);
}

.review-stars {
  color: var(--color-accent-gold-light);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.review-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-meta {
  border-top: 1px solid var(--color-border-gold);
  padding-top: 0.85rem;
  margin-top: auto;
}

.review-author {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-accent-gold-light);
  text-decoration: none;
}

.review-author:hover {
  text-decoration: underline;
}

.review-details {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* ----------------------------------------------------
   SELF-HOSTED FONTS (GDPR / Schrems II Compliance)
   ---------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Cormorant Garamond'),
       url('../fonts/cormorant-garamond.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: local('Jost'),
       url('../fonts/jost.woff2') format('woff2');
}

/* ----------------------------------------------------
   DYNAMIC MENU BOOK PAGE STYLING (Option B CPT Engine)
   ---------------------------------------------------- */
.dynamic-cpt-page {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-gold-strong);
  box-sizing: border-box;
  padding: 2.25rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.native-book-page.cover-page,
.native-book-page.back-cover-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #17564A 0%, #08221C 100%);
  border: 2px solid var(--color-accent-gold);
}

.book-cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  width: 100%;
}

.book-cover-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.book-cover-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
  margin: 0;
}

.book-cover-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-accent-gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.book-cover-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
  padding: 0.5rem 2rem;
  margin-top: 0.75rem;
}

.book-back-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-accent-gold-light);
  margin-bottom: 0.75rem;
}

.book-back-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.book-back-address {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-header {
  border-bottom: 1px solid var(--color-border-gold);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.page-header h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--color-accent-gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.menu-page-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.menu-page-item {
  border-bottom: 1px dashed rgba(232, 200, 138, 0.15);
  padding-bottom: 0.75rem;
}

.menu-page-item:last-child {
  border-bottom: none;
}

.menu-page-item-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.item-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.item-thumb {
  display: none !important;
}

.item-price {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent-gold-light);
  white-space: nowrap;
}

.item-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0.2rem 0 0.35rem;
}

.item-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.item-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: rgba(23, 86, 74, 0.6);
  border: 1px solid rgba(232, 200, 138, 0.25);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.item-tag:empty {
  display: none;
}

/* Contact Demo Form fallback */
.contact-demo-form input:focus,
.contact-demo-form textarea:focus {
  outline: 1px solid var(--color-accent-gold-light);
}
