/**
 * Hero Section Component Styles
 * Prepared for Next.js migration
 */

/* ==========================================================================
   Hero Background Images
   ========================================================================== */

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-bg-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

/* ==========================================================================
   CTA Buttons - High Converting Orange/Amber
   ========================================================================== */

.btn-primary-cta {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.35);
  color: #FFFFFF; /* Changed to white for better contrast */
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary-cta:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
}

.btn-primary-cta svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}

/* Secondary CTA - Glassmorphic */
.btn-secondary-cta {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Typography
   ========================================================================== */

.hero-title-desktop {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title-mobile {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-subtitle-desktop {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #F3F4F6;
}

.hero-subtitle-mobile {
  font-size: clamp(0.875rem, 3vw, 1rem);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 1rem;
  color: #F3F4F6;
}

/* ==========================================================================
   Hero Form - Glassmorphism
   ========================================================================== */

.hero-form-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Mobile Form Modal - ONLY shows when button is clicked
   ========================================================================== */

.mobile-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  /* CRITICAL: Form is ALWAYS hidden unless active class is added */
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.mobile-form-modal.active {
  display: flex !important; /* Override the default hidden state */
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Enable interaction when visible */
}

.mobile-form-modal-content {
  /* Glassmorphic background */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mobile-form-modal.active .mobile-form-modal-content {
  transform: scale(1);
}

/* Override white form wrapper to be glassmorphic */
.mobile-form-modal .lt-form-wrapper {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Make form fields semi-transparent */
.mobile-form-modal .lt-form-wrapper input,
.mobile-form-modal .lt-form-wrapper textarea {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.mobile-form-modal .lt-form-wrapper input:focus,
.mobile-form-modal .lt-form-wrapper textarea:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

/* Form title color for glassmorphic background */
.mobile-form-modal .lt-form-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Labels in glassmorphic form */
.mobile-form-modal .lt-form-field label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.mobile-form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-form-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.05);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Hero Social Proof
   ========================================================================== */

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-social-proof-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-social-proof-mobile {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.hero-rating-stars {
  color: #FFB800;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glassmorphic container for hero content */
.hero-glassmorphic-bg {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Mobile hero specific wrapper */
.mobile-hero-content-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Mobile hero padding to avoid footer */
.mobile-hero-bottom-padding {
  padding-bottom: 150px;
}

/* ==========================================================================
   Hero Background
   ========================================================================== */

.hero-bg-overlay {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease-out;
}

.hero-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delays for staggered effect */
.hero-animate:nth-child(1) { transition-delay: 0.1s; }
.hero-animate:nth-child(2) { transition-delay: 0.2s; }
.hero-animate:nth-child(3) { transition-delay: 0.3s; }
.hero-animate:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================================================
   Header Phone Button
   ========================================================================== */

.header-cta-btn {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.25);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
}

.header-cta-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 640px) {
  .hero-form-container {
    padding: 1rem;
  }

  .btn-primary-cta {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .hero-social-proof {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title-desktop {
    font-size: 2.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title-desktop {
    font-size: 3rem;
  }
}

/* ==========================================================================
   Mobile Sticky Footer CTA
   ========================================================================== */

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  z-index: 40;
}

.mobile-sticky-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.95) 0%,
    rgba(59, 130, 246, 0.9) 35%,
    rgba(99, 102, 241, 0.85) 70%,
    rgba(124, 58, 237, 0.8) 100%);
  backdrop-filter: blur(10px) saturate(150%);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.mobile-sticky-phone:active {
  transform: scale(0.98);
}

.mobile-sticky-phone svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.mobile-sticky-quote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg,
    rgba(255, 235, 59, 0.9) 0%,
    rgba(255, 193, 7, 0.85) 35%,
    rgba(255, 152, 0, 0.8) 70%,
    rgba(245, 124, 0, 0.75) 100%);
  backdrop-filter: blur(10px) saturate(150%);
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(245, 124, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.mobile-sticky-quote:active {
  transform: scale(0.98);
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}