/* DS Locksmith SF - homepage refresh (loaded ONLY from /index.html; everything scoped to body.home-refresh) */
html:has(body.home-refresh){overflow-x:clip}
body.home-refresh{overflow-x:clip;background:linear-gradient(180deg,#eef2fb 0,#f6f7fa 520px)}

/* ---- Hero: full-bleed photo background with dark gradient overlay ---- */
.home-refresh main>.panel:first-child{position:relative;z-index:2;margin-bottom:-70px;box-shadow:0 10px 30px rgba(8,18,42,.28)}
.home-refresh .hero{position:relative;isolation:isolate;max-width:none;min-height:440px;margin-top:0;padding:134px 0 52px;color:#fff;display:flex;flex-direction:column;justify-content:center}
.home-refresh .hero::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-100vw;right:-100vw;
 background:linear-gradient(90deg,rgba(8,18,42,.93) 0%,rgba(8,18,42,.84) 38%,rgba(8,18,42,.40) 72%,rgba(8,18,42,.22) 100%),
            linear-gradient(0deg,rgba(8,18,42,.35),rgba(8,18,42,0) 35%),
            url("/assets/home-hero-san-francisco.webp") center 38%/cover no-repeat #0c1a38}
.home-refresh .hero>*{max-width:860px}
.home-refresh .hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.home-refresh .hero .eyebrow{color:#ffd58a}
.home-refresh .hero p{color:#eef2fb}
.home-refresh .hero p a:not(.cta){color:#fff;text-decoration-thickness:2px}
.home-refresh .hero p a:not(.cta):hover{color:#ffd58a}
.home-refresh .hero .note{color:#cfd8ea}
.home-refresh .hero .cta{background:#f2a30f;color:#14213f;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.home-refresh .hero .cta:hover{background:#ffbb3a}
.home-refresh .hero .cta.secondary{background:rgba(255,255,255,.96);color:#1f347a;border-color:#fff}
.home-refresh .hero .cta.secondary:hover{background:#fff}
.home-refresh .hero a:focus-visible{outline-color:#ffd58a}

/* ---- Fresher cards and panel ---- */
.home-refresh .card,.home-refresh .panel{box-shadow:0 2px 10px rgba(23,43,59,.07)}
.home-refresh .card{transition:transform .18s ease,box-shadow .18s ease}
.home-refresh .card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(23,43,59,.14)}
.home-refresh .panel{border-top:4px solid #364e9c}

/* ---- Social side rail ---- */
.ds-rail{position:fixed;z-index:40;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;align-items:stretch}
.ds-rail-title{display:none;margin:0 0 2px;font-size:.72rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#364e9c;text-align:center;line-height:1.2}
.ds-rail a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;width:56px;color:#fff;text-decoration:none;font-weight:750;font-size:.9rem;line-height:1.2;border-radius:12px 0 0 12px;box-shadow:-2px 3px 14px rgba(0,0,0,.28);transition:width .18s ease,filter .18s ease;overflow:hidden;white-space:nowrap}
.ds-rail a svg{flex:none;width:26px;height:26px}
.ds-rail a .lbl{display:none}
.ds-rail a:hover,.ds-rail a:focus-visible{filter:brightness(1.1)}
.ds-rail a:focus-visible{outline:3px solid #14213f;outline-offset:-5px;box-shadow:0 0 0 3px #fff,-2px 3px 14px rgba(0,0,0,.28)}
.ds-rail .r-yt{background:#c4161c}
.ds-rail .r-g{background:#1a5bd0}
.ds-rail .r-yelp{background:#c41200}
.ds-rail .lbl .pre{font-weight:600;display:block;font-size:.72rem;opacity:.95}
@media(min-width:768px) and (max-width:1271px){
 .home-refresh .bar,.home-refresh .navwrap,.home-refresh main,.home-refresh .foot{padding-right:84px}
 .ds-rail a:hover,.ds-rail a:focus-visible{width:176px;justify-content:flex-start;padding-left:15px}
 .ds-rail a:hover .lbl,.ds-rail a:focus-visible .lbl{display:inline}
}
@media(min-width:1440px){
 .ds-rail{right:0;background:#fff;padding:12px 0 12px 12px;border-radius:16px 0 0 16px;border:1px solid #d7ddea;border-right:0;box-shadow:-4px 6px 22px rgba(23,43,59,.18)}
 .ds-rail-title{display:block}
 .ds-rail a{width:132px;justify-content:flex-start;padding:8px 10px 8px 12px;white-space:normal;box-shadow:none;border-radius:10px 0 0 10px}
 .ds-rail a .lbl{display:block}
}
/* Mobile: compact in-flow row under the header (does not cover the sticky call button or content) */
@media(max-width:767px){
 .ds-rail{position:static;transform:none;flex-direction:row;gap:8px;padding:10px 20px;background:#fff;border-bottom:1px solid #d7ddea}
 .ds-rail-title{display:none}
 .ds-rail a{flex:1 1 0;width:auto;min-height:48px;gap:6px;padding:6px 4px;border-radius:10px;box-shadow:none;font-size:.8rem;white-space:normal;text-align:left}
 .ds-rail a svg{width:22px;height:22px}
 .ds-rail a .lbl{display:block}
 .ds-rail .lbl .pre{display:none}
 .home-refresh main>.panel:first-child{margin-bottom:-40px}
 .home-refresh .hero{min-height:0;padding:76px 0 34px}
}
@media(prefers-reduced-motion:reduce){.home-refresh .card,.ds-rail a{transition:none}.home-refresh .card:hover{transform:none}}
@media print{.ds-rail{display:none}}

/* ---- Fixes Dec 4 (owner): clean hero flow, no gap above Welcome heading, rail off the screen edge ---- */
.home-refresh main>.panel:first-child{margin-bottom:32px}
.home-refresh main>.panel:first-child>h2:first-child{margin-top:0}
.home-refresh .hero{padding:72px 0 64px}
@media(min-width:768px){
 .ds-rail{right:16px}
 .ds-rail a{border-radius:12px}
}
@media(min-width:768px) and (max-width:1271px){
 .home-refresh .bar,.home-refresh .navwrap,.home-refresh main,.home-refresh .foot{padding-right:100px}
}
@media(min-width:1440px){
 .ds-rail{right:20px;padding:12px;border-radius:16px;border:1px solid #d7ddea;box-shadow:0 8px 24px rgba(23,43,59,.18)}
 .ds-rail a{border-radius:10px}
}
@media(max-width:767px){
 .home-refresh main>.panel:first-child{margin-bottom:24px}
 .home-refresh .hero{padding:44px 0 40px}
}
@media(min-width:1440px){
 .ds-rail{right:12px;padding:8px}
 .ds-rail a{width:112px;gap:8px;padding:8px 8px 8px 10px}
}
@media(min-width:1440px){.ds-rail .lbl .pre{display:none}}
.ds-rail .r-fb{background:#1877f2}
@media(max-width:767px){.ds-rail{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}.ds-rail a{width:auto;min-width:0}}
.home-refresh .hero .hero-links a{color:#fff;font-weight:600}.home-refresh .hero .hero-links{font-size:.95rem}

/* ---- Dec 4 draft: service photos + contact push-bar photo ---- */
.home-refresh .card img.ds-svc-img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:8px;margin:4px 0 0}
.home-refresh .ds-pushbar::after{content:"";display:block;clear:both}
.home-refresh .ds-pushbar-img{float:right;width:min(40%,420px);height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:10px;margin:0 0 12px 24px}
@media(max-width:767px){.home-refresh .ds-pushbar-img{float:none;width:100%;margin:0 0 16px}}
