/* Home page hero (Johnny, 28 Oct 2026: "look at the hero section of our home
   page. Very bad. Very high standards for design, layout and flow.")
   One composition: a full width photo of a sunlit pool across the whole
   hero (the outcome the customer is buying, not the labour), darkened on
   the left so the copy reads, with the Call Me form floating on the right,
   level with the headline. Revised 28 Oct: the first version used the
   gloved hand work photo as a right hand panel behind the form and Johnny
   did not like it. Everything a visitor needs is above the fold at
   1440x900 and 1280x800. On phones the photo steps aside and the form
   follows a short intro. Own class names (.hx) so nothing in pmp.css
   written for the older .hero and .hero-v2 layouts can reach it. */

.hx{position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(900px 520px at 0% 0%,rgba(12,52,104,.9) 0%,rgba(4,30,66,0) 70%),var(--navy,#041E42);
  padding:60px 0 72px}
.hx-media{position:absolute;inset:0;z-index:0}
.hx-media picture,.hx-media img{display:block;width:100%;height:100%}
.hx-media img{object-fit:cover;object-position:60% 55%}
.hx-media::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(4,30,66,.93) 0%,rgba(4,30,66,.82) 32%,rgba(4,30,66,.34) 58%,rgba(4,30,66,.08) 100%),
             linear-gradient(180deg,rgba(4,30,66,.35) 0%,rgba(4,30,66,0) 18%,rgba(4,30,66,0) 78%,rgba(4,30,66,.55) 100%)}

.hx-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:56px;align-items:center}

.hx-eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 20px;
  font-family:var(--display);font-weight:700;font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;color:var(--pool,#80C241)}
.hx-eyebrow::before{content:"";flex:none;width:32px;height:2px;border-radius:2px;background:currentColor}
.hx-eyebrow .dot{opacity:.6;margin:0 6px}

.hx h1{margin:0 0 20px;max-width:15.5ch;color:#fff;text-shadow:none;
  font-size:clamp(2.4rem,3.8vw,3.4rem);line-height:1.04;letter-spacing:-.025em}
.hx h1 em{display:block;font-style:normal;color:var(--pool,#80C241);text-shadow:none}

.hx-sub{margin:0 0 28px;max-width:49ch;font-size:1.06rem;line-height:1.68;color:rgba(246,248,250,.76)}
.hx-sub a{color:#fff;text-decoration:underline;text-decoration-color:rgba(128,194,65,.55);text-decoration-thickness:1.5px;text-underline-offset:4px}
.hx-sub a:hover{text-decoration-color:var(--pool,#80C241)}

.hx-trust{list-style:none;margin:0 0 32px;padding:0;display:flex;flex-wrap:wrap;gap:10px 26px;font-size:.92rem;font-weight:600;color:#fff}
.hx-trust li{display:flex;align-items:center;gap:9px;padding:0;margin:0}
.hx-trust li::before{display:none}
.hx-trust svg{flex:none;width:16px;height:16px;color:var(--pool,#80C241)}

.hx-stats{display:flex;flex-wrap:nowrap;gap:0;max-width:560px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12)}
.hx-stats>div{padding:0 28px;border-left:1px solid rgba(255,255,255,.12)}
.hx-stats>div:first-child{padding-left:0;border-left:0}
.hx-stats b{display:block;font-family:var(--display);font-weight:800;font-size:1.75rem;line-height:1;color:#fff;letter-spacing:-.01em;white-space:nowrap}
.hx-stats .l{display:block;margin-top:9px;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(246,248,250,.58)}

.hx-form{justify-self:end;width:100%;max-width:430px}
.hx .cm-card{margin:0;max-width:none;border-radius:18px;padding:28px 28px 24px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 40px 90px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08)}
.hx .cm-card h2{font-size:1.32rem;letter-spacing:-.01em;margin:0 0 6px}
.hx .cm-card .cm-sub{font-size:.93rem;line-height:1.5;margin:0 0 18px}

/* laptops: keep the whole composition inside one screen */
@media (max-height:820px) and (min-width:981px){
  .hx{padding:52px 0 60px}
  .hx h1{font-size:clamp(2.3rem,3.7vw,3.2rem);margin-bottom:18px}
  .hx-sub{margin-bottom:22px}
  .hx-trust{margin-bottom:28px}
  .hx .cm-card{padding:24px 24px 20px}
  .hx .cm-card .cm-f{margin-bottom:9px}
}

/* tablets and phones: intro, then the form, then the numbers */
@media (max-width:980px){
  .hx{padding:34px 0 40px;background:var(--navy,#041E42)}
  .hx-media img{object-position:50% 50%}
  .hx-media::after{background:linear-gradient(180deg,rgba(4,30,66,.82) 0%,rgba(4,30,66,.9) 45%,var(--navy,#041E42) 78%)}
  .hx-grid{grid-template-columns:1fr;gap:0}
  .hx-copy{display:contents}
  .hx-eyebrow,.hx h1,.hx-sub,.hx-trust{grid-column:1}
  .hx-eyebrow{order:1;margin-bottom:12px;font-size:.68rem;letter-spacing:.14em;gap:10px}
  .hx-eyebrow::before{width:22px}
  .hx-eb2{display:none}
  .hx h1{order:2;max-width:none;font-size:clamp(1.8rem,7.6vw,2.3rem);line-height:1.06;margin:0 0 12px}
  .hx-sub{order:3;margin:0 0 14px;font-size:.96rem;line-height:1.55}
  .hx-trust{order:4;margin:0 0 20px;gap:6px 16px;font-size:.84rem}
  .hx-form{order:5;justify-self:stretch;max-width:none;margin-bottom:26px}
  .hx-stats{order:6;max-width:none;justify-content:space-between;padding-top:22px}
  .hx-stats>div{padding:0 0 0 16px;flex:1}
  .hx-stats>div:first-child{padding-left:0}
  .hx-stats b{font-size:1.4rem}
  .hx-stats .l{font-size:.62rem;letter-spacing:.12em}
  .hx .cm-card{padding:22px 20px 20px;border-radius:16px}
}
@media (max-width:980px) and (min-width:640px){
  .hx-form{max-width:560px}
}
