/* Premium homepage effects — LevalX */

:root {
  --lx-bg: #FAF8F5;
  --lx-surface: #FFFFFF;
  --lx-primary: #2563EB;
  --lx-primary-glow: rgba(37, 99, 235, 0.25);
  --lx-glass-border: rgba(28, 25, 23, 0.08);
  --lx-glass-highlight: rgba(255, 255, 255, 0.8);
}

/* Subtle warm grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.02;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Primary CTA glow */
.btn-primary-glow {
  position: relative;
  background: var(--lx-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 0 var(--lx-primary-glow);
  animation: ctaPulse 3s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 4px 32px rgba(37, 99, 235, 0.35); }
}

/* Hero warm glow */
.hero-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(180, 83, 9, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-image-wrap {
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stagger reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Nav shrink */
.site-header {
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.95) !important;
  border-color: rgba(28, 25, 23, 0.08) !important;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}
.site-header.is-scrolled nav { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.sticky-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(37, 99, 235, 0.35);
  animation: ringPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Booking modal */
.booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.booking-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.booking-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 201;
  background: var(--lx-surface);
  border-left: 1px solid var(--lx-glass-border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.booking-backdrop.active .booking-panel {
  transform: translateX(0);
}
.booking-panel iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 400px;
  background: #fff;
}

/* Timeline */
.process-timeline { position: relative; }
.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--lx-primary), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}
.process-timeline.is-visible::before { opacity: 0.35; }
@media (max-width: 768px) {
  .process-timeline::before { left: 24px; transform: none; }
}

/* Map pack mock */
.map-pack-mock {
  background: linear-gradient(145deg, #FFFFFF, #F0EDE8);
  border: 1px solid var(--lx-glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
}
.map-pack-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.map-pack-item.highlight {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
}
.map-pack-item.dim { opacity: 0.55; }

/* Metric badge */
.metric-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(37, 99, 235, 0.95);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* Marquee */
.trades-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.trades-marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service / location card images */
.card-img-top {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}
@media (min-width: 768px) {
  .service-card .card-img-top { height: 140px; }
}

.location-card {
  position: relative;
  overflow: hidden;
}
.location-card .loc-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.location-card .loc-content { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image-wrap { animation: none; }
  .btn-primary-glow { animation: none; }
  .sticky-cta::before { animation: none; }
  .trades-marquee-track { animation: none; }
}
