
/* =========================================================
   LEO & SON — UNIFIED ABOVE-THE-FOLD V39
   Shared hero language across homepage + all secondary pages
========================================================= */

:root{
  --leo-navy:#003068;
  --leo-navy-deep:#001f45;
  --leo-teal:#103848;
  --leo-gold:#f8c800;
}

/* ---------------- Secondary page heroes ---------------- */
.local-hero.unified-page-hero{
  position:relative;
  min-height:560px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:var(--leo-navy-deep);
  color:#fff;
}

.local-hero.unified-page-hero::before{
  content:"";
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(
    90deg,
    var(--leo-gold) 0%,
    var(--leo-gold) 38%,
    rgba(248,200,0,.24) 72%,
    rgba(248,200,0,0) 100%
  );
  pointer-events:none;
}

.local-hero.unified-page-hero::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  background:
    radial-gradient(circle at 78% 42%,rgba(248,200,0,.10),transparent 27%),
    linear-gradient(
      90deg,
      rgba(0,28,62,.96) 0%,
      rgba(0,48,104,.88) 42%,
      rgba(16,56,72,.55) 68%,
      rgba(0,28,62,.22) 100%
    );
  pointer-events:none;
}

.local-hero.unified-page-hero > img{
  position:absolute;
  z-index:0;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:scale(1.012);
}

.local-hero.unified-page-hero .container{
  position:relative;
  z-index:2;
  width:100%;
  padding-top:88px;
  padding-bottom:88px;
}

.local-hero.unified-page-hero .local-hero-copy{
  position:relative;
  max-width:790px;
  padding-left:23px;
  border-left:3px solid rgba(248,200,0,.82);
}

.local-hero.unified-page-hero .local-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 15px;
  color:var(--leo-gold);
  font-size:.73rem;
  font-weight:950;
  letter-spacing:.14em;
  line-height:1.3;
  text-transform:uppercase;
}

.local-hero.unified-page-hero .local-eyebrow::before{
  content:"";
  width:26px;
  height:2px;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--leo-gold);
}

.local-hero.unified-page-hero h1{
  max-width:780px;
  margin:0 0 18px;
  color:#fff;
  font-size:clamp(2.65rem,5.1vw,4.85rem);
  font-weight:900;
  line-height:.99;
  letter-spacing:-.038em;
  text-wrap:balance;
  text-shadow:0 5px 22px rgba(0,0,0,.18);
}

.local-hero.unified-page-hero p{
  max-width:710px;
  margin:0;
  color:#e5eef3;
  font-size:1.06rem;
  line-height:1.7;
}

.local-hero.unified-page-hero .local-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:29px;
}

.local-hero.unified-page-hero .local-hero-actions a{
  min-height:51px;
  padding:12px 20px;
  border-radius:7px;
  font-weight:900;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}

.local-hero.unified-page-hero .local-primary{
  border:1px solid var(--leo-gold);
  background:var(--leo-gold);
  color:var(--leo-navy);
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.local-hero.unified-page-hero .local-secondary{
  border:1px solid rgba(255,255,255,.58);
  background:rgba(0,31,69,.24);
  color:#fff;
  backdrop-filter:blur(4px);
}

@media (hover:hover) and (pointer:fine){
  .local-hero.unified-page-hero .local-hero-actions a:hover{
    transform:translateY(-2px);
  }
  .local-hero.unified-page-hero .local-primary:hover{
    box-shadow:0 14px 30px rgba(0,0,0,.20);
  }
  .local-hero.unified-page-hero .local-secondary:hover{
    border-color:var(--leo-gold);
    background:rgba(0,48,104,.58);
  }
}

/* ---------------- Materials now uses same hero system ---------------- */
.local-hero.materials-unified-hero > img{
  object-position:center 54%;
}

/* ---------------- Homepage shares same visual language ---------------- */
.premium-hero.unified-home-hero{
  min-height:640px;
  background:var(--leo-navy-deep);
}

.premium-hero.unified-home-hero::before{
  content:"";
  position:absolute;
  z-index:5;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(
    90deg,
    var(--leo-gold) 0%,
    var(--leo-gold) 38%,
    rgba(248,200,0,.24) 72%,
    rgba(248,200,0,0) 100%
  );
  pointer-events:none;
}

.premium-hero.unified-home-hero .hero-overlay{
  background:
    radial-gradient(circle at 78% 42%,rgba(248,200,0,.09),transparent 28%),
    linear-gradient(
      90deg,
      rgba(0,28,62,.95) 0%,
      rgba(0,48,104,.84) 43%,
      rgba(16,56,72,.50) 70%,
      rgba(0,28,62,.16) 100%
    )!important;
}

.premium-hero.unified-home-hero .premium-hero-content{
  position:relative;
  max-width:810px;
  padding-left:23px;
  border-left:3px solid rgba(248,200,0,.82);
}

.premium-hero.unified-home-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:15px;
  color:var(--leo-gold);
  font-size:.73rem;
  font-weight:950;
  letter-spacing:.14em;
  line-height:1.3;
  text-transform:uppercase;
}

.premium-hero.unified-home-hero .eyebrow::before{
  content:"";
  width:26px;
  height:2px;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--leo-gold);
}

.premium-hero.unified-home-hero h1{
  max-width:800px;
  font-size:clamp(2.85rem,5.2vw,5rem);
  line-height:.99;
  letter-spacing:-.038em;
  text-shadow:0 5px 22px rgba(0,0,0,.18);
}

.premium-hero.unified-home-hero .hero-description{
  max-width:720px;
  color:#e5eef3;
  font-size:1.06rem;
  line-height:1.7;
}

.premium-hero.unified-home-hero .hero-actions .btn{
  min-height:51px;
  padding:12px 20px;
  border-radius:7px;
  font-weight:900;
}

.premium-hero.unified-home-hero .hero-primary{
  border:1px solid var(--leo-gold)!important;
  background:var(--leo-gold)!important;
  color:var(--leo-navy)!important;
}

.premium-hero.unified-home-hero .hero-secondary{
  border:1px solid rgba(255,255,255,.58)!important;
  background:rgba(0,31,69,.24)!important;
  color:#fff!important;
  backdrop-filter:blur(4px);
}

/* ---------------- Header consistency ---------------- */
.premium-header{
  background:#fff;
}

/* ---------------- Mobile ---------------- */
@media (max-width:760px){
  .local-hero.unified-page-hero{
    min-height:470px;
  }

  .local-hero.unified-page-hero .container{
    padding-top:66px;
    padding-bottom:66px;
  }

  .local-hero.unified-page-hero .local-hero-copy,
  .premium-hero.unified-home-hero .premium-hero-content{
    padding-left:16px;
    border-left-width:2px;
  }

  .local-hero.unified-page-hero h1{
    font-size:clamp(2.25rem,11vw,3.25rem);
    line-height:1.02;
  }

  .local-hero.unified-page-hero p{
    font-size:.98rem;
    line-height:1.62;
  }

  .local-hero.unified-page-hero .local-hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    max-width:360px;
  }

  .local-hero.unified-page-hero .local-hero-actions a{
    width:100%;
  }

  .premium-hero.unified-home-hero{
    min-height:570px;
  }

  .premium-hero.unified-home-hero h1{
    font-size:clamp(2.35rem,11vw,3.4rem)!important;
    line-height:1.02!important;
  }
}

/* Broken legacy contact fragments should never display. */
.quote-info-kicker,
.quote-info-panel > .quote-info-kicker{
  display:none!important;
}
