/* ============================================================
   SUPREME CONTROLS — HERO
   Full-viewport dark hero with image, overlay, and centered content.
   Pattern: Bepd Industries (preferred inspiration).
   ============================================================ */

/* ── Hero wrapper ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-24);
  padding-top: var(--navbar-height);
  overflow: hidden;
}

/* ── Inner page hero variant ──────────────────────────────── */
.hero--page {
  min-height: 90vh;
  align-items: center;
  padding-bottom: var(--space-16);
}

@media (max-width: 768px) {
  .hero--page {
    min-height: 70vh;
    padding-bottom: var(--space-12);
  }
}

@media (max-width: 480px) {
  .hero--page {
    min-height: 60vh;
    padding-bottom: var(--space-10);
  }
}

/* ── Background image ─────────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-img-focus 2.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes hero-img-focus {
  from { transform: scale(1.06); }
  to   { transform: scale(1);    }
}

/* Fallback background when no image loaded */
.hero__bg:not(:has(img[src])),
.hero__bg img[style*="display: none"] ~ * {
  background-color: var(--color-zinc-900);
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 12, 0.82) 0%,
    rgba(10, 10, 12, 0.55) 55%,
    rgba(10, 10, 12, 0.20) 100%
  );
}

/* Dark fallback when no image */
.hero:not(:has(.hero__image[src])) .hero__bg,
.hero .hero__bg {
  background-color: var(--color-zinc-900);
}

/* ── Content ──────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  text-align: left;
}

/* ── Label / eyebrow ──────────────────────────────────────── */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand);
  flex-shrink: 0;
  animation: brand-pulse-ring 2.5s ease-in-out infinite;
}

/* ── Heading ──────────────────────────────────────────────── */
.hero__heading {
  margin: 0;
  font-weight: var(--font-weight-regular);
  text-align: left;
}

/* ── Subtext ──────────────────────────────────────────────── */
.hero__sub {
  max-width: 520px;
}

/* ── CTA group ────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── White body text variant ──────────────────────────────── */
.body-lg--white {
  color: rgba(255, 255, 255, 0.80);
}

.body-base--white {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    align-items: flex-end;
    padding-bottom: var(--space-16);
  }

  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(10, 10, 12, 0.90) 0%,
      rgba(10, 10, 12, 0.55) 60%,
      rgba(10, 10, 12, 0.25) 100%
    );
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: var(--space-12);
  }
}

/* ── Focus visible ────────────────────────────────────────── */
.hero a:focus-visible,
.hero button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}
