/* =========================================================
   SERVICE DETAIL PAGE – builds on style.css + inner.css
   ========================================================= */

/* ---------- hero ---------- */
.ph-svc{height:clamp(560px,86vh,880px)}
.ph-svc h1{font-size:clamp(2.6rem,5.8vw,6.4rem);line-height:.98}
.js .ph-svc h1>span:nth-child(2) b{transition-delay:.1s}
.js .ph-svc h1>span:nth-child(3) b{transition-delay:.2s}
.ph-acts{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.8rem}
.ph-glance{
    flex:0 0 auto;width:min(340px,100%);
    padding:1.4rem;border-radius:20px;
    background:rgba(14,14,14,.45);border:1px solid rgba(255,255,255,.18);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
.pg-t{display:block;font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:1rem}
.ph-glance ul{list-style:none;display:flex;flex-direction:column;gap:1rem}
.ph-glance li{display:flex;gap:.9rem;align-items:flex-start}
.ph-glance li i{flex:0 0 40px;height:40px;border-radius:12px;background:var(--or);display:grid;place-items:center;font-size:.95rem}
.ph-glance li span{font-size:.9rem;color:rgba(255,255,255,.8);line-height:1.35}
.ph-glance li b{display:block;color:#fff;font-weight:600;font-size:.95rem}
.js .ph-acts,.js .ph-glance{opacity:0;transform:translateY(20px);transition:opacity .9s ease .5s,transform .9s var(--ease) .5s}
.js .ph-glance{transition-delay:.65s}
.ready .ph-acts,.ready .ph-glance{opacity:1;transform:none}

/* ---------- sticky on-page nav ---------- */
.subnav{position:sticky;top:0;z-index:40;padding:.7rem 0;transition:top .45s var(--ease)}
html.hdr-show .subnav{top:68px}
.sn-in{
    display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;
    padding:5px;border-radius:99px;
    background:rgba(255,255,255,.82);
    border:1px solid var(--line);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    box-shadow:0 12px 30px -18px rgba(0,0,0,.3);
    width:max-content;max-width:100%;margin-inline:auto;
}
.sn-in::-webkit-scrollbar{display:none}
.sn-in a{flex:0 0 auto;padding:.6rem 1.1rem;border-radius:99px;font-size:.92rem;font-weight:500;color:#444;white-space:nowrap;transition:background .3s,color .3s}
.sn-in a:hover{color:var(--or)}
.sn-in a.on{background:var(--ink);color:#fff}

/* ---------- intro ---------- */
.svc-intro{padding:clamp(3.5rem,6vw,6rem) 0 clamp(3rem,5vw,5rem)}
.si-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2rem,6vw,7rem);align-items:start}
.svc-intro h2{font-size:clamp(2.6rem,4.6vw,5.2rem)}
.si-txt p{font-size:1.08rem;color:#444;line-height:1.7;max-width:64ch}
.si-txt p.big{font-family:var(--serif);font-size:clamp(1.5rem,2.1vw,2.1rem);line-height:1.3;color:var(--ink);margin-bottom:1.4rem}
.si-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.8rem}
.si-chips span{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem 1rem;border-radius:99px;background:var(--mist);font-size:.92rem;font-weight:500}
.si-chips i{color:var(--gr)}
.why-band{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.2vw,20px);margin-top:clamp(3rem,5vw,5rem)}
.wb{
    position:relative;padding:clamp(1.4rem,2vw,2rem);
    border-radius:var(--r-lg);background:var(--grey);
    transition:background .45s,transform .5s var(--ease),color .4s;
}
.wb-ic{width:52px;height:52px;border-radius:14px;background:#fff;color:var(--or);display:grid;place-items:center;font-size:1.15rem;margin-bottom:2rem;transition:background .4s,color .4s,transform .6s var(--ease)}
.wb h3{font-size:1.55rem;margin-bottom:.6rem}
.wb p{font-size:.95rem;color:#555;line-height:1.55;transition:color .4s}
.wb:hover{background:var(--or);color:#fff;transform:translateY(-6px)}
.wb:hover p{color:rgba(255,255,255,.9)}
.wb:hover .wb-ic{background:rgba(255,255,255,.2);color:#fff;transform:rotate(-10deg)}

/* ---------- topographic split ---------- */
.svc-split{padding:clamp(3rem,6vw,6rem) 0}
.ss-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,7rem);align-items:center}
.ss-media{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:1/1;max-width:680px;background:#c8b08a}
.ss-media img{width:100%;height:100%;object-fit:cover}
.contours{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.contours path{fill:none;stroke:#fff;stroke-width:1.6;stroke-dasharray:6 6;opacity:.75;animation:dash 18s linear infinite}
.contours path:nth-child(2){animation-duration:22s;stroke:var(--or-2)}
.contours path:nth-child(4){animation-duration:26s;stroke:var(--or-2)}
@keyframes dash{to{stroke-dashoffset:-240}}
.ss-tag{position:absolute;left:1rem;bottom:1rem;display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1rem;border-radius:99px;background:rgba(14,14,14,.6);color:#fff;font-size:.88rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.ss-tag i{color:var(--or-2)}
.ss-txt h2{margin-bottom:1.2rem}
.ss-txt>p{font-size:1.08rem;color:#444;line-height:1.7;max-width:58ch}
.ss-txt h4{font-family:var(--sans);font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;margin:2rem 0 1rem;color:#333}
.ticks{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.7rem 1.6rem}
.ticks li{position:relative;padding-left:1.9rem;font-size:1rem;line-height:1.4}
.ticks li:before{content:"\f00c";font-family:'Font Awesome 6 Free';font-weight:900;position:absolute;left:0;top:.05em;width:22px;height:22px;border-radius:50%;background:var(--peach-2);color:var(--or);font-size:.62rem;display:grid;place-items:center}

/* ---------- utility detection (dark) ---------- */
.svc-util{
    margin:0 var(--hp);border-radius:28px;
    background:#0e0e0e url(../images/footer-bg.jpg) center/cover;
    color:#fff;padding:clamp(4rem,7vw,7rem) 0;
}
.su-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem 4rem;flex-wrap:wrap}
.su-head p{max-width:52ch;color:#bbb;font-size:1.08rem;line-height:1.65}

.gpr{margin-top:clamp(2rem,4vw,3.5rem);border-radius:22px;overflow:hidden;background:linear-gradient(#2a3b4c,#4a6077 30%,#7c8fa3 29.5%);border:1px solid rgba(255,255,255,.1)}
.gpr svg{display:block;width:100%;height:auto}
.ut text{font-family:var(--sans);font-size:15px;font-weight:600;fill:#fff;opacity:.85}
.ut circle{stroke:rgba(255,255,255,.7);stroke-width:2}
.ut-power circle{fill:#e63946}.ut-tel circle{fill:#f2b705}.ut-water circle{fill:#2b7de9}.ut-drain circle{fill:#8a5a2b}
.hyp path{fill:none;stroke:#fff;stroke-width:2.5;stroke-dasharray:260;stroke-dashoffset:260;opacity:.9}
.cart{animation:cart 10s linear infinite}
@keyframes cart{0%{transform:translateX(110px)}92%{transform:translateX(1150px)}100%{transform:translateX(1150px);opacity:0}}
.beam{stroke:var(--or-2);stroke-width:2;stroke-dasharray:6 6;animation:beam .6s linear infinite}
@keyframes beam{to{stroke-dashoffset:-12}}
/* reflections appear as the cart passes each utility */
.hyp path:nth-child(1){animation:h1 10s linear infinite}
.hyp path:nth-child(2){animation:h2 10s linear infinite}
.hyp path:nth-child(3){animation:h3 10s linear infinite}
.hyp path:nth-child(4){animation:h4 10s linear infinite}
@keyframes h1{0%,13%{stroke-dashoffset:260}20%,94%{stroke-dashoffset:0;opacity:.9}100%{stroke-dashoffset:0;opacity:0}}
@keyframes h2{0%,32%{stroke-dashoffset:260}39%,94%{stroke-dashoffset:0;opacity:.9}100%{stroke-dashoffset:0;opacity:0}}
@keyframes h3{0%,48%{stroke-dashoffset:260}56%,94%{stroke-dashoffset:0;opacity:.9}100%{stroke-dashoffset:0;opacity:0}}
@keyframes h4{0%,69%{stroke-dashoffset:260}78%,94%{stroke-dashoffset:0;opacity:.9}100%{stroke-dashoffset:0;opacity:0}}
.gpr-legend{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;align-items:center;padding:1rem 1.4rem;background:rgba(0,0,0,.35);font-size:.88rem}
.gpr-legend span{display:inline-flex;align-items:center;gap:.5rem}
.gpr-legend i{width:12px;height:12px;border-radius:50%}
.gpr-legend .gl-note{margin-left:auto;color:#aaa;font-size:.82rem}

.tech-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.2vw,20px);margin-top:clamp(1.5rem,3vw,2.5rem)}
.tcard{
    display:flex;flex-direction:column;
    padding:clamp(1.4rem,2vw,1.9rem);border-radius:var(--r-lg);
    background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
    transition:background .4s,border-color .4s,transform .5s var(--ease);
}
.tc-ic{width:52px;height:52px;border-radius:14px;background:var(--or);display:grid;place-items:center;font-size:1.15rem;margin-bottom:1.6rem;transition:transform .6s var(--ease)}
.tcard h3{font-size:1.45rem;margin-bottom:.7rem}
.tcard p{font-size:.94rem;color:#bbb;line-height:1.6;margin-bottom:1.2rem}
.tc-best{margin-top:auto;font-size:.82rem;color:var(--or-2);padding-top:.9rem;border-top:1px solid rgba(255,255,255,.12)}
.tcard:hover{background:rgba(255,255,255,.1);border-color:rgba(240,122,69,.6);transform:translateY(-6px)}
.tcard:hover .tc-ic{transform:rotate(-10deg) scale(1.05)}

/* ---------- quality levels ---------- */
.levels-sec{padding:clamp(4rem,7vw,7rem) 0}
.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.2vw,20px);margin-top:clamp(2rem,4vw,3.5rem);align-items:end}
.lvl{
    position:relative;display:flex;flex-direction:column;
    padding:clamp(1.4rem,2vw,1.9rem);border-radius:var(--r-lg);
    background:var(--grey);min-height:360px;
    transition:background .45s,transform .5s var(--ease),color .4s;
}
.lv-bar{position:absolute;right:1.4rem;top:1.4rem;bottom:1.4rem;width:8px;border-radius:8px;background:rgba(0,0,0,.08);overflow:hidden;display:flex;align-items:flex-end}
.lv-bar span{display:block;width:100%;height:var(--h);background:linear-gradient(0deg,var(--or),var(--or-2));border-radius:8px;transition:height 1.2s var(--ease-io) .2s}
.js .lvl.rv:not(.in) .lv-bar span{height:0}
.lv-code{font-family:var(--serif);font-weight:normal;font-size:clamp(2.6rem,3.6vw,3.8rem);line-height:1;color:var(--or)}
.lvl h3{font-size:1.5rem;margin:auto 0 .6rem;padding:2.4rem 1.4rem 0 0}
.lvl p{font-size:.94rem;color:#555;line-height:1.55;padding-right:1.4rem;transition:color .4s}
.lvl:nth-child(4){background:var(--ink);color:#fff}
.lvl:nth-child(4) p{color:#bbb}
.lvl:nth-child(4) .lv-bar{background:rgba(255,255,255,.12)}
.lvl:hover{transform:translateY(-6px);background:var(--peach)}
.lvl:nth-child(4):hover{background:var(--or)}
.lvl:nth-child(4):hover .lv-code{color:#fff}
.lvl:nth-child(4):hover p{color:rgba(255,255,255,.9)}
.lvl:nth-child(1){min-height:300px}
.lvl:nth-child(2){min-height:330px}
.lvl:nth-child(3){min-height:360px}
.lvl:nth-child(4){min-height:390px}

/* ---------- deliverables ---------- */
.deliv-sec{padding:0 0 clamp(4rem,7vw,7rem)}
.deliv{
    display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:clamp(2rem,5vw,6rem);
    background:var(--ink) url(../images/footer-bg.jpg) center/cover;color:#fff;
    border-radius:28px;padding:clamp(1.6rem,4vw,4.5rem);
}
.dv-h p{color:#bbb;font-size:1.08rem;margin:1rem 0 1.8rem;max-width:36ch}
.fmt{display:flex;flex-wrap:wrap;gap:.5rem}
.fmt span{padding:.45rem .9rem;border-radius:8px;border:1px solid rgba(255,255,255,.22);font-size:.82rem;font-weight:600;letter-spacing:.06em;transition:background .3s,border-color .3s}
.fmt span:hover{background:var(--or);border-color:var(--or)}
.dv-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(1.4rem,3vw,3rem);counter-reset:dv}
.dv-list li{display:flex;gap:1.1rem;padding:1.4rem 0;border-bottom:1px solid rgba(255,255,255,.12);counter-increment:dv}
.dv-list li>i{flex:0 0 48px;height:48px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center;color:var(--or-2);transition:background .3s,color .3s,transform .5s var(--ease)}
.dv-list li:hover>i{background:var(--or);color:#fff;transform:rotate(-10deg)}
.dv-list h3{font-size:1.35rem;margin-bottom:.35rem}
.dv-list h3:before{content:"0" counter(dv) " ";font-family:var(--sans);font-size:.75rem;color:var(--or-2);vertical-align:middle;margin-right:.3rem;letter-spacing:.1em}
.dv-list p{font-size:.93rem;color:#aaa;line-height:1.5}

/* ---------- applications ---------- */
.apps-sec{padding:0 0 clamp(4rem,7vw,7rem)}
.apps{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.6fr);gap:clamp(2rem,5vw,6rem);align-items:start}
.app-chips{display:flex;flex-wrap:wrap;gap:.7rem}
.app-chips span{
    display:inline-flex;align-items:center;gap:.7rem;
    padding:.95rem 1.4rem;border-radius:99px;
    border:1px solid var(--line);font-size:1.02rem;font-weight:500;
    transition:background .35s,color .35s,border-color .35s,transform .4s var(--ease);
}
.app-chips i{color:var(--or);transition:color .35s}
.app-chips span:hover{background:var(--or);color:#fff;border-color:var(--or);transform:translateY(-3px)}
.app-chips span:hover i{color:#fff}

/* ---------- FAQ ---------- */
.faq-sec{padding:0 0 clamp(4rem,7vw,7rem)}
.faq{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:clamp(2rem,5vw,6rem);align-items:start}
.faq-h{position:sticky;top:140px}
.faq-h p{color:#555;font-size:1.08rem;margin:1rem 0 1.6rem}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list details:first-child{border-top:1px solid var(--line)}
.faq-list summary{
    list-style:none;cursor:pointer;
    display:flex;justify-content:space-between;align-items:center;gap:1.4rem;
    padding:1.5rem 0;
    font-family:var(--serif);font-size:clamp(1.25rem,1.7vw,1.6rem);line-height:1.25;
    transition:color .3s;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:after{
    content:"+";flex:0 0 44px;height:44px;border-radius:50%;
    display:grid;place-items:center;
    font-family:var(--sans);font-size:1.4rem;font-weight:300;
    border:1px solid rgba(0,0,0,.18);
    transition:transform .4s var(--ease),background .3s,color .3s,border-color .3s;
}
.faq-list summary:hover{color:var(--or)}
.faq-list details[open] summary:after{transform:rotate(45deg);background:var(--or);border-color:var(--or);color:#fff}
.faq-list details p{padding:0 4rem 1.6rem 0;color:#555;line-height:1.7;font-size:1.02rem;animation:faqIn .45s var(--ease)}
@keyframes faqIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- related ---------- */
.rel-sec{padding:0 0 clamp(4rem,7vw,7rem)}
.rel{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.4vw,24px);margin-top:clamp(2rem,4vw,3rem)}
.rel .xcard{height:clamp(380px,30vw,500px)}
.rel .xl{opacity:1;transform:none}

/* ---------- responsive ---------- */
@media(max-width:1180px){
    .si-grid,.ss-grid,.deliv,.apps,.faq{grid-template-columns:1fr}
    .why-band,.tech-grid,.levels{grid-template-columns:1fr 1fr}
    .levels{align-items:stretch}
    .lvl,.lvl:nth-child(n){min-height:0}
    .faq-h{position:static}
    .ss-media{max-width:none;aspect-ratio:16/11}
    .ph-glance{display:none}
}
@media(max-width:900px){
    .rel{grid-template-columns:1fr 1fr}
    .rel .xcard:last-child{display:none}
}
@media(max-width:640px){
    html.hdr-show .subnav{top:62px}
    .ph-svc{min-height:600px}
    .ph-svc h1{font-size:clamp(2.3rem,10.5vw,3.4rem)}
    .why-band,.tech-grid,.levels,.dv-list,.ticks,.rel{grid-template-columns:1fr}
    .rel .xcard:last-child{display:flex}
    .gpr-legend .gl-note{margin-left:0}
    .faq-list details p{padding-right:0}
    .svc-util,.deliv{border-radius:20px}
}

/* GPR illustration stays legible on phones: scroll sideways */
@media(max-width:760px){
    .gpr{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .gpr svg{min-width:760px}
    .gpr-legend{min-width:0;position:sticky;left:0}
}
