/* ============================================================
   ADFC WordPress Theme - Interactive Air Purification Hero Styles
   ============================================================ */

.hero-interactive {
  position: relative;
  min-height: max(100svh, 680px);
  overflow: hidden;
  isolation: isolate;
  background: #1E2024;
  display: flex;
  align-items: center;
}

.hero-interactive__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 75% 53%, rgba(25, 113, 185, 0.24), transparent 25%),
    radial-gradient(circle at 92% 64%, rgba(25, 113, 185, 0.08), transparent 28%),
    linear-gradient(125deg, #24262A 0%, #1E2024 48%, #17191D 100%);
  pointer-events: none;
}

.hero-interactive__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(to right, #FFFFFF 1px, transparent 1px),
    linear-gradient(to bottom, #FFFFFF 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Dynamic HTML5 Canvas */
.hero-interactive__canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.hero-interactive__shade {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(30, 32, 36, 0.98) 0%, rgba(30, 32, 36, 0.9) 28%, rgba(30, 32, 36, 0.44) 47%, transparent 66%);
}

.hero-interactive__inner {
  pointer-events: none;
  position: relative;
  z-index: 20;
  margin-inline: auto;
  display: flex;
  min-height: max(100svh, 680px);
  width: 100%;
  max-width: 1240px;
  align-items: center;
  padding-inline: 1.5rem;
  padding-bottom: 3.5rem;
  padding-top: 100px;
}

.hero-interactive__copy {
  pointer-events: auto;
  max-width: 640px;
  text-align: left;
  animation: hero-copy-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-interactive__title {
  margin: 0;
  font-family: 'Agenor', 'Montserrat', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-interactive__title-white {
  display: block;
  color: #FFFFFF;
}

.hero-interactive__title-gold {
  display: block;
  color: #FDC010;
}

.hero-interactive__lead {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

.hero-interactive__desc {
  margin-top: 0;
  margin-bottom: 2rem;
  max-width: 570px;
  font-size: clamp(0.925rem, 1.4vw, 1.0625rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.hero-interactive__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-interactive__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: #1971B9;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(25, 113, 185, 0.28);
  transition: all var(--transition-fast);
}

.hero-interactive__btn-primary:hover {
  transform: translateY(-2px);
  background: #135B96;
  box-shadow: 0 14px 32px rgba(25, 113, 185, 0.38);
}

.hero-interactive__btn-primary svg {
  transition: transform var(--transition-fast);
}

.hero-interactive__btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-interactive__btn-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color var(--transition-fast);
}

.hero-interactive__btn-hint:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-interactive__btn-hint svg {
  opacity: 0.75;
}

/* ── SVG PURIFIER MACHINE ─────────────────────────────────── */
.purifier-machine {
  position: absolute;
  z-index: 11;
  top: 57%;
  left: 75%;
  width: clamp(220px, 20vw, 320px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: saturate(0.95);
  animation: machine-arrive 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.machine-ambient-glow {
  position: absolute;
  z-index: 0;
  top: 46%;
  left: 52%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 113, 185, 0.16), rgba(25, 113, 185, 0.035) 45%, transparent 70%);
  animation: machine-breathe 6s ease-in-out infinite;
}

.machine-fan {
  transform-origin: 130px 188px;
  animation: machine-fan 18s linear infinite;
}

.machine-scan {
  animation: machine-scan 6.5s ease-in-out infinite;
}

.machine-status-light {
  animation: status-light 3.5s ease-in-out infinite;
}

.machine-pulse-ring {
  position: absolute;
  z-index: 1;
  top: 47%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(73, 164, 222, 0.5);
  border-radius: 50%;
  animation: machine-pulse 1.3s ease-out both;
}

/* Bottom Dual Accent Strip */
.hero-interactive__border {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  height: 4px;
  background: linear-gradient(90deg, #1971B9 0%, #1971B9 70%, #FDC010 100%);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes machine-arrive {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes machine-breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes machine-fan {
  to { transform: rotate(360deg); }
}

@keyframes machine-scan {
  0%, 10% { transform: translateY(0); opacity: 0.15; }
  50% { opacity: 0.75; }
  90%, 100% { transform: translateY(185px); opacity: 0.15; }
}

@keyframes status-light {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes machine-pulse {
  0% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

/* ── RESPONSIVE ADAPTATIONS ───────────────────────────────── */
@media (max-width: 1024px) {
  .purifier-machine {
    left: 74%;
  }
}

@media (max-width: 767px) {
  .hero-interactive {
    min-height: max(100svh, 740px);
    align-items: flex-start;
  }

  .hero-interactive__backdrop {
    background:
      radial-gradient(circle at 50% 73%, rgba(25, 113, 185, 0.24), transparent 25%),
      linear-gradient(160deg, #24262A 0%, #1E2024 55%, #17191D 100%);
  }

  .hero-interactive__shade {
    background: linear-gradient(180deg, rgba(30, 32, 36, 0.98) 0%, rgba(30, 32, 36, 0.92) 39%, rgba(30, 32, 36, 0.22) 61%, transparent 82%);
  }

  .hero-interactive__inner {
    min-height: max(100svh, 740px);
    align-items: flex-start;
    padding-top: 128px;
    padding-bottom: 2.5rem;
  }

  .hero-interactive__copy {
    text-align: center;
    margin-inline: auto;
  }

  .hero-interactive__title {
    font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    line-height: 1.06;
  }

  .hero-interactive__desc {
    margin-inline: auto;
  }

  .hero-interactive__actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .purifier-machine {
    top: 78%;
    left: 50%;
    width: min(44vw, 175px);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-interactive__copy,
  .purifier-machine,
  .machine-ambient-glow,
  .machine-fan,
  .machine-scan,
  .machine-status-light,
  .machine-pulse-ring {
    animation: none !important;
    transition: none !important;
  }
}
