/* Auto Lock Specialists — static rebuild of grandrapids-locksmith.com
   Palette, type and spacing copied from the live Astra + Elementor kit. */

:root {
  --orange: #f89938;
  --dark: #2b2e37;
  --mid: #4a4f5d;
  --light: #f8f9f9;
  --white: #ffffff;
  --text: rgba(0, 0, 0, 0.65);
  --menu: #373737;
  --star: #ffdd00;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Staatliches', Impact, 'Arial Narrow Bold', 'Franklin Gothic Demi Cond', sans-serif;
  --wrap: 1500px;
  --gutter: 20px;
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--dark); line-height: 1.15; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: 75px; }
h2 { font-size: 60px; }
h3 { font-size: 40px; }
h4 { font-size: 22px; font-weight: 700; }
h5 { font-size: 20px; font-weight: 700; }
h6 { font-size: 16px; font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  background: var(--orange); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 0; border-radius: 0; cursor: pointer; line-height: 1.2;
  transition: background .2s, color .2s, opacity .2s;
}
.btn:hover, .btn:focus-visible { color: rgba(255, 255, 255, .75); }
.btn-lg { font-size: 25px; padding: 14px 30px; letter-spacing: .06em; }
.btn-dark { background: var(--dark); }
.btn-ghost { background: transparent; border: 2px solid #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.topbar { background: var(--orange); color: #fff; min-height: 40px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
.topbar a:hover { color: rgba(255, 255, 255, .8); }
.topbar .social svg { width: 18px; height: 18px; fill: #fff; }
.topbar .top-links { display: flex; gap: 10px; margin-left: auto; }
.mainbar { background: var(--white); border-bottom: 1px solid #eaeaea; position: sticky; top: 0; z-index: 50; }
.mainbar .wrap { display: flex; align-items: center; min-height: 70px; gap: 20px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 32px; margin: 0 auto; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--menu); }
.nav a:hover { color: var(--orange); }
.header-cta { display: flex; gap: 12px; flex: none; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--menu); padding: 8px; }
.menu-toggle svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #5a7a9a url('img/hero-bg.webp') center center / cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #2e8aff 0%, #000 100%); opacity: .32; }
.hero .wrap { position: relative; display: flex; align-items: flex-end; gap: 0; }
.hero-copy { flex: 1 1 64%; padding: 10% 0 6%; }
.hero-cities { font-size: 19px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0; margin-bottom: 8px; white-space: nowrap; }
.hero h1 { font-size: 126px; color: #fff; line-height: .95; margin: 0 0 .2em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 30px; }
.hero-truck { flex: 0 0 36%; max-width: 36%; align-self: flex-end; margin-bottom: -2px; }
.hero-truck img { width: 100%; }

/* ---------- Services ---------- */
.services { padding: 70px 0 30px; }
.services-intro { max-width: 900px; padding-right: 50px; padding-bottom: 60px; }
.services-intro h3 { font-size: 62px; }
.services-intro h5 { font-weight: 400; color: var(--text); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 50px; }
.service { display: flex; gap: 20px; align-items: flex-start; }
.service .icon { flex: none; width: 50px; height: 50px; color: var(--orange); }
.service .icon svg { width: 50px; height: 50px; fill: currentColor; }
.service h4 { margin-bottom: 4px; }

/* ---------- About ---------- */
.about { background: linear-gradient(45deg, var(--light) 0%, var(--white) 100%); padding: 80px 0 70px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-copy { padding-right: 60px; }
.about-copy h2 { font-size: 62px; }
.about-copy h5 { font-weight: 400; color: var(--text); margin-bottom: 1em; }
.about-media { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: end; }
.about-media .vlogo { opacity: .2; justify-self: end; max-width: 130px; }
.about-media .photos { display: grid; gap: 20px; }
.about-media .photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ---------- Makes ---------- */
.makes { padding: 70px 0; text-align: center; }
.makes h2 { max-width: 70%; margin: 0 auto 40px; }
.make-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: center; }
.make-row img { width: 100%; max-width: 180px; margin: 0 auto; }

/* ---------- West Michigan ---------- */
.region { background: var(--light); padding: 100px 0 0; }
.region-head { border-bottom: 1px solid rgba(0, 0, 0, .09); padding-bottom: 60px; margin-bottom: 50px; }
.region-head h2 { max-width: 70%; }
.region-body { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-bottom: 125px; }
.region-body h3 { color: var(--orange); padding-right: 50px; }
.region-body h5 { font-weight: 400; color: var(--text); margin-bottom: 1em; }

/* ---------- FAQ ---------- */
.faq { background: var(--white) url('img/bg-26.png') center / contain no-repeat; padding: 100px 0; }
.faq .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.faq details { margin-bottom: 12px; border: 1px solid #eee; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; background: var(--orange); color: #fff; font-weight: 700; padding: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; flex: none; width: 0; height: 0; border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq .answer { padding: 12px 16px 16px; background: #fff; }
.faq .answer a { color: var(--orange); font-weight: 700; }

/* ---------- Reviews ---------- */
.reviews { position: relative; color: #fff; background: radial-gradient(at top center, var(--mid) 0%, var(--dark) 100%); padding: 0 0 75px; }
.reviews::before { content: ''; position: absolute; inset: 0; background: url('img/quote.png') top right no-repeat; opacity: .1; pointer-events: none; }
.reviews .wrap { position: relative; display: grid; grid-template-columns: 34% 66%; align-items: start; }
.rating-card { background: var(--orange); margin-top: -60px; padding: 45px 50px 40px; position: sticky; top: 90px; }
.rating-card .stars { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rating-card .stars span { font-size: 25px; letter-spacing: 2px; color: var(--star); }
.rating-card .stars small { font-size: 14px; font-weight: 700; color: #fff; }
.rating-card .big { font-family: var(--display); font-size: 120px; line-height: 1; color: #fff; margin: -10px 0 0; }
.rating-card h5 { color: #fff; padding-top: 60px; font-weight: 700; }
.review-list { padding: 185px 0 0 100px; }
.review-list h2 { color: #fff; padding-bottom: 20px; }
.review { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.review:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.review p { color: #fff; }
.review .name { font-weight: 700; color: #fff; }
.review-link { display: inline-block; margin-top: 30px; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.review-link:hover { color: #fff; }

/* ---------- Footer / contact ---------- */
.contact { background: var(--light); padding: 80px 0 0; }
.contact h2 { padding-left: 20px; margin: 0; }
.contact .call-line { display: block; padding-left: 20px; color: var(--orange); font-family: var(--display); font-size: 40px; line-height: 1.2; }
.contact .call-line:hover { color: var(--dark); }
.contact .divider { border: 0; border-top: 1px solid rgba(0, 0, 0, .07); margin: 50px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 100px; }
.contact-col { padding: 0 50px 0 20px; }
.contact-col h4, .message-col h4 { font-family: var(--display); font-size: 40px; font-weight: 400; }
.contact-list { list-style: none; padding: 15px 0 0; margin: 0; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-weight: 700; }
.contact-list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: var(--orange); }
.contact-list a:hover { color: var(--orange); }
.message-card { background: #fff; border: 1px solid #e3e3e3; padding: 30px; }
.message-card p { max-width: 60ch; }
.message-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer-bar { border-top: 3px solid var(--orange); background: var(--light); }
.footer-bar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 30px; min-height: 60px; font-size: 14px; }
.footer-bar a:hover { color: var(--orange); }

/* ---------- Mobile sticky bar ---------- */
.sticky-bar { display: none; }

/* ---------- Chat fallback panel ---------- */
.chat-fallback { position: fixed; inset: auto 16px 90px auto; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--dark); border: 1px solid #e3e3e3; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); padding: 24px; z-index: 90; }
.chat-fallback h4 { margin-bottom: 8px; }
.chat-fallback .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chat-fallback .close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--mid); }

/* ---------- Desktop call modal ---------- */
.call-modal { position: fixed; inset: 0; z-index: 95; background: rgba(43, 46, 55, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.call-card { position: relative; width: min(440px, 100%); background: #fff; color: var(--dark); padding: 32px 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border-top: 6px solid var(--orange); }
.call-card .close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--mid); }
.call-card h4 { font-size: 24px; margin-bottom: 6px; padding-right: 36px; }
.call-card .call-status { min-height: 3em; }
.call-card .pulse { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: middle; }
.call-modal[data-state="live"] .pulse { animation: pulse 1.2s ease-in-out infinite; }
.call-modal[data-state="connecting"] .pulse { animation: pulse 2s ease-in-out infinite; }
.call-modal[data-state="ended"] .pulse, .call-modal[data-state="failed"] .pulse { background: var(--mid); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.call-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--light); padding: 14px 16px; margin: 14px 0 18px; }
.call-number a { font-family: var(--display); font-size: 34px; color: var(--dark); line-height: 1; }
.call-number .btn { padding: 8px 14px; min-height: 40px; }
.call-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.call-card .actions .btn { flex: 1 1 auto; }
body.modal-open { overflow: hidden; }

/* ---------- Inner pages ---------- */
.page { padding: 60px 0 100px; }
.page .wrap { max-width: 900px; }
.page h1 { font-size: 60px; }
.page h2 { font-size: 30px; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page a { color: var(--orange); font-weight: 700; }
.thanks { text-align: center; padding: 100px 0; }
.thanks h1 { font-size: 90px; }
.thanks h2 { font-size: 34px; }
.thanks .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero h1 { font-size: 100px; }
  .services-intro h3, .about-copy h2 { font-size: 52px; }
  .review-list { padding-left: 50px; }
  .rating-card { padding: 35px 30px 30px; }
  .rating-card .big { font-size: 100px; }
}
@media (max-width: 1024px) {
  h1 { font-size: 60px; } h2 { font-size: 48px; } h3 { font-size: 34px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eaeaea; flex-direction: column; gap: 0; padding: 8px 20px 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid #eee; width: 100%; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .hero-copy { padding: 13% 0 8%; flex-basis: auto; }
  .hero h1 { font-size: 88px; }
  .hero-truck { flex-basis: auto; max-width: 476px; width: 100%; align-self: flex-end; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-copy { padding-right: 0; }
  .about-media { grid-template-columns: 1fr 2fr; }
  .make-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .makes h2, .region-head h2 { max-width: 100%; }
  .region-body { grid-template-columns: 1fr; gap: 30px; padding-bottom: 75px; }
  .faq .wrap { grid-template-columns: 1fr; gap: 30px; }
  .reviews .wrap { grid-template-columns: 1fr; }
  .rating-card { position: static; margin-top: 0; }
  .review-list { padding: 60px 0 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-col { padding-right: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { padding-bottom: var(--bar-h); }
  .topbar { font-size: 11px; letter-spacing: .1em; }
  .topbar .top-links a:first-child { display: none; }
  .logo img { height: 40px; }
  .hero { background-position: top center; background-size: 1400px auto; }
  .hero-copy { padding: 18% 0 10%; }
  .hero-cities { font-size: 13px; white-space: normal; }
  .hero h1 { font-size: 65px; }
  .btn-lg { font-size: 20px; padding: 12px 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-truck { max-width: 100%; }
  .services { padding: 50px 0 20px; }
  .services-intro { padding-right: 0; padding-bottom: 30px; }
  .services-intro h3, .about-copy h2 { font-size: 44px; }
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .about { padding: 50px 0; }
  .about-media { grid-template-columns: 1fr 2fr; }
  .make-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .region { padding-top: 50px; }
  .region-head { padding-bottom: 30px; margin-bottom: 30px; }
  .faq { padding: 50px 0; background-size: 300px auto; background-position: right -80px top 20px; }
  .reviews { min-height: 0; }
  .rating-card { padding: 20px 24px; }
  .rating-card .stars span { font-size: 24px; }
  .rating-card .big { font-size: 85px; }
  .rating-card h5 { padding-top: 24px; }
  .review-list { padding-top: 50px; }
  .contact { padding-top: 50px; }
  .contact h2, .contact .call-line { padding-left: 0; }
  .contact .call-line { font-size: 32px; }
  .contact .divider { margin: 30px 0; }
  .contact-grid { padding-bottom: 40px; gap: 30px; }
  .contact-col { padding: 0; }
  .message-card { padding: 20px; }
  .message-card .actions .btn { width: 100%; }
  .footer-bar .wrap { flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
  .page h1 { font-size: 44px; }
  .thanks h1 { font-size: 60px; }
  .thanks h2 { font-size: 26px; }
  .chat-fallback { inset: auto 16px calc(var(--bar-h) + 16px) 16px; width: auto; }
  /* Vapi widget on phones: keep its fixed wrapper (launcher or open panel)
     above the sticky bar and inside the viewport. The embed renders in light
     DOM with an inline "position: fixed" wrapper and a 448px-wide panel. */
  vapi-widget [style*="position: fixed"] { bottom: calc(var(--bar-h) + 8px) !important; right: 8px !important; }
  vapi-widget [style*="position: fixed"] > * { max-width: calc(100vw - 32px) !important; max-height: calc(100vh - var(--bar-h) - 24px) !important; }
  /* Sticky Call + Message bar */
  .sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; height: var(--bar-h); box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); }
  .sticky-bar .btn { height: 100%; font-size: 14px; letter-spacing: .1em; border-radius: 0; }
}
