/* Shark Heavy Construction: video backdrop, grade gauge, hero slideshow, black gallery pages, banners and tile clips.
   Loaded after style.css. Every rule is scoped to a body class set in includes/header.php:
     shc-bd    pages that get the scrolling job-site video backdrop + grade gauge (home, about, contact, endorsements, start-to-finish)
     shc-dark  plain black pages (gallery + categories, favorites, customer resources)
   Nothing here changes the Demolition page or the stand-alone customer login page. */

/* ------------------------------------------------------------------ video backdrop pages */
body.shc-bd{background:#C5CBD3;}
body.shc-bd .fx-plate{background:none!important;}
body.shc-bd .fx-sheen{opacity:.15;}
body.shc-bd canvas.fx-sparks{display:none!important;}               /* the blue spark trail below replaces it on light backdrops */
body.shc-bd .page-hero{clip-path:polygon(0 0,100% 0,100% calc(100% - 30px),0 100%);padding-bottom:92px;}
body.shc-bd .eyebrow-bar{position:relative;z-index:1;}               /* plain blocks would otherwise be painted over by the fixed backdrop */

#shc-vbg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#BFC6CF;}
#shc-vbg video{position:absolute;left:0;top:0;width:2px;height:2px;opacity:.01;pointer-events:none;}
#shc-vcv{position:absolute;inset:0;width:100%;height:100%;display:block;}
#shc-vbg .wash{position:absolute;inset:0;background:linear-gradient(rgba(236,238,242,.36),rgba(236,238,242,.22) 50%,rgba(236,238,242,.36));}
#shc-sparks,#shc-dust{position:fixed;inset:0;pointer-events:none;z-index:0;}

/* ------------------------------------------------------------------ grade gauge: cut = red, grade = green, fill = blue */
html[data-shc-zone="c"]{--zc:#E5372B;--zt:#FF6B5E;}
html[data-shc-zone="g"]{--zc:#1FB34F;--zt:#4BE381;}
html[data-shc-zone="f"]{--zc:#2F6BFF;--zt:#6FA0FF;}
#shc-ruler{position:fixed;left:0;top:0;bottom:0;width:50px;z-index:0;pointer-events:none;overflow:hidden;background:linear-gradient(90deg,rgba(255,255,255,.34),rgba(255,255,255,0));}
#shc-ruler .tick{position:absolute;left:0;background:#1F2630;}
#shc-ruler .tick.maj{width:32px;height:4px;margin-top:-2px;}
#shc-ruler .tick.five{width:42px;height:5px;margin-top:-2.5px;}
#shc-ruler .tick.min{width:15px;height:2px;margin-top:-1px;opacity:.8;}
#shc-ruler .lab{position:absolute;left:5px;margin-top:-17px;font:900 12px 'Poppins','Inter',sans-serif;color:#1F2630;white-space:nowrap;letter-spacing:.04em;text-shadow:0 0 4px rgba(255,255,255,.85),0 0 2px rgba(255,255,255,.9);}
#shc-ruler .tick.zc{background:#E5372B;} #shc-ruler .tick.zg{background:#1FB34F;} #shc-ruler .tick.zf{background:#2F6BFF;}
#shc-ruler .lab.zc{color:#B3211A;} #shc-ruler .lab.zg{color:#0E7F35;font-size:13px;} #shc-ruler .lab.zf{color:#1747C9;}
#shc-ruler .tick.zg.five,#shc-ruler .tick.zg.maj{width:46px;height:6px;margin-top:-3px;}
#shc-zone{position:fixed;left:44px;top:0;bottom:0;width:7px;z-index:0;pointer-events:none;}
/* the stake: a fixed pointer at the middle of the screen in the colour of the zone you are in */
#shc-mid{position:fixed;left:0;top:50%;z-index:2;pointer-events:none;height:0;width:64px;border-top:4px solid var(--zc,#1FB34F);margin-top:-2px;}
#shc-mid::after{content:"";position:absolute;right:-13px;top:-12px;border-left:14px solid var(--zc,#1FB34F);border-top:10px solid transparent;border-bottom:10px solid transparent;}
#shc-readout{position:fixed;top:50%;left:2px;margin-top:-52px;width:46px;box-sizing:border-box;z-index:3;padding:5px 0 4px;text-align:center;font:900 10px/1.3 'Inter',sans-serif;letter-spacing:.07em;background:#040404;color:var(--zt,#FFC800);border-bottom:4px solid var(--zc,#FFC800);border-radius:6px 6px 0 0;pointer-events:none;}
@media(max-width:640px){#shc-ruler{width:30px;}#shc-ruler .tick.maj{width:22px;}#shc-ruler .tick.five{width:26px;}#shc-ruler .tick.min{width:10px;}#shc-ruler .lab{display:none;}#shc-zone{left:25px;width:5px;}#shc-mid{width:40px;}#shc-readout{left:0;width:34px;font-size:8.5px;margin-top:-44px;padding:4px 0 3px;}}

/* ------------------------------------------------------------------ plain black pages (the same black as the Demolition page) */
html:has(body.shc-dark){background:#0A0A0A;}
body.shc-dark{background:#0A0A0A;--bg:#0A0A0A;}
body.shc-dark .fx-plate,body.shc-dark .fx-sheen{display:none!important;}
body.shc-dark .cat-view h2{color:#F2F0E8;}
body.shc-dark a.cat-back{color:#5B90FF;}
body.shc-dark .cat-view .cat-note,body.shc-dark .cat-empty-msg{color:#C7C3B8;}
body.shc-dark .res-group h2{color:#F2F0E8;}
body.shc-dark .res-logout a{color:#C7C3B8;}
/* Favorites: captions were full desktop size (about 25px) on phone-sized tiles, so they scale with the tile on small screens */
@media(max-width:900px){body.page-favorites .favorites-grid-wrap .gallery-item .cap{font-size:clamp(.66rem,3.1vw,1.56rem);padding:clamp(7px,2.1vw,20px) clamp(8px,2.4vw,24px);line-height:1.22;}}

/* ------------------------------------------------------------------ category banners and service tile clips */
.page-hero.shc-hero{position:relative;overflow:hidden;padding:84px 0 96px!important;}
.page-hero.shc-hero>.wrap{position:relative;z-index:2;}
.shc-herovid{position:absolute;inset:0;z-index:0;background:#000;}
.shc-herovid video{width:100%;height:100%;object-fit:cover;display:block;transform:translateZ(0);}
.shc-herovid .shade{position:absolute;inset:0;background:linear-gradient(rgba(4,4,4,.60),rgba(4,4,4,.40) 45%,rgba(10,10,10,.97));}
.page-hero.shc-hero h1{text-shadow:0 2px 14px rgba(0,0,0,.6);}
@media(max-width:640px){.page-hero.shc-hero{padding:60px 0 72px!important;}}
.service-tile.shc-tile{overflow:hidden;}
.shc-tilevid{position:relative;margin:-34px -26px 22px;aspect-ratio:4/3;background:#0A0A0A;overflow:hidden;}
.shc-tilevid video{width:100%;height:100%;object-fit:cover;display:block;transform:translateZ(0);}
.shc-tilevid::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(4,4,4,.05) 40%,rgba(4,4,4,.45));pointer-events:none;}

/* ------------------------------------------------------------------ home hero: video slideshow (the photo slideshow stays as the fallback) */
.shc-hv{position:absolute;inset:0;z-index:0;display:none;background:#040404;overflow:hidden;}
.shc-hv-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.3s ease;}
.shc-hv-slide.on{opacity:1;}
.shc-hv-slide video{width:100%;height:100%;object-fit:cover;display:block;transform:translateZ(0);}
html.shc-hvon .shc-hv{display:block;}
html.shc-hvon .hero-photos,html.shc-hvon .hero-dots{display:none!important;}
html.shc-hvon .hero-overlay{background:linear-gradient(180deg,rgba(4,4,4,.55) 0%,rgba(4,4,4,.30) 38%,rgba(4,4,4,.80) 100%)!important;}
html.shc-hvon .hero{clip-path:polygon(0 0,100% 0,100% calc(100% - 56px),0 100%);padding-bottom:96px;min-height:clamp(560px,calc(100vh - 80px),820px);}
@media(min-width:900px){html.shc-hvon .hero{min-height:clamp(600px,calc(100vh - 64px),900px);}}
@media(max-width:640px){html.shc-hvon .hero{clip-path:polygon(0 0,100% 0,100% calc(100% - 28px),0 100%);padding-bottom:64px;min-height:clamp(520px,calc(100vh - 70px),700px);}}
/* upright clips: full-bleed on a phone held upright; on a wide screen, shown whole over a blurred copy of themselves */
.shc-hv-slide video.bg{display:none;}
@media(min-aspect-ratio:1/1){
  .shc-hv-slide.port video.bg{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(34px) brightness(.55) saturate(1.15);transform:scale(1.3);}
  .shc-hv-slide.port video.main{position:relative;object-fit:contain;object-position:50% 50%!important;}
}
.shc-hv-prog{display:none;position:absolute;right:clamp(40px,5.5vw,112px);bottom:110px;z-index:3;gap:26px;align-items:flex-end;}
.shc-hv-prog button{all:unset;cursor:pointer;display:block;width:auto;min-width:76px;}
.shc-hv-prog .lab{display:block;color:#fff;opacity:.7;font:700 .68rem 'Inter',sans-serif;letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px;white-space:nowrap;}
.shc-hv-prog button.on .lab{opacity:1;color:#FFC800;}
.shc-hv-prog .bar{display:block;height:3px;background:rgba(255,255,255,.28);position:relative;overflow:hidden;border-radius:2px;}
.shc-hv-prog .bar i{position:absolute;inset:0;background:#FFC800;transform:scaleX(0);transform-origin:left;}
.shc-hv-prog button.on .bar i{animation:shcfill linear forwards;}
.shc-hv-prog button.done .bar i{transform:scaleX(1);}
@keyframes shcfill{to{transform:scaleX(1);}}
@media(prefers-reduced-motion:reduce){.shc-hv-slide{transition:none;}}

/* ------------------------------------------------------------------ home page, desktop only (1100px and wider): full width, left aligned, room to breathe */
@media (min-width:1100px){
  body.page-home .wrap{max-width:1680px;padding-left:clamp(40px,5.5vw,112px);padding-right:clamp(40px,5.5vw,112px);}
  body.page-home .hero .wrap{align-items:flex-start;text-align:left;}
  body.page-home .hero-lower-group{align-items:flex-start;max-width:660px;}
  body.page-home .hero h1{margin-left:0;margin-right:0;text-align:left;max-width:660px;font-size:clamp(3.1rem,4.7vw,5.3rem);line-height:1.02;letter-spacing:-.01em;}
  body.page-home .hero p.lede{margin-left:0;margin-right:0;text-align:left;max-width:520px;font-size:1.25rem;line-height:1.6;}
  body.page-home .hero .btn-row{justify-content:flex-start;}
  html.shc-hvon body.page-home .hero-overlay{background:
    linear-gradient(90deg,rgba(4,4,4,.82) 0%,rgba(4,4,4,.55) 34%,rgba(4,4,4,.12) 70%,rgba(4,4,4,.05) 100%),
    linear-gradient(180deg,rgba(4,4,4,.45) 0%,rgba(4,4,4,0) 30%,rgba(4,4,4,.55) 100%)!important;}
  html.shc-hvon .shc-hv-slide.port video.main{object-position:78% 50%!important;}
  .shc-hv-prog{display:flex;}
  body.page-home .eyebrow-bar{padding:24px 0;}
  body.page-home .eyebrow-bar .wrap{text-align:left!important;}
  body.page-home .eyebrow.eyebrow-lg{font-size:2.35rem;letter-spacing:.05em;}
  body.page-home .section-head{max-width:1040px;margin-left:0;margin-right:0;text-align:left;}
  body.page-home .section-head-card{padding:36px 44px;}
  body.page-home .btn-row[style*="center"]{justify-content:flex-start!important;}
  body.page-home .tile-grid{grid-template-columns:repeat(4,1fr);gap:26px;}
  body.page-home .tile .tile-label{padding:26px;}
  body.page-home .tile .tile-label h3{font-size:1.3rem;}
  body.page-home .grid-3{gap:36px;}
  body.page-home .card{padding:40px 36px;text-align:left;}
  body.page-home .testimonial{padding:96px 0;}
  body.page-home .testimonial .wrap{display:grid;grid-template-columns:minmax(300px,4fr) 8fr;column-gap:96px;align-items:center;}
  body.page-home .testimonial .section-head{grid-column:1;grid-row:1 / span 3;margin:0;max-width:none;}
  body.page-home .testimonial .review-carousel{grid-column:2;max-width:none;margin:0;text-align:left;}
  body.page-home .testimonial .review-carousel blockquote{font-size:clamp(1.4rem,2.1vw,2.1rem);line-height:1.45;}
  body.page-home .testimonial .btn-row{grid-column:2;justify-content:flex-start!important;margin-top:40px;}
  body.page-home .stats{margin-left:clamp(40px,5.5vw,112px);margin-right:clamp(40px,5.5vw,112px);}
  body.page-home .wrap:has(.contact-form){display:grid;grid-template-columns:5fr 6fr;column-gap:110px;align-items:start;}
  body.page-home .wrap:has(.contact-form) .section-head{margin:0;max-width:none;position:sticky;top:110px;}
  body.page-home .wrap:has(.contact-form) > div:not(.section-head){max-width:none!important;margin:0!important;}
}

/* ------------------------------------------------------------------ county links in the blue location bar, and the Project Locations gallery tile */
.eyebrow-bar .eyebrow a.shc-county{color:inherit;text-decoration:none;border-bottom:2px solid rgba(255,255,255,.35);transition:border-color .2s,color .2s;}
.eyebrow-bar .eyebrow a.shc-county:hover{border-color:#FFC800;color:#FFC800;}
.eyebrow-bar .eyebrow a.shc-mapjump{display:inline-block;margin-left:22px;font:800 .8rem 'Inter',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#05070d;background:#FFC800;border-radius:999px;padding:9px 16px;text-decoration:none;vertical-align:middle;}
.eyebrow-bar .eyebrow a.shc-mapjump:hover{background:#fff;}
@media(max-width:640px){.eyebrow-bar .eyebrow a.shc-mapjump{display:block;margin:12px auto 0;width:max-content;font-size:.66rem;padding:7px 12px;}}
.shc-loc-tile{position:relative;overflow:hidden;background:#05070d;border:1px solid rgba(91,144,255,.45);}
.shc-loc-dots{position:absolute;inset:0;background:
  radial-gradient(circle at 24% 62%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 38% 48%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 47% 58%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 56% 40%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 66% 52%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 74% 30%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  radial-gradient(circle at 30% 30%,#FFC800 0 3px,rgba(255,200,0,.35) 4px 9px,transparent 10px),
  linear-gradient(115deg,transparent 46%,rgba(91,144,255,.55) 47% 48%,transparent 49%),
  linear-gradient(160deg,transparent 58%,rgba(91,144,255,.4) 59% 60%,transparent 61%),
  radial-gradient(ellipse at 20% 80%,rgba(3,57,213,.55),transparent 60%),
  #070c18;}
.shc-loc-tile .cat-title{z-index:2;}

/* video layers never take mouse/touch input, so scrolling over them always scrolls the page */
.shc-hv,.shc-hv *,.shc-herovid,.shc-herovid *,.shc-tilevid,.shc-tilevid *,#shc-vbg,#shc-vbg *{pointer-events:none!important;}

/* ------------------------------------------------------------------ service-area pages (service-area.php + the four county pages) */
.sa-hero{text-align:left;}
.sa-hero h1{font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.08;max-width:860px;margin:10px 0 14px;}
.sa-hero p{max-width:720px;font-size:1.1rem;line-height:1.6;}
.sa-crumbs{font:600 .82rem 'Inter',sans-serif;letter-spacing:.04em;color:#C7C3B8;}
.sa-crumbs a{color:#5B90FF;text-decoration:none;}.sa-crumbs a:hover{text-decoration:underline;}
.sa-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px;}
.sa-section{background:#0A0A0A;color:#F2F0E8;padding:72px 0;position:relative;z-index:1;}
.sa-alt{background:#0F1424;}
.sa-eyebrow{display:block;font:800 .74rem 'Inter',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#5B90FF;margin-bottom:10px;}
.sa-section h2{color:#F2F0E8;font-size:clamp(1.7rem,3.6vw,2.5rem);line-height:1.1;margin:0 0 18px;}
.sa-section h3{color:#fff;}
.sa-p{color:#C7C3B8;line-height:1.75;max-width:760px;margin:0 0 14px;}
.sa-p a,.sa-note a,.sa-section a:not(.btn){color:#8fb6ff;}
.sa-grid2{display:grid;grid-template-columns:3fr 2fr;gap:56px;align-items:start;}
.sa-stats{display:grid;gap:14px;}
.sa-stat{background:rgba(10,53,184,.18);border:1px solid rgba(10,53,184,.8);border-radius:14px;padding:20px 22px;}
.sa-stat b{display:block;font:800 clamp(1.5rem,3vw,2.1rem)/1.1 'Poppins',sans-serif;color:#fff;}
.sa-stat span{color:#C7C3B8;font-size:.92rem;}
.sa-cities{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:8px;}
.sa-city{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:20px 22px;}
.sa-city h3{font-size:1.15rem;margin:0 0 10px;}
.sa-zips{display:flex;gap:8px;flex-wrap:wrap;margin:0;}
.sa-zips span{font:700 .82rem 'Inter',sans-serif;color:#fff;background:#0A35B8;border:1px solid #2A5BE0;border-radius:999px;padding:3px 12px;}
.sa-note{color:#9aa4b8;font-size:.92rem;margin-top:22px;max-width:760px;}
.sa-services{list-style:none;padding:0;margin:8px 0 22px;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px 24px;}
.sa-services li a{display:block;color:#F2F0E8!important;text-decoration:none;border-left:3px solid #0A35B8;padding:8px 14px;background:rgba(255,255,255,.04);border-radius:0 8px 8px 0;font-weight:600;}
.sa-services li a:hover{background:rgba(10,53,184,.28);border-left-color:#2A5BE0;}
.sa-faq details{border-bottom:1px solid rgba(255,255,255,.14);padding:16px 0;max-width:820px;}
.sa-faq summary{cursor:pointer;font-weight:700;font-size:1.05rem;color:#F2F0E8;}
.sa-faq details p{color:#C7C3B8;line-height:1.7;margin:10px 0 0;}
.sa-others{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:6px 0 40px;}
.sa-others a{display:block;text-decoration:none;background:rgba(10,53,184,.18);border:1px solid rgba(10,53,184,.8);border-radius:12px;padding:18px 20px;}
.sa-others a:hover{border-color:#2A5BE0;}
.sa-others b{display:block;color:#fff!important;font-size:1.05rem;}.sa-others span{display:block;color:#C7C3B8;font-size:.9rem;margin-top:4px;}
.sa-cta{background:linear-gradient(135deg,rgba(3,57,213,.35),rgba(91,144,255,.10));border:1px solid rgba(91,144,255,.4);border-radius:16px;padding:34px 36px;}
.sa-cta h2{margin-bottom:8px;}.sa-cta p{color:#C7C3B8;margin:0 0 16px;}
.sa-counties{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:10px;}
.sa-county{display:flex;flex-direction:column;gap:10px;text-decoration:none;background:rgba(255,255,255,.04);border:1px solid rgba(10,53,184,.75);border-radius:14px;padding:24px 24px 22px;transition:border-color .2s,transform .2s;}
.sa-county:hover{border-color:#2A5BE0;transform:translateY(-3px);}
.sa-county h3{font-size:1.35rem;margin:0;}.sa-county p{color:#C7C3B8;line-height:1.6;margin:0;flex:1;}
.sa-meta{font:700 .8rem 'Inter',sans-serif;color:#0339D5;letter-spacing:.04em;}
.sa-more{font-weight:700;color:#fff;}
.sa-table{margin-top:10px;border:1px solid rgba(10,53,184,.75);border-radius:12px;overflow:hidden;}
.sa-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px;padding:12px 18px;border-top:1px solid rgba(10,53,184,.45);color:#C7C3B8;}
.sa-row b{color:#fff;}.sa-row.sa-head{border-top:0;background:#0A35B8;font:800 .72rem 'Inter',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#fff;}
@media(max-width:820px){.sa-grid2{grid-template-columns:1fr;gap:28px;}.sa-section{padding:52px 0;}.sa-row{grid-template-columns:1fr 1fr;}.sa-row span:nth-child(3){grid-column:1 / -1;}.sa-cta{padding:26px 22px;}}

.sa-sub{font-size:1.15rem;color:#fff!important;margin:34px 0 14px;letter-spacing:.02em;}
.sa-communities .sa-city{background:rgba(10,53,184,.22);border-color:rgba(10,53,184,.8);}
.sa-tag{font:700 .68rem 'Inter',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:#0A35B8;border:1px solid #2A5BE0;border-radius:999px;padding:1px 8px;margin-left:6px;font-style:normal;}

.sa-row a,.sa-section .sa-row a:not(.btn){color:#0339D5;font-weight:700;}
.sa-row a:hover{color:#2A5BE0;}

.sa-row:not(.sa-head) span:nth-child(3){color:#fff;font-weight:700;}

.sa-section .sa-stat a.sa-maplink{color:#0339D5;font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.sa-section .sa-stat a.sa-maplink:hover{color:#2A5BE0;}

.sa-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.sa-steps li{background:rgba(10,53,184,.18);border:1px solid rgba(10,53,184,.8);border-radius:14px;padding:22px 22px 20px;}
.sa-steps li b{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#0A35B8;color:#fff;font:800 1rem 'Poppins',sans-serif;margin-bottom:12px;}
.sa-steps li h3{font-size:1.1rem;margin:0 0 6px;}
.sa-steps li p{color:#C7C3B8;line-height:1.6;margin:0;font-size:.95rem;}

.sa-photogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:6px;}
.sa-photogrid a{display:block;border:1px solid rgba(10,53,184,.8);border-radius:12px;overflow:hidden;background:#0A0A0A;}
.sa-photogrid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .35s;}
.sa-photogrid a:hover img{transform:scale(1.04);}
@media(max-width:560px){.sa-photogrid{grid-template-columns:repeat(2,1fr);gap:8px;}}

.sa-photos + .sa-alt{background:#0A0A0A;}
