/* elatiV clean-up (8 Nov 2026): menu always visible at the top, tighter sections, less scrolling.
   Loaded last on every page so it can override older styles. */

/* ---------- Header: always pinned to the top, on every page ---------- */
.hd{position:sticky!important;top:0!important;z-index:70!important;background:rgba(255,255,255,.97)!important;transition:box-shadow .25s}
.hd.scrolled{box-shadow:0 10px 30px -22px rgba(46,42,37,.45)}
.hd .wrap{transition:min-height .25s}
.hd.scrolled .wrap{min-height:62px}

/* Phones: logo + Menu on the first row, the main menu always showing on a second row */
@media (max-width:640px){
  .hd .wrap{flex-wrap:wrap;row-gap:0;min-height:58px!important;padding-top:4px}
  .hd .wm img{height:29px!important}
  .hd .mm{min-height:40px;padding:0 16px}
  html .hd .nav{display:flex!important;order:5;flex:0 0 100%;width:100%;margin:0!important;padding:0!important;justify-content:space-between;gap:0!important;border-top:1px solid var(--ln2,#F0E8D8);overflow:visible}
  html .hd .nav>a,html .hd .nav .dd-t{min-height:44px;display:inline-flex;align-items:center;padding:0 6px!important;font:700 .9rem/1 var(--bd,Manrope,system-ui,sans-serif)!important;letter-spacing:0!important;text-transform:none!important;border-radius:0!important;background:none!important;color:var(--ink,#2E2A25)}
  html .hd .nav>a:first-child,html .hd .nav>.dd:first-child .dd-t{padding-left:0!important}
  html .hd .nav>a:last-child{padding-right:0!important}
  html .hd .nav a[aria-current="page"],html .hd .nav .dd.open>.dd-t{color:var(--gdt,#8C6A2B)!important;box-shadow:inset 0 -2px 0 var(--gd,#C9A257)}
  html .hd .nav .dd-p{display:none!important}
  .hd .nav .dd-c{margin-left:6px;width:6px;height:6px}
  .sheet{max-height:calc(100vh - 110px)}
}
@media (max-width:360px){html .hd .nav>a,html .hd .nav .dd-t{font-size:.82rem!important;padding:0 4px!important}}

/* Anchors land below the pinned header */
html{scroll-padding-top:120px}
@media (min-width:641px){html{scroll-padding-top:90px}}

/* ---------- Tighter spacing everywhere ---------- */
.sec{padding:clamp(48px,6vw,84px) 0}
.head{margin-bottom:clamp(22px,3vw,36px)}
.pg-hero{padding:clamp(28px,4vw,56px) 0 clamp(36px,5vw,64px)}
@media (max-width:760px){
  .sec{padding:44px 0}
  .head{gap:8px}
  .head p{font-size:1rem}
  .hero-pic,.pg-hero .pic,.svc-pic{aspect-ratio:16/9!important}
  .page-hero .pic,.ind-hero .pic{aspect-ratio:16/9}
}

/* ---------- Steps: short and scannable (no tall photo cards on phones) ---------- */
@media (max-width:640px){
  .steps.photo{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .steps.photo li{display:block!important}
  .steps.photo figure{aspect-ratio:auto!important;height:auto!important;min-height:0!important;background:none!important;overflow:visible!important}
  .steps.photo figure img,.steps.photo figure::after{display:none!important}
  .steps.photo .n{position:static!important;display:block;padding:14px 14px 0;font-size:1.7rem!important;color:var(--gd,#C9A257)!important;text-shadow:none!important}
  .steps.photo .tx{padding:6px 14px 16px!important;gap:4px!important}
  .steps.photo .tx::before{display:none}
  .steps.photo .tx em{font-size:.6rem}
  .steps.photo .tx span{font-size:.9rem;line-height:1.45}
  .steps:not(.photo){gap:20px}
}

/* ---------- Expandable rows: clear "tap for more" affordance ---------- */
details>summary{cursor:pointer}
details.more{margin-top:6px;border-top:1px solid var(--ln2,#F0E8D8)}
details.more>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 0 4px;font:700 .95rem/1.3 var(--bd,Manrope,system-ui,sans-serif);color:var(--gdt,#8C6A2B)}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::after{content:"+";display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gdl,#F6EBD3);color:var(--gdt,#8C6A2B);font-size:1.1rem;line-height:1}
details.more[open]>summary::after{content:"\2212"}
details.more ul{list-style:none;margin:0;padding:4px 0 0;display:grid;gap:0}
details.more ul a{display:flex;min-height:40px;align-items:center;color:var(--tx,#45403A);text-decoration:none;font-weight:600}
details.more ul a:hover{color:var(--gdt,#8C6A2B)}

/* ---------- Phones: cards become short rows, detail one tap away ---------- */
@media (max-width:640px){
  .card{padding:16px 18px}
  .cards3,.two,.svc-grid{gap:10px}
  .card h3{font-size:1.15rem}
  /* service link cards: one tidy list */
  .svc-grid{gap:0!important;background:#fff;border:1px solid var(--ln);border-radius:var(--r);overflow:hidden}
  .svc-card{position:relative;gap:2px!important;padding:14px 44px 14px 16px!important;border:0!important;border-bottom:1px solid var(--ln2)!important;border-radius:0!important;transform:none!important}
  .svc-card:last-child{border-bottom:0!important}
  .svc-card h3{font-size:1.1rem!important}
  .svc-card p{font-size:.92rem;color:var(--mu)}
  .svc-card .go{display:none!important}
  .svc-card::after{content:"";position:absolute;right:20px;top:50%;width:8px;height:8px;border-right:2px solid var(--gd);border-bottom:2px solid var(--gd);transform:translateY(-50%) rotate(-45deg)}
  /* service lists on the Services page */
  .paths{gap:0!important;background:#fff;border:1px solid var(--ln);border-radius:var(--r);overflow:hidden}
  .path{position:relative;gap:2px!important;padding:14px 44px 14px 16px!important;border:0!important;border-bottom:1px solid var(--ln2)!important;border-radius:0!important;transform:none!important;box-shadow:none!important}
  .path:last-child{border-bottom:0!important}
  .path b{font-size:1.1rem!important}.path span:not(.pk){font-size:.92rem!important}
  .path i{display:none!important}
  .path::after{content:"";position:absolute;right:20px;top:50%;width:8px;height:8px;border-right:2px solid var(--gd);border-bottom:2px solid var(--gd);transform:translateY(-50%) rotate(-45deg)}
  /* numbered steps without photos: smaller numbers, tighter */
  .steps:not(.photo){gap:14px!important}
  .steps:not(.photo) li{padding-top:12px!important}
  .steps:not(.photo) li::before{font-size:1.5rem!important;margin-bottom:2px!important}
  .steps:not(.photo) b{font-size:1.12rem!important}
  .steps:not(.photo) span{font-size:.93rem}
  /* homepage outcome cards: picture beside the words */
  .oc-c{display:grid!important;grid-template-columns:104px 1fr}
  .oc-img{aspect-ratio:auto!important;height:100%}
  .oc-b{padding:14px 16px 12px!important;gap:4px!important}
  .oc-b p{font-size:.92rem}
  .oc-go{padding-top:4px!important;font-size:.9rem!important}
  /* plain info cards fold to their headings */
  .fold{gap:0!important;background:#fff;border:1px solid var(--ln);border-radius:var(--r);overflow:hidden}
  .fold>.card{border:0!important;border-bottom:1px solid var(--ln2)!important;border-radius:0!important;box-shadow:none!important;padding:0!important;background:none!important}
  .fold>.card:last-child{border-bottom:0!important}
  .fold>.card>h3{margin:0;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:12px 16px;cursor:pointer}
  .fold>.card>h3::after{content:"+";flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gdl);color:var(--gdt);font:700 1.1rem/1 var(--bd)}
  .fold>.card.open>h3::after{content:"\2212"}
  .fold>.card>:not(h3){display:none}
  .fold>.card.open>:not(h3){display:block;padding:0 16px;margin:0 0 14px}
  /* footer: links fold under each heading (the menu is always at the top) */
  .ft-cols.folded{grid-template-columns:1fr!important;gap:0!important}
  .ft-cols.folded>div{border-bottom:1px solid var(--ln)}
  .ft-cols.folded>div>b{display:flex!important;justify-content:space-between;align-items:center;min-height:48px;margin:0!important;cursor:pointer}
  .ft-cols.folded>div>b::after{content:"+";font-size:1.1rem;color:var(--gdt)}
  .ft-cols.folded>div.open>b::after{content:"\2212"}
  .ft-cols.folded>div>a{display:none}
  .ft-cols.folded>div.open>a{display:block;padding:6px 0}
  .ft-cols.folded>div.open{padding-bottom:10px}
}

/* ---------- Older pages (industry pages, about, contact): match the rest of the site ---------- */
.btn{text-transform:none!important;letter-spacing:0!important;font-weight:700!important;font-size:.95rem!important;font-family:var(--bd)!important}
.mm,.mbar a{text-transform:none!important;letter-spacing:0!important;font-family:var(--bd)!important;font-weight:700!important;font-size:.92rem!important}
.prices .star,.star{background:var(--gdl)!important;border-color:var(--gd)!important;color:var(--ink)!important}
.prices .star b,.prices .star span{color:var(--ink)!important}.prices .star .p{color:var(--gdt)!important}
@media (max-width:640px){
  .moments{gap:0!important;background:#fff;border:1px solid var(--ln);border-radius:var(--r);overflow:hidden}
  .moments>div{border:0!important;border-bottom:1px solid var(--ln2)!important;border-radius:0!important;box-shadow:none!important;padding:0!important;background:none!important}
  .moments>div:last-child{border-bottom:0!important}
  .moments>div>b{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:12px 16px;cursor:pointer;font:600 1.12rem/1.25 var(--hd)}
  .moments>div>b::after{content:"+";flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gdl);color:var(--gdt);font:700 1.1rem/1 var(--bd)}
  .moments>div.open>b::after{content:"\2212"}
  .moments>div>span{display:none!important}
  .moments>div.open>span{display:block!important;padding:0 16px 14px}
  .inds{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .inds li{padding:10px 12px!important}.inds li b{font-size:1rem!important}.inds li span{font-size:.8rem!important}
  .other{display:flex!important;flex-wrap:wrap;gap:8px!important}
  .other li{flex:0 0 auto}
  .other li a{display:inline-flex!important;min-height:40px;align-items:center;padding:0 14px!important;border:1px solid var(--ln);border-radius:999px;background:#fff;font-size:.88rem!important}
  .other li a::after{content:none!important}
  .mbar{display:grid!important;grid-template-columns:1fr 1.6fr!important;gap:8px!important}.mbar a{width:auto!important}
  .prices{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.prices>div{padding:12px 10px!important}.prices .p{font-size:1.25rem!important}.prices b{font-size:1rem!important}.prices span:not(.p){font-size:.78rem!important}
  .leaks li,.points li{padding-top:10px!important;padding-bottom:10px!important}
}

@media (prefers-reduced-motion:reduce){.hd,.hd .wrap{transition:none}}
