/* =========================================
   Linah's Lighthouse — Premium Styles v3
   ========================================= */

/* ── Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { overflow-x: hidden; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #fdf9f3; }
::-webkit-scrollbar-thumb { background: #627d98; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #486581; }

/* ── Typography ───────────────────────── */
.text-balance { text-wrap: balance; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Scrollbar-hide ───────────────────── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── Responsive table ─────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-thumb { background: #bcccdc; border-radius: 3px; }

/* =========================================
   HEADER
   ========================================= */
.header-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(16, 42, 67, 0.10);
}

/* Transparent hero mode */
.header-transparent .header-text-light,
.header-transparent .header-subtext-light,
.header-transparent .header-nav-light { color: white !important; }
.header-transparent .header-icon-light { color: white !important; }

/* Nav link underline effect */
.nav-link { position: relative; padding-bottom: 2px; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: #e85d04;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.menu-open { display: block; animation: slideDown 0.3s ease-out; }
#mobile-menu.menu-close { animation: slideUp 0.25s ease-in forwards; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px) scaleY(0.95); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); display: none; }
}

/* =========================================
   HERO — CINEMATIC
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Fallback poster with animated slow zoom */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(160deg, rgba(10, 25, 41, 0.75) 0%, rgba(16, 42, 67, 0.6) 100%), url("../images/hero/linahs-hero.a243448091a7.jpg");
  background-position: center;
  background-size: cover;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.16) translate3d(-3%, -2%, 0); }
}

/* Gradient overlay - Cinematic layering */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10, 25, 43, 0.92) 0%,
    rgba(16, 42, 67, 0.75) 40%,
    rgba(10, 25, 41, 0.50) 100%
  );
}

/* Premium Gold/Orange Lighting */
.hero-lighting {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(232, 93, 4, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-accent-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10, 25, 41, 0.95), transparent);
  pointer-events: none;
}

/* Subtle animated glow sweep */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(232,93,4,0.12) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.08); }
}

/* Ambient Particles / Backgrounds */
.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(232, 93, 4, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bgPan 40s linear infinite;
  opacity: 0.6;
}
.section-orb-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.05) 0%, transparent 60%);
  top: -200px;
  right: -200px;
  animation: floatAccent 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bgPan {
  0% { background-position: 0 0; }
  100% { background-position: 400px 400px; }
}

/* Hero Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  z-index: 20;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
  text-decoration: none;
  cursor: pointer;
}
.hero-scroll-cue-pill {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.6rem 1.4rem 0.7rem;
  min-width: 72px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 0 rgba(232,93,4,0);
}
.hero-scroll-cue:hover .hero-scroll-cue-pill {
  background: rgba(255,255,255,0.14);
  border-color: rgba(232,93,4,0.5);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 4px rgba(232,93,4,0.12);
}
.hero-scroll-cue-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.8);
}
.hero-scroll-cue-arrow {
  width: 18px; height: 18px;
  color: #e85d04;
  animation: scrollArrowPulse 2.2s ease-in-out infinite;
}
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes scrollArrowPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(3px); }
}
@media (max-width: 640px) {
  .hero-scroll-cue { bottom: 1.25rem; }
  .hero-scroll-cue-pill { padding: 0.5rem 1.1rem 0.6rem; min-width: 64px; }
}

/* Floating highlight cards in hero */
.hero-stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255,255,255,0.12);
  border-color: rgba(232,93,4,0.4);
  box-shadow: 0 30px 60px rgba(16,42,67,0.4);
}

/* Trust Badges */
.trust-badge {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(16,42,67,0.4);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; font-weight: 600; color: white;
  backdrop-filter: blur(8px);
}

/* Glass card (general) */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
}
.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}

/* =========================================
   3D CARDS & DEPTH
   ========================================= */
.depth-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), box-shadow 0.6s ease;
  will-change: transform;
}
.depth-card:hover {
  transform: translateY(-12px) perspective(1200px) rotateX(3deg);
  box-shadow: 0 50px 100px -12px rgba(16,42,67,0.3), 0 16px 32px -8px rgba(16,42,67,0.2), 0 0 0 1px rgba(232,93,4,0.15);
}

.elevated-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease, border-color 0.4s ease;
  background: white;
  border-radius: 24px;
  border: 1px solid #f0f4f8;
}
.elevated-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(232,93,4,0.3);
  box-shadow: 0 32px 72px -12px rgba(16,42,67,0.25), 0 12px 24px -8px rgba(16,42,67,0.15);
}

/* Flip Cards */
.flip-card {
  background-color: transparent;
  perspective: 1200px;
  min-height: 300px;
  isolation: isolate;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}
.flip-card-front {
  background-color: white;
  border: 1px solid #f0f4f8;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.05);
  z-index: 2;
}
.flip-card-back {
  background: linear-gradient(135deg, #102a43 0%, #1a3a54 50%, #243b53 100%);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.2);
  z-index: 1;
}

/* Mobile: disable flip, show stacked content */
@media (max-width: 767px) {
  .flip-card {
    perspective: none;
    min-height: auto;
  }
  .flip-card-inner {
    transform-style: flat;
    min-height: auto;
  }
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: none;
  }
  .flip-card-front, .flip-card-back {
    position: relative;
    inset: auto;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .flip-card-front {
    border-radius: 24px 24px 0 0;
  }
  .flip-card-back {
    transform: none;
    border-radius: 0 0 24px 24px;
    padding: 1.5rem;
  }
}

/* Tilt card — used for images, desktop only */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s ease;
}

.card-lift {
  transition: transform 0.32s cubic-bezier(0.23,1,0.32,1), box-shadow 0.32s ease;
}
.card-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px -10px rgba(16,42,67,0.18);
}

/* Glow border */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,107,26,0.6), rgba(16,42,67,0.3), rgba(255,107,26,0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-border:hover::before { opacity: 1; }

/* Gradient border cards */
.gradient-border {
  position: relative;
  border-radius: 20px;
  background: white;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232,93,4,0.4), rgba(16,42,67,0.2), rgba(232,93,4,0.2));
  z-index: -1;
}

/* Glass panel — frosted glass heavy */
.glass-panel {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(16,42,67,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Layered image card */
.layered-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(16,42,67,0.22), 0 8px 24px rgba(16,42,67,0.12);
}
.layered-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, rgba(232,93,4,0.08), transparent 50%, rgba(16,42,67,0.18));
  pointer-events: none;
}

/* Floating decorative accent */
.floating-accent {
  animation: floatAccent 7s ease-in-out infinite;
}
@keyframes floatAccent {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(1deg); }
  66%       { transform: translateY(-4px) rotate(-1deg); }
}

/* Floating decorative card */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Animated background glow */
.bg-glow {
  position: relative;
  overflow: hidden;
}
.bg-glow::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,26,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px; right: -100px;
  animation: bgGlowPulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bgGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.3); opacity: 1; }
}

/* =========================================
   GLASS / BLUR UTILITIES
   ========================================= */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.glass-dark {
  background: rgba(16, 42, 67, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.glass-navy {
  background: rgba(16, 42, 67, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, #ff6b1a 0%, #e85d04 100%);
  color: white;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(232, 93, 4, 0.35);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.48);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(255,255,255,0.95);
  color: #102a43;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.12);
  border: none; cursor: pointer;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.18);
  background: white;
}

.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* =========================================
   IMAGES
   ========================================= */
.img-zoom { transition: transform 0.55s cubic-bezier(0.23,1,0.32,1); }
.img-zoom:hover { transform: scale(1.06); }

/* Placeholder for missing images */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #d9e2ec 0%, #bcccdc 100%);
  color: #627d98; font-size: 0.875rem; font-weight: 500; text-align: center;
  padding: 1rem;
}

/* Premium Media Placeholder */
.media-placeholder {
  background: 
    linear-gradient(135deg, rgba(7, 30, 55, 0.95), rgba(220, 122, 35, 0.25)),
    radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 40%);
  min-height: 280px;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.media-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-parent > .stagger-item { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.stagger-parent.revealed > .stagger-item:nth-child(1) { transition-delay: 0.05s; opacity:1; transform: none; }
.stagger-parent.revealed > .stagger-item:nth-child(2) { transition-delay: 0.15s; opacity:1; transform: none; }
.stagger-parent.revealed > .stagger-item:nth-child(3) { transition-delay: 0.25s; opacity:1; transform: none; }
.stagger-parent.revealed > .stagger-item:nth-child(4) { transition-delay: 0.35s; opacity:1; transform: none; }
.stagger-parent.revealed > .stagger-item:nth-child(5) { transition-delay: 0.45s; opacity:1; transform: none; }
.stagger-parent.revealed > .stagger-item:nth-child(6) { transition-delay: 0.55s; opacity:1; transform: none; }

/* Legacy reveal-stagger support */
.reveal-stagger > * { opacity:0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.28s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.38s; }
.reveal-stagger.revealed > * { opacity:1; transform: translateY(0); }

/* =========================================
   DECORATIVE
   ========================================= */
.accent-line { width: 64px; height: 3px; background: linear-gradient(90deg,#ff6b1a,#e85d04); border-radius: 2px; }
.gold-line    { width: 64px; height: 3px; background: linear-gradient(90deg,#c9a84c,#f0d060); border-radius: 2px; }
.section-divider { width:100%; height:1px; background: linear-gradient(90deg,transparent,#d9e2ec,transparent); }

/* Premium section label */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #e85d04; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.section-label::before, .section-label::after {
  content: ''; display: block; width: 24px; height: 1px; background: #e85d04; opacity: 0.5;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative; overflow: hidden; border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(16,42,67,0.28); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,41,0.88) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.35s ease;
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Gallery filter button active state */
.gallery-filter-btn.active {
  background: #e85d04;
  color: white;
  box-shadow: 0 4px 16px rgba(232,93,4,0.35);
}

/* ── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,25,41,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

/* =========================================
   FAQ
   ========================================= */
.faq-item { border-radius: 16px; overflow: hidden; transition: box-shadow 0.3s ease; }
.faq-item.active { box-shadow: 0 8px 30px rgba(16,42,67,0.12); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 600px; }

.faq-icon { transition: transform 0.35s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* =========================================
   FORMS
   ========================================= */
.form-input {
  width: 100%; padding: 0.85rem 1.1rem;
  border: 2px solid #d9e2ec; border-radius: 12px;
  background: white; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: #ff6b1a; box-shadow: 0 0 0 3px rgba(255,107,26,0.12); }
.form-input::placeholder { color: #829ab1; }

/* =========================================
   BOOKING MODAL — Responsive
   ========================================= */
#booking-modal { display: none; }
#booking-modal.modal-visible { display: flex; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,25,41,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem;
  animation: fadeInBackdrop 0.25s ease;
}
@keyframes fadeInBackdrop { from { opacity:0; } to { opacity:1; } }

.modal-box {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(10,25,41,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  animation: modalSlideUp 0.35s cubic-bezier(0.23,1,0.32,1);
  position: relative;
  scrollbar-width: thin;
}
@keyframes modalSlideUp {
  from { opacity:0; transform: translateY(40px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Modal tight on very small screens */
@media (max-width: 400px) {
  .modal-box { border-radius: 18px; }
  .modal-box .p-8 { padding: 1.25rem; }
  .modal-box .p-6 { padding: 1rem; }
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
#whatsapp-btn {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 60;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 3.5s ease-in-out infinite;
}
#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.12); }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: white; color: #102a43;
  padding: 0.4rem 0.85rem; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
#whatsapp-btn:hover .wa-tooltip { opacity: 1; }

/* =========================================
   SECTION / LAYOUT HELPERS
   ========================================= */
.section-gap { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-gap { padding-top: 7rem; padding-bottom: 7rem; } }

/* Quick booking card below hero */
.quick-book-card {
  position: relative;
  z-index: 20;
  margin-top: -4rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(16,42,67,0.22), 0 0 0 1px rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.7);
}

/* Feature icon badge */
.feature-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.feature-icon:hover { transform: scale(1.1) rotate(-3deg); }

/* Image-text split */
.split-img {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,42,67,0.18);
}
.split-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(16,42,67,0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Overlapping badge on image card */
.img-badge {
  position: absolute; bottom: -1.25rem; right: 1.5rem;
  background: white; border-radius: 14px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 12px 32px rgba(16,42,67,0.16);
  display: flex; align-items: center; gap: 0.75rem;
}

/* =========================================
   COUNTERS / STATS
   ========================================= */
/* Luxury Shadows */
.luxury-shadow { box-shadow: 0 32px 64px -16px rgba(16,42,67,0.35), 0 16px 32px -8px rgba(16,42,67,0.2); }

/* Text Gradient */
.text-gradient-orange {
  background: linear-gradient(135deg, #ff8a4c, #e85d04);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Room Category Accents */
.category-badge {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 8px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-standard  { background: #f0f4f8; color: #486581; }
.badge-deluxe    { background: #fff8f1; color: #e85d04; }
.badge-executive { background: #102a43; color: white; }
.badge-family    { background: #e85d04; color: white; }

/* Booking Guide Card */
.guide-card {
  background: #fdf9f3;
  border-left: 4px solid #e85d04;
  padding: 1.5rem;
  border-radius: 0 16px 16px 0;
}

@media (max-width: 640px) {
  .hero-section { min-height: 100svh; }
  .section-gap { padding-top: 4rem; padding-bottom: 4rem; }
  .quick-book-card { margin-top: -2rem; border-radius: 24px; }
  /* Ensure buttons are tap-friendly */
  .btn-primary, .btn-secondary, .btn-outline-white { min-height: 3.5rem; padding-left: 2rem; padding-right: 2rem; }
}

/* =========================================
   ROOM COMPARISON MOBILE CARDS
   ========================================= */
.comparison-table-desktop { display: block; }
.comparison-cards-mobile  { display: none; }

@media (max-width: 767px) {
  .comparison-table-desktop { display: none; }
  .comparison-cards-mobile  { display: grid; }
}

.compare-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #f0f4f8;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(16,42,67,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.compare-card:hover {
  box-shadow: 0 16px 40px rgba(16,42,67,0.12);
  transform: translateY(-4px);
}

/* =========================================
   EVENTS — DEDICATION INTERACTIVE BG
   ========================================= */
.dedication-bg {
  position: relative;
  background: linear-gradient(135deg, #fefdfb 0%, #faf3e8 40%, #fdf9f3 100%);
  transition: background 0.6s ease;
}
.dedication-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232,93,4,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16,42,67,0.05) 0%, transparent 50%),
    radial-gradient(1px 1px at 15% 25%, rgba(232,93,4,0.15) 1px, transparent 1px),
    radial-gradient(1px 1px at 45% 65%, rgba(16,42,67,0.1) 1px, transparent 1px),
    radial-gradient(1px 1px at 75% 15%, rgba(232,93,4,0.12) 1px, transparent 1px),
    radial-gradient(1px 1px at 85% 85%, rgba(16,42,67,0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 60px 60px, 50px 50px, 45px 45px;
  transition: transform 0.8s ease, opacity 0.6s ease;
  opacity: 0.7;
  z-index: 0;
}
.dedication-bg:hover::before {
  transform: translate(4px, -3px) scale(1.02);
  opacity: 1;
}

/* Floating orbs for dedication section */
.dedication-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  transition: transform 1.2s cubic-bezier(0.23,1,0.32,1), opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}
.dedication-orb-1 {
  width: 300px; height: 300px;
  background: #e85d04;
  top: -80px; right: -60px;
}
.dedication-orb-2 {
  width: 200px; height: 200px;
  background: #102a43;
  bottom: -50px; left: -40px;
}
.dedication-bg:hover .dedication-orb-1 {
  transform: translate(-20px, 15px) scale(1.15);
  opacity: 0.2;
}
.dedication-bg:hover .dedication-orb-2 {
  transform: translate(15px, -10px) scale(1.1);
  opacity: 0.18;
}

/* =========================================
   PRINT
   ========================================= */
@media print {
  header, footer, #whatsapp-btn, #booking-modal { display: none !important; }
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-poster { animation: none; transform: none; }
  .hero-scroll-cue { animation: none; }
  .hero-scroll-cue-arrow { animation: none; }
  .ambient-particles, .section-orb-bg, .hero-glow { animation: none !important; }
  .floating-card, .floating-accent { animation: none; }
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .stagger-parent > .stagger-item { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
  /* Flip cards: no rotation, show front only */
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: none !important;
  }
  .flip-card-back {
    display: none !important;
  }
  /* Dedication bg: disable hover effects */
  .dedication-bg::before { transform: none !important; }
  .dedication-orb { transform: none !important; }
}

/* Moving Pattern Overlay */
.moving-pattern-overlay {
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e85d04' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: slowPan 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes slowPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-33.33%, -33.33%); }
}


/* Moving Pattern Overlay */
.moving-pattern-overlay {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(rgba(232, 93, 4, 0.15) 2px, transparent 2.5px);
  background-size: 32px 32px;
  animation: patternPan 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes patternPan {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-32px) translateX(-32px); }
}


/* Progressive Image Loading */
.progressive-image-container {
    position: relative;
    overflow: hidden;
}
.blur-load {
    background-size: cover;
    background-position: center;
}
.progressive-main-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: inherit;
}
.progressive-image-container.loaded .progressive-main-img {
    opacity: 1;
}

