/* ========================================
   Hero Section Styles
   ======================================== */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Opaque dark backdrop behind the image — guarantees text contrast even
     when the background is a photo (no solid colour to compute against). */
  background-color: var(--color-hero-backdrop);
  background-image: url('../images/hero/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to bottom, var(--color-overlay-dark), var(--color-overlay-darker)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23111" width="1200" height="600"/><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="%23222" opacity="0.5"/></svg>');
    
        background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-white);
  max-width: 800px;
  padding: 60px 20px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--color-text-white);
  text-shadow: 2px 2px 8px var(--color-shadow-overlay);
  line-height: 1.1;
}

.hero-content h1 .accent {
  color: var(--color-accent-500);
  display: block;
}

.hero-content p {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 2.5rem;
  color: var(--color-text-white-muted);
  line-height: 1.7;
  /* Give the lead paragraph its own dark readability panel so it always has
     an opaque backdrop for contrast — never resolving to "no background"
     over the photo. Composited over the hero backdrop this is ~16:1. */
  display: inline-block;
  background-color: rgba(6, 12, 18, 0.814);
  padding: 14px 20px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-cta .btn {
  min-width: 180px;
}

/* Secondary button sits on the dark hero image — use white text/border
   for sufficient contrast (WCAG 1.4.3 / 1.4.11), orange fill on hover. */
/* Secondary CTA uses the brand blue (complements the orange primary button
   and echoes the header/footer). White text on primary-500 is ~6:1 (AA). */
.hero-cta .btn-secondary {
  background-color: var(--color-primary-500);
  color: var(--color-text-white);
  border-color: var(--color-primary-500);
}

.hero-cta .btn-secondary:hover {
  background-color: var(--color-primary-700);
  border-color: var(--color-primary-700);
  color: var(--color-text-white);
}

/* ===============================
   Decorative Elements
   =============================== */

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-main));
  z-index: 1;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-content h1 {
    margin-bottom: 1rem;
  }

  .hero-content p {
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
