/* Shared photo header for homepage and refreshed content/location pages. */
.home-photo-header .ff-header{position:relative;background:#163e50;isolation:isolate}
.home-header-photos{position:absolute;inset:0 0 auto;height:176px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));z-index:-1;pointer-events:none}
.home-header-photo{background-image:linear-gradient(#082b3b20,#082b3b35),var(--header-photo);background-position:center,var(--photo-position);background-size:cover}
.home-photo-header .ff-header .ff-header-main{min-height:176px;box-sizing:border-box;gap:22px;padding:16px;align-items:flex-start;width:100%;max-width:none;margin-inline:0}
.home-photo-header .ff-brand{padding:7px 9px;background:#fff;border:0;border-radius:8px;box-shadow:0 2px 8px #07273518}
.home-photo-header .ff-header .ff-brand img{width:113px;max-width:113px}
.home-photo-header .ff-header-promise{display:none}
.home-photo-header .ff-header-phones{background:#fffffff2;border-radius:14px;padding:14px 18px;box-shadow:0 4px 20px #07273520}
.home-photo-header .ff-nav-strip{background:#f5f4ef}
.home-after-form{margin-top:18px;display:flex;justify-content:center}
.home-after-form .ff-photo-review{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:440px;min-width:0;min-height:82px;padding:16px 18px;box-sizing:border-box;border:0;border-radius:14px;background:#0c3e60;color:#fff;text-decoration:none}
.home-after-form .ff-photo-review>span:last-child{margin-left:auto}
@media(max-width:950px){
 .home-photo-header .ff-header .ff-header-main{display:flex;justify-content:space-between}
 .home-photo-header .ff-header .ff-mobile-toggle{margin-left:auto;background:#fffffff2;border:1px solid #fff;border-radius:12px;box-shadow:0 4px 20px #07273520}
}
@media(max-width:760px){
 .home-header-photos{height:176px;grid-template-columns:1fr}
 .home-header-photo{display:none}.home-header-photo.is-active{display:block}
 .home-photo-header .ff-header .ff-header-main{height:176px;min-height:176px;padding:16px;align-items:flex-start}
 .home-photo-header .ff-brand{padding:6px 8px;border-radius:7px}
 .home-photo-header .ff-header .ff-brand img{width:79px;max-width:79px}
 .home-photo-header .ff-header .ff-mobile-toggle{font-size:14px;min-height:44px}
 .home-photo-header .ff-header .ff-navigation.open{max-height:65dvh}
 .home-after-form .ff-photo-review{min-height:68px;padding:12px 16px}
}
@media(max-width:360px){.home-photo-header .ff-header .ff-brand img{width:74px}}
.home-header-photo{position:relative;overflow:hidden}
.home-header-photo video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:50% 50%}


.home-photo-header .ff-header-main{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.home-header-photo{transition:opacity 220ms ease}
.home-header-photo.is-fading{opacity:0}
@media(prefers-reduced-motion:reduce){.home-header-photo{transition:none}}

.location-intake > .home-after-form{grid-column:1 / -1}

/* Homepage background carousel and independent intake card. */
.hero.home-immersive-hero{position:relative;isolation:isolate;background:#123e50;padding:36px 24px}
.hero.home-immersive-hero .hero-grid{position:static;width:100%;max-width:1440px;margin:auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:center;background:none;border:0;border-radius:0;overflow:visible}
.hero.home-immersive-hero .hero-photo{position:absolute;inset:0;grid-column:auto;grid-row:auto;width:100%;height:100%;min-height:0;margin:0;border-radius:0;z-index:-1;overflow:hidden}
.hero.home-immersive-hero .hero-photo:after{display:block;position:absolute;inset:0;content:"";background:linear-gradient(90deg,rgba(8,43,65,.78),rgba(12,62,96,.52) 55%,rgba(12,62,96,.20));pointer-events:none}
.hero.home-immersive-hero .hero-slide>img,.hero.home-immersive-hero .hero-slide>video{object-fit:cover}
.hero.home-immersive-hero .hero-slide-controls{z-index:5;bottom:8px;right:12px;pointer-events:auto}
.home-hero-intro{grid-column:1;grid-row:1;color:white;max-width:700px;padding:12px 0}
.home-hero-intro h1{color:white;font-size:clamp(32px,3.2vw,54px);line-height:1.08;letter-spacing:-.035em;margin:0 0 24px}
.home-hero-intro p{color:#f1f6fa;font-size:16px;line-height:1.65;margin:0;max-width:65ch}
.hero.home-immersive-hero .hero-copy:has(.form-reviews){grid-column:2;grid-row:1;background:white;border-radius:16px;padding:16px;max-width:580px;min-width:0;box-shadow:0 16px 48px #001b3040;width:100%;justify-self:end}
.home-immersive-hero #inspection-form{border:0;box-shadow:none}
.home-immersive-hero #inspection-form .inspection-body{padding:8px}
.home-immersive-hero #inspection-form .inspection-fields{gap:8px}
.home-immersive-hero #inspection-form .lead-field input,.home-immersive-hero #inspection-form .lead-field select,.home-immersive-hero #inspection-form .lead-field textarea{min-height:54px;padding:26px 14px 7px!important}
.home-immersive-hero #inspection-form .lead-field textarea{height:60px;min-height:60px}
.home-immersive-hero #inspection-form .inspection-inset-title{font-size:26px;margin-bottom:12px}
.home-immersive-hero .inspection-address-details{margin-top:10px;padding-top:6px}
.home-immersive-hero .inspection-actions{margin-top:10px}
.home-immersive-hero .form-reviews{margin-bottom:10px;overflow:hidden}
.home-immersive-hero .home-after-form{margin-top:8px}
.home-immersive-hero .home-after-form .ff-photo-review{min-height:60px;padding:10px 16px}
@media(max-width:950px){.hero.home-immersive-hero .hero-grid{gap:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.home-hero-intro p{font-size:15px}}
@media(max-width:760px){
 .hero.home-immersive-hero{padding:24px 16px 48px}
 .hero.home-immersive-hero .hero-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .home-hero-intro{padding:0;max-width:none}
 .home-hero-intro h1{font-size:32px;margin-bottom:16px}
 .home-hero-intro p{font-size:14px;line-height:1.6}
 .hero.home-immersive-hero .hero-copy:has(.form-reviews){grid-column:1;grid-row:2;padding:12px;justify-self:center;box-sizing:border-box}
 .hero.home-immersive-hero .hero-photo:after{background:linear-gradient(180deg,#082b41d9,#0c3e60a6 45%,#0c3e60bf)}
 .hero.home-immersive-hero .hero-photo{min-height:0;margin:0}
 .home-immersive-hero #inspection-form .inspection-fields{gap:12px!important}
 .home-immersive-hero #inspection-form .inspection-inset-title{font-size:24px}
}

/* Preserve the full video frame rather than enlarging portrait footage. */
.hero.home-immersive-hero .hero-slide>video,
.hero.home-immersive-hero .hero-slide>.hero-video-poster{object-fit:contain;object-position:center}
@media(max-width:760px){
 body:has(.home-immersive-hero) .home-header-photos{height:88px}
 body:has(.home-immersive-hero) .ff-header .ff-header-main{height:88px;min-height:88px;padding:12px 16px}
 .hero.home-immersive-hero{padding:8px 10px 48px}
 .hero.home-immersive-hero .hero-copy:has(.form-reviews){grid-row:1;padding:8px}
 .home-hero-intro{grid-row:2;grid-column:1}
 .home-immersive-hero #inspection-form .inspection-body{padding:4px}
 .home-immersive-hero #inspection-form .inspection-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 .home-immersive-hero #inspection-form .inspection-fields .full,
 .home-immersive-hero #inspection-form .lead-field:has(input[type=email]),
 .home-immersive-hero #inspection-form .lead-field:has(input[type=tel]){grid-column:1 / -1}
 .home-immersive-hero #inspection-form .inspection-inset-title{font-size:22px;line-height:1.12;margin:0 0 8px}
 .home-immersive-hero #inspection-form .lead-field input,
 .home-immersive-hero #inspection-form .lead-field select,
 .home-immersive-hero #inspection-form .lead-field textarea{min-height:48px;height:48px;padding:23px 12px 4px!important}
 .home-immersive-hero .inspection-address-details{margin-top:6px;padding-top:0}
 .home-immersive-hero .inspection-actions{margin-top:6px}
 .home-immersive-hero .inspection-actions .btn{min-height:44px;padding:10px 16px}
 .home-immersive-hero .inspection-status:empty{display:none}
 .home-immersive-hero .form-reviews{margin-bottom:6px}
}

/* Full-bleed desktop hero; media ends at the independent form card. */
@media(min-width:761px){
 .hero.home-immersive-hero{--form-width:min(580px,calc((100vw - 48px)/2));--hero-edge:max(24px,calc((100% - 1440px)/2));background:#123e50;padding:36px 24px;margin-top:0}
 .hero.home-immersive-hero:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(8,43,65,.78),rgba(12,62,96,.52) 55%,rgba(12,62,96,.20))}
 .hero.home-immersive-hero .hero-grid{position:static;grid-template-columns:minmax(0,1fr) var(--form-width);gap:48px;align-items:center}
 .hero.home-immersive-hero .hero-photo{grid-column:auto;grid-row:auto;inset:0 auto 0 0;width:calc(100% - var(--hero-edge) - var(--form-width));height:100%;border-radius:0;z-index:-1}
 .hero.home-immersive-hero .hero-photo:after{display:none}
 .hero.home-immersive-hero .home-hero-intro{position:relative;z-index:1;align-self:start;left:calc(24px - max(24px,calc((100vw - 1440px)/2)));margin-top:-12px;padding:0;box-sizing:border-box;text-shadow:0 1px 3px #082b4166}
 .hero.home-immersive-hero .hero-copy:has(.form-reviews){position:relative;z-index:1;max-width:none;box-sizing:border-box;border-radius:16px}
}
@media(min-width:761px) and (max-width:1100px){
 .hero.home-immersive-hero .hero-grid{gap:24px}
 .home-hero-intro h1{font-size:34px}
}

/* Clear headline and benefits, centered as a block beside the form. */
.home-hero-intro h1{font-weight:800;margin-bottom:8px}
.home-hero-intro .home-hero-services{font-size:clamp(18px,1.65vw,27px);line-height:1.3;font-weight:750;color:#a49080;margin-bottom:24px}
.home-hero-intro .home-hero-local{margin-bottom:16px}
.home-hero-benefits{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:14px;color:#fff;font-size:18px;line-height:1.4}
.home-hero-benefits li,.home-hero-credentials li{position:relative;padding-left:28px}
.home-hero-benefits li:before,.home-hero-credentials li:before{content:"";position:absolute;left:0;top:3px;width:22px;height:20px;background:#a49080;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='270 36 693 566'%3E%3Cpath d='M270 356C340 340 405 400 467 464Q700 210 963 36L471 602Q370 460 270 356Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='270 36 693 566'%3E%3Cpath d='M270 356C340 340 405 400 467 464Q700 210 963 36L471 602Q370 460 270 356Z'/%3E%3C/svg%3E") center/contain no-repeat}
@media(min-width:761px){
 .hero.home-immersive-hero .home-hero-intro{align-self:center;justify-self:center;width:100%;max-width:620px;left:calc((48px - max(24px,calc((100vw - 1440px)/2)))/2);margin-top:0}
}
@media(min-width:761px) and (max-width:1100px){
 .hero.home-immersive-hero .home-hero-intro{left:0}
 .home-hero-benefits{font-size:16px}
}
@media(max-width:760px){
 .home-hero-intro .home-hero-services{font-size:19px;margin-bottom:20px}
 .home-hero-benefits{font-size:16px;gap:12px;margin-bottom:20px}
}

.home-immersive-hero .home-contact-disclosure{font-size:12px;line-height:1.4;color:#52636a;margin:10px 0 0}
.home-immersive-hero .home-measurement-options{font-size:12px;color:#52636a;margin-top:8px}
.home-immersive-hero .home-measurement-options summary{cursor:pointer}
.home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[type=email]),
.home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[type=tel]){grid-column:1 / -1}

/* Desktop intake: use the card's width instead of stretching the hero vertically.
   Keep natural height for validation messages, expanded preferences and zoom. */
@media(min-width:761px){
 .hero.home-immersive-hero{padding-block:clamp(12px,2vh,24px)}
 .hero.home-immersive-hero .hero-copy:has(.form-reviews){padding:12px}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-body{padding:4px}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[type=email]),
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[type=tel]),
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[name=city]),
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field:has(input[name=zip]){grid-column:auto}
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field input,
 .home-immersive-hero #inspection-form[data-direct-submit] .lead-field select{height:46px;min-height:46px;font-size:15px;padding:22px 12px 4px!important}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-inset-title{font-size:24px;line-height:1.15;margin-bottom:10px}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-actions{margin-top:8px}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-actions .btn{min-height:44px;padding:10px 16px}
 .home-immersive-hero .home-contact-disclosure{margin-top:8px}
 .home-immersive-hero .home-measurement-options{margin-top:6px}
 .home-immersive-hero .home-after-form{margin-top:8px}
 .home-immersive-hero .home-after-form .ff-photo-review{min-height:52px;padding:8px 14px}
}

/* The inquiry card ends before the separate photo-review invitation. */
.hero.home-immersive-hero .hero-copy:has(.form-reviews){background:transparent;box-shadow:none;padding:0}
.home-immersive-hero .home-intake-card{background:#fff;border-radius:16px;padding:12px;box-shadow:0 16px 48px #001b3040}
.home-immersive-hero .home-after-form{margin:8px 12px 12px}
@media(max-width:760px){
 .home-immersive-hero .home-intake-card{padding:8px}
 .home-immersive-hero .home-after-form{margin:8px 8px 8px}
}

/* Fill the desktop area beyond the main carousel with the shared crawlspace photo. */
@media(min-width:761px){
 .hero.home-immersive-hero:after{content:"";position:absolute;inset:0 0 0 auto;width:calc(var(--hero-edge) + var(--form-width));z-index:-1;pointer-events:none;background:url('/assets/shared/crawl-space-before-4211.webp') center / cover no-repeat}
}

/* Wrap complete service names cleanly beneath the homepage headline. */
.home-hero-intro .home-hero-services{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;padding:0;margin:0 0 24px;font-size:clamp(16px,1.45vw,22px);line-height:1.4}
.home-hero-services li{display:flex;align-items:baseline;gap:8px;max-width:100%}
.home-hero-services li:before{content:'•';flex:none}
@media(max-width:760px){.home-hero-intro .home-hero-services{font-size:16px;gap:6px 16px;margin-bottom:20px}}

/* Homepage credentials sit beneath the introduction without competing with the form. */
.home-hero-intro .home-hero-credentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;list-style:none;margin:24px 0 0;padding:20px 0 0;border-top:1px solid #ffffff70;color:#fff;font-size:clamp(15px,1.2vw,18px);font-weight:700;line-height:1.45}
@media(max-width:760px){.home-hero-intro .home-hero-credentials{gap:14px 16px;margin-top:20px;padding-top:18px;font-size:15px}}

/* A slimmer desktop inquiry card without reducing readable type or hit targets. */
@media(min-width:761px){
 .hero.home-immersive-hero{--form-width:min(480px,calc((100vw - 48px)/2))}
 .home-immersive-hero .home-intake-card{padding:18px;border-radius:20px;box-shadow:0 12px 36px #001b302b}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-inset-title{line-height:1.22;margin-bottom:16px}
 .home-immersive-hero #inspection-form[data-direct-submit] .inspection-actions{margin-top:12px}
}

/* Review badge at the lower-right edge of the homepage hero image. */
.home-google-review-badge{display:block;width:180px;height:auto;object-fit:contain}
@media(min-width:761px){.hero.home-immersive-hero .home-google-review-badge{position:absolute;right:calc(var(--hero-edge) + var(--form-width) + 20px);bottom:40px;width:180px}.hero.home-immersive-hero .home-hero-intro{position:static;padding-bottom:96px}}
@media(max-width:760px){.home-hero-intro .home-google-review-badge{width:150px;margin:24px 0 0 auto}}

.home-google-review-badge img{display:block;width:100%;height:auto}
.home-google-review-badge:focus-visible{outline:3px solid #fff;outline-offset:6px;border-radius:4px}
