/* ==========================================================================
   LP Careers Hero — Full-viewport fixed-background hero with gradient overlay
   Scoped to .lp-careers-hero

   Matches Vercel prototype CareersApp.tsx (CareersHero function)
   Content is bottom-left aligned; heading animates character-by-character
   ========================================================================== */

/* Spacer maintains document flow height while hero is fixed */
.lp-careers-hero-spacer {
  height: 100vh;
}

@supports (height: 100svh) {
  .lp-careers-hero-spacer { height: 100svh; }
}

/* Hero is fixed — content scrolls over it */
.lp-careers-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@supports (height: 100svh) {
  .lp-careers-hero { height: 100svh; }
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */

.lp-careers-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-careers-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Gradient overlay — matches prototype line 59 (bg-gradient-to-t from-black/70 via-black/30) */
.lp-careers-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Content — bottom-left aligned
   -------------------------------------------------------------------------- */

.lp-careers-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
  color: #fff;
}

.lp-careers-hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  text-align: left;
  color: #fff;
}

.lp-careers-hero__eyebrow {
  font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-careers-hero .lp-heading-xl {
  /* Inherits family/weight/size from lp-careers.css; override color + shadow */
  color: #fff;
  margin: 0;
  font-size: 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lp-careers-hero__sub {
  font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  max-width: 640px;
}

.lp-careers-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* Scroll hint */
.lp-careers-hero__scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  animation: lp-careers-scroll-hint 2s ease-in-out infinite;
}

.lp-careers-hero__scroll-hint svg {
  display: block;
}

/* --------------------------------------------------------------------------
   Tablet (>= 769px)
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  .lp-careers-hero__content {
    padding: 64px 48px;
  }

  .lp-careers-hero__text {
    gap: 16px;
    max-width: 822px;
  }

  .lp-careers-hero .lp-heading-xl {
    font-size: 36px;
  }

  .lp-careers-hero__sub {
    font-size: 18px;
  }

  .lp-careers-hero__eyebrow {
    font-size: 16px;
  }

  .lp-careers-hero__cta-group {
    gap: 16px;
    margin-top: 16px;
  }
}

/* --------------------------------------------------------------------------
   Desktop (>= 1025px)
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
  .lp-careers-hero__content {
    padding: 64px 96px;
  }

  .lp-careers-hero .lp-heading-xl {
    font-size: 48px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lp-careers-hero__bg-img {
    animation: none !important;
  }
  .lp-careers-hero__scroll-hint {
    animation: none !important;
  }
  .hero-char {
    opacity: 1 !important;
    transform: none !important;
  }
}
