/* =============================================================
   Upper Echelon Health — homepage family hero (Nov 2026, refined)
   Layout and spacing only. Logo, header, fonts, heading styles,
   buttons and the ZIP field all come from ue-brand.css unchanged.
   ============================================================= */

/* ---------- Hero ---------- */
.ue-fhero{position:relative;overflow:hidden;background:#fff;isolation:isolate}
.ue-fhero__inner{position:relative;max-width:var(--maxw);margin:0 auto;padding:clamp(22px,2.2vw,36px) var(--gutter) 0}

/* Photo: right side, wide soft fade into white so it never crowds the text */
.ue-fhero__photo{position:absolute;z-index:0;top:8px;right:0;width:min(42vw,720px);aspect-ratio:3/2;margin:0;pointer-events:none}
.ue-fhero__photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.4) 10%,rgba(0,0,0,.88) 22%,#000 30%),linear-gradient(180deg,transparent 0%,#000 14%,#000 76%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.4) 10%,rgba(0,0,0,.88) 22%,#000 30%),linear-gradient(180deg,transparent 0%,#000 14%,#000 76%,transparent 100%);
  mask-composite:intersect}

.ue-fhero__content{position:relative;z-index:1;max-width:min(640px,56%);padding-bottom:clamp(20px,2vw,30px)}
.ue-fhero__content .eyebrow{justify-content:flex-start;margin-bottom:10px}
.ue-fhero h1{max-width:22ch;font-size:clamp(1.9rem,2.6vw,2.55rem);line-height:1.12;margin:0}
.ue-fhero__rule{display:block;width:56px;height:2px;margin:14px 0 14px;background:var(--gold);opacity:.8}
.ue-fhero__lede{max-width:62ch;margin:0;font-size:1rem;line-height:1.62}

/* ---------- Enroll + Get Started panel ---------- */
.ue-fhero__panel{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr);align-items:center;
  background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(15,35,66,.07);
  padding:clamp(20px,2vw,28px) clamp(28px,3.4vw,48px)}
.ue-fhero__oe{display:flex;align-items:flex-start;gap:24px;padding-right:clamp(24px,3.6vw,52px);border-right:1px solid var(--line)}
.ue-fhero__icon{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#F7F5F1;color:var(--navy)}
.ue-fhero__icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ue-fhero__oe h2{margin:0 0 6px;font-size:clamp(1.25rem,1.7vw,1.5rem)}
.ue-fhero__start h2{margin:0 0 10px;font-size:clamp(1.35rem,1.8vw,1.6rem)}
.ue-fhero__oe p{margin:0;color:var(--ink);line-height:1.55}
.ue-fhero__oe small{display:block;margin:4px 0 0;color:var(--muted);line-height:1.5}
.ue-fhero__oe a{display:inline-block;margin-top:8px;font-weight:600;color:var(--navy);text-underline-offset:4px}

.ue-fhero__start{padding-left:clamp(24px,3.6vw,52px)}
.ue-fhero__types{display:flex;flex-wrap:wrap;gap:10px 26px;margin:0 0 14px;padding:0;border:0}
.ue-fhero__types legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ue-fhero__types label{display:inline-flex;align-items:center;gap:10px;min-height:32px;cursor:pointer;color:var(--ink)}
.ue-fhero__types input{appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0;border:1.5px solid #9AA5B4;border-radius:50%;background:#fff;display:grid;place-items:center;cursor:pointer}
.ue-fhero__types input::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--navy);transform:scale(0);transition:transform .15s var(--ease)}
.ue-fhero__types input:checked{border-color:var(--navy)}
.ue-fhero__types input:checked::before{transform:scale(1)}
.ue-fhero__types input:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.ue-fhero__start .ue-zip{margin:0;max-width:none}
.ue-fhero__start .ue-zip__label{display:block;margin-bottom:8px}
.ue-fhero__start .ue-zip__box{padding:6px}
.ue-fhero__start .ue-zip__input,.ue-fhero__start .ue-zip__btn{min-height:52px}
.ue-fhero__start .ue-zip__btn{padding:0 28px;white-space:nowrap}

/* ---------- Explore Health Coverage Options ---------- */
.ue-cov{background:#fff;padding:clamp(88px,9vw,136px) 0 clamp(80px,8vw,120px)}
.ue-cov__inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.ue-cov__title{display:flex;align-items:center;justify-content:center;gap:clamp(18px,3vw,32px);margin:0 0 clamp(40px,4.5vw,64px);text-align:center;font-size:clamp(1.55rem,2.5vw,2.1rem)}
.ue-cov__title::before,.ue-cov__title::after{content:"";flex:0 1 120px;height:1px;background:var(--gold-light)}
.ue-cov__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:clamp(20px,2.4vw,32px);margin:0;padding:0;list-style:none}
.ue-cov__grid li{display:flex}
.ue-cov__card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:22px;width:100%;padding:clamp(28px,3vw,40px);background:#fff;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
.ue-cov__card:hover,.ue-cov__card:focus-visible{border-color:var(--gold-light);box-shadow:0 10px 28px rgba(15,35,66,.06)}
.ue-cov__icwrap{flex:none;display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#F7F5F1}
.ue-cov__card svg.ue-cov__ic{width:36px;height:36px;fill:none;stroke:var(--gold-deep);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ue-cov__card h3{margin:0 0 10px;font-size:1.25rem}
.ue-cov__card p{margin:0;color:var(--text);font-size:1.0625rem;line-height:1.6}
.ue-cov__card .ue-cov__go{position:absolute;top:clamp(28px,3vw,40px);right:clamp(24px,2.6vw,34px);width:20px;height:20px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--ease)}
.ue-cov__card:hover .ue-cov__go{transform:translateX(3px)}

/* Trust row: plain line, no box */
.ue-cov__trust{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 36px;margin:clamp(56px,6vw,80px) 0 0;padding-top:clamp(32px,3.4vw,44px);border-top:1px solid var(--line)}
.ue-cov__trust .ue-gsum-wrap,.ue-cov__trust .hero__assure,.ue-cov__trust .ue-hero-actions{margin:0}
.ue-cov__trust .hero__assure{display:flex;flex-wrap:wrap;gap:10px 30px}
.ue-cov__trust .ue-gsum{font-size:1rem}
.ue-cov__trust .hero__assure li{font-size:.95rem}
.ue-cov__trust .ue-hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex-basis:100%;gap:12px 18px;margin-top:8px!important;font-size:1rem}
.ue-cov__trust .ue-hero-actions .btn{min-height:52px;padding:0 30px}
.ue-cov__more{margin:28px 0 0;text-align:center;color:var(--muted);font-size:1rem}
.ue-cov__more a{color:var(--navy);font-weight:600;text-underline-offset:4px}

/* Smaller laptops: give the form more room so choices stay on one line */
@media (max-width:1240px) and (min-width:1081px){
  .ue-fhero__panel{grid-template-columns:minmax(0,.66fr) minmax(0,1.34fr)}
  .ue-fhero__types{gap:10px 20px}
}

/* Short desktop windows: tighten so the ZIP box stays in view */
@media (min-width:1081px) and (max-height:700px){
  .ue-fhero__inner{padding-top:16px}
  .ue-fhero__content{padding-bottom:16px}
  .ue-fhero__content .eyebrow{margin-bottom:6px}
  .ue-fhero h1{font-size:clamp(1.7rem,2.3vw,2.2rem)}
  .ue-fhero__rule{margin:10px 0}
  .ue-fhero__lede{font-size:.95rem;line-height:1.55}
  .ue-fhero__panel{padding-top:16px;padding-bottom:16px}
  .ue-fhero__start h2{margin-bottom:6px}
  .ue-fhero__types{margin-bottom:10px}
  .ue-fhero__start .ue-zip__input,.ue-fhero__start .ue-zip__btn{min-height:48px}
}

/* ---------- Tablet ---------- */
@media (max-width:1080px){
  .ue-fhero__photo{width:44vw}
  .ue-fhero__content{max-width:55%}
  .ue-fhero__panel{grid-template-columns:1fr}
  .ue-fhero__oe{padding:0 0 28px;border-right:0;border-bottom:1px solid var(--line)}
  .ue-fhero__start{padding:28px 0 0}
}
@media (max-width:900px){
  .ue-cov__grid{grid-template-columns:1fr;max-width:560px;margin:0 auto}
}

/* ---------- Phone: photo on top, single column ---------- */
@media (max-width:820px){
  .ue-fhero__inner{padding-top:22px}
  .ue-fhero__content{max-width:none}
  .ue-fhero h1{font-size:clamp(1.85rem,7.4vw,2.3rem)}
  .ue-fhero__photo{position:relative;width:auto;height:auto;aspect-ratio:16/9;margin:0 calc(var(--gutter) * -1);bottom:auto;top:auto}
  .ue-fhero__photo img{object-position:60% 30%;-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
  .ue-fhero__content{padding-bottom:28px}
  .ue-fhero__content .eyebrow{margin-bottom:16px}
  .ue-fhero__rule{margin:22px 0 22px}
  .ue-fhero__lede{line-height:1.65}
  .ue-fhero__panel{padding:24px 22px;border-radius:12px}
  .ue-fhero__oe{gap:18px}
  .ue-fhero__icon{width:52px;height:52px}
  .ue-fhero__icon svg{width:26px;height:26px}
  .ue-fhero__types{flex-direction:column;gap:12px;margin-bottom:18px}
  .ue-fhero__start{order:-1;padding:0 0 24px}
  .ue-fhero__oe{padding:24px 0 0;border-bottom:0;border-top:1px solid var(--line)}
  .ue-fhero__photo{aspect-ratio:2/1}
  .ue-cov{padding:72px 0 72px}
  .ue-cov__title{margin-bottom:36px}
  .ue-cov__title::before,.ue-cov__title::after{display:none}
  .ue-cov__card{padding:28px 24px;gap:18px}
  .ue-cov__card .ue-cov__go{top:30px;right:22px}
  .ue-cov__trust{flex-direction:column;align-items:flex-start;gap:18px;margin-top:48px}
  .ue-cov__trust .hero__assure{flex-direction:column;gap:10px}
  .ue-cov__trust .ue-hero-actions{justify-content:flex-start;margin-top:0!important}
  .ue-cov__more{text-align:left}
}

/* ---------- Phone: ZIP form in view on open ----------
   Order on phones: label, headline, Get Started + ZIP, then photo,
   paragraph and enrollment dates. Same content, nothing hidden. */
@media (max-width:820px){
  .ue-fhero{display:flex;flex-direction:column;padding:18px var(--gutter) 32px}
  .ue-fhero__inner,.ue-fhero__content{display:contents}
  .ue-fhero__content .eyebrow{order:1;margin:0 0 8px;font-size:.68rem}
  .ue-fhero h1{order:2;max-width:none;font-size:clamp(1.55rem,6.6vw,1.9rem);line-height:1.15}
  .ue-fhero__panel{order:3;margin-top:18px;padding:18px 18px 20px;box-shadow:0 8px 24px rgba(15,35,66,.06)}
  .ue-fhero__photo{order:0;margin:-18px calc(var(--gutter) * -1) 2px;aspect-ratio:10/3;height:auto;min-height:0;overflow:hidden;flex:none}
  .ue-fhero__photo img{position:absolute;inset:0;object-position:50% 36%;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 100%);mask-image:linear-gradient(180deg,#000 62%,transparent 100%)}
  .ue-fhero__rule{order:5;margin:28px 0 16px}
  .ue-fhero__lede{order:6;max-width:none}
  .ue-fhero__panel{margin-top:14px;padding:14px 16px 18px}
  .ue-fhero__start{padding:0 0 18px}
  .ue-fhero__start h2{font-size:1.2rem;margin:0 0 6px}
  .ue-fhero__types{flex-direction:row;flex-wrap:wrap;gap:2px 16px;margin:0 0 10px}
  .ue-fhero__types label{font-size:.95rem;gap:8px;min-height:30px}
  .ue-fhero__types input{width:18px;height:18px}
  .ue-fhero__types input::before{width:9px;height:9px}
  .ue-fhero__start .ue-zip__label{margin-bottom:5px}
  .ue-fhero__start .ue-zip__box{padding:5px;gap:5px}
  .ue-fhero__start .ue-zip__input,.ue-fhero__start .ue-zip__btn{min-height:46px}
  .ue-fhero__oe{padding-top:20px}
}

/* Short phones (iPhone SE, small Android): tighter form so ZIP stays in view */
@media (max-width:820px) and (max-height:645px){
  .ue-fhero{padding-top:10px}
  .ue-fhero__photo{aspect-ratio:6/1;margin-top:-10px}
  .ue-fhero__photo img{object-position:50% 34%;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
  .ue-fhero__content .eyebrow{display:none}
  .ue-fhero__content .eyebrow{margin-bottom:6px}
  .ue-fhero h1{font-size:clamp(1.4rem,6vw,1.7rem)}
  .ue-fhero__panel{margin-top:10px;padding:12px 16px 16px}
  .ue-fhero__start h2{font-size:1.15rem;margin:0 0 6px}
  .ue-fhero__types{flex-direction:row;flex-wrap:wrap;gap:2px 16px;margin:0 0 8px}
  .ue-fhero__types label{font-size:.92rem;gap:8px;min-height:30px}
  .ue-fhero__types input{width:18px;height:18px}
  .ue-fhero__types input::before{width:9px;height:9px}
  .ue-fhero__start .ue-zip__label{margin-bottom:4px}
  .ue-fhero__start .ue-zip__box{padding:5px;gap:5px}
  .ue-fhero__start .ue-zip__input,.ue-fhero__start .ue-zip__btn{min-height:42px}
}
/* Very short phones (iPhone SE) */
@media (max-width:820px) and (max-height:580px){
  .ue-fhero__photo{aspect-ratio:8/1}
  .ue-fhero h1{font-size:1.32rem}
  .ue-fhero__panel{margin-top:8px;padding-top:10px}
  .ue-fhero__start h2{font-size:1.05rem;margin-bottom:4px}
  .ue-fhero__types{margin-bottom:6px}
  .ue-fhero__types label{min-height:28px}
  .ue-fhero__start .ue-zip__input,.ue-fhero__start .ue-zip__btn{min-height:40px}
}
@media (max-width:420px){
  .ue-fhero__icon{display:none}
}
@media (prefers-reduced-motion:reduce){.ue-cov__card,.ue-cov__go{transition:none}}
