/* =========================
   HERO - Mobile First
========================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(32px, 6vh, var(--space-16)) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      rgba(54, 20, 35, 0.66) 0%,
      rgba(54, 20, 35, 0.6) 46%,
      rgba(28, 24, 30, 0.7) 100%
    ),
    url("../../assets/img/hero.webp") center / cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0%, transparent 42%),
    rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: var(--z-above);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 760px;
  margin-bottom: clamp(14px, 2.8vh, var(--space-8));
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: clamp(1.8rem, min(7.5vw, 6.5vh), var(--fs-3xl));
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.hero__title-highlight {
  color: #ffe0ed;
}

.hero__tagline {
  margin-bottom: clamp(14px, 2.8vh, var(--space-8));
  color: var(--color-white);
  font-family: var(--font-logo);
  font-size: clamp(1.1rem, 3.2vh, var(--fs-lg));
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.hero__divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 180px;
  gap: var(--space-5);
  margin-bottom: clamp(14px, 2.8vh, var(--space-8));
}

.hero__divider::before,
.hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-white);
  opacity: 0.85;
}

.hero__divider-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.hero__subtitle {
  max-width: 520px;
  margin-bottom: clamp(16px, 3.4vh, var(--space-10));
  color: var(--color-white);
  font-size: clamp(1rem, 3vh, var(--fs-md));
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: clamp(14px, 3vh, var(--space-12));
  padding: clamp(12px, 2.6vh, var(--space-7)) var(--space-12);
  border-radius: var(--radius-xl);
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    transform var(--transition-fast) ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--primary-deeper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.hero__features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.6vh, var(--space-7));
}

.hero__feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.hero__feature-icon {
  width: clamp(2rem, 5.5vh, var(--fs-icon-sm));
  height: clamp(2rem, 5.5vh, var(--fs-icon-sm));
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.hero__feature span {
  color: var(--color-white);
  font-size: clamp(0.95rem, 2.4vh, var(--fs-xs));
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

@media (min-width: 768px) {
  .hero {
    padding: clamp(16px, 4vh, var(--space-8)) 0;
  }

  .hero__title {
    max-width: 820px;
    font-size: clamp(2.2rem, min(4.6vw, 7.5vh), 3.5rem);
  }

  .hero__subtitle {
    max-width: 560px;
  }

  .hero__features {
    flex-direction: row;
    gap: var(--space-10);
  }

  .hero__feature-break {
    display: none;
  }

  .hero__feature span {
    line-height: 1.3;
  }
}

@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }

  .hero__cta {
    transition: none;
  }

  .hero__cta:hover,
  .hero__cta:focus-visible,
  .hero__cta:active {
    transform: none;
  }
}
