
/* Hero background & overlay */
.hero,
.hero-section,
section.hero,
header.hero {
  position: relative;
  min-height: clamp(360px, 60vh, 720px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    var(--hero-image, url('https://source.unsplash.com/1600x900/?moving,truck'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1,
.hero .hero-title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  font-weight: 800;
}

.hero p.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + 0.75rem, 1.25rem);
  opacity: 0.95;
  margin: 0 auto 1.5rem auto;
  max-width: 60ch;
}

.hero .cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero .btn,
.hero a.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  backdrop-filter: saturate(140%) blur(2px);
}

.hero .btn.primary {
  background-color: rgba(255,255,255,0.15);
}
.hero .btn.secondary {
  background-color: transparent;
}

.hero .btn:hover, .hero .btn:focus-visible {
  transform: translateY(-1px);
  background-color: rgba(255,255,255,0.25);
  color: #fff;
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 1rem; }
}


/* Strong override to ensure background shows, using a local image path. */
body .hero,
body .hero-section,
body section.hero,
body header.hero {
  /* Use your own image at /images/hero.jpg */
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('/images/hero.jpg') !important;
}


/* Embed generated hero image */
body .hero { background-image: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/hero.jpg') !important; }
