/* ============================================================
   CS GROWTH LAB — PREMIUM HERO SECTION v2.0
   Cinematic full-viewport hero with Three.js + glass
   ============================================================ */

/* ── Hero Background Canvas (Three.js) ── */
#csgl-hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 2s ease;
}
#csgl-hero-canvas.loaded {
  opacity: 1;
}

/* ── Hero Section Base ── */
.elementor-location-archive .elementor-section:first-child,
.home .elementor-section:first-child,
.page-template-elementor_canvas .elementor-section:first-child {
  min-height: 100svh;
}

/* Hero wrapper (page-specific) — targets homepage first Elementor section */
body.home .elementor-section:first-of-type,
body.page-id-49 .elementor-section:first-of-type {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  min-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

/* Hero ambient orbs */
body.home .elementor-section:first-of-type::before,
body.page-id-49 .elementor-section:first-of-type::before {
  content: '' !important;
  position: absolute !important;
  top: -10% !important;
  left: -5% !important;
  width: 60vw !important;
  height: 60vw !important;
  max-width: 900px !important;
  max-height: 900px !important;
  background: radial-gradient(ellipse, rgba(59,130,246,0.10) 0%, transparent 65%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: csgl-orb-drift 12s ease-in-out infinite !important;
}
body.home .elementor-section:first-of-type::after,
body.page-id-49 .elementor-section:first-of-type::after {
  content: '' !important;
  position: absolute !important;
  bottom: 10% !important;
  right: -5% !important;
  width: 40vw !important;
  height: 40vw !important;
  max-width: 600px !important;
  max-height: 600px !important;
  background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, transparent 65%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: csgl-orb-drift 16s ease-in-out infinite reverse !important;
}

@keyframes csgl-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.98); }
}

/* Hero heading overrides — cinematic sizing */
body.home .elementor-section:first-of-type h1,
body.page-id-49 .elementor-section:first-of-type h1,
body.home .elementor-section:first-of-type .elementor-heading-title,
body.page-id-49 .elementor-section:first-of-type .elementor-heading-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.8rem, 6vw, 5.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: var(--csgl-white, #fff) !important;
}

/* Hero gradient word effect */
.csgl-hero-gradient-word {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero tag / eyebrow pill */
.csgl-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.20);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  width: fit-content;
}
.csgl-hero-tag .csgl-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: csgl-blink 2s ease infinite;
}
@keyframes csgl-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero stats row */
.csgl-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.csgl-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.csgl-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.csgl-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Hero CTA Buttons */
.csgl-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  background: var(--csgl-blue, #3b82f6) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1) !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
.csgl-btn-primary::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.csgl-btn-primary:hover {
  background: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(59,130,246,0.40) !important;
  color: #fff !important;
}
.csgl-btn-primary:hover::before {
  opacity: 1 !important;
}

.csgl-btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  background: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.80) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1) !important;
  text-decoration: none !important;
}
.csgl-btn-ghost:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* Scroll indicator */
.csgl-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: csgl-scroll-bounce 2s ease-in-out infinite;
}
.csgl-scroll-indicator span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.csgl-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}
@keyframes csgl-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero glass form card */
body.home .elementor-section:first-of-type .elementor-widget-form,
body.page-id-49 .elementor-section:first-of-type .elementor-widget-form,
body.home .elementor-section:first-of-type .wpforms-container,
body.page-id-49 .elementor-section:first-of-type .wpforms-container {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 36px !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

@media (max-width: 768px) {
  .csgl-hero-stats {
    gap: 20px;
  }
  .csgl-stat-num {
    font-size: 1.6rem;
  }
}
