/* Mobile presentation is isolated here. Original desktop rules remain in styles.css. */
@media(min-width:901px){.split picture img{display:block}}
.mobile-menu,.mobile-header-quote,.mobile-dock,.mobile-estimate-bar,
.mobile-hero-title,.mobile-hero-description,.mobile-cta-label,.mobile-story,.mobile-founders{display:none}
@media(max-width:900px){
 :root{--mobile-border:#dce7f1;--mobile-shadow:0 8px 28px #102b480b}
 html{scroll-padding-top:110px}
 body{padding-bottom:calc(80px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
 body.menu-open{overflow:hidden}
 .wrap{width:calc(100% - 40px);max-width:680px}
 main,section,.wrap,.hero-grid>*,.split>*,.calc-layout>*,.cards>*{min-width:0}
 p,li,dd,a,h1,h2,h3{overflow-wrap:break-word}
 p{font-size:15px;line-height:1.7}
 h1,.page-head h1{font-size:clamp(32px,7.8vw,46px);line-height:1.12;letter-spacing:-.045em;text-wrap:balance}
 h2{font-size:clamp(28px,6.8vw,36px);line-height:1.17;text-wrap:balance}
 h3{line-height:1.3}
 .eyebrow{font-size:10px;letter-spacing:.14em;line-height:1.6;margin-bottom:12px}
 .btn,button{min-height:48px;padding:14px 20px;font-size:14px;border-radius:10px;line-height:1.4;text-align:center}
 a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1382c2;outline-offset:4px}
 header{position:sticky;top:0;z-index:50;padding:0;background:#fffffff5;border-bottom:1px solid var(--mobile-border);box-shadow:0 3px 16px #102b4806;backdrop-filter:blur(16px)}
 header .call-row{display:none}
 header nav{position:relative;min-height:86px;gap:12px;align-items:center}
 header .logo-brand,header .logo-frame{width:108px}
 header .logo-tagline{font-size:9px;line-height:1.2;margin-top:-4px}
 header .logo-tagline:before{display:none}
 header .links,.landing header .links{display:none}
 .mobile-header-quote{display:inline-flex;margin-left:auto;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border-radius:8px;background:var(--blue);color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
 .mobile-menu{display:block;border:0;padding:0;position:static}
 .mobile-menu>summary{width:44px;min-height:48px;display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;list-style:none;border:1px solid var(--mobile-border);border-radius:9px;background:#f7fbff}
 .mobile-menu>summary::-webkit-details-marker{display:none}
 .menu-lines{width:18px;height:12px;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);position:relative}
 .menu-lines:after{content:'';position:absolute;top:4px;left:0;width:18px;height:2px;background:var(--ink)}
 .menu-word{font-size:8px;font-weight:700;letter-spacing:.05em;line-height:1}
 .mobile-menu[open] .menu-lines{border:0}
 .mobile-menu[open] .menu-lines:before,.mobile-menu[open] .menu-lines:after{content:'';position:absolute;top:5px;left:0;width:18px;height:2px;background:var(--ink);transform:rotate(45deg)}
 .mobile-menu[open] .menu-lines:after{transform:rotate(-45deg)}
 .mobile-menu-panel{position:fixed;top:86px;left:0;right:0;background:white;padding:24px max(20px,calc((100vw - 680px)/2));max-height:calc(100dvh - 86px);overflow-y:auto;box-shadow:0 20px 30px #102b4826;border-top:1px solid var(--mobile-border)}
 .mobile-menu-label{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.12em;color:var(--muted);margin-bottom:12px}
 .mobile-menu-panel>a:not(.btn){display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:52px;padding:12px 0;border-bottom:1px solid #e9eff5;font-size:16px;font-weight:600}
 .mobile-menu-panel>a>span{color:var(--blue)}
 .mobile-menu-panel .btn{display:flex;margin-top:20px}
 .mobile-menu-panel .mobile-menu-phone{justify-content:center!important;font-size:14px!important;color:var(--blue);border:0!important}
 .hero,.landing .hero{padding:30px 0 32px;background:linear-gradient(150deg,#f0f8ff,#fff 90%)}
 .hero-grid{grid-template-columns:1fr;gap:24px;align-items:start}
 .hero h1{margin-bottom:16px}
 .hero p{margin:0 0 20px;max-width:540px}
 .hero .eyebrow{font-size:9px}
 .actions{gap:10px;margin:20px 0 16px;flex-wrap:nowrap}
 .actions>.btn:first-child{flex:1.2}
 .actions>.btn.light{flex:1;background:transparent;font-size:13px;padding-inline:10px}
 .checks{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:11px;line-height:1.6}
 .hero-photo{width:100%;max-width:none}
 .hero-photo img,.landing .hero-photo img{display:block;height:220px;width:100%;object-fit:cover;object-position:center 55%;border-radius:24px 24px 8px 8px}
 .hero-photo picture{display:block}
 .hero-photo .note{position:relative;left:auto;bottom:auto;width:100%;border-radius:0 0 16px 16px;box-shadow:none;padding:16px 18px;background:#fff;border:1px solid var(--mobile-border);border-top:0}
 .hero-review-stars{margin-bottom:8px}
 .hero-review-stars span{width:16px;height:16px;font-size:12px;border-radius:3px}
 .hero-review b{font-size:14px}
 .hero-review p{margin:5px 0 0;font-size:12px;line-height:1.6;max-width:none}
 [data-page=index] .desktop-hero-title,[data-page=index] .desktop-hero-description,.desktop-cta-label{display:none}
 .mobile-hero-title,.mobile-hero-description,.mobile-cta-label{display:block}
 [data-page=index] .mobile-hero-title{font-size:clamp(34px,8.8vw,48px)}
 .section{padding:38px 0}
 .section-head{display:block;margin-bottom:22px}
 .section-head h2{margin-bottom:0}
 .section-head p{margin-top:14px;max-width:none;font-size:14px}
 .brand-story{padding:34px 0;background:#f4f8fc}
 .brand-story .wrap{max-width:680px}
 .brand-story h2{font-size:32px;margin-bottom:14px}
 .desktop-story{display:none}
 .mobile-story{display:block!important;font-size:15px!important;line-height:1.7!important;margin-bottom:18px}
 .brand-story .btn{margin-top:0;background:transparent}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
 .card{position:relative;padding:20px;border:1px solid #dbe6f0;border-radius:16px;box-shadow:var(--mobile-shadow)}
 .card .icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#edf6ff;font-size:24px;margin-bottom:16px;line-height:1}
 .card h3{font-size:19px;margin:0 0 9px;letter-spacing:-.025em}
 .card p{font-size:14px;line-height:1.65;margin:10px 0 12px}
 .card b{font-size:13px;line-height:1.6;display:block}
 .card a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.5}
 .service-detail ul{font-size:13px;line-height:1.75;padding-left:17px;margin-block:12px}
 .service-detail{scroll-margin-top:105px}
 [data-page=index] .cards>.card:first-child{grid-column:1/-1;display:grid;grid-template-columns:44px 1fr;column-gap:14px}
 [data-page=index] .cards>.card:first-child .icon{grid-row:1/3;margin:0}
 [data-page=index] .cards>.card:first-child h3{align-self:end}
 [data-page=index] .cards>.card:first-child p,[data-page=index] .cards>.card:first-child ul,[data-page=index] .cards>.card:first-child a{grid-column:1/-1}
 [data-page=index] .cards>.card:last-child:nth-child(odd){grid-column:1/-1;background:#f1f8ff}
 .split{grid-template-columns:1fr;gap:23px}
 .split picture{display:block;width:100%}
 .split img{display:block;width:100%;height:210px;object-fit:cover;border-radius:18px}
 .split .btn{width:100%}
 .split h2 br{display:none}
 .steps{display:grid;grid-template-columns:1fr;gap:0;margin-top:22px;position:relative}
 .steps>div{display:grid;grid-template-columns:40px 1fr;column-gap:16px;padding:0 0 22px;position:relative}
 .steps>div:not(:last-child):before{content:'';position:absolute;left:19px;top:42px;bottom:4px;width:1px;background:#c8dcf0}
 .steps>div:last-child{padding-bottom:0}
 .number{grid-column:1;grid-row:1/3;z-index:1;background:var(--blue);color:#fff;width:40px;height:40px;border-radius:12px;font-size:13px}
 .steps h3{grid-column:2;margin:0 0 6px;font-size:17px}
 .steps p{grid-column:2;margin:0;font-size:14px;line-height:1.65}
 .mobile-founders{display:block;padding:34px 0;background:#f2f8fd;border-block:1px solid #e1edf7}
 .founders-mark{float:right;width:64px;height:64px;display:flex;justify-content:center;align-items:center;gap:3px;margin:0 0 10px 16px;background:#fff;border:1px solid #d5e6f4;border-radius:50%;font-family:Georgia,serif;font-size:25px;color:var(--blue)}
 .founders-mark span{font-size:15px;font-style:italic;color:var(--muted)}
 .mobile-founders h2{font-size:29px;margin-bottom:12px}
 .mobile-founders p{font-size:14px;margin-bottom:12px}
 .mobile-founders a{display:inline-flex;min-height:44px;align-items:center;gap:18px;font-size:14px;font-weight:700;color:var(--blue)}
 #testimonials .cards{grid-template-columns:1fr;gap:12px}
 #testimonials .cards>.card{display:block!important;grid-column:auto!important;padding:20px;background:white!important}
 .review-stars{font-size:18px;margin-bottom:12px;letter-spacing:3px}
 .review-card p{font-size:14px}
 .review-card h3{margin-top:14px!important}
 .sample-label{font-size:10px}
 .cta{display:block;background:linear-gradient(135deg,#074bd9,#063ba9);border-radius:20px;padding:28px 24px;box-shadow:0 10px 28px #074bd91a}
 .cta h2{font-size:29px;line-height:1.2}
 .cta p{font-size:14px;margin:14px 0 20px}
 .cta .btn{display:flex;width:100%;margin-top:0;min-height:50px}
 .section:has(+.section:not(.tint)){padding-bottom:20px}
 .page-head{padding:32px 0 28px;background:linear-gradient(140deg,#eef8ff,#f8fbff)}
 .page-head p{font-size:14px;margin:16px 0 0}
 .page-head h1{margin-bottom:0}
 .page-head h1 br{display:none}
 .owner-story{grid-template-columns:1fr;gap:24px}
 .owner-photo{min-height:180px;border-radius:18px;background:linear-gradient(130deg,#eef8ff,#f9fcff);padding:24px}
 .owner-photo .spark{font-size:35px}
 .owner-photo p{margin:8px 0 4px;font-size:20px}
 .owner-story article p{font-size:15px}
 .commercial-benefits{margin:16px 0}
 .commercial-benefits li{font-size:14px}
 details:not(.mobile-menu):not(.services-menu){padding:18px 0}
 details>summary{min-height:30px;line-height:1.5;font-size:15px}
 details>p{font-size:14px;margin:12px 0 0}
 footer{padding:30px 0 22px;background:#f5f9fc}
 .footer-grid{display:block}
 footer .logo-brand,footer .logo-frame{width:140px}
 footer .logo-tagline{font-size:11px}
 .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin-top:22px}
 .footer-links a{display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:12px;border-bottom:1px solid #e1eaf2}
 .footbottom{font-size:10px;line-height:1.6;margin-top:24px;padding-top:18px}
 .mobile-dock{position:fixed;z-index:40;bottom:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(16px);border-top:1px solid #dce7f1;box-shadow:0 -4px 24px #102b4809}
 .mobile-dock .btn{flex:1;justify-content:space-between;min-height:48px}
 .dock-call{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 14px;border:1px solid var(--mobile-border);border-radius:10px;font-size:14px;font-weight:700;color:var(--blue)}
 body.menu-open .mobile-dock,body.menu-open .mobile-estimate-bar{display:none}
 /* The calculator keeps its original pricing and submission logic. */
 .calc-layout{grid-template-columns:1fr;gap:18px}
 .calc{padding:22px 18px;border-radius:18px;box-shadow:var(--mobile-shadow)}
 .calc>h2{font-size:25px!important}
 .calc>p{font-size:13px!important;line-height:1.65}
 .fields{grid-template-columns:1fr 1fr;gap:18px 12px}
 .full{grid-column:1/-1}
 label{font-size:13px;line-height:1.5;min-width:0}
 input,select,#request-form textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:52px;font-size:16px;line-height:1.4;padding:13px 12px;border-radius:9px;margin-top:8px;background:#fff;border:1px solid #bdcede;box-shadow:0 2px 3px #102b4803}
 input[type=checkbox]{display:inline-block;width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--blue);flex-shrink:0}
 .fields>label:has([name=size]),.fields>label:has([name=frequency]){grid-column:1/-1}
 label:has([name=address])>span{display:block;margin-top:8px;line-height:1.5}
 .first-time-offer{padding:16px;margin:20px 0;border-radius:12px}
 .first-time-offer strong{font-size:15px}
 .first-time-offer small{font-size:12px;line-height:1.6}
 .first-time-offer input{width:20px;height:20px}
 .extras{display:grid;grid-template-columns:1fr;gap:8px}
 .extras label{display:flex;align-items:center;min-height:48px;padding:10px 12px;border-radius:9px;font-size:14px}
 .extras input{margin:0 10px 0 0}
 .referral-toggle{min-height:44px}
 .calc>button[type=submit]{min-height:54px;width:100%;padding-inline:12px}
 .summary{padding:22px 18px;border:1px solid #d8e6f3;border-radius:18px;scroll-margin-top:108px}
 .summary h3{font-size:22px!important;margin:0 0 16px}
 .summary dl{margin:0 0 18px;font-size:13px}
 .summary dl div{display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,1fr);gap:12px;padding:11px 0}
 .summary dd{overflow-wrap:anywhere}
 .summary .status{display:flex;flex-direction:column;padding:20px;margin-top:18px;border-radius:12px}
 #estimate{font-size:25px;line-height:1.3}
 .summary .btn{width:100%}
 .summary p{font-size:12px;line-height:1.7}
 [data-page=get-a-quote] .mobile-dock,[data-page=calculator] .mobile-dock,[data-page=schedule] .mobile-dock{display:none}
 [data-page=schedule]{padding-bottom:0}
 .mobile-estimate-bar{display:none;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--ink);color:#fff;padding:12px 20px calc(12px + env(safe-area-inset-bottom));align-items:center;justify-content:space-between;gap:16px;min-height:72px;box-shadow:0 -5px 20px #102b4812}
 .mobile-estimate-bar.is-visible{display:flex}
 .mobile-estimate-bar small{display:block;font-size:10px;color:#c5deef;letter-spacing:.04em;margin-bottom:4px}
 .mobile-estimate-bar strong{display:block;font-size:15px;line-height:1.4}
 .estimate-review{flex-shrink:0;font-size:12px;background:#ffffff15;border:1px solid #ffffff35;border-radius:8px;padding:10px}
 #request-form form{grid-template-columns:1fr;gap:17px}
 #request-form .field-error:empty,#request-form .request-error:empty{display:none}
 #request-form textarea{min-height:120px}
 #request-form .request-help{font-size:12px;line-height:1.6;margin-bottom:0}
 #request-form+p{font-size:13px;overflow-wrap:anywhere}
 #request-form .request-success{padding:12px}
}
@media(max-width:374px){
 .wrap{width:calc(100% - 32px)}
 header nav{gap:8px}
 header .logo-brand,header .logo-frame{width:96px}
 header .logo-tagline{font-size:8px}
 .mobile-header-quote{font-size:11px;padding-inline:10px}
 .cards{grid-template-columns:1fr}
 [data-page=index] .cards>.card:not(:first-child){display:grid;grid-template-columns:38px 1fr;column-gap:12px}
 [data-page=index] .cards>.card:not(:first-child) .icon{grid-row:1/3}
 [data-page=index] .cards>.card:not(:first-child) h3{align-self:center}
 [data-page=index] .cards>.card:not(:first-child) p,[data-page=index] .cards>.card:not(:first-child) a{grid-column:1/-1}
 .actions .btn{font-size:12px;padding-inline:10px}
 .fields{gap:18px 10px}
 .calc{padding:20px 16px}
 .mobile-estimate-bar{padding-inline:16px;gap:10px}
}
@media(min-width:601px) and (max-width:900px){
 header nav{min-height:94px}
 header .logo-brand,header .logo-frame{width:120px}
 .mobile-menu-panel{top:94px;max-height:calc(100dvh - 94px)}
 .mobile-header-quote{font-size:14px;padding-inline:18px}
 .hero,.landing .hero{padding:40px 0}
 .hero-grid{gap:30px}
 .hero-photo img,.landing .hero-photo img{height:320px}
 .actions{max-width:450px}
 .hero .eyebrow{font-size:11px}
 .section{padding:45px 0}
 .cards{gap:18px}
 .card{padding:24px}
 .calc{padding:30px}
 .summary{padding:28px}
 .fields>label:has([name=size]),.fields>label:has([name=frequency]){grid-column:auto}
 .owner-story{grid-template-columns:.7fr 1fr;gap:25px}
 .owner-photo{min-height:260px}
 .split{grid-template-columns:1fr 1fr;gap:25px;align-items:center}
 .split img{height:310px}
 .mobile-dock{padding-inline:max(20px,calc((100vw - 680px)/2))}
 .mobile-estimate-bar{padding-inline:max(20px,calc((100vw - 680px)/2))}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:900px){
 .mobile-menu:not([open]) .mobile-menu-panel{display:none}
}
@media(max-width:600px){
 /* Compact editorial service rows avoid narrow columns and uneven card heights. */
 [data-page=index] .cards{grid-template-columns:1fr}
 [data-page=index] .cards>.card:not(.review-card){display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:14px;padding:20px}
 [data-page=index] .cards>.card:not(.review-card) .icon{grid-column:1;grid-row:1/4;margin:0}
 [data-page=index] .cards>.card:not(.review-card) h3{grid-column:2;align-self:center;font-size:19px;margin:0 0 5px}
 [data-page=index] .cards>.card:not(.review-card) p{grid-column:2;margin:0 0 6px;font-size:14px}
 [data-page=index] .cards>.card:not(.review-card) a{grid-column:2;min-height:38px}
 [data-page=index] .cards>.card:not(.review-card) b,[data-page=index] .cards>.card:not(.review-card) ul{display:none}
 [data-page=services] .cards,[data-page=commercial] .cards,[data-page=contact] .cards{grid-template-columns:1fr}
}

@media(max-width:900px){
 .summary{display:flex;flex-direction:column}
 .summary>.eyebrow{order:-4}
 .summary>h3{order:-3}
 .summary>.status{order:-2;margin:0 0 18px}
 #estimate{font-size:18px;line-height:1.5}
 .summary.has-price #estimate{font-size:28px;line-height:1.3}
}
@media(max-width:900px){details>summary{min-height:44px}.card a{min-height:44px}}
@media(max-width:600px){[data-page=index] .cards>.card:not(.review-card) a{min-height:44px}}
/* Leave room for the italic slogan's full letter shapes in the mobile header. */
@media(max-width:900px){
 header nav{min-height:100px}
 header .logo-tagline{margin-top:2px;padding:2px 0 3px;line-height:1.5;overflow:visible;position:relative}
 .mobile-menu-panel{top:100px;max-height:calc(100dvh - 100px)}
}
@media(min-width:601px) and (max-width:900px){
 header nav{min-height:108px}
 .mobile-menu-panel{top:108px;max-height:calc(100dvh - 108px)}
}

/* Match desktop tabs with an expandable Services list on mobile. */
@media(max-width:900px){.mobile-menu-panel .mobile-services-menu{border:0;border-bottom:1px solid #e9eff5;padding:0}.mobile-services-menu>summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:12px 0;font-size:16px;font-weight:600;list-style:none}.mobile-services-menu>summary::-webkit-details-marker{display:none}.mobile-services-menu>summary span{color:var(--blue)}.mobile-service-options{padding:0 0 10px 16px}.mobile-service-options a{display:flex;align-items:center;min-height:44px;padding:10px 0;font-size:14px;color:var(--ink);border-bottom:1px solid #edf2f6}.mobile-service-options a:last-child{border-bottom:0}.mobile-service-options a:hover{color:var(--blue)}}

/* Remove redundant quote actions from mobile home and calculator. */
@media(max-width:900px){body[data-page="index"] .hero .actions>a[href="get-a-quote.html"]{display:none}body[data-page="calculator"] header .mobile-header-quote{display:none}body[data-page="calculator"] header .mobile-menu{margin-left:auto}}
