/* Internal layouts inherit the homepage hero system and all existing fonts. */
.sp-main .sp-hero-visual{height:auto;min-height:clamp(620px,calc(100svh - 128px),880px);max-height:none}
.sp-main .sp-hero-copy h1{overflow-wrap:anywhere}
.sp-main .sp-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px}
.sp-main .sp-hero-actions .text-link{color:#fff;border-color:rgba(255,255,255,.5)}
.sp-main .sp-hero-actions .text-link:hover{border-color:#fff}
.sp-main .sp-section-label{text-align:center;margin:0 auto 32px}
.sp-main .sp-section-label .eyebrow{margin-bottom:0}
.sp-main .sp-scope-section{background:var(--bg-band);padding:48px 0}
.sp-main .sp-scope-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);padding:0;margin:0}
.sp-main .sp-scope-list>li{padding:24px 22px;line-height:1.8}
.sp-main .sp-scope-list>li+li{border-left:1px solid var(--border-subtle)}
.sp-main .sp-installation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.sp-main .sp-installation-grid.sp-single-photo{grid-template-columns:1fr;max-width:1040px;margin:auto}
.sp-main .sp-installation-grid figure,.sp-main .sp-project-grid figure{padding:12px;background:var(--bg-surface);border:1px solid var(--border-subtle);min-width:0}
.sp-main .sp-installation-grid .gallery-item{display:block;width:100%;padding:0;border:0;background:transparent}
.sp-main .sp-installation-grid img,.sp-main .sp-project-grid img{height:auto;width:100%;aspect-ratio:4/3;object-fit:cover}
.sp-main .sp-installation-grid figcaption,.sp-main .sp-project-grid figcaption{margin:20px 8px 8px;text-align:center;line-height:1.8}
.sp-main .sp-estimate-cta{display:grid;grid-template-columns:1fr 1fr;background:var(--bg-band)}
.sp-main .sp-estimate-cta>figure{min-width:0;overflow:hidden}
.sp-main .sp-estimate-cta>figure img{height:100%;width:100%;min-height:480px;object-fit:cover;aspect-ratio:1.2}
.sp-main .sp-estimate-copy{padding:72px 64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.sp-main .sp-estimate-copy h2{margin:0 0 28px;max-width:470px}
.sp-main .sp-estimate-copy p{max-width:430px;margin-bottom:32px}
.sp-main .sp-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 32px}
.sp-main .sp-directory-card{min-width:0;background:var(--bg-surface);border:1px solid var(--border-subtle)}
.sp-main .sp-directory-card>a{display:flex;height:100%;flex-direction:column}
.sp-main .sp-directory-card img{aspect-ratio:4/3;object-fit:cover}
.sp-main .sp-directory-card>a>div{padding:28px;display:flex;flex-direction:column;flex:1}
.sp-main .sp-directory-card h2{font-size:28px;margin:0 0 20px}
.sp-main .sp-directory-card p{margin-bottom:28px}
.sp-main .sp-directory-card .card-action{margin-top:auto}
.sp-main .sp-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 36px}
.sp-main .sp-project-grid [hidden]{display:none!important}
.sp-main .filter-bar{flex-wrap:wrap;justify-content:center}
.sp-main #filter-status{text-align:center;margin:24px 0 40px}
.sp-main .sp-three-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.sp-main .sp-three-specs article{padding:36px 32px;min-width:0}
.sp-main .sp-three-specs article+article{border-left:1px solid var(--border-subtle)}
.sp-main .sp-three-specs h2{font-size:28px;margin-bottom:22px}
.sp-main .sp-three-specs p{margin:0}
.sp-main .sp-license-table{max-width:1040px}
.sp-main .sp-license-table dl{margin:0}
.sp-main .sp-license-table dl>div{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:28px 0;border-bottom:1px solid var(--border-subtle)}
.sp-main .sp-license-table dl>div:first-child{border-top:1px solid var(--border-subtle)}
.sp-main .sp-license-table dd{margin:0}
.sp-main .sp-faqs{max-width:1000px}
.sp-main .sp-faqs .accordion details p{margin:0 0 28px;max-width:850px}
.sp-main .sp-review-ratings{background:var(--bg-band);padding:64px 0}
.sp-main .sp-review-ratings .gallery-ratings{border-top:0;padding-top:0}
.sp-main .sp-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.sp-main .sp-video-grid .video-panel{aspect-ratio:4/3}
.sp-main .sp-written-reviews{padding-top:0}
.sp-main .sp-extra-reviews{display:flex;justify-content:center;gap:36px;flex-wrap:wrap;margin-top:40px}
.sp-main .sp-extra-reviews a{padding:8px 0;border-bottom:1px solid var(--border-subtle)}
.sp-main .sp-contact-layout{display:grid;grid-template-columns:.85fr 1.25fr;gap:100px}
.sp-main .sp-contact-details{margin:0}
.sp-main .sp-contact-details>div{border-top:1px solid var(--border-subtle);padding:28px 0}
.sp-main .sp-contact-details dt{margin-bottom:12px}
.sp-main .sp-contact-details dd{margin:0;overflow-wrap:anywhere}
.sp-main .sp-contact-layout .form-grid{margin-top:0}
.sp-main .sp-contact-layout [hidden]{display:none!important}
.sp-main .sp-form-note{margin:20px 0 0}
@media(max-width:1100px){
.sp-main .sp-scope-list{grid-template-columns:1fr}
.sp-main .sp-scope-list>li{padding:20px 0}
.sp-main .sp-scope-list>li+li{border-left:0;border-top:1px solid var(--border-subtle)}
.sp-main .sp-estimate-copy{padding:56px 40px}
.sp-main .sp-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sp-main .sp-three-specs article{padding:28px 24px}
.sp-main .sp-contact-layout{gap:60px}
}
@media(max-width:900px){
.sp-main .sp-hero-visual{min-height:clamp(580px,calc(100svh - 88px),800px)}
.sp-main .sp-hero-actions{justify-content:flex-start}
.sp-main .sp-estimate-cta{grid-template-columns:1fr}
.sp-main .sp-estimate-cta>figure img{height:auto;min-height:0;aspect-ratio:4/3}
.sp-main .sp-installation-grid{grid-template-columns:1fr}
.sp-main .sp-three-specs{grid-template-columns:1fr}
.sp-main .sp-three-specs article+article{border-left:0;border-top:1px solid var(--border-subtle)}
.sp-main .sp-video-grid{grid-template-columns:1fr;max-width:700px}
.sp-main .sp-contact-layout{grid-template-columns:1fr;gap:48px}
}
@media(max-width:600px){
.sp-main .sp-hero-visual{min-height:clamp(580px,calc(100svh - 88px),760px)}
.sp-main .sp-hero-actions{flex-direction:column;align-items:flex-start;gap:14px}
.sp-main .sp-hero-actions .btn{max-width:100%}
.sp-main .sp-hero-actions .text-link{align-self:flex-start}
.sp-main .sp-scope-section{padding:40px 0}
.sp-main .sp-installation-grid{gap:32px}
.sp-main .sp-installation-grid figure,.sp-main .sp-project-grid figure{padding:10px}
.sp-main .sp-estimate-copy{padding:56px 28px}
.sp-main .sp-directory-grid{grid-template-columns:1fr;gap:32px}
.sp-main .sp-project-grid{grid-template-columns:1fr;gap:36px}
.sp-main .sp-three-specs article{padding:28px 8px}
.sp-main .sp-license-table dl>div{grid-template-columns:1fr;gap:12px;padding:24px 0}
.sp-main .sp-contact-layout .form-card{padding:28px 20px}
.sp-main .sp-contact-layout .form-grid{grid-template-columns:1fr;gap:24px}
.sp-main .sp-contact-layout button[type=submit]{width:100%}
}
