/* ==========================================================================
   Kids Zone Theme - Polished & Animated Hero Section Styles
   ========================================================================== */

/* Hero Section Base */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0f172a;
}

/* Entrance Animations Keyframes */
@keyframes heroBgReveal {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Image Container */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
  animation: heroBgReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Directional Overlay */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #0f172a 0%,
    rgba(15, 23, 42, 0.95) 32%,
    rgba(15, 23, 42, 0.6) 58%,
    rgba(15, 23, 42, 0.15) 100%
  );
}

/* Hero Content Container */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.25rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

/* Staggered Content Entrance Elements */
.hero-eyebrow,
.hero-title,
.hero-description,
.hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow {
  animation-delay: 0.15s;
}

.hero-title {
  animation-delay: 0.3s;
}

.hero-description {
  animation-delay: 0.45s;
}

.hero-actions {
  animation-delay: 0.6s;
}

/* Eyebrow Badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--color-primary-orange);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 2px var(--color-primary-orange);
  }
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-primary-orange);
  box-shadow: 0 0 8px var(--color-primary-orange);
  animation: dotPulse 2s ease-in-out infinite;
}

.eyebrow-text {
  font-family: var(--font-family-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* Main H1 Headline */
.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.16;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Short Description */
.hero-description {
  font-family: var(--font-family-base);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 540px;
  font-weight: 400;
}

/* CTA Buttons Row */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Primary CTA (Red Main Conversion Action) */
.btn-hero-primary {
  background-color: var(--color-cta-red);
  color: #ffffff;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
  background-color: var(--color-cta-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.48);
}

/* Secondary CTA */
.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn-hero-secondary .btn-arrow {
  opacity: 0.75;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-hero-secondary:hover .btn-arrow,
.btn-hero-secondary:focus-visible .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Responsive Overrides Across Breakpoints */

@media (max-width: 1440px) {
  .hero-bg-image {
    object-position: 72% center;
  }
}

@media (max-width: 1024px) {
  .hero-bg-image {
    object-position: 75% center;
  }
  .hero-content {
    max-width: 580px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    max-height: none;
  }

  .hero-bg-image {
    object-position: 68% center;
  }

  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(15, 23, 42, 0.86) 60%,
      rgba(15, 23, 42, 0.95) 100%
    );
  }

  .hero-container {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.95rem, 5.5vw, 2.75rem);
  }

  .hero-description {
    font-size: 1.02rem;
  }
}

@media (max-width: 576px) {
  .hero-bg-image {
    object-position: 62% center;
  }

  .hero-container {
    padding: 2.25rem 1rem 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image,
  .hero-eyebrow,
  .hero-title,
  .hero-description,
  .hero-actions,
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-arrow {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
  }
}
