.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
  overflow: hidden;
}

/* Background image only (no gradient overlay anymore) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/hero1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* WHITE FADE OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: white;
  z-index: 99999;
  opacity: 1;
  transition: opacity 1.8s ease;
}

.hero-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Layout wrapper */
.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  width: 100%;
  max-width: 1400px;
  padding: 0 4rem; /* space left & right */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Text block */
.hero-copy {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: auto;
  margin-top: auto;
}

.hero-title {
  color: var(--color-bg-alt);
  font-size: 4rem;
  line-height: 1.1;
}

.hero-subtext {
  color: var(--color-bg-alt);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
}

/* CTAs positioned lower */
.hero-ctas {
  margin-bottom: 5vh; /* pushes buttons closer to bottom */
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  border: 0px ;
}

.hero-ctas .cta-primary {
  opacity: 0.9;
  border: 2px black;
}

/* Responsive */

@media (max-width: 850px) {
  .hero-content {
    padding: 0 2rem;
  }

  .hero::before {
    background-position: 35% center;
  }
}

@media (max-width: 650px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }
}
