/*
 * Home Hero Section – 4D King Results
 *
 * Full‑width gradient banner used on the front page and results hub.
 * Includes title, description, CTA button, and subtle background pattern.
 */

/* -------------------------------------------------------------------------- */
/*  1. Hero Container                                                         */
/* -------------------------------------------------------------------------- */
.home-hero {
  background: linear-gradient(135deg, var(--primary-red, #cc0000), #ff4444);
  color: var(--white);
  padding: 80px 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Optional subtle background pattern */
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/*  2. Title & Description                                                    */
/* -------------------------------------------------------------------------- */
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  opacity: 0.9;
  text-align: justify;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* -------------------------------------------------------------------------- */
/*  3. CTA Button                                                             */
/* -------------------------------------------------------------------------- */
.home-hero .button.primary {
  display: inline-block;
  background: var(--white);
  color: var(--primary-red);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.home-hero .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/*  4. Keyframe Animation                                                     */
/* -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-description {
    animation: none;
  }
}

/* Breadcrumbs inside the hero (All Results page) */
.home-hero .post-breadcrumbs,
.home-hero .post-breadcrumbs a,
.home-hero .post-breadcrumbs span {
  color: rgba(255, 255, 255, 0.85);
}

.home-hero .post-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*  5. Responsive Adjustments                                                 */
/* -------------------------------------------------------------------------- */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .home-hero {
    padding: 70px 20px;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  .home-hero {
    padding: 60px 20px;
  }

  .hero-description {
    text-align: left; /* justify reads poorly at narrow widths */
  }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
  .home-hero {
    padding: 45px 16px;
  }

  .hero-description {
    margin-bottom: 22px;
  }

  .home-hero .button.primary {
    padding: 12px 26px;
    font-size: 0.95rem;
  }
}