/*
  PROJECT: Auto Key San Francisco
  COLOR SCHEME: Option A — #0c1f3f + #f59e0b
  FONTS: Combo C — Montserrat + Open Sans
  LAYOUT: Style 3 — Split
*/

:root {
  --navy: #0c1f3f;
  --navy-2: #16345f;
  --amber: #f59e0b;
  --amber-dark: #b96b05;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #12233f;
  --muted: #52627a;
  --border: #dbe3ee;
  --success: #167b57;
  --shadow: 0 18px 50px rgba(12, 31, 63, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body.mobile-nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4, .navbar-brand, .btn {
  font-family: "Montserrat", Arial, sans-serif;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.16; }
h1 { font-size: clamp(2.3rem, 5vw, 4.7rem); font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; font-weight: 750; }
p { margin: 0 0 1.15rem; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  padding: .8rem 1rem;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .92rem;
}
.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar a { color: #fff; font-weight: 700; }
.power-row { display: flex; align-items: center; gap: 1rem; }
.power-dot { color: var(--amber); }
.navbar {
  min-height: 82px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(12,31,63,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, min-height .25s ease;
}
.navbar.scrolled { min-height: 72px; box-shadow: 0 10px 35px rgba(12,31,63,.09); }
.navbar-brand { margin-right: 1.25rem; }
.navbar-brand img { width: 238px; height: auto; max-height: 62px; object-fit: contain; object-position: left center; }
.navbar-nav { align-items: center; gap: .15rem; }
.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-inline: .72rem !important;
  color: var(--navy) !important;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--amber-dark) !important; }
.dropdown-menu {
  max-height: 70vh;
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.dropdown-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
}
.dropdown-item:hover { background: #fff8e8; color: var(--navy); }
.navbar-toggler { min-width: 48px; min-height: 48px; border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(245,158,11,.35); }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.25rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-accent:hover { background: #ffb52b; color: var(--navy); box-shadow: 0 10px 24px rgba(245,158,11,.28); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; box-shadow: 0 10px 24px rgba(12,31,63,.25); }
.hero {
  position: relative;
  padding: 54px 0 68px;
  background: linear-gradient(140deg, #eef4fb, #fff 60%);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 80px solid rgba(245,158,11,.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero .row { position: relative; z-index: 1; }
.hero-copy { padding-block: 1.5rem; }
.eyebrow {
  margin-bottom: .8rem;
  color: var(--amber-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .4rem .78rem;
  border: 1px solid #f3ca77;
  border-radius: 999px;
  background: #fff9e9;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
}
.hero-media {
  position: relative;
  min-height: 500px;
  border-radius: 34px 12px 34px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  max-width: 280px;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--amber);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 35px rgba(12,31,63,.2);
}
.hero-card strong { display: block; font-family: "Montserrat", Arial, sans-serif; color: var(--navy); }
.section { padding: 82px 0; }
.section-sm { padding: 54px 0; }
.section-alt { background: linear-gradient(180deg, #fff, #f1f5f9); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3, .section-navy a { color: #fff; }
.section-navy .eyebrow { color: var(--amber); }
.section-head { max-width: 780px; margin-bottom: 2.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -30px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.trust-item { padding: 1.15rem 1.25rem; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-family: "Montserrat", Arial, sans-serif; }
.trust-item span { color: var(--muted); font-size: .92rem; }
.service-card, .content-card, .faq-wrap, .form-wrap, .location-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(12,31,63,.06);
}
.service-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card-body { padding: 1.35rem; }
.service-card h3 { margin-bottom: .6rem; }
.text-link { font-family: "Montserrat", Arial, sans-serif; font-weight: 800; }
.content-card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.content-card + .content-card { margin-top: 1.4rem; }
.content-section-row > [class*="col-"] { display: flex; }
.content-section-row .content-card { width: 100%; }
.content-section-photo {
  width: 100%;
  height: clamp(340px, 38vw, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-card ul, .check-list { padding-left: 0; list-style: none; }
.content-card li, .check-list li {
  position: relative;
  margin-bottom: .7rem;
  padding-left: 1.8rem;
}
.content-card li::before, .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 900;
}
.feature-photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.compare-card img { width: 100%; height: 340px; object-fit: cover; }
.compare-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .85rem;
  font-weight: 800;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 170px;
  gap: .8rem;
}
.gallery-item { overflow: hidden; border-radius: 18px; border: 0; padding: 0; background: #fff; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(5), .gallery-item:nth-child(6) { grid-column: span 7; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.accordion-item { border-color: var(--border); }
.accordion-button { min-height: 62px; color: var(--navy); font-weight: 800; }
.accordion-button:not(.collapsed) { color: var(--navy); background: #fff7e4; box-shadow: none; }
.coupon-link {
  display: block;
  max-width: 1050px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.coupon-link img { width: 100%; height: auto; }

/* Blog */
.blog-hero { min-height: auto; }
.blog-breadcrumb-band {
  padding: 1rem 0;
  background: #e8eef6;
  color: var(--muted);
  font-weight: 700;
}
.blog-page { background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%); }
.blogbox,
.blogpost {
  clear: both;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.blogbox h2,
.blogpost h1,
.blogpost h2 { margin-top: 0; color: var(--navy); }
.blogbox h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.blogbox a { text-decoration: none; }
.blogbox .blogimg img,
.blogpost .blog_wrapper img {
  float: right;
  width: min(38%, 420px);
  height: auto;
  margin: 0 0 1.25rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 31, 63, .18);
}
.blogbox .read-more { margin: 1.5rem 0 0; }
.blogbox .read-more a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .7rem 1.15rem;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
}
.blogbox .read-more a:hover { background: var(--navy); color: #fff; }
.socialbox {
  position: relative;
  clear: both;
  width: 100%;
  padding-top: 1.5rem;
  overflow: hidden;
  text-align: center;
}
.social-share-btns { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.social-share-btns .share-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .7rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.social-share-btns .share-btn svg { width: 1rem; height: 1rem; margin-right: .55rem; fill: currentColor; }
.share-btn { background: #64748b; }
.share-btn-twitter { background: #0284c7; }
.share-btn-facebook { background: #35569a; }
.share-btn-linkedin { background: #0369a1; }
.share-btn:hover { filter: brightness(.88); color: #fff; }

@media (max-width: 700px) {
  .blogbox .blogimg img,
  .blogpost .blog_wrapper img {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1.25rem;
  }
}

.cta-band { padding: 56px 0; background: linear-gradient(120deg, var(--navy), #1b4b82); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.form-wrap { padding: clamp(1.25rem, 4vw, 2.6rem); }
.form-control, .form-select {
  min-height: 50px;
  margin-bottom: .7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 .25rem rgba(245,158,11,.16); }
.form-note { color: var(--muted); font-size: .92rem; }
.location-card { padding: 1.4rem; }
.zip-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.zip-chip { padding: .35rem .65rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; }
.site-footer {
  padding: 72px 0 95px;
  background: linear-gradient(145deg, #071326 0%, #0c1f3f 58%, #10294f 100%);
  color: #d8e2ef;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1.7fr 1.15fr 1.25fr;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  align-items: start;
}
.footer-column { min-width: 0; }
.site-footer h2,
.site-footer h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.35;
}
.footer-logo-link { display: inline-block; }
.footer-logo {
  width: min(250px, 100%);
  height: auto;
  padding: .55rem;
  border-radius: 12px;
  background: #fff;
}
.footer-brand p { margin: 1rem 0; line-height: 1.7; }
.site-footer a { color: #eef5ff; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--amber); }
.footer-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(245, 158, 11, .7);
  border-radius: 10px;
  background: rgba(245, 158, 11, .12);
  color: #fff !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
}
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: .58rem; line-height: 1.5; }
.footer-contact-list a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}
.footer-service-grid li,
.footer-service-grid a { min-width: 0; }
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-trust span {
  padding: .38rem .62rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.footer-map {
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
.footer-location-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: .65rem;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #b8c7d9;
  font-size: .9rem;
}
.social-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .7rem;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 10px;
  text-decoration: none;
}
.mobile-call-bar {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 1040;
  display: none;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--amber);
  color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(12,31,63,.28);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 13, 27, .92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 95vw); max-height: 86vh; border-radius: 16px; }
.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.8rem;
}
.error-code { color: var(--amber); font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: .9; }

@media (max-width: 1199.98px) {
  .navbar-brand img { width: 205px; }
  .nav-link { padding-inline: .5rem !important; font-size: .88rem; }
  .navbar .btn-accent { padding-inline: .75rem; font-size: .84rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-services { grid-column: span 2; }
  .footer-location { grid-column: span 2; }
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1rem 0 1.4rem;
  }
  .navbar-nav { align-items: stretch; }
  .nav-link { font-size: 1rem; }
  .navbar .btn-accent { width: 100%; margin-top: .7rem; font-size: .95rem; }
  .hero { padding-top: 34px; }
  .hero-media { min-height: 410px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 767.98px) {
  body { font-size: 16px; padding-bottom: 78px; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-contact { display: none; }
  .power-row { gap: .55rem; font-size: .83rem; }
  .navbar-brand img { width: 190px; }
  .hero-media { min-height: 350px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 62px 0; }
  .content-section-photo { height: 300px; }
  .before-after { grid-template-columns: 1fr; }
  .compare-card img { height: 290px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 2; }
  .mobile-call-bar { display: flex; }
  .site-footer { padding: 58px 0 105px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-services,
  .footer-location { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .power-row .power-dot { display: none; }
  .navbar-brand img { width: 170px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 1; }
  .footer-service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
