/* Hero without background image; clean dark gradient + heading tweaks */
:root{
  --accent: var(--bs-primary, #64a19d);
  --underline-thickness: 1px;
}

/* IMPORTANT: we override the vendor background so no image shows. */
.masthead.hero{
  /* Remove any vendor image and use a subtle dark gradient */
  background: linear-gradient(
    to bottom,
    rgba(22,22,22,.30) 0%,
    rgba(22,22,22,.70) 75%,
    #161616 100%
  ) !important;            /* ensure it wins over vendor CSS */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* Comfortable height; footer still visible on most laptops */
  min-height: clamp(32rem, 60vh, 80vh);

  position: relative;      /* for safe stacking */
}

/* Make sure nothing blocks clicks on the CTA */
.masthead.hero::before{ pointer-events: none; }
.masthead.hero .container{ position: relative; z-index: 1; }

/* Title */
.hero .hero-title{
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 6vw + .25rem, 6rem);
  margin-bottom: .75rem;
  position: relative;
}

/* Thin accent rule centered under the title */
.hero .hero-title::after{
  content: "";
  display: block;
  width: 64px;
  max-width: 50%;
  height: 2px;
  margin: .5rem auto 0;
  background: var(--accent);
  border-radius: 2px;
  opacity: .9;
}

/* Subtitle */
.hero .hero-subtitle{
  font-size: clamp(1rem, 1.2vw + .5rem, 1.5rem);
  color: rgba(255,255,255,.75);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero .hero-title,
  .hero .hero-subtitle{ transition: none; }
}

/* Faster hero with AVIF/WebP + JPEG fallback */
.masthead.hero.masthead-stars {
  /* Fallback for older browsers */
  background-image: url("/static/img/stars_1920x1080.jpg") !important;

  /* Safari (older) */
  background-image: -webkit-image-set(
    url("/static/img/stars_1920x1080.avif") type("image/avif"),
    url("/static/img/stars_1920x1080.webp") type("image/webp"),
    url("/static/img/stars_1920x1080.jpg")  type("image/jpeg")
  ) !important;

  /* Modern browsers pick the best option */
  background-image: image-set(
    url("/static/img/stars_1920x1080.avif") type("image/avif"),
    url("/static/img/stars_1920x1080.webp") type("image/webp"),
    url("/static/img/stars_1920x1080.jpg")  type("image/jpeg")
  ) !important;

  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #000;
  position: relative;
}

@media (prefers-reduced-data: reduce) {
  .masthead.hero.masthead-stars {
    background-image: none !important;
    background: #0b0f12 !important;
  }
}
