/*
  Luxury Landing CSS (WordPress + Elementor)
  Goal: mirror Lovable landing “Dark Luxury” system + glassmorphism + glow + premium motion.
*/

:root {
  /* Luxury Dark */
  --background: 0 0% 3.5%;
  --foreground: 0 0% 98%;

  /* Premium palette */
  --premium: 46 74% 54%; /* Gold */
  --premium-foreground: 0 0% 8%;
  --metal: 0 0% 78%; /* Silver */
  --metal-foreground: 0 0% 10%;
  --cta: 0 100% 33%; /* Deep Red */
  --cta-foreground: 0 0% 98%;

  --card: 0 0% 6.5%;
  --muted: 0 0% 10%;
  --muted-foreground: 0 0% 72%;
  --border: 0 0% 18%;

  --radius: 0.75rem;

  /* Effects */
  --shadow-lux: 0 18px 55px -22px hsl(var(--premium) / 0.35);
  --shadow-cta: 0 18px 55px -22px hsl(var(--cta) / 0.45);
  --gradient-hero: radial-gradient(1000px circle at 18% 12%, hsl(var(--premium) / 0.18), transparent 55%),
    radial-gradient(900px circle at 82% 28%, hsl(var(--cta) / 0.16), transparent 56%),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--background)));
  --gradient-card: linear-gradient(180deg, hsl(var(--foreground) / 0.04), hsl(var(--foreground) / 0.02));

  /* Typography */
  --font-display: "Noto Serif Bengali", "Hind Siliguri", "Noto Sans Bengali", ui-serif;
  --font-body: "Noto Sans Bengali", "Hind Siliguri", ui-sans-serif;
}

/* Base */
html {
  scroll-behavior: auto; /* we do smooth-scroll in JS for consistency */
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep Elementor widgets consistent */
.lux-root {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

h1, h2, h3 {
  font-family: var(--font-display);
}

/* Layout */
.lux-container {
  width: 100%;
  max-width: 72rem; /* ~max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .lux-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.lux-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .lux-section { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Divider */
.lux-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--metal) / 0.5), transparent);
}

/* Cards */
.lux-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lux);
}

/* Spacing helpers (Elementor-safe; avoids inline styles) */
.lux-pad-md { padding: 1rem; }
@media (min-width: 640px) { .lux-pad-md { padding: 1.25rem; } }

.lux-card-hover {
  transition: transform 200ms ease-out, opacity 200ms ease-out, box-shadow 200ms ease-out;
  will-change: transform, opacity, box-shadow;
}
@media (hover: hover) and (pointer: fine) {
  .lux-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 70px -28px hsl(var(--premium) / 0.42);
  }
}

/* Gold helpers */
.lux-gold { color: hsl(var(--premium)); }
.lux-number { font-weight: 800; letter-spacing: -0.01em; }
.lux-highlight { position: relative; display: inline-block; }
.lux-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--premium) / 0.85), transparent);
  opacity: 0.9;
}

/* Typography helpers (match intent; Elementor controls exact sizes) */
.lux-h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; line-height: 1.06; }
.lux-h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; line-height: 1.12; }
.lux-sub { font-weight: 500; line-height: 1.7; }
.lux-body { line-height: 1.85; }

/* Hero backgrounds */
.hero-surface {
  background: var(--gradient-hero);
}

.hero-spotlight {
  --spot-x: 60%;
  --spot-y: 24%;
  position: relative;
  overflow: hidden;
}
.hero-spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--spot-x) var(--spot-y), hsl(var(--premium) / 0.20), transparent 55%);
  opacity: 0.9;
  transition: opacity 250ms ease;
}

/* Buttons (use on Elementor Button widgets) */
.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease-out, box-shadow 200ms ease-out, filter 200ms ease-out;
}

.lux-btn:active { transform: scale(0.95); }

.lux-btn-cta {
  background: hsl(var(--cta));
  color: hsl(var(--cta-foreground));
  box-shadow: var(--shadow-cta);
}
@media (hover: hover) and (pointer: fine) {
  .lux-btn-cta:hover {
    transform: scale(1.02);
    filter: brightness(1.02);
  }
}

/* Sticky CTA (injected by JS) */
.lux-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding-bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--premium) / 0.3);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.lux-sticky-cta[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.lux-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lux-sticky-cta__inner[data-min="true"] { transform: scaleY(0.92); transform-origin: bottom; }

@media (min-width: 640px) {
  .lux-sticky-cta { display: none; }
}

/* Reveal-once (JS toggles data-state) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: transform 260ms ease-out, opacity 240ms ease-out;
  will-change: transform, opacity;
}
.reveal[data-state="in"] { opacity: 1; transform: translateY(0); }

.reveal-fade { opacity: 0; transition: opacity 240ms ease-out; }
.reveal-fade[data-state="in"] { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.98);
  transition: transform 260ms ease-out, opacity 240ms ease-out;
  will-change: transform, opacity;
}
.reveal-scale[data-state="in"] { opacity: 1; transform: scale(1); }

/* Keyframes (used by optional classes) */
@keyframes fade-up-sm {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-pop {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

.animate-sheen { animation: sheen 1.8s linear infinite; }
.animate-pulse-soft { animation: pulse-soft 1.6s ease-in-out infinite; }
.animate-scale-pop { animation: scale-pop 260ms ease-out both; }

/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-scale,
  .hero-spotlight::before,
  .animate-sheen,
  .animate-pulse-soft,
  .animate-scale-pop {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
