/* =========================================================
   GLOBAL HERO SYSTEM — 500K CLEAN, SINGLE SOURCE OF TRUTH
   Used by: service pages with .page-hero (and optional .parallax-hero)
   Goals:
   - one stable background layer (no seams / no center line artifacts)
   - premium depth overlay (spotlight + subtle dark falloff)
   - responsive typography (no !important wars)
   - CTA polish (hover + focus)
   - parallax only on desktop (avoid mobile jank)
========================================================= */

/* ------------------------------
   HERO BASE
------------------------------ */
.page-hero{
  position: relative;
  padding: 108px 20px 112px; /* premium + not overly tall */
  text-align: center;
  color: #ffffff;
  overflow: hidden;          /* ensures no stray edges show */
  background: #071A2F;       /* fallback */
}

/* Ensure hero content stays above background layers */
.page-hero > *{
  position: relative;
  z-index: 2;
}

/* ------------------------------
   SINGLE BACKGROUND LAYER (NO ARTIFACTS)
------------------------------ */
.page-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  /* slightly lighter + cleaner navy */
  background: linear-gradient(to bottom right, #0B2340, #163B63);

  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ------------------------------
   PREMIUM DEPTH OVERLAY (VISIBLE, EXECUTIVE)
   One overlay layer. No duplicates.
------------------------------ */
.page-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* brighter top spotlight */
    radial-gradient(1200px 560px at 50% 0%,
      rgba(255,255,255,0.18),
      transparent 62%),

    /* very faint MEED green halo */
    radial-gradient(900px 520px at 18% 12%,
      rgba(0,180,110,0.05),
      transparent 66%),

    /* *much* lighter falloff (prevents heavy look) */
    linear-gradient(to bottom,
      rgba(0,0,0,0.00),
      rgba(0,0,0,0.10));
}

/* ------------------------------
   OPTIONAL: PARALLAX (DESKTOP ONLY)
   Add class "parallax-hero" to the hero section.
------------------------------ */
.parallax-hero{
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

@media (min-width: 1024px){
  .parallax-hero{
    background-attachment: fixed;
  }
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
.page-hero h1,
.page-hero h2{
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 875;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.page-hero h1{
  margin: 0 0 14px;
}
.page-hero p{
  font-size: 1.05rem;
  max-width: 880px;
  margin: 0 auto 24px;
  color: #F3F9FF !important;
  line-height: 1.55;<strong></strong>
  opacity: 0.96;
  font-weight: 400;
}

/* If your HTML includes a .hero-overlay element anywhere, keep it harmless */
.page-hero .hero-overlay{
  display: none !important;
}

/* Keep inner wrapper clean (never add background panels here) */
.hero-aup-inner{
  background: none !important;
}

/* ------------------------------
   CTA BUTTONS (HERO)
------------------------------ */
.page-hero .cta-btn{
  background: #23C36C;
  color: #ffffff;
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 650;
  display: inline-block;
  text-decoration: none;

  box-shadow:
    0 18px 46px rgba(0,0,0,0.24),
    inset 0 0 0 1px rgba(255,255,255,0.10);

  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
}

.page-hero .cta-btn:hover{
  background: #1fa95e;
  transform: translateY(-2px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  filter: brightness(1.02);
}

.page-hero .cta-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(0,180,110,0.28),
    0 22px 54px rgba(0,0,0,0.26);
}

/* Secondary hero button */
.page-hero .cta-btn.secondary{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-hero .cta-btn.secondary:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

/* Smooth transition into page content */
.page-hero + .page-content .content-inner{
  padding-top: 56px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px){
  .page-hero{
    padding: 92px 16px 110px;
  }

  .page-hero h1,
  .page-hero h2{
    font-size: 34px;
  }

  .page-hero p{
    font-size: 18px;
  }
}

@media (max-width: 520px){
  .page-hero .hero-aup-inner{
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ------------------------------
   PAGE-SPECIFIC: Contact page header shadow removal
------------------------------ */
body.contact-page .main-header{
  box-shadow: none !important;
}

