/* ==========================================================================
   Hero Section — Plain Planning
   ========================================================================== */

/* ---- Section container ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: transparent; /* Background provided by .bg-wrapper */
}

/* ---- Layer 2: Content ---- */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-8) clamp(24px, 5vw, 80px);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Headline ---- */
.hero__headline {
  font-family: var(--font-family);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 var(--space-3) 0; /* 24px — headline to subheadline */
}

.hero__headline-line {
  display: block;
  overflow: visible;
}

/* ---- Subheadline ---- */
.hero__subheadline {
  font-family: var(--font-family);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.35rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  max-width: 640px;
  margin: 0 0 var(--space-5) 0; /* 40px — subheadline to CTA group */
}

/* ---- CTA Group ---- */
.hero__cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2); /* 16px between buttons */
  margin-bottom: 0;
}

/* ---- CTA Buttons (shared) ---- */
.hero__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 16px 40px;
  border-radius: var(--radius-md); /* 12px */
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
}

/* Focus ring for both buttons */
.hero__cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Primary CTA */
.hero__cta-button--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid transparent;
}

.hero__cta-button--primary:hover {
  background: #007a91;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 151, 178, 0.3);
}

.hero__cta-button--primary:active {
  transform: translateY(0px);
  transition-duration: 0.1s;
}

/* Secondary CTA */
.hero__cta-button--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.hero__cta-button--secondary:hover {
  background: #e8eef1;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 59, 78, 0.12);
}

.hero__cta-button--secondary:active {
  transform: translateY(0px);
  transition-duration: 0.1s;
}

/* ---- Scroll Indicator ---- */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-4); /* 32px from bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(19, 59, 78, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(19, 59, 78, 0.4);
  border-radius: 2px;
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 0.3; }
}

/* ==========================================================================
   Responsive — Mobile (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
  .hero__content {
    padding: var(--space-8) 24px;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-button {
    width: 100%;
    text-align: center;
  }

  .hero__scroll-indicator {
    display: none; /* Hidden on mobile */
  }
}

/* ==========================================================================
   Responsive — Tablet (640px - 1023px)
   ========================================================================== */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__content {
    padding: var(--space-8) 40px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-wheel {
    animation: none;
    opacity: 0.6;
  }
}
