
:root{
 --navy:#071a2f;--navy2:#0d3155;--gold:#ffbf1f;--gold2:#f3a900;
 --ink:#142033;--muted:#6d7786;--soft:#f4f7fa;--white:#fff;
 --shadow:0 18px 45px rgba(7,26,47,.12)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.6;background:#fff}
a{text-decoration:none;color:inherit}.wrap{width:min(1180px,92%);margin:auto}
.topbar{background:#061321;color:#e8eff7;font-size:13px}.topbar .wrap{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);box-shadow:0 2px 15px rgba(0,0,0,.07)}
.nav{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:20px}
.logo{display:flex;align-items:center;gap:11px;font-weight:900;letter-spacing:.2px;color:var(--navy)}
.logo-mark{width:39px;height:39px;border-radius:10px;background:var(--gold);display:grid;place-items:center;box-shadow:0 8px 20px rgba(255,191,31,.3)}
.logo-mark svg{width:23px;height:23px}.logo-text{font-size:18px;line-height:1}.logo-text small{display:block;font-size:10px;letter-spacing:1.4px;color:#77808d;margin-top:5px}
.links{display:flex;align-items:center;gap:18px;font-size:13px;font-weight:800}.links a:hover{color:#a87500}.call{background:var(--gold);padding:11px 16px;border-radius:8px;color:#111!important}
.hero{min-height:610px;display:flex;align-items:center;color:#fff;background:
linear-gradient(90deg,rgba(4,20,38,.96) 0%,rgba(4,20,38,.86) 45%,rgba(4,20,38,.40) 100%),
url('https://images.unsplash.com/photo-1688744207716-9113d0ca269d?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000') center/cover}
.hero.sub{min-height:470px;background-position:center}
.hero-content{max-width:760px;padding:80px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,191,31,.95);color:#111;padding:7px 13px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.5px}
.hero h1{font-size:clamp(44px,6vw,70px);line-height:1.02;margin:18px 0 18px;letter-spacing:-1.8px}.hero.sub h1{font-size:clamp(40px,5vw,58px)}
.hero p{font-size:19px;max-width:700px;color:#e4edf6}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:9px;font-weight:900}
.primary{background:var(--gold);color:#111}.secondary{border:1px solid #ffffff88;background:#ffffff10;color:#fff}.darkbtn{background:var(--navy);color:#fff}
.trust{background:var(--gold);padding:14px 0;font-size:13px;font-weight:900}.trust .wrap{display:flex;justify-content:center;gap:32px;flex-wrap:wrap}
section{padding:76px 0}.light{background:var(--soft)}.dark{background:linear-gradient(135deg,#071a2f,#0d3155);color:#fff}
.head{text-align:center;max-width:780px;margin:0 auto 42px}.head .kicker{font-size:12px;font-weight:900;letter-spacing:1.5px;color:#b17c00;text-transform:uppercase}
.head h2{font-size:38px;line-height:1.15;margin:7px 0 11px;letter-spacing:-.7px}.head p{color:var(--muted);margin:0}.dark .head p{color:#ccd9e6}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid #e6ebf0;border-radius:16px;padding:27px;box-shadow:0 8px 25px rgba(7,26,47,.06);transition:.2s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.card h3{margin:0 0 8px}.card p{color:var(--muted);margin:0}.icon{width:48px;height:48px;border-radius:13px;background:#fff3cb;display:grid;place-items:center;font-size:25px;margin-bottom:16px}
.photo-split{display:grid;grid-template-columns:1.02fr .98fr;gap:42px;align-items:center}.photo{min-height:440px;border-radius:20px;background-size:cover;background-position:center;box-shadow:var(--shadow)}
.photo.home{background-image:url('https://images.unsplash.com/flagged/photo-1564767609342-620cb19b2357?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000')}
.photo.lock{background-image:url('https://images.unsplash.com/photo-1750614335370-fa6e54d970db?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000')}
.list{list-style:none;padding:0;margin:20px 0}.list li{position:relative;padding-left:29px;margin:11px 0}.list li:before{content:"✓";position:absolute;left:0;color:#b67f00;font-weight:900}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:#fff;border-radius:14px;padding:22px;text-align:center;border:1px solid #e6ebf0}.stat b{display:block;font-size:25px;color:var(--navy)}.stat span{font-size:12px;color:var(--muted);font-weight:700}
.reviewband{background:#fff}.reviewbox{border:1px solid #e5eaf0;border-radius:18px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:25px;box-shadow:var(--shadow)}.stars{font-size:22px;letter-spacing:3px;color:#e7a900}
.pills{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.pill{background:#e8eef4;padding:10px 16px;border-radius:999px;font-weight:800}
.cta{background:linear-gradient(135deg,var(--gold),#ffd463);padding:58px 0;text-align:center}.cta h2{font-size:38px;margin:0 0 7px}.cta p{margin:0 0 20px}
.contactgrid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.contactbox{border:1px solid #e4e9ef;border-radius:16px;padding:28px;background:#fff}
footer{background:#040d16;color:#c8d3df;padding:48px 0 88px}.foot{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.foot strong{color:#fff}.foot a{display:block;margin:5px 0}.copy{margin-top:25px;padding-top:20px;border-top:1px solid #ffffff18;font-size:13px}
.mobile{display:none;position:fixed;bottom:0;left:0;right:0;z-index:90;background:var(--gold);text-align:center;padding:14px;font-weight:900}
@media(max-width:900px){.links{display:none}.grid{grid-template-columns:1fr 1fr}.photo-split,.contactgrid,.foot{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.hero{min-height:560px}.mobile{display:block}}
@media(max-width:580px){.topbar .wrap{justify-content:center}.topbar span:last-child{display:none}.hero{min-height:520px;background-position:60% center}.hero h1{font-size:43px}.grid,.stats{grid-template-columns:1fr}.head h2{font-size:31px}section{padding:56px 0}.reviewbox{align-items:flex-start;flex-direction:column}}

body.page-home .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.96),rgba(4,20,38,.38)),url('https://images.unsplash.com/photo-1688744207716-9113d0ca269d?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-car .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.94),rgba(4,20,38,.48)),url('https://images.unsplash.com/photo-1571165347530-1ce760150b70?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-fobs .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.94),rgba(4,20,38,.48)),url('https://images.unsplash.com/photo-1562003596-a5827707367d?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-residential .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.94),rgba(4,20,38,.44)),url('https://images.unsplash.com/photo-1755288556425-f60755b10bff?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-commercial .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.94),rgba(4,20,38,.47)),url('https://images.unsplash.com/photo-1708719018920-06f77778249e?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-emergency .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.96),rgba(4,20,38,.50)),url('https://images.unsplash.com/photo-1708719018920-06f77778249e?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-about .hero{background-image:linear-gradient(90deg,rgba(4,20,38,.94),rgba(4,20,38,.48)),url('https://images.unsplash.com/photo-1750614335370-fa6e54d970db?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=60&w=3000');}
body.page-contact .hero{background-image:linear-gradient(135deg,#071a2f,#174a76);}
.faq{max-width:900px;margin:auto}.faq details{background:#fff;border:1px solid #e6ebf0;border-radius:12px;padding:17px 20px;margin:10px 0}
.faq summary{font-weight:900;cursor:pointer}.faq p{color:var(--muted);margin:10px 0 0}
.review-note{font-size:13px;color:var(--muted);margin-top:9px}

/* V4: brighter hero photography */
body.page-home .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.72) 0%,rgba(4,20,38,.46) 46%,rgba(4,20,38,.13) 100%),
  url('https://images.unsplash.com/photo-1688744207716-9113d0ca269d?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-car .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.70),rgba(4,20,38,.18)),
  url('https://images.unsplash.com/photo-1571165347530-1ce760150b70?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-fobs .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.70),rgba(4,20,38,.18)),
  url('https://images.unsplash.com/photo-1562003596-a5827707367d?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-residential .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.70),rgba(4,20,38,.16)),
  url('https://images.unsplash.com/photo-1755288556425-f60755b10bff?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-commercial .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.72),rgba(4,20,38,.18)),
  url('https://images.unsplash.com/photo-1708719018920-06f77778249e?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-emergency .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.74),rgba(4,20,38,.20)),
  url('https://images.unsplash.com/photo-1708719018920-06f77778249e?auto=format&fit=crop&fm=jpg&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-about .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.70),rgba(4,20,38,.18)),
  url('https://images.unsplash.com/photo-1750614335370-fa6e54d970db?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=70&w=3000');
}
body.page-tips .hero{
  background-image:
  linear-gradient(90deg,rgba(4,20,38,.74),rgba(4,20,38,.22)),
  url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&fm=jpg&q=70&w=3000');
}

/* Bigger brand presence */
.logo-mark{width:48px;height:48px;border-radius:12px}
.logo-mark svg{width:29px;height:29px}
.logo-text{font-size:22px}
.logo-text small{font-size:10px}
.hero-logo{
  display:inline-flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.94);color:#071a2f;
  padding:13px 18px;border-radius:15px;margin-bottom:18px;
  box-shadow:0 16px 35px rgba(0,0,0,.18)
}
.hero-logo .logo-mark{width:62px;height:62px}
.hero-logo .logo-mark svg{width:37px;height:37px}
.hero-logo .logo-text{font-size:30px}
.hero-logo .logo-text small{font-size:12px}

/* Locksmith tips */
.tip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tip-card{background:#fff;border:1px solid #e6ebf0;border-radius:16px;overflow:hidden;box-shadow:0 8px 25px rgba(7,26,47,.06)}
.tip-photo{height:190px;background-size:cover;background-position:center}
.tip-content{padding:22px}
.tip-meta{font-size:12px;color:#b17c00;font-weight:900;letter-spacing:.6px;text-transform:uppercase}
.tip-content h3{margin:7px 0 8px;line-height:1.25}.tip-content p{color:var(--muted);margin:0 0 14px}
.tip-link{font-weight:900;color:#9b6b00}
.article{max-width:850px;margin:auto}.article h2{margin-top:34px}.article p,.article li{color:#4f5a68}
@media(max-width:850px){.tip-grid{grid-template-columns:1fr 1fr}.hero-logo .logo-text{font-size:24px}}
@media(max-width:580px){.tip-grid{grid-template-columns:1fr}.hero-logo{padding:10px 12px}.hero-logo .logo-mark{width:50px;height:50px}.hero-logo .logo-text{font-size:21px}}

/* V5: real Key Buddy logo */
.logo-real{
  display:block;
  width:118px;
  height:72px;
  object-fit:contain;
}
.logo-text-fallback{display:none}

.hero-logo-real{
  display:block;
  width:min(360px,70vw);
  height:auto;
  max-height:310px;
  object-fit:contain;
  background:rgba(255,255,255,.96);
  border-radius:18px;
  padding:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.20);
  margin-bottom:22px;
}

@media(max-width:900px){
  .logo-real{width:102px;height:64px}
}
@media(max-width:580px){
  .logo-real{width:88px;height:58px}
  .hero-logo-real{width:min(300px,82vw);max-height:250px}
}

.hero-content .hero-logo-real{margin-left:auto;margin-right:auto;background:transparent;box-shadow:none;padding:0}
body.page-home .hero-content{max-width:1000px;text-align:center;margin-left:auto;margin-right:auto}
body.page-home .hero-content .actions{justify-content:center}
body.page-home .hero-content p{margin-left:auto;margin-right:auto}
.service-area-box{background:#fff;border:1px solid #e4eaf0;border-radius:18px;padding:34px;box-shadow:0 10px 30px rgba(7,26,47,.07)}
.area-note{margin-top:18px;text-align:center;color:var(--muted);font-size:14px}

/* =========================
   V7 BRAND / HEADER REDESIGN
   ========================= */
header{
  position:sticky;
  top:0;
  z-index:60;
  background:#fff;
  box-shadow:0 3px 16px rgba(7,26,47,.09);
}
.nav{
  min-height:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:10px 0 0;
}
.logo{
  display:flex;
  justify-content:center;
  width:100%;
  padding:4px 0 10px;
}
.logo-real{
  width:150px;
  height:112px;
  object-fit:contain;
  display:block;
}
.links{
  width:100%;
  justify-content:center;
  border-top:1px solid #edf1f5;
  padding:10px 0 12px;
  gap:20px;
}
.links .call{
  margin-left:6px;
}
.hero-logo-real{display:none!important}

/* Homepage hero resets to strong left-aligned sales layout */
body.page-home .hero-content{
  max-width:760px;
  text-align:left;
  margin-left:0;
  margin-right:auto;
}
body.page-home .hero-content .actions{justify-content:flex-start}
body.page-home .hero-content p{margin-left:0;margin-right:0}
body.page-home .hero{
  background-image:
    linear-gradient(90deg,rgba(4,20,38,.78) 0%,rgba(4,20,38,.52) 48%,rgba(4,20,38,.15) 100%),
    url('https://images.unsplash.com/photo-1688744207716-9113d0ca269d?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=72&w=3000');
}
.hero.sub{
  min-height:430px;
}

/* Brand ribbon below header on homepage */
.brand-ribbon{
  background:#fff;
  padding:26px 0 20px;
  border-bottom:1px solid #edf1f5;
  text-align:center;
}
.brand-ribbon img{
  width:min(250px,58vw);
  height:auto;
  display:block;
  margin:0 auto;
}
.brand-ribbon p{
  margin:8px 0 0;
  color:#6d7786;
  font-size:14px;
  font-weight:700;
}

/* Keep logo visibly separated from photos at all sizes */
@media(max-width:900px){
  .logo-real{width:128px;height:96px}
  .links{display:none}
  .nav{padding:8px 0}
}
@media(max-width:580px){
  .logo-real{width:112px;height:84px}
  .brand-ribbon{padding:18px 0 15px}
  .brand-ribbon img{width:min(210px,64vw)}
}

/* =========================
   V8 HEADER CLEANUP
   ========================= */
header{
  background:#fff;
  box-shadow:0 3px 16px rgba(7,26,47,.09);
}
.nav{
  min-height:66px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  padding:0;
}
.nav .logo{display:none!important}
.links{
  width:100%;
  justify-content:center;
  border-top:0;
  padding:14px 0;
  gap:22px;
}
.links .call{
  margin-left:8px;
}
@media(max-width:900px){
  .nav{
    min-height:58px;
    padding:0 12px;
  }
  .links{display:none}
}
