/* ==========================================================================
   LP NorCal Hero — Full-viewport hero with bottom-left content + stat cards
   Scoped to .lp-norcal-hero

   Matches React/Tailwind prototype (App.tsx lines 242-303)
   Hero content is BOTTOM-LEFT aligned, stats are individual gradient cards
   ========================================================================== */

/* Spacer maintains document flow height while hero is fixed */
.lp-norcal-hero-spacer {
  height: 100vh;
}
@supports (height: 100svh) {
  .lp-norcal-hero-spacer {
    height: 100svh;
  }
}

/* Hero is fixed to viewport, content scrolls over it */
.lp-norcal-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-norcal-hero {
    height: 100svh;
  }
}

/* --------------------------------------------------------------------------
   Background Image — fills full viewport
   -------------------------------------------------------------------------- */

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

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

/* No overlay — prototype has no gradient overlay, relies on image natural lighting */

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

.lp-norcal-hero .lp-norcal-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 16px 24px;
}

/* --------------------------------------------------------------------------
   Eyebrow — "HYDRATION ROOM" above h1, from prototype line 248
   -------------------------------------------------------------------------- */

.lp-norcal-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;
}

@media (min-width: 769px) {
  .lp-norcal-hero__eyebrow {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Text Block — left-aligned, stacked with gaps
   -------------------------------------------------------------------------- */

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

.lp-norcal-hero .lp-heading-xl {
  font-size: 28px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lp-norcal-hero .lp-norcal-hero__sub {
  color: #fff;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CTA Group — left-aligned, horizontal
   -------------------------------------------------------------------------- */

.lp-norcal-hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Stats Bar — sits beneath the fold in normal document flow.
   Scrolls with content over the fixed hero. Transparent bg so the
   fixed hero image shows through behind the stat cards.
   -------------------------------------------------------------------------- */

.lp-norcal-hero__stats-bar {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 32px 20px;
}

.lp-norcal-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--lp-container-max-width, 1200px);
  margin: 0 auto;
}

.lp-norcal-hero__stat {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  /* Blue gradient base with subtle white-to-transparent top overlay */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.48) 100%),
    linear-gradient(90deg, rgb(80, 138, 197) 0%, rgb(80, 138, 197) 100%);
}

/* Inset border overlay — matches prototype's absolute border technique */
.lp-norcal-hero__stat::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #aec2e2;
  border-radius: 8px;
  pointer-events: none;
}

.lp-norcal-hero__stat .lp-stat-number {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.lp-norcal-hero__stat .lp-stat-label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

/* Inner content padding */
.lp-norcal-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 12px;
}

/* --------------------------------------------------------------------------
   Scroll-down hint
   -------------------------------------------------------------------------- */

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

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

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

@media (min-width: 769px) {
  .lp-norcal-hero .lp-norcal-hero__content {
    padding: 80px 32px 48px;
  }

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

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

  .lp-norcal-hero .lp-norcal-hero__sub {
    font-size: 16px;
  }

  .lp-norcal-hero__cta-group {
    margin-top: 24px;
  }

  .lp-norcal-hero__stats {
    gap: 16px;
  }

  .lp-norcal-hero__stat {
    padding: 17px;
  }

  .lp-norcal-hero__stat .lp-stat-number {
    font-size: 48px;
  }

  .lp-norcal-hero__stat .lp-stat-label {
    font-size: 16px;
  }

  .lp-norcal-hero__stats-bar {
    padding: 32px 48px;
  }
}

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

@media (min-width: 1025px) {
  .lp-norcal-hero .lp-norcal-hero__content {
    padding: 80px 64px 56px;
  }

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

  .lp-norcal-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .lp-norcal-hero__stat .lp-stat-number {
    font-size: 64px;
  }

  .lp-norcal-hero__stats-bar {
    padding: 48px 96px;
  }
}

/* --------------------------------------------------------------------------
   Small mobile (<=576px)
   -------------------------------------------------------------------------- */

@media (max-width: 576px) {
  .lp-norcal-hero .lp-norcal-hero__content {
    padding: 48px 16px 24px;
  }

  .lp-norcal-hero__scroll-hint {
    bottom: 20px;
  }
}
