/* Full-bleed hero slider flush under header */

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* escape main.container width */
  margin-top: -40px;             /* negate .container's top margin to hug header */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hero-track {
  display: flex;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 560px;                 /* taller slider */
  display: grid;
  place-items: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.75);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 40%, rgba(0,0,0,.0), rgba(0,0,0,.45));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}
.hero-title { font-size: 40px; font-weight: 900; letter-spacing: .6px; margin: 0 0 10px; }
.hero-sub { font-size: 18px; opacity: .95; }

/* Controls */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.15); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.hero-dot.is-active { background: #ffffff; transform: scale(1.1); }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; z-index: 3; }
.hero-arrow:hover { filter: brightness(1.05); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }


@media (max-width: 640px) {
  .hero-slide { height: 380px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 15px; }
}
