/*
 * components/hero.css
 * Hero: fuldskærmsfoto, indhold nede-venstre, valgfri tal-række i bunden.
 * Bruges af forsiden og blokken digirehab/hero (blocks/hero).
 * Floating-undtagelsen (fuld bredde) ligger i pages/forside.css (.page-forside .hero).
 */

/* ============================================================
   1. HERO — full-screen foto, indhold nede-venstre, stats i bunden
============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Baggrundsfoto */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  display: block;
}

/* Let overlay — kun nok til at gøre tekst læsbar */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.18) 45%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

/* Indre wrapper — z-index over overlay */
.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  padding: var(--space-4xl) var(--space-3xl) var(--space-3xl);
}

/* Indholdsblok */
.hero__content {
  max-width: 620px;
}

.hero__badge {
  display: inline-block;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.hero__heading {
  font-size: clamp(40px, 5vw, 62px);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-text-white);
  margin-bottom: var(--space-lg);
}

.hero__text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hvid primærknap — rolig og læsbar på foto */
.btn--hero-primary {
  background-color: #fff;
  color: var(--color-primary);
  border: 1.5px solid #fff;
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-button);
  border-radius: var(--radius-btn-lg);
  height: var(--btn-height-lg);
  padding: var(--btn-padding-lg);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background-color var(--duration-base) var(--easing-out),
              color var(--duration-base) var(--easing-out);
}

.btn--hero-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-hover);
}

.hero__btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-white);
}

/* Stats-række i bunden af heroen */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
}

.hero__stat-label {
  font-size: var(--font-size-secondary);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Responsiv */
@media (max-width: 1024px) {
  .hero__heading {
    font-size: var(--font-size-h1);
  }
  .hero__body {
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }

  /* Flyv fokuspunktet op så ansigtet er synligt */
  .hero__bg {
    object-position: 65% 15%;
  }

  /* Stærkere overlay nedefra på mobil — tekst sidder tæt på billedets lys */
  .hero__overlay {
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.10) 100%
      );
  }

  .hero__heading {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero__text {
    font-size: var(--font-size-secondary);
  }

  .hero__body {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    gap: var(--space-lg);
  }

  /* Stats: 3 lige kolonner, ingen dividers */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-lg);
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat-number {
    font-size: 17px;
    white-space: nowrap;
  }

  .hero__stat-label {
    font-size: 11px;
    line-height: 1.3;
  }
}
