/* AES RoofTech site styles. Shared by every page, so new pages (residential, commercial, projects) reuse it.
   Blue colourway only (#00719E, from the logo). One typeface: Figtree, the web match to the one-pager's Avenir Next.
   No emoji, no display face, no stat boxes, no card templates. The photographs carry the colour. */
:root{
  --blue:#00719E; --blue-dark:#005B80; --navy:#0B2E40; --navy-2:#0F3A50;
  --ink:#111820; --text:#2A333C; --muted:#5E6873; --line:#E3E8EC; --mist:#F4F7F9; --white:#FFFFFF;
  --max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--text);font:400 17px/1.65 "Figtree","Avenir Next","Segoe UI",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
img,video{max-width:100%;display:block}
a{color:var(--blue)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 32px}
@media (max-width:600px){.wrap{padding:0 20px}}
h1,h2,h3{color:var(--ink);font-weight:600;letter-spacing:-.02em;line-height:1.08;margin:0;text-wrap:balance}
h2{font-size:clamp(32px,4.2vw,52px)}
h3{font-size:22px;letter-spacing:-.01em;line-height:1.25}
p{margin:0 0 16px;max-width:60ch}
.label{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin:0 0 18px}
section{padding:112px 0}
@media (max-width:760px){section{padding:72px 0}}
.btn{display:inline-block;background:var(--blue);color:#fff;border:0;border-radius:3px;padding:15px 24px;font:600 15px/1 inherit;font-family:inherit;text-decoration:none;cursor:pointer;letter-spacing:.01em;transition:background .15s}
.btn:hover{background:var(--blue-dark)}
:focus-visible{outline:3px solid #7FC4E0;outline-offset:2px}

/* top bar + header (the aes.bm shape) */
.topbar{background:var(--navy);color:#D6E6EE;font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;gap:16px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none;font-weight:600}
header.site{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:86px}
header.site .logo img{height:62px;width:auto}
nav.main{display:flex;align-items:center;gap:30px;font-size:15px;font-weight:500}
nav.main a{color:var(--ink);text-decoration:none}
nav.main a:hover{color:var(--blue)}
nav.main .btn{color:#fff;padding:13px 20px}
@media (max-width:920px){nav.main a:not(.btn){display:none}}

/* hero: headline left, form right */
.hero{position:relative;background:var(--navy);color:#fff;padding:96px 0 104px;min-height:640px;display:flex;align-items:center}
.hero .bg{position:absolute;inset:0;background:url(img/hero_residential.jpg) center 42%/cover no-repeat}
.hero .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,28,40,.84) 0%,rgba(7,28,40,.55) 46%,rgba(7,28,40,.15) 100%)}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:64px;align-items:center;width:100%}
@media (max-width:980px){.hero .wrap{grid-template-columns:1fr;gap:40px}.hero{min-height:0;padding:64px 0 72px}}
.hero .label{color:#9FD4EA}
.hero h1{color:#fff;font-size:clamp(44px,6.2vw,76px);font-weight:600;letter-spacing:-.03em;line-height:1.02;margin-bottom:24px}
.hero .promise{font-size:clamp(20px,2.2vw,25px);font-weight:500;color:#fff;margin:0 0 14px}
.hero .lede{font-size:18px;color:#DCE8EE;max-width:44ch;margin:0}
.proof{display:flex;flex-wrap:wrap;gap:0;margin-top:36px;padding-top:22px;border-top:1px solid rgba(255,255,255,.25);font-size:15px;font-weight:500;color:#fff}
.proof span{padding-right:22px;margin-right:22px;border-right:1px solid rgba(255,255,255,.3);line-height:1.3;margin-bottom:8px}
.proof span:last-child{border-right:0;margin-right:0;padding-right:0}

.formcard{background:#fff;color:var(--text);border-radius:4px;border-top:4px solid var(--blue);padding:32px 32px 28px;box-shadow:0 24px 60px rgba(0,0,0,.30)}
.formcard h2{font-size:27px;letter-spacing:-.015em;margin-bottom:6px}
.formcard .sub{font-size:15px;color:var(--muted);margin:0 0 22px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fgrid .full{grid-column:1/-1}
@media (max-width:480px){.fgrid{grid-template-columns:1fr}}
label{display:block;font-size:13px;font-weight:600;color:var(--ink);margin-bottom:6px}
.req{color:var(--blue)}
input,select,textarea{width:100%;font:400 16px/1.4 inherit;font-family:inherit;color:var(--ink);border:1px solid #CBD4DA;border-radius:3px;padding:11px 12px;background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--blue)}
textarea{min-height:80px;resize:vertical}
.radios{display:flex;gap:20px;padding-top:6px}
.radios label{display:flex;align-items:center;gap:8px;font-weight:500;margin:0}
.radios input{width:auto}
.formcard .btn{width:100%;margin-top:20px;padding:17px}
.sent{display:none}
.sent h3{margin-bottom:8px}

/* intro */
.intro-head{margin-bottom:40px}
.intro-body{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:48px;align-items:center}
@media (max-width:920px){.intro-body{grid-template-columns:1fr;gap:36px}}
.intro .big{font-size:18px;color:var(--text)}
.intro .film .cap{margin-bottom:0}

/* why it matters: a small band */
.why{background:var(--mist);padding:80px 0}
.why .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:64px;align-items:start}
@media (max-width:920px){.why .wrap{grid-template-columns:1fr;gap:20px}}
.why h2{font-size:clamp(28px,3.4vw,42px)}
.why p{font-size:18px}
.why-points{list-style:none;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.why-points li{border-top:2px solid var(--blue);padding-top:12px;font-weight:600;color:var(--ink);line-height:1.35}
@media (max-width:600px){.why-points{grid-template-columns:1fr;gap:12px}}
.film{position:relative;margin:0}
.film video{width:100%;aspect-ratio:16/9;background:#000;border-radius:3px}
.film .cap{font-size:14px;color:var(--muted);margin-top:12px}

/* roofs with solar: dark band, three photos tell the job */
.solar{background:var(--navy);color:#CFE0E8}
.solar h2{color:#fff}
.solar .label{color:#9FD4EA}
.solar .head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:end;margin-bottom:56px}
@media (max-width:920px){.solar .head{grid-template-columns:1fr;gap:20px}}
.solar .head p{color:#CFE0E8;font-size:18px}
.solar .head p.first{color:#fff;font-size:21px;font-weight:500}
.story{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;counter-reset:st}
.story figure{margin:0;counter-increment:st}
.story img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:3px}
.story figcaption{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.22);color:#fff;font-weight:600;font-size:18px}
.story figcaption::before{content:"0" counter(st);display:block;font-size:13px;letter-spacing:.14em;color:#9FD4EA;margin-bottom:4px}
@media (max-width:760px){.story{grid-template-columns:1fr}.story img{aspect-ratio:4/3}}
.solar .one-line{margin:64px 0 0;padding-top:40px;border-top:1px solid rgba(255,255,255,.22);max-width:none;color:#fff;font-size:clamp(26px,3.4vw,42px);font-weight:600;letter-spacing:-.02em;line-height:1.15;text-wrap:balance}
.solar .film{margin-top:56px;max-width:880px}
.solar .film .cap{color:#9FB8C4}

/* homes and commercial */
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px}
@media (max-width:900px){.split{grid-template-columns:1fr;gap:72px}}
.split article > img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:3px;margin-bottom:32px}
.split article h3{font-size:clamp(26px,2.6vw,32px);letter-spacing:-.02em;margin-bottom:14px}
.split .steps{list-style:none;padding:0;margin:22px 0 22px;counter-reset:sp}
.split .steps li{counter-increment:sp;display:grid;grid-template-columns:44px 1fr;padding:12px 0;border-top:1px solid var(--line)}
.split .steps li::before{content:"0" counter(sp);font-size:13px;font-weight:600;letter-spacing:.1em;color:var(--blue);padding-top:3px}
.split .steps b{color:var(--ink);font-weight:600}
.note{font-size:16px;color:var(--ink);border-left:3px solid var(--blue);padding:4px 0 4px 16px;margin:8px 0 0}
.gafline{display:flex;align-items:center;gap:16px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.gafline img{height:56px;width:auto}
.gafline p{margin:0;font-size:15px;color:var(--muted)}
.gafline b{color:var(--ink);display:block}

/* services, a quiet row */
.services{background:var(--mist);padding:64px 0}
.services ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 36px}
.services li{padding:14px 0;border-bottom:1px solid var(--line);font-weight:600;color:var(--ink)}
@media (max-width:980px){.services ul{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.services ul{grid-template-columns:1fr}}

/* recent work */
.gallery{display:grid;grid-template-columns:1.4fr 1fr;grid-template-rows:auto auto;gap:16px;margin-top:44px}
.gallery figure{margin:0;position:relative}
.gallery figure:first-child{grid-row:1/3}
.gallery img{width:100%;height:100%;object-fit:cover;border-radius:3px}
.gallery figure:first-child img{min-height:520px}
.gallery figure:not(:first-child) img{aspect-ratio:16/10}
.gallery figcaption{position:absolute;left:14px;bottom:12px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.6)}
@media (max-width:760px){.gallery{grid-template-columns:1fr}.gallery figure:first-child{grid-row:auto}.gallery figure:first-child img{min-height:0;aspect-ratio:4/3}}

/* FAQ */
.faq .wrap{max-width:900px}
details{border-bottom:1px solid var(--line);padding:22px 0}
details:first-of-type{border-top:1px solid var(--line);margin-top:36px}
summary{cursor:pointer;font-size:19px;font-weight:600;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:20px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--blue);font-weight:400;font-size:26px;line-height:.9}
details[open] summary::after{content:"\2013"}
details p{margin:12px 0 0}

/* closing band */
.closing{background:var(--navy);color:#fff;padding:104px 0}
.closing .wrap{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap}
.closing h2{color:#fff;max-width:16ch}
.closing p{color:#E3EEF3;margin:18px 0 30px;font-size:18px}
.closing .ph{display:inline-block;margin-left:22px;color:#fff;font-weight:600;text-decoration:none}

footer.site{padding:48px 0;background:#fff}
footer.site .wrap{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap}
footer.site .brand{display:flex;align-items:center;gap:24px}
footer.site .brand img{height:62px;width:auto}
footer.site p{margin:0 0 4px;font-size:15px;color:var(--muted)}
footer.site b{color:var(--ink)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}
