/* Reset and Base Styles */
:root {
  /* Ratana Phase 3 Theme */
  --primary-color: #8B1212;
  /* Ratana Red */
  --primary-hover: #b91c1c;
  /* Lighter Red */
  --secondary-color: #556B2F;
  /* Olive Green */
  --secondary-hover: #3d4d22;
  --bg-color: #F9F6F0;
  /* Cream */
  --text-color: #4A3B32;
  /* Deep Brown */
  --text-muted: #6b5a4f;
  --border-color: #E6D5B8;
  /* Warm Beige */
  --card-bg: #ffffff;
  /* White/Light Cream */

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;

  --footer-bg: #1A1210;
  /* Ultra-dark, rich espresso (MNC light mode finish) */

  --header-bg: transparent;
  --header-bg-scrolled: rgba(249, 246, 240, 0.95);
  /* Cream with opacity */
  --header-text: #4A3B32;
  /* Deep brown for visibility on cream pill */
  --header-text-scrolled: #4A3B32;
  /* Deep brown when scrolled */

  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  /* Ratana Phase 2 MNC Theme */
  --primary-color: #dc2626;
  /* Brighter Red for dark visibility */
  --primary-hover: #ef4444;
  --secondary-color: #E6D5B8;
  /* Warm Beige for button borders */
  --secondary-hover: #f3e8d6;
  --bg-color: #0C1B18;
  /* Dark Background */
  --text-color: #F9F6F0;
  /* Cream Text */
  --text-muted: #a0aab2;
  --border-color: #1f3630;
  --card-bg: #0e221f;
  /* Slightly lighter dark green */

  --footer-bg: #060E0C;
  /* Extremely dark elegant finish for dark mode */

  --header-bg: transparent;
  --header-bg-scrolled: rgba(12, 27, 24, 0.95);
  /* Dark green blur */
  --header-text: #F9F6F0;
  --header-text-scrolled: #F9F6F0;
  /* Stays cream */
}

[data-theme="dark"] .logo img {
  opacity: 0.9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

.text-primary {
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

.subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Header Action Buttons Override */
.header .btn-outline {
  border-color: var(--header-text);
  color: var(--header-text);
}

.header .btn-outline:hover {
  background-color: var(--header-text);
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1400px;
  border-radius: 50px;
  padding: 0.8rem 2.5rem;
  background: rgba(249, 246, 240, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  --header-text: var(--header-text-scrolled);
  background: rgba(249, 246, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: 0.6rem 2.5rem;
  top: 10px;
  border: 1px solid rgba(230, 213, 184, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  /* Match the logo's red/gold colors globally */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dynamic Text Color Helper for Tailwind Overrides */
.text-brand {
  color: var(--primary-color) !important;
}

.hover\:text-brand:hover {
  color: var(--primary-color) !important;
}

/* Dynamic BG Color Helper */
.bg-brand {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.hover\:bg-brand:hover {
  background-color: var(--primary-color) !important;
}

.logo img {
  height: 50px;
  transition: height var(--transition-normal);
}

.hero-logo-anim {
  opacity: 0;
  transform-origin: center center;
  animation: mncPremiumReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes mncPremiumReveal {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.8) rotateX(-20deg);
    filter: drop-shadow(0 0 0 rgba(220, 38, 38, 0));
  }

  50% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.05) rotateX(5deg);
    filter: drop-shadow(0 15px 25px rgba(220, 38, 38, 0.3));
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: drop-shadow(0 8px 15px rgba(220, 38, 38, 0.2));
  }
}

.brand-name-hero {
  /* Match the logo's red/gold nature */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  /* overrides the forced white text shadow */
  letter-spacing: 2px;
}

.header.scrolled .logo img {
  height: 40px;
}

.header.scrolled .brand-name {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--header-text);
  /* Dynamic Header Text */
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  /* Terracotta underline */
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 0.8rem;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/exterior/shop%20front.jpeg');
  /* Local elegant hero image fallback */
  background-color: var(--bg-color);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

.page-hero {
  height: 60vh;
  min-height: 500px;
}

.page-hero .hero-bg {
  background-image: url('../images/food/IMG_4662.JPG');
  animation: none;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0.9));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-content span {
  color: #F9F6F0 !important;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.25rem;
  /* Dark text muted override is handled by the group rule */
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.float-btn:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: #F9F6F0;
  /* Always Cream Text */
  padding: 6rem 5% 3rem;
  border-top: 1px solid rgba(230, 213, 184, 0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer-col p,
.footer-col ul li,
.footer-col ul li a {
  color: #F9F6F0;
  /* Force cream/white in both modes */
  opacity: 0.85;
  margin-bottom: 0.8rem;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  /* In light mode it's Olive, dark mode it's Beige */
  opacity: 1;
}

.dolly-logo {
  max-width: 120px;
  margin-top: 1rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #F9F6F0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #F9F6F0;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dev-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--header-text);
  opacity: 0.6;
  font-size: 0.85rem;
}

.dev-logo {
  height: 20px;
  filter: grayscale(1) invert(1) brightness(0.8);
  transition: filter var(--transition-fast);
}

.dev-credit:hover .dev-logo {
  filter: grayscale(0) invert(0);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Home specific */
.home-about,
.home-sister {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.home-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.home-image:hover img {
  transform: scale(1.05);
}

.reviews-section {
  background-color: var(--card-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.review-card {
  background-color: var(--bg-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: transform var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stars {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.reviewer {
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .home-about,
  .home-sister {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Premium MNC Cards */
.review-card,
.value-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(230, 213, 184, 0.15);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.review-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
    /* Ensure above mobile menu */
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin-bottom: 2rem;
  }

  .nav-links a {
    color: var(--text-color);
    /* Deep Brown for visibility on Cream */
    font-size: 1.2rem;
  }

  .hamburger {
    color: var(--text-color);
  }

  .header.scrolled .hamburger {
    color: var(--text-color);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p,
  .hero-content p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
  }
}

/* ============================================
   SIPO API Components
   ============================================
   Status strip, closed modal, offer popup —
   styled to match Ratana's design system.
   ============================================ */

/* ---- Status Strip ---- */
.status-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 0.5rem 5%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(135deg, #0C1B18 0%, #1a2f2a 100%);
  color: #F9F6F0;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(230, 213, 184, 0.1);
}

.status-strip.open {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-bottom-color: rgba(34, 197, 94, 0.2);
}

.status-strip.closed {
  background: linear-gradient(135deg, #1a0c0c 0%, #2a1515 100%);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.status-strip.error {
  background: linear-gradient(135deg, #1a1a0c 0%, #2a2415 100%);
  border-bottom-color: rgba(234, 179, 8, 0.2);
}

.status-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.status-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-strip.open .status-strip-dot {
  background: #22c55e;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.status-strip-text {
  color: #F9F6F0;
  opacity: 0.9;
}

.countdown-timer {
  font-weight: 700;
  color: var(--secondary-color);
  font-variant-numeric: tabular-nums;
}

/* Push header down when status strip is present */
.status-strip~.header {
  top: 32px;
}

/* Light mode adjustments */
:root .status-strip {
  background: linear-gradient(135deg, #F9F6F0 0%, #f0ebe3 100%);
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

:root .status-strip.open {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

:root .status-strip.closed {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

:root .status-strip-text {
  color: var(--text-color);
  opacity: 0.85;
}

[data-theme="dark"] .status-strip {
  background: linear-gradient(135deg, #0C1B18 0%, #1a2f2a 100%);
  color: #F9F6F0;
}

[data-theme="dark"] .status-strip.open {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

[data-theme="dark"] .status-strip.closed {
  background: linear-gradient(135deg, #1a0c0c 0%, #2a1515 100%);
}

[data-theme="dark"] .status-strip-text {
  color: #F9F6F0;
}

/* ---- Modal Overlay (shared for closed + offer) ---- */
.sipo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1.5rem;
}

.sipo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---- Modal Card ---- */
.sipo-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.sipo-modal-overlay.active .sipo-modal {
  transform: translateY(0) scale(1);
}

.sipo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  line-height: 1;
  padding: 0.25rem;
}

.sipo-modal-close:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.sipo-modal-icon {
  margin-bottom: 1.5rem;
}

.sipo-modal-icon svg {
  color: var(--primary-color);
}

.sipo-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.sipo-modal-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.sipo-modal-btn {
  margin-top: 0.5rem;
  min-width: 160px;
}

.sipo-modal-img {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.sipo-modal-img img {
  width: 100%;
  border-radius: 8px;
}

/* ---- Offer Modal Specific ---- */
.offer-modal {
  border-top: 3px solid var(--primary-color);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .status-strip {
    font-size: 0.72rem;
    padding: 0.4rem 3%;
  }

  .status-strip~.header {
    top: 28px;
  }

  .sipo-modal {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .sipo-modal-title {
    font-size: 1.5rem;
  }
}

/* ---- Dynamic Opening Hours List ---- */
#footer-hours li,
#contact-hours li {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

#footer-hours .day {
  font-weight: 500;
  min-width: 80px;
}

#footer-hours .time {
  text-align: right;
  white-space: pre-wrap;
}

#contact-hours p,
#contact-hours .flex {
  width: 100%;
}

/* --- Active Day Highlight --- */
ul#footer-hours li.today,
ul#contact-hours li.today {
  color: var(--primary-color) !important;
  font-weight: 700;
}

ul#footer-hours li.today span,
ul#contact-hours li.today span {
  color: var(--primary-color) !important;
}

/* ---- Horizontal Scroll-Snap Carousels ---- */
.carousel-wrapper {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.carousel-wrapper.active {
  opacity: 1;
  transform: translateY(0);
}

.carousel-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-left: 5%;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 0 5% 2rem 5%;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: center;
  flex: 0 0 85%;
  height: 350px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal);
  cursor: pointer;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 45%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 28%;
  }
}

.carousel-item:hover {
  transform: translateY(-8px);
}

/* ---- Theme Toggle Button Optimization ---- */
#theme-toggle {
  display: flex !important;
  /* Ensure visibility on mobile */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

#theme-toggle:hover {
  background: var(--card-bg);
  transform: scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

/* ---- Premium Dynamic Menu Layout ---- */
.menu-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 3rem auto 5rem;
  background: var(--bg-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.menu-nav a {
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  color: var(--text-color);
  background: var(--card-bg);
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.menu-nav a:hover,
.menu-nav a.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 18, 18, 0.2);
}

.menu-category {
  max-width: 1100px;
  margin: 0 auto 6rem;
  scroll-margin-top: 180px;
}

.menu-category-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 4rem;
  position: relative;
  letter-spacing: 1px;
}

.menu-category-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem 5rem;
}

.menu-item {
  position: relative;
  padding: 2rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 1px dotted rgba(230, 213, 184, 0.6);
  padding-bottom: 0.5rem;
}

.menu-item-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.menu-item-price {
  font-family: var(--font-body);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
  padding-left: 15px;
}

.menu-item-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .menu-nav {
    top: 80px;
    gap: 0.5rem;
  }

  .menu-nav a {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
  }

  .menu-item {
    padding: 1.5rem;
  }

  .header {
    width: 96%;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    top: 10px;
  }

  .nav-actions .nav-order-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    display: none;
    /* hide main order button on very small mobile to save space, let hamburger handle it */
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg-scrolled);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .hamburger {
    display: block;
  }
}

/* Specific Contact Hero */
.contact-hero-bg {
  background-image: url('../images/interior/group-seating.jpeg') !important;
}