/* V9.9 — the quote form is now the first practical action on the homepage.
   Actual form element is moved from the footer to the hero; no duplicate forms,
   no build step, no scroll-visibility dependency. */
.hero.first-screen-quote{
  min-height:780px;
  height:auto;
  overflow:visible;
  padding:clamp(110px,11vh,145px) 0 56px;
  position:relative;
  isolation:isolate;
  background:#090e13;
}
.first-screen-quote .hero-photo{
  position:absolute;inset:0 35% 0 0;z-index:-2;
  opacity:1;overflow:hidden;pointer-events:none;
}
.first-screen-quote .hero-photo img{
  object-fit:cover;object-position:55% 48%;filter:saturate(.86) contrast(1.07);
}
.first-screen-quote .hero-photo::after{
  background:linear-gradient(90deg,rgba(8,12,17,.73),rgba(8,12,17,.15) 55%,#090e13 100%),
             linear-gradient(0deg,rgba(8,12,17,.89),transparent 38%,rgba(8,12,17,.24));
}
.first-screen-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(445px,.95fr);
  gap:clamp(30px,5.2vw,100px);
  align-items:center;
  position:relative;
  z-index:2;
}
.first-screen-quote .hero-copy{
  height:auto;min-width:0;padding:0;display:block;
  align-self:center;
}
.first-screen-quote h1{
  margin:0 0 23px;
  max-width:660px;
  font-size:clamp(58px,5.3vw,89px);
  line-height:1.08;
  letter-spacing:-.016em;
  text-wrap:balance;
}
.first-screen-quote .hero h1 .line,
.first-screen-quote h1 .line{overflow:visible;padding:0;margin:0}
.first-screen-quote .hero-under{display:block;max-width:500px;margin:0;opacity:1}
.first-screen-quote .hero-under p{
  max-width:475px;font-size:clamp(15px,1.16vw,17px);line-height:1.72;
  color:#e0e5ea;text-wrap:pretty;
}
.first-screen-quote .hero-actions{margin-top:22px;display:flex;gap:12px}
.first-screen-quote .hero-actions .btn{min-height:44px;padding:11px 18px;border-color:rgba(255,255,255,.38)}
.first-screen-quote .hero-quote-block{
  width:100%;min-width:0;scroll-margin-top:108px;align-self:center;
}
.first-screen-quote .quote-panel{
  width:100%;max-width:none;
  background:rgba(17,25,33,.97);
  border:1px solid rgba(177,194,213,.23);
  padding:clamp(22px,2vw,32px);
  box-shadow:0 24px 70px rgba(0,0,0,.29);
}
.first-screen-quote .quote-form-heading{padding-bottom:15px;margin-bottom:20px}
.first-screen-quote .quote-form-heading h3{font-size:clamp(22px,2vw,29px);margin-bottom:5px}
.first-screen-quote .quote-form-heading p{font-size:13px}
.first-screen-quote .quote-panel .quote-form .field-row{margin-bottom:20px;gap:12px}
.first-screen-quote .quote-panel .quote-form input:not([type="radio"]){min-height:48px;padding:11px 13px;margin-top:7px}
.first-screen-quote .quote-panel .quote-form label{font-size:12.5px}
.first-screen-quote .quote-service-picker{margin-bottom:19px}
.first-screen-quote .quote-service-options{gap:7px}
.first-screen-quote .quote-option span{padding:10px 12px;font-size:12px}
.first-screen-quote .quote-panel .quote-form textarea{min-height:66px;padding:10px 13px;margin-top:8px}
.first-screen-quote .quote-panel .form-submit{min-height:50px;margin-top:17px}
.first-screen-quote .quote-panel .form-caption{margin:9px 0 0;font-size:11.5px}
.first-screen-quote .quote-panel .quote-result{margin-top:20px}
/* After the work, give the customer a way back to the real quote form. */
.closing-quote{background:#101820;color:white;border-top:1px solid rgba(255,255,255,.11);padding:clamp(65px,7.5vw,114px) 0}
.closing-quote-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr) auto;align-items:center;gap:clamp(20px,3vw,55px)}
.closing-quote h2{margin:0;font-weight:540;font-size:clamp(33px,3.8vw,61px);line-height:1.13;letter-spacing:-.012em}
.closing-quote p{margin:0;font-size:16px;line-height:1.7;color:#b6c2cb}
.closing-quote .btn{white-space:nowrap}
@media (min-width:1500px){
  .first-screen-quote{padding:125px 0 65px}
  .first-screen-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)}
}
@media(max-width:1100px){
  .first-screen-grid{grid-template-columns:minmax(0,1fr) minmax(400px,1fr);gap:26px}
  .first-screen-quote h1{font-size:clamp(49px,5.6vw,72px)}
  .first-screen-quote .quote-panel{padding:23px}
  .first-screen-quote .hero-photo{inset:0 26% 0 0}
  .closing-quote-inner{grid-template-columns:1fr auto}
  .closing-quote p{grid-column:1;grid-row:2}
  .closing-quote .btn{grid-column:2;grid-row:1 / 3}
}
@media(max-width:900px){
  .hero.first-screen-quote{padding:113px 0 58px;min-height:0}
  .first-screen-grid{grid-template-columns:minmax(0,1fr);gap:25px}
  .first-screen-quote .hero-photo{inset:0 0 auto; height:410px;opacity:.73}
  .first-screen-quote .hero-photo::after{
    background:linear-gradient(0deg,#090e13 0%,rgba(9,14,19,.15) 74%),linear-gradient(90deg,rgba(9,14,19,.7),rgba(9,14,19,.2))}
  .first-screen-quote .hero-copy{max-width:760px}
  .first-screen-quote h1{font-size:clamp(48px,7vw,73px);max-width:730px;margin-bottom:13px}
  .first-screen-quote .hero-under p{font-size:15px;max-width:640px}
  .first-screen-quote .hero-actions{margin-top:16px}
  .first-screen-quote .hero-quote-block{max-width:760px}
  .first-screen-quote .quote-panel{padding:28px}
}
@media(max-width:640px){
  .hero.first-screen-quote{padding:102px 0 50px}
  .first-screen-grid{gap:19px}
  .first-screen-quote .hero-photo{height:330px}
  .first-screen-quote h1{font-size:clamp(40px,10vw,57px);line-height:1.09;margin-bottom:9px;letter-spacing:-.012em}
  .first-screen-quote .hero-under p{font-size:14px;line-height:1.58;max-width:520px}
  .first-screen-quote .hero-actions{display:none}
  .first-screen-quote .quote-panel{padding:21px 17px 23px}
  .first-screen-quote .quote-form-heading{padding-bottom:14px;margin-bottom:17px}
  .first-screen-quote .quote-form-heading h3{font-size:22px}
  .first-screen-quote .quote-form-heading p{font-size:12px}
  .first-screen-quote .quote-panel .quote-form .field-row{grid-template-columns:minmax(0,.67fr) minmax(0,1.33fr);gap:9px;margin-bottom:17px}
  .first-screen-quote .quote-panel .quote-form .field-row label+label{margin:0}
  .first-screen-quote .quote-panel .quote-form input:not([type="radio"]){font-size:16px;padding:10px;min-height:47px}
  .first-screen-quote .quote-option span{font-size:12px;padding:10px 11px}
  .first-screen-quote .quote-panel .quote-form textarea{min-height:69px}
  .first-screen-quote .quote-panel .form-submit{min-height:51px;margin-top:17px}
  .closing-quote-inner{grid-template-columns:1fr;gap:15px}
  .closing-quote p,.closing-quote .btn{grid-column:auto;grid-row:auto}
  .closing-quote .btn{justify-self:start;margin-top:7px}
}
@media(max-width:370px){
  .first-screen-quote h1{font-size:39px}
  .first-screen-quote .quote-panel .quote-form .field-row{grid-template-columns:1fr}
  .first-screen-quote .quote-panel .quote-form .field-row label+label{margin-top:11px}
}
@media(prefers-reduced-motion:reduce){
  .first-screen-quote .hero-copy *, .first-screen-quote .quote-panel *{animation:none!important;transition-duration:0s!important}
}
