
/* SectionHeroHeader.css
   Reusable blue hero header for inner pages (not index.html)
   - Mobile-first, responsive, left text / right image
   - Works without Tailwind/Bootstrap
   - Includes subtle gradient, glass buttons, hover and scroll animations
*/

:root{
  --hero-blue-1:#0b2ae6;
  --hero-blue-2:#0820a8;
  --hero-accent:#7aa2ff;
  --hero-text:#eaf0ff;
  --hero-btn:#ffffff;
  --maxw: 1200px;
  --radius-xl: 20px;
  --shadow-lg: 0 10px 30px rgba(0,0,0,.18);
}

/* Reset quirks inside section to avoid inheritance surprises */
.section-hero * { box-sizing: border-box; }

.section-hero{
  position: relative;
  background: radial-gradient(1600px 800px at 80% -10%, rgba(255,255,255,.08), transparent 50%),
              linear-gradient(135deg, #0a2540, #1d72b8);
  color: var(--hero-text);
  border-bottom-left-radius: 4rem;
    border-bottom-right-radius: 4rem;
}
/* === Ensure readability for SectionHeroHeader === */
.section-hero .hero-title,
.section-hero .hero-sub,
.section-hero .hero-eyebrow,
.section-hero .hero-copy p,
.section-hero .hero-copy strong {
  color: #fff !important;
  text-shadow: none; /* soft glow for contrast */
}

/* Optional: pill background for eyebrow */
.section-hero .hero-eyebrow {
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  display: inline-block;
}

.section-hero .container{
  margin-inline: auto;
  width: min(100%, calc(var(--maxw) + 32px));
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 24px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  min-height: min(76vh, 860px);
}

/* Layout for >= 840px */
@media (min-width: 840px){
  .section-hero .container{
    grid-template-columns: 1.02fr .98fr;
  }
}

/* Left column (copy + ctas) */
.hero-copy{
  display: grid;
  align-content: center;
  gap: clamp(10px, 1.8vw, 16px);
}

.hero-eyebrow{
  font: 600 clamp(12px, 1.6vw, 14px)/1.1 ui-sans-serif, system-ui;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--hero-text) 72%, white);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: 8rem;
}
.hero-eyebrow::before{
  content: "";
  width: 32px; height: 2px;
  background: color-mix(in oklab, var(--hero-text) 60%, white);
  border-radius: 2px;
}

.hero-title{
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(28px, 5.2vw, 54px);
  margin: 0;
}

.hero-sub{
  font-size: clamp(15px, 1.6vw, 18px);
  color: color-mix(in oklab, var(--hero-text) 86%, white);
  max-width: 62ch;
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(12px, 2vw, 20px);
}

.btn{
  --_bg: var(--hero-btn);
  --_fg: #0b1b60;
  --_ring: rgba(255,255,255,.35);
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 100;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 10px 24px rgba(0,0,0,.15);
  background: var(--_bg);
  color: var(--_fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-ghost:hover{ transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0,0,0,.22), 0 16px 32px rgba(0,0,0,.2) }
.btn:active{ transform: translateY(0); box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 8px 18px rgba(0,0,0,.16) }
.btn:focus-visible{ outline: 3px solid var(--_ring); outline-offset: 2px; }

.btn-primary{
  --_bg: linear-gradient(180deg, #ffffff, #e9efff);
  --_fg: #0b1b60;
}

.btn-ghost{
  --_bg: rgba(255,255,255,.12);
  --_fg: var(--hero-text);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover{ --_bg: rgba(255,255,255,.18) }

/* Right column (visual) */
.hero-visual{
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
/* floating orb accent */


.hero-card{
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 5/6;
      margin: 1rem 0rem;
    margin-left: 34rem;

}

.hero-image{
  width: 100%; height: 100%;
object-position: center;
  display: block;
   
}


/* Tiny screens tighten paddings */
@media (max-width: 380px){
  .btn{ padding: 11px 14px }
}
/* --- Responsive Fixes: keep SectionHeroHeader mobile-first and prevent overflow --- */


/* 2) Container stacks on small screens; center content */
@media (max-width: 839.98px){
  .section-hero .container{ grid-template-columns: 1fr; text-align: center; }
  .section-hero .hero-ctas{ justify-content: center; }
  .section-hero .hero-copy{ justify-items: baseline;}
  .section-hero .hero-visual{         min-height: 240px;
     }
        .hero-card{     position: relative;
    z-index: 1;
    aspect-ratio: 5 / 6 !important; 
     width: 20rem;
     overflow: clip;
     padding: 0rem 0rem !important;
     margin: 1rem 0rem !important; 
    margin-left: 0rem !important;
    }
    .hero-copy{
          margin: 0rem 0rem;
    padding: 0rem 0rem;
    width: 11rem;
    }
      .sectioncontainer{
        padding: 0rem 0rem !important;
      }
}

/* 3) On wider screens, align text left and keep image on the right cleanly */
@media (min-width: 840px){
  .section-hero .hero-copy{ justify-items: start; text-align: left; }
  .section-hero .hero-visual{ justify-self: end; }
  .section-hero .hero-visual{         min-height: 240px;
        }
        .hero-card{     position: relative;
    z-index: 1;
    aspect-ratio: 5 / 6; 
    width:100%;
     overflow: clip;
    }

}

/* 4) Safety: prevent accidental horizontal scrolls */
.section-hero, .section-hero .container, .section-hero .hero-card{ width:100%; overflow: clip;     padding: 0rem 2rem;}

/* 5) Eyebrow width should adapt to content */
.section-hero .hero-eyebrow{ width: auto; }

/* 6) Button hover (the original had a hover on .btn-ghost only) */
.section-hero .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0,0,0,.22), 0 16px 32px rgba(0,0,0,.2);
}
.sectioncontainer{
    width: 100%;
    overflow: clip;
    padding: 0rem 2rem;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    grid-template-columns: 1.02fr .98fr;
    display: grid;
}
