/* Home page layout refinements */
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.hero-actions .hero-secondary{color:#fff;border-color:#ffffff65;background:#142e2d45;backdrop-filter:blur(4px)}
.hero-actions .hero-secondary:hover{background:#142e2d80;border-color:#ffffffa0}
.agent-share{max-width:1100px;margin:18px auto 0;padding:20px 24px;display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--cream)}
.agent-share .eyebrow{margin-bottom:8px}
.agent-share h2{font:28px/1.15 var(--serif);margin:0 0 8px;letter-spacing:-.4px}
.agent-share-copy>p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.6;max-width:520px}
.agent-share-tools{min-width:0}
.agent-share-tools label{font-size:12px;font-weight:600;display:block;margin-bottom:8px}
.agent-share-tools input{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:5px;min-height:44px;padding:9px 12px;background:var(--sand);color:var(--ink);font-size:16px}
.agent-share-tools input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.share-actions .btn{justify-content:center;flex:1;gap:8px;white-space:nowrap}
#quoteShareStatus{font-size:12px;color:var(--muted);margin:6px 0 0}
.intro{padding-top:56px;padding-bottom:44px}
.home-terms{margin:0 auto 48px;padding:28px 32px;background:var(--sand);border-radius:10px}
.home-terms .eyebrow{margin-bottom:10px}
.home-terms h2{font:30px/1.15 var(--serif);margin:0 0 16px}
.home-terms>p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted);max-width:940px}
.home-terms>a{font-size:13px;text-underline-offset:4px}
@media(max-width:1160px){.agent-share,.home-terms{margin-left:5%;margin-right:5%}.site-header nav{gap:20px}}
@media(max-width:760px){.agent-share{grid-template-columns:1fr;gap:16px;padding:18px 20px;margin-top:16px}.agent-share h2{font-size:26px}.agent-share-copy>p:last-child{max-width:none}.home-terms{padding:24px;margin-bottom:28px}.intro{padding-top:40px}.hero-actions{gap:10px}}
@media(max-width:420px){.hero-actions .btn{width:100%;justify-content:space-between}.share-actions .btn{flex-basis:100%}.agent-share{padding:18px}.home-terms h2{font-size:27px}}
/* Keep the service directory readable independently of header-navigation styles. */
.intro.service-directory{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(28px,5vw,80px);align-items:start}
.service-directory>div,.service-directory>nav{min-width:0}
.service-directory>div>.eyebrow{margin:0 0 16px}
.service-directory>nav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.service-directory>nav li{margin:0;padding:0;min-width:0}
.service-directory>nav a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:84px;height:100%;padding:16px 18px;border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.5;background:var(--cream);color:var(--ink);overflow-wrap:anywhere}
.service-directory>nav a:hover{background:var(--sand);border-color:var(--gold)}
.service-directory>nav .service-directory-arrow{flex:0 0 auto;font-size:18px;color:var(--muted)}
@media(max-width:1100px){.intro.service-directory{grid-template-columns:1fr;gap:25px}.service-directory h2{max-width:720px}.service-directory>nav a{min-height:74px}}
@media(max-width:580px){.service-directory>nav ul{grid-template-columns:1fr;gap:10px}.service-directory>nav a{min-height:64px;padding:15px 17px;font-size:14px}.service-directory>div>.eyebrow{margin-bottom:12px}}

.home-apply{position:relative}.home-apply>summary{cursor:pointer;list-style:none;gap:10px;white-space:nowrap}.home-apply>summary::-webkit-details-marker{display:none}.home-apply>summary:focus-visible{outline:3px solid var(--green,#386c57);outline-offset:4px}.site-header .home-apply-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:1000;display:flex;flex-direction:column;align-items:stretch;gap:2px;width:300px;max-width:calc(100vw - 32px);max-height:70vh;overflow-y:auto;padding:10px;border:1px solid #8885;border-radius:16px;background:var(--paper,#fff);color:var(--ink,#142e2d);box-shadow:0 16px 48px #0003}.site-header .home-apply-menu a{display:block;padding:11px 13px;border-radius:9px;text-decoration:none;color:inherit;line-height:1.4;font-size:14px}.home-apply-menu a:hover,.home-apply-menu a:focus-visible{background:#7d9a7c22}.home-apply-menu .cleaning-apply{background:#7d9a7c22;font-weight:700}.home-apply-menu a span{display:block;font-size:12px;font-weight:400;opacity:.8}.home-apply-menu .all-roles{border-top:1px solid #8884;margin-top:5px}

/* Homepage account navigation */
.site-header{position:relative;flex-wrap:wrap;column-gap:24px;row-gap:18px}
.site-header .home-main-nav{order:3;width:100%;display:flex;justify-content:center;flex-wrap:wrap;gap:12px 26px;padding-top:14px;border-top:1px solid var(--line)}
.site-header .header-actions{gap:10px}
.header-actions>.home-book,.header-actions>.home-apply>summary{min-height:46px;padding:11px 16px;gap:12px;font-size:13px;justify-content:center}
.home-apply>summary::marker{content:""}
.home-apply[open]>summary{background:var(--sand)}
.site-header .home-apply-menu{background:var(--cream);max-height:min(70vh,560px)}
.site-header .home-apply-menu a{min-height:46px;display:flex;flex-direction:column;justify-content:center}
.site-header .home-apply-menu a:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.site-header .theme-toggle-label{display:none}
@media(max-width:900px){
 .site-header .home-signin .home-apply-menu{left:0;right:auto}
 .site-header{padding:18px 5%}
 .site-header .brand{padding-right:48px;min-height:40px}
 .site-header .header-actions{width:100%;position:static}
 .site-header .theme-toggle{position:absolute;right:5%;top:18px;width:42px;height:42px;justify-content:center;padding:10px}
 .site-header .header-actions>.home-book,.site-header .header-actions>.home-apply{flex:1;min-width:0}
 .header-actions>.home-apply>summary{width:100%}
 .site-header .home-main-nav{margin-top:0;font-size:12px}
}
@media(max-width:540px){
 .site-header{row-gap:14px}
 .site-header .header-actions{position:relative;gap:6px}
 .site-header .theme-toggle{top:-56px;right:0}
 .site-header .home-apply{position:static}
 .header-actions>.home-book,.header-actions>.home-apply>summary{font-size:12px;padding:10px 7px;min-height:48px;gap:5px;white-space:normal;text-align:center;line-height:1.35}
 .header-actions>.home-book{flex:1.1}
 .site-header .home-apply-menu{left:0;right:0;top:calc(100% + 8px);width:100%;max-width:none;max-height:60vh}
 .site-header .home-main-nav{gap:8px 16px;padding-top:12px}
}

/* Compact homepage service cards; retain comfortable touch targets. */
.agent-share>div{min-width:0}
.agent-share-copy>p:not(.eyebrow):not(:last-child){margin:0 0 8px;font-size:13px;line-height:1.5}
.agent-share-tools>p:not(#quoteShareStatus){margin:10px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.agent-share-tools .btn{min-height:44px;padding:10px 16px;line-height:1.4}
.agent-share-tools>p a,.agent-share-copy>p a{display:inline-flex;align-items:center;min-height:44px}
#quoteShareStatus:empty{display:none}

.home-main-nav .home-services{position:relative;z-index:30}
.home-main-nav .home-services>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;font:inherit}
.home-main-nav .home-services>summary::-webkit-details-marker{display:none}
.home-main-nav .home-services .home-apply-menu{left:0;right:auto;min-width:285px;max-width:calc(100vw - 40px)}
@media(max-width:650px){.home-main-nav .home-services{position:static}.home-main-nav .home-services .home-apply-menu{left:20px;right:20px;min-width:0;max-width:none;width:auto}}
