/* BestBoy Locksmith - shared styles. Mobile first. */
:root {
  --blue: #0B4CBE;
  --blue-600: #0A43A8;
  --blue-700: #083A91;
  --navy: #0A1B3D;
  --navy-2: #102A5C;
  --yellow: #F5E50F;
  --yellow-600: #E2D300;
  --ink: #111827;
  --text: #2B3445;
  --muted: #5B6578;
  --line: #E3E8F2;
  --surface: #F5F8FE;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 27, 61, .06), 0 2px 8px rgba(10, 27, 61, .06);
  --shadow: 0 10px 30px rgba(10, 27, 61, .10), 0 2px 6px rgba(10, 27, 61, .06);
  --shadow-lg: 0 24px 60px rgba(10, 27, 61, .22);
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-bottom: 84px; /* room for mobile call bar */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
svg { flex: none; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.7rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.lead { font-size: 1.15rem; line-height: 1.6; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; }

/* Section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--yellow); }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center .eyebrow::after { content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--head); font-weight: 700; text-decoration: none; line-height: 1.1;
  border-radius: 999px; padding: 14px 24px; font-size: 1.05rem;
  border: 0; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-call { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 229, 15, .35); }
.btn-call:hover { background: var(--yellow-600); color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-700); color: var(--white); }
.btn .ico { width: 20px; height: 20px; }
.btn-big { padding: 12px 28px 12px 14px; }
.btn-big .ico-wrap { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.btn-big .ico { width: 22px; height: 22px; }
.btn-big .lbl { display: flex; flex-direction: column; text-align: left; }
.btn-big .lbl small { font-family: var(--body); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.btn-big .lbl b { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }

/* Top bar */
.topbar { display: none; background: var(--navy); color: #C9D5EE; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--yellow); }

/* Header */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 10px; padding-bottom: 4px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 42px; width: auto; }
.header-call { padding: 9px 14px; font-size: .9rem; gap: 8px; box-shadow: none; }
.header-call .ico { width: 17px; height: 17px; }
.header-call small { display: none; }
.main-nav { order: 3; width: 100%; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0 -10px; }
.main-nav a {
  display: block; padding: 10px; font-family: var(--head); font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(245, 229, 15, .12), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 55%, var(--navy-2) 100%);
  padding: 22px 0 48px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { color: #E3EBFC; max-width: 34em; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .85rem; font-weight: 600; color: var(--white);
}
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 229, 15, .25); margin-left: 6px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 24px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); font-size: .97rem; }
.hero-points svg { width: 20px; height: 20px; color: var(--yellow); }
.hero-meta { margin-top: 16px; font-size: .92rem; color: #CFDBF5; }
.hero-meta strong { color: var(--white); }
.hero-media { position: relative; }
.hero-media .ph { border-radius: 20px; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .18); }
.float-card {
  position: absolute; left: -6px; bottom: -18px; display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.3; max-width: 260px;
}
.float-card b { display: block; font-family: var(--head); font-size: .98rem; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; }
.float-card svg { width: 22px; height: 22px; }

/* Breadcrumb */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #C9D5EE; margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #E3EBFC; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }

/* Trust bar */
.trust-wrap { position: relative; z-index: 2; margin-top: -28px; }
.trust { display: grid; gap: 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.trust > div { display: flex; gap: 14px; align-items: center; }
.trust .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--blue); display: grid; place-items: center; }
.trust svg { width: 24px; height: 24px; }
.trust strong { display: block; font-family: var(--head); color: var(--ink); font-size: .98rem; }
.trust span { font-size: .9rem; color: var(--muted); }

/* Photo with placeholder fallback */
.ph { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--blue), var(--navy-2)); border-radius: var(--radius); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ph.missing::after {
  content: attr(data-file); position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--head); font-weight: 600; font-size: .95rem; text-align: center;
  border: 2px dashed rgba(255, 255, 255, .5); border-radius: 10px;
}

/* Grids */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* Service cards */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD6EC; }
.card:hover .ph img { transform: scale(1.04); }
.card .ph { border-radius: 0; }
.card-body { padding: 30px 22px 22px; display: flex; flex-direction: column; flex: 1; position: relative; }
.card-ic {
  position: absolute; top: -26px; left: 20px; width: 52px; height: 52px; border-radius: 14px;
  background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(10, 27, 61, .18);
}
.card-ic svg { width: 26px; height: 26px; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-body p { color: var(--muted); font-size: .97rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--blue); }
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

.card-call {
  background: linear-gradient(150deg, var(--blue), var(--navy-2)); border: 0; color: var(--white); justify-content: center;
}
.card-call .card-body { padding: 28px 24px; justify-content: center; }
.card-call h3 { color: var(--white); font-size: 1.35rem; }
.card-call p { color: #DCE6FA; }
.card-call .btn { align-self: flex-start; position: relative; z-index: 1; }

/* Small icon cards (city pages, related services) */
.mini {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--blue); display: grid; place-items: center; }
.mini:hover .ic { background: var(--yellow); color: var(--navy); }
.mini svg { width: 24px; height: 24px; }
.mini h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.mini h3 a { color: var(--ink); text-decoration: none; }
.mini h3 a::after { content: ""; position: absolute; inset: 0; }
.mini p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Lists */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230A1B3D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.pins { list-style: none; display: grid; gap: 10px; }
.pins li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pins svg { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 20px 20px 78px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
}
.steps strong { display: block; font-family: var(--head); color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .97rem; }

/* Pills */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, border-color .15s;
}
.pill-list a svg { width: 16px; height: 16px; color: var(--blue); }
.pill-list a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pill-list a:hover svg { color: var(--yellow); }

/* Content layout with sticky call panel */
.layout { display: grid; gap: 32px; }
.content > * + * { margin-top: 44px; }
.content h2 { font-size: 1.55rem; }
.content p { max-width: 68ch; }
.split { display: grid; gap: 28px; align-items: center; }
.cols2 { display: grid; gap: 12px; }

.callpanel {
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #D5DEEF; border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow);
}
.callpanel h2 { color: var(--white); font-size: 1.35rem; margin-bottom: .3em; }
.callpanel p { font-size: .95rem; }
.callpanel .btn { width: 100%; margin: 6px 0 18px; }
.callpanel dl { margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.callpanel dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.callpanel dt { color: #9FB0D3; }
.callpanel dd { margin: 0; color: var(--white); font-weight: 600; text-align: right; }
.callpanel h3 { color: var(--white); font-size: .95rem; margin: 20px 0 10px; }
.callpanel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.callpanel ul a { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--white); font-size: .85rem; text-decoration: none; }
.callpanel ul a:hover { background: var(--yellow); color: var(--navy); }

/* Notice boxes */
.box { background: #FFFBD6; border: 1px solid #F1E68A; border-radius: var(--radius-sm); padding: 16px 18px; color: #3B3500; }
.box.warn { background: #EEF3FF; border-color: #C9D7F6; color: var(--navy); }
.box h3 { font-size: 1.05rem; margin-bottom: .6em; }
.box > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; background: var(--yellow); color: var(--navy); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Photo pair */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pair .ph:first-child { grid-column: 1 / -1; }

/* CTA */
.cta {
  position: relative; overflow: hidden; color: var(--white); padding: 56px 0;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(245, 229, 15, .16), transparent 60%),
    linear-gradient(135deg, var(--blue), var(--navy-2));
}
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta h2 { color: var(--white); font-size: 1.9rem; margin-bottom: .3em; }
.cta p { color: #DCE6FA; margin: 0; font-size: 1.05rem; }
.cta .hours { margin-top: 10px; font-size: .9rem; color: #B9C8E8; }

/* Footer */
.site-footer { background: var(--navy); color: #B9C5DE; padding: 52px 0 24px; font-size: .95rem; }
.site-footer a { color: #E3EBFC; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 1em; letter-spacing: .02em; }
.foot-logo { display: inline-block; background: var(--white); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.foot-logo img { height: 44px; width: auto; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.45rem; color: var(--yellow) !important; }
.foot-phone svg { width: 22px; height: 22px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8E9BBA; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Sticky mobile call bar */
.mobile-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 27, 61, .08);
}
.mobile-call a { width: 100%; font-size: 1.15rem; padding: 15px 20px; }

/* Tablet */
@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); padding: 22px 26px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .header-call small { display: inline; font-family: var(--body); font-weight: 600; }
}

/* Desktop */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-call { display: none; }
  .topbar { display: block; }
  .site-header { position: sticky; top: 0; backdrop-filter: blur(8px); }
  .header-inner { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
  .logo img { height: 56px; }
  .main-nav { order: 0; width: auto; margin-left: auto; margin-right: 12px; }
  .main-nav ul { gap: 8px; }
  .main-nav a { padding: 10px 12px; font-size: 1rem; }
  .header-call { padding: 12px 22px; font-size: 1rem; }
  .hero { padding: 34px 0 84px; }
  .hero.has-trust { padding-bottom: 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.1rem; }
  .section { padding: 84px 0; }
  .trust-wrap { margin-top: -56px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps.row { grid-template-columns: repeat(3, 1fr); }
  .steps.row li { padding: 78px 22px 24px; }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .layout > aside { position: sticky; top: 100px; }
  .cta-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .cta h2 { font-size: 2.3rem; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .float-card { left: -24px; bottom: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
