/* ============================================
   SALA THAI — LUXURY DARK FUTURISM
   ============================================ */

/* --- CSS Custom Properties for Animated Gradients --- */
@property --grad-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --glow-opacity {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

@property --shimmer-x {
  syntax: '<percentage>';
  initial-value: -100%;
  inherits: false;
}

/* --- Design Tokens --- */
:root {
  --clr-bg: #050505;
  --clr-surface: #0a0a0a;
  --clr-surface-2: #111111;
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(255, 255, 255, 0.12);
  --clr-text: #f0f0f0;
  --clr-text-muted: #888;
  --clr-text-dim: #555;
  --clr-accent: #E63946;
  --clr-gold: #C9A96E;
  --clr-gold-dim: rgba(201, 169, 110, 0.15);
  --clr-accent-glow: rgba(230, 57, 70, 0.4);
  --clr-gold-glow: rgba(201, 169, 110, 0.3);
  --clr-glass: rgba(255, 255, 255, 0.03);
  --clr-glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.6s var(--ease-out-expo);
  --transition-fast: 0.3s var(--ease-out-expo);
  --nav-height: 96px;
  --nav-scrolled-height: 72px;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 var(--clr-bg);
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}

::selection {
  background-color: var(--clr-accent);
  color: #fff;
}

::-moz-selection {
  background-color: var(--clr-accent);
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- Section Utility --- */
.section-content {
  scroll-margin-top: calc(var(--nav-scrolled-height) + 16px);
}

/* --- Ambient Floating Orbs --- */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.08;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.ambient-orb.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--clr-accent);
  top: 10%;
  right: -5%;
  animation-duration: 25s;
}

.ambient-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--clr-gold);
  bottom: 20%;
  left: -5%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.ambient-orb.orb-3 {
  width: 250px;
  height: 250px;
  background: #4a90d9;
  top: 50%;
  left: 40%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(10px, -10px) scale(1.05);
  }
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--clr-border);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--clr-accent-glow);
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-shadow: 0 0 12px var(--clr-accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* --- SKIP LINK FOR ACCESSIBILITY --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--clr-surface);
  color: var(--clr-gold);
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 99999;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: top 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--clr-gold);
}

/* --- NAVIGATION — Floating Glass Bar --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-smooth);
  padding: 0;
  transform: translateZ(0);
}

.main-nav.scrolled {
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
}

.nav-inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  padding: 0 clamp(24px, 4vw, 60px);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--clr-border);
  transition: height var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: height, background, box-shadow;
}

/* Subtle luxury gold-accent highlight across top edge */
.nav-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, 0.25) 30%, rgba(230, 57, 70, 0.2) 70%, transparent 100%);
  pointer-events: none;
}

.main-nav.scrolled .nav-inner {
  border-radius: 0;
  border-bottom: 1px solid var(--clr-glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  height: var(--nav-scrolled-height);
  background: rgba(5, 5, 5, 0.92);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav-inner {
    background: rgba(5, 5, 5, 0.96);
  }
  .main-nav.scrolled .nav-inner {
    background: rgba(5, 5, 5, 0.98);
  }
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  outline: none;
  transition: transform var(--transition-fast);
  min-width: 80px;
}

.nav-logo-link:hover {
  transform: scale(1.03);
}

.nav-logo-link:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 4px;
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

.nav-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-fast), filter var(--transition-fast);
}

.nav-logo-link:hover .nav-logo {
  filter: drop-shadow(0 0 14px var(--clr-gold-glow)) brightness(1.06);
}

.main-nav.scrolled .nav-logo {
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-text-muted);
  position: relative;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease-in-out, transform 0.25s ease-in-out, text-shadow 0.25s ease-in-out;
}

/* Expanded click target (Fitts's Law) without visual displacement */
.nav-link::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  background: transparent;
  pointer-events: auto;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width 0.3s var(--ease-out-expo), opacity 0.3s ease;
  box-shadow: 0 0 10px var(--clr-accent-glow);
  border-radius: 1px;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  opacity: 1;
}

.nav-link:focus-visible {
  outline: none;
  color: #ffffff;
  text-shadow: 0 0 12px var(--clr-accent-glow);
}

.nav-link:focus-visible::after {
  width: 100%;
  opacity: 1;
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.15s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--clr-accent);
  background: rgba(230, 57, 70, 0.1);
  outline: none;
}

.mobile-menu-btn:active {
  transform: scale(0.94);
}

.mobile-menu-btn.active {
  border-color: var(--clr-accent);
  background: rgba(230, 57, 70, 0.15);
  box-shadow: 0 0 12px var(--clr-accent-glow);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--clr-text);
  border-radius: 2px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--clr-accent);
}

.mobile-menu-btn.active .bar-2 {
  opacity: 0;
}

.mobile-menu-btn.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--clr-accent);
}

#mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--clr-border);
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 32px 24px 40px;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99;
}

.main-nav.scrolled #mobile-menu {
  top: var(--nav-scrolled-height);
  height: calc(100dvh - var(--nav-scrolled-height));
  min-height: calc(100dvh - var(--nav-scrolled-height));
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  margin: auto 0;
}

.mobile-nav-links a {
  display: block;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible,
.mobile-nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 169, 110, 0.2);
}

#mobile-menu.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.04s; }
#mobile-menu.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.08s; }
#mobile-menu.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.12s; }
#mobile-menu.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.16s; }
#mobile-menu.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.20s; }

/* Mobile Menu Divider & Quick Actions Footer */
.mobile-menu-divider {
  width: 50%;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.35), transparent);
  margin: 12px auto;
  flex-shrink: 0;
}

.mobile-menu-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  flex-shrink: 0;
}

.mobile-footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-footer-action:hover,
.mobile-footer-action:focus-visible,
.mobile-footer-action:active {
  background: rgba(230, 57, 70, 0.15);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--clr-accent-glow);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1;
}

.lang-btn:hover,
.lang-btn:focus-visible,
.lang-selector-wrap.open .lang-btn {
  border-color: var(--clr-accent);
  color: #fff;
  background: rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 16px var(--clr-accent-glow);
}

.lang-btn .globe-icon {
  color: var(--clr-accent);
  flex-shrink: 0;
  display: block;
  transition: transform 0.4s var(--ease-out-expo), color 0.25s ease-in-out;
}

.lang-selector-wrap.open .lang-btn .globe-icon {
  transform: rotate(45deg);
}

.lang-btn .current-lang-code {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-text);
  line-height: 1;
  display: inline-block;
}

.lang-btn .chevron-icon {
  color: var(--clr-text-muted);
  flex-shrink: 0;
  display: block;
  transition: transform 0.25s ease-in-out, color 0.25s ease-in-out;
}

.lang-btn:hover .chevron-icon,
.lang-selector-wrap.open .lang-btn .chevron-icon {
  color: var(--clr-accent);
}

.lang-selector-wrap.open .lang-btn .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  max-width: min(280px, 90vw);
  max-height: 380px;
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1005;
}

.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 70, 0.4);
  border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-selector-wrap.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  text-align: left;
  overflow: hidden;
}

.lang-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-right: 8px;
  flex-shrink: 0;
}

.lang-option.active .lang-check {
  opacity: 1;
  transform: scale(1);
}

/* Left-border slide-in highlight */
.lang-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--clr-accent);
  box-shadow: 0 0 8px var(--clr-accent-glow);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  opacity: 0;
  border-radius: 0 2px 2px 0;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(230, 57, 70, 0.12);
  color: #ffffff;
  padding-left: 16px;
}

.lang-option:hover::before,
.lang-option:focus-visible::before {
  transform: scaleY(1);
  opacity: 1;
}

.lang-option:hover .lang-name,
.lang-option:focus-visible .lang-name {
  color: #ffffff;
}

.lang-option:hover .lang-code,
.lang-option:focus-visible .lang-code {
  color: var(--clr-accent);
}

.lang-option.active {
  background: rgba(230, 57, 70, 0.18);
  color: #ffffff;
  font-weight: 600;
  padding-left: 16px;
}

.lang-option.active::before {
  transform: scaleY(1);
  opacity: 1;
}

.lang-option .lang-name {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  flex-grow: 1;
  transition: color 0.25s ease-in-out;
}

.lang-option .lang-code {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s ease-in-out;
  margin-left: 8px;
}

.lang-option.active .lang-code {
  color: var(--clr-accent);
  font-weight: 600;
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .events-text .section-label,
html[dir="rtl"] .events-text .section-title {
  text-align: right;
}

html[dir="rtl"] .zoom-hint-badge {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .anniversary-actions {
  align-items: flex-start;
}

html[dir="rtl"] .mart-underline-img {
  transform-origin: right;
  left: auto;
  right: -6%;
}

html[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* RTL Timeline / Our Story */
html[dir="rtl"] .timeline-container::after {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

html[dir="rtl"] .timeline-item.left {
  right: 50%;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .timeline-item.right {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .timeline-item.left .timeline-dot {
  right: -8px;
  left: auto;
}

html[dir="rtl"] .timeline-item.right .timeline-dot {
  left: -8px;
  right: auto;
}

@media (max-width: 768px) {
  html[dir="rtl"] .timeline-container::after {
    right: 20px;
    left: auto;
    transform: none;
  }

  html[dir="rtl"] .timeline-item {
    width: 100%;
    padding-right: 56px;
    padding-left: 16px;
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
  }

  html[dir="rtl"] .timeline-item.left .timeline-dot,
  html[dir="rtl"] .timeline-item.right .timeline-dot {
    right: 12px;
    left: auto;
  }
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

html[dir="rtl"] .lang-option {
  text-align: right;
  padding-left: 14px;
  padding-right: 14px;
}

html[dir="rtl"] .lang-option::before {
  left: auto;
  right: 0;
  border-radius: 2px 0 0 2px;
}

html[dir="rtl"] .lang-option:hover,
html[dir="rtl"] .lang-option:focus-visible,
html[dir="rtl"] .lang-option.active {
  padding-left: 14px;
  padding-right: 18px;
}

html[dir="rtl"] .lang-check {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .lang-option .lang-code {
  margin-left: 0;
  margin-right: 8px;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 76px;
    --nav-scrolled-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    width: 40px;
    height: 40px;
  }

  #mobile-menu {
    display: flex;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-logo {
    height: 52px;
  }

  .main-nav.scrolled .nav-logo {
    height: 44px;
  }

  .slide {
    transition: opacity 1.8s ease-in-out;
  }

  .marquee-group {
    animation-duration: 90s;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  pointer-events: none;
}

.slide.last-active {
  opacity: 1;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.pan-left-to-right {
  animation: heroPanLeftToRight 16s linear forwards;
}

.slide.pan-right-to-left {
  animation: heroPanRightToLeft 16s linear forwards;
}

@keyframes heroPanLeftToRight {
  0% {
    transform: scale(1.12) translate3d(-3.5%, 0, 0);
  }
  100% {
    transform: scale(1.12) translate3d(3.5%, 0, 0);
  }
}

@keyframes heroPanRightToLeft {
  0% {
    transform: scale(1.12) translate3d(3.5%, 0, 0);
  }
  100% {
    transform: scale(1.12) translate3d(-3.5%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide.pan-left-to-right,
  .slide.pan-right-to-left {
    animation: none;
    transform: scale(1.05) translate3d(0, 0, 0);
  }
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.5) 50%, rgba(5, 5, 5, 0.95) 100%);
}

/* Cinematic letterbox bars */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clr-gold);
  opacity: 0.15;
  z-index: 5;
}

.hero-section::before {
  top: 0;
}

.hero-section::after {
  bottom: 0;
}

/* Cursor-following glow */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(700px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(201, 169, 110, 0.08), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  padding-top: calc(var(--nav-height) + 20px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* --- SMOOTH COLOR FADE ANIMATIONS --- */
@keyframes turnRed {
  0% { color: inherit; }       
  100% { color: #D20B36; }     
}

@keyframes turnGreen {
  0% { color: inherit; }       
  100% { color: #3dbf34; }     
}

.hero-title .spice-color-change {
  display: inline-block;
  color: inherit;
  animation: turnRed 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.5s;
}

.hero-title .life-color-change {
  display: inline-block;
  color: inherit;
  animation: turnGreen 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1.5s;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 48px;
}

/* Animated gradient border buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border: none;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--clr-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px -8px var(--clr-accent-glow);
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px -8px rgba(255, 255, 255, 0.1);
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s ease;
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.19s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.33s;
}

/* --- SECTION HEADERS --- */
.section-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

/* Animated shimmer on section titles */
.section-title-shimmer {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--clr-gold) 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {

  0%,
  100% {
    background-position: 100% 0;
  }

  50% {
    background-position: -100% 0;
  }
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  margin: 24px auto;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--clr-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--clr-gold-glow);
}

.section-desc {
  color: var(--clr-text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.75;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* --- Glowing Section Separator --- */
.glow-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-dim), var(--clr-gold), var(--clr-gold-dim), transparent);
  border: none;
  margin: 0;
  opacity: 0.5;
}

/* --- EVENTS SECTION --- */
.events-section {
  padding: clamp(60px, 8vw, 110px) 24px clamp(90px, 11vw, 150px);
  position: relative;
  overflow: hidden;
}

/* Event Switcher Tabs (High-End Sliding Segmented Control) */
.events-nav-container {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.events-tabs {
  position: relative;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px;
  display: inline-flex;
  gap: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(230, 57, 70, 0.15);
  backdrop-filter: blur(20px);
}

.tab-glider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.32), rgba(230, 57, 70, 0.14));
  border: 1px solid rgba(230, 57, 70, 0.85);
  border-radius: var(--radius-full);
  box-shadow: 0 0 28px rgba(230, 57, 70, 0.55), inset 0 0 14px rgba(230, 57, 70, 0.3);
  transition: left 0.4s cubic-bezier(0.34, 1.25, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

.event-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: #888;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.event-tab:hover {
  color: #fff;
}

.event-tab.active {
  color: #fff;
  font-weight: 600;
}

.event-tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.badge-red {
  background: rgba(230, 57, 70, 0.2);
  color: #ff6b81;
  border: 1px solid rgba(230, 57, 70, 0.45);
}

.event-tab.active .badge-red {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

.events-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 80px;
  align-items: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.event-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.event-panel.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  animation: panelFadeIn 0.5s ease forwards;
}

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

.events-text .section-label {
  text-align: left;
}

.events-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

/* Event Location & Time Badge */
.event-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--clr-gold);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.event-meta-badge svg {
  flex-shrink: 0;
  color: var(--clr-gold);
}

.village-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.thai-select-title-badge {
  width: clamp(64px, 6vw, 90px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 18px rgba(230, 57, 70, 0.4));
  opacity: 0;
  transform: scale(0.4) rotate(-10deg);
  transition: transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.35s, opacity 0.5s ease 0.35s;
  pointer-events: none;
}

.reveal.visible .thai-select-title-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.mart-wrapper {
  position: relative;
  display: inline-block;
}

.mart-underline-img {
  position: absolute;
  bottom: -0.15em;
  left: -6%;
  width: 114%;
  max-width: none;
  height: auto;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s, opacity 0.5s ease 0.5s;
  pointer-events: none;
  z-index: -1;
}

.reveal.visible .mart-underline-img {
  opacity: 1;
  transform: scaleX(1);
}

.events-desc {
  color: var(--clr-text-muted);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 24px;
  text-wrap: pretty;
  overflow-wrap: break-word;
  text-align: left;
}

html[dir="rtl"] .events-desc {
  text-align: right;
}

/* Daily Menus Interactive Selector (Pure Black Luxury Design) */
.daily-menu-container {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.daily-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.daily-menu-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.daily-day-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.day-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.day-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.day-tab-btn.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--clr-accent-glow);
  transform: scale(1.06);
}

.daily-dish-list {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.daily-dish-list.active {
  display: flex;
}

.dish-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.15px;
  transition: all 0.25s ease;
  animation: chipEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.dish-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-accent);
  box-shadow: 0 0 6px var(--clr-accent-glow);
  flex-shrink: 0;
}

.dish-chip:hover {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

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

/* Event image frames (Cinematic Proportions) */
.event-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 40px rgba(230, 57, 70, 0.12);
}

/* 35th Anniversary Thai Buffet: Desktop Layout */
@media (min-width: 769px) {
  #event-panel-anniversary {
    grid-template-columns: 42% 58%;
    gap: 50px;
  }
}

#event-panel-anniversary .event-frame {
  max-width: 650px;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  margin: 0 auto;
  border-radius: 20px;
  cursor: pointer;
  background: #000;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(201, 169, 110, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#event-panel-anniversary .event-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.98), 0 0 45px rgba(201, 169, 110, 0.4);
}

#event-panel-anniversary .event-frame::before {
  border-radius: 20px;
}

#event-panel-anniversary .event-frame::after {
  display: none;
}

#event-panel-anniversary .anniversary-flyer-img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: 18px;
  opacity: 1;
  animation: none;
  z-index: 1;
  transition: transform 0.4s ease;
}

#event-panel-anniversary .event-frame:hover .anniversary-flyer-img {
  transform: scale(1.02);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--clr-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.25s ease;
}

#event-panel-anniversary .event-frame:hover .zoom-hint-badge {
  background: rgba(201, 169, 110, 0.95);
  color: #000;
  border-color: #fff;
}

.anniversary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.anniversary-booking-note {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  font-style: italic;
}

.gold-accent-title {
  color: var(--clr-gold);
}

/* Sala Thai Mart: 4:3 Wide Frame */
#event-panel-mart .event-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

#event-panel-mart .event-img {
  object-fit: cover;
}

.event-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from var(--grad-angle), var(--clr-gold), transparent 30%, var(--clr-accent), transparent 70%, var(--clr-gold));
  animation: rotateBorder 6s linear infinite;
  z-index: -1;
}

@keyframes rotateBorder {
  to {
    --grad-angle: 360deg;
  }
}

.event-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 2;
}

.event-img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
  opacity: 0;
  animation: imageCycle 16s ease-in-out infinite;
}

.event-img:nth-child(1) {
  animation-delay: 0s;
}

.event-img:nth-child(2) {
  animation-delay: 4s;
}

.event-img:nth-child(3) {
  animation-delay: 8s;
}

.event-img:nth-child(4) {
  animation-delay: 12s;
}

@keyframes imageCycle {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  31% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .events-section {
    padding: 44px 16px 56px;
  }

  .events-nav-container {
    width: 100%;
    margin: 0 auto 28px;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .events-tabs {
    width: 100%;
    max-width: 480px;
    display: flex;
    padding: 4px;
    gap: 0;
    box-sizing: border-box;
  }

  .tab-glider {
    top: 4px;
    height: calc(100% - 8px);
  }

  .event-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.92rem;
    gap: 6px;
    white-space: nowrap;
    text-align: center;
  }

  .event-tab-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
    letter-spacing: 0.5px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 100%;
  }

  .event-panel.active {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #event-panel-anniversary {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  .events-text {
    width: 100%;
  }

  .events-text .section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .events-text .section-title {
    font-size: clamp(2.1rem, 7.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .village-wrapper {
    gap: 10px;
    flex-wrap: wrap;
  }

  .thai-select-title-badge {
    width: clamp(40px, 9vw, 52px);
    vertical-align: middle;
  }

  .event-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .events-desc {
    font-size: 1.05rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
    text-wrap: pretty;
  }

  /* Daily Menus Container on Mobile */
  .daily-menu-container {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 16px;
    margin-top: 20px;
    border-radius: var(--radius-md);
  }

  .daily-menu-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .daily-menu-label {
    font-size: 1.15rem;
    font-weight: 700;
  }

  .daily-day-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
  }

  .day-tab-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 2px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .daily-dish-list {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .daily-dish-list.active {
    display: flex;
  }

  .dish-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.88rem;
    line-height: 1.35;
    border-radius: var(--radius-full);
  }

  /* Mobile Event Frames */
  .event-frame {
    height: auto;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  }

  #event-panel-anniversary .event-frame {
    aspect-ratio: 1 / 1.414;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.95), 0 0 28px rgba(201, 169, 110, 0.22);
  }

  #event-panel-anniversary .event-frame::before {
    border-radius: 18px;
  }

  #event-panel-anniversary .anniversary-flyer-img {
    border-radius: 16px;
  }

  .anniversary-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
  }

  .anniversary-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .anniversary-booking-note {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-style: italic;
    line-height: 1.4;
  }

  #event-panel-mart .event-frame {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    margin: 0;
  }
}

/* --- ABOUT / TIMELINE SECTION --- */
.about-section {
  padding: clamp(80px, 10vw, 140px) 24px;
  position: relative;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 40px 0;
}

/* Glowing center line */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 2px;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--clr-gold-dim), var(--clr-gold), var(--clr-gold-dim), transparent);
  animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.timeline-item {
  padding: 20px 50px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  transition: transform 0.4s var(--ease-out-expo);
}

.timeline-item:hover {
  transform: translateY(-4px);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  position: absolute;
  top: 30px;
  z-index: 10;
  box-shadow: 0 0 0 4px var(--clr-bg), 0 0 20px var(--clr-gold-glow);
  animation: dotGlow 2.5s ease-in-out infinite;
}

@keyframes dotGlow {

  0%,
  100% {
    box-shadow: 0 0 0 4px var(--clr-bg), 0 0 15px rgba(201, 169, 110, 0.2);
  }

  50% {
    box-shadow: 0 0 0 4px var(--clr-bg), 0 0 25px rgba(201, 169, 110, 0.5);
  }
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.dot-red {
  background: var(--clr-accent);
  border: 3px solid var(--clr-accent);
}

.dot-green {
  background: #15803d;
  border: 3px solid #15803d;
}

.tl-year {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--clr-gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: -18px;
  position: relative;
  z-index: 1;
}

.tl-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.3vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  line-height: 1.25;
}

.tl-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  font-weight: 300;
  text-wrap: pretty;
  overflow-wrap: break-word;
  text-align: left;
}

html[dir="rtl"] .tl-desc {
  text-align: right;
}

/* Glass card bg on hover */
.tl-content {
  padding: 28px 32px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo);
}

.timeline-item:hover .tl-content {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--clr-glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 110, 0.05);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .timeline-container::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 56px;
    padding-right: 16px;
    text-align: left !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }

  .tl-year {
    font-size: 2.8rem;
    margin-bottom: -10px;
  }

  .tl-title {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .tl-desc {
    font-size: 1.05rem;
    line-height: 1.68;
  }
}

/* --- MENU CAROUSEL --- */
.menu-section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.menu-header {
  padding: 0 24px;
  text-align: center;
  margin-bottom: 60px;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 24px;
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 100%;
  animation: marqueeScroll 70s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 24px));
  }
}

.marquee-container:hover .marquee-group {
  animation-play-state: paused;
}

/* 3D Perspective Cards */
.menu-card {
  width: 28vw;
  height: 55vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
  z-index: 2;
  pointer-events: none;
}

.menu-card:hover {
  transform: scale(1.04) translateY(-8px) rotateX(2deg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 40px var(--clr-accent-glow);
  z-index: 50;
}

.menu-card:hover::before {
  border-color: var(--clr-accent);
}

@media (max-width: 480px) {
  .menu-card {
    width: 85vw;
    height: 45vh;
  }
}

.menu-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out-expo);
}

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

@media (max-width: 768px) {
  .menu-card {
    width: 80vw;
    height: 50vh;
  }

  .marquee-group {
    animation-duration: 90s;
  }
}

/* --- CAROUSEL SCROLL ENHANCEMENTS --- */

/* Manual scroll mode: applied via JS when user scrolls with wheel/touch.
   Makes the container actually scrollable instead of relying on CSS animation. */
.marquee-container--manual {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto; /* JS handles smooth momentum, not CSS */
}

/* Hide the native scrollbar in manual mode */
.marquee-container--manual::-webkit-scrollbar {
  display: none;
}
.marquee-container--manual {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* When in manual scroll mode, stop the CSS marquee animation */
.marquee-container--manual .marquee-group {
  animation: none !important;
}

/* --- Scroll Indicator Bar --- */
/* Scroll track: thin line below the carousel */
.carousel-scroll-indicator {
  width: 90%;
  max-width: 600px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  margin: 28px auto 0;
  position: relative;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

/* Show the indicator when the carousel is in manual scroll mode */
.carousel-scroll-indicator--visible {
  opacity: 1;
}

/* Small red marker that slides along the track */
.carousel-scroll-indicator__fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0%;
  width: 40px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--clr-accent);
  transition: left 0.1s ease-out;
  box-shadow: 0 0 10px var(--clr-accent-glow), 0 0 4px var(--clr-accent);
}

/* --- LIGHTBOX --- */
#lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
  padding: 24px;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(201, 169, 110, 0.1);
  border: 1px solid var(--clr-glass-border);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-spring);
}

#lightbox-modal.active #lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-gold);
  font-weight: 500;
}

#lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--clr-text-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  color: #fff;
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: rotate(90deg) scale(1.05);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--clr-accent-glow);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }
  .lightbox-prev {
    left: 12px;
  }
  .lightbox-next {
    right: 12px;
  }
  #lightbox-close {
    top: 16px;
    right: 16px;
  }
}

/* --- CONTACT SECTION --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  border-top: 1px solid var(--clr-border);
}

.contact-info {
  padding: clamp(40px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.contact-info .contact-desc {
  color: var(--clr-text-muted);
  font-weight: 300;
  font-size: 1.25rem;
  margin-bottom: 48px;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-wrap: break-word;
  text-align: left;
}

html[dir="rtl"] .contact-info .contact-desc {
  text-align: right;
}

.contact-block {
  margin-bottom: 36px;
}

.contact-block-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-icon {
  color: var(--clr-gold);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  transition: all var(--transition-fast);
  background: linear-gradient(90deg, #15803d, var(--clr-accent), var(--clr-gold));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 2px;
}

.contact-item a:hover {
  color: #fff;
  background-size: 100% 2px;
  transform: translateX(4px);
}

.contact-hours {
  color: var(--clr-text-muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.social-links-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Social link with animated pulse ring */
.social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo);
}

.social-link::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo) 0.05s;
}

.social-link:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px var(--clr-accent-glow);
}

.social-link:hover::before {
  border-color: rgba(230, 57, 70, 0.3);
}

.social-link:hover::after {
  border-color: rgba(230, 57, 70, 0.12);
}

/* Map area */
.contact-map {
  position: relative;
  background: var(--clr-surface);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  filter: invert(90%) hue-rotate(180deg) contrast(80%) grayscale(40%);
  transition: filter 0.7s ease;
  border: 0;
}

.contact-map:hover iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(85%) grayscale(20%) brightness(1.2);
}

.contact-map.light-mode iframe {
  filter: none !important;
}

.map-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.map-theme-toggle:hover {
  background: var(--clr-surface-2);
  border-color: var(--clr-border-hover);
  transform: scale(1.1);
  color: var(--clr-gold);
}

.map-nav-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--clr-bg);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10;
  white-space: nowrap;
}

.map-nav-btn:hover {
  background: var(--clr-accent);
  color: #fff;
  transform: translateX(-50%) translateY(-3px);
}

.map-nav-btn svg {
  transition: transform var(--transition-fast);
}

.map-nav-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-map {
    height: 350px;
    order: -1;
  }

  .contact-info {
    padding: 40px 24px;
  }

  .contact-info h2 {
    font-size: 2rem;
  }
}

/* --- FOOTER --- */
.main-footer {
  padding: 32px clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--clr-border);
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-dim), transparent);
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.8;
  filter: brightness(1.2);
}

.footer-copy {
  font-size: 0.95rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-logo {
    height: 64px;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}

/* --- BACK TO TOP --- */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-fast);
  z-index: 90;
}

#backToTop svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--clr-accent-glow);
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

html[dir="rtl"] #backToTop {
  right: auto;
  left: 32px;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  #backToTop svg {
    width: 20px;
    height: 20px;
  }

  html[dir="rtl"] #backToTop {
    right: auto;
    left: 20px;
  }
}

/* --- Smooth focus outlines for accessibility --- */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 4px;
}

/* --- Tablet Landscape / Small Laptops (1024–1200px) --- */
@media (min-width: 769px) and (max-width: 1200px) {
  .events-grid {
    grid-template-columns: 42% 58%;
    gap: 50px;
  }

  #event-panel-anniversary .event-frame {
    max-width: 540px;
  }

  .contact-section {
    gap: 40px;
  }
}

/* --- Small Phones (390px and below) --- */
@media (max-width: 390px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .events-section {
    padding: 36px 12px 48px;
  }

  .event-tab {
    padding: 8px 4px;
    font-size: 0.82rem;
    gap: 4px;
  }

  .event-tab-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .daily-menu-container {
    padding: 14px 12px;
  }

  .day-tab-btn {
    font-size: 0.76rem;
    padding: 7px 1px;
  }

  .dish-chip {
    font-size: 0.82rem;
    padding: 5px 9px;
  }

  .event-meta-badge {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .anniversary-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .tl-content {
    padding: 16px;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }
}

/* --- Print-safe --- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .main-nav,
  #backToTop,
  .hero-glow,
  .ambient-orb,
  #preloader {
    display: none !important;
  }
}