/* Sound Mechanical & Calibrations
   Layout follows the Murray's Des Moines site (top bar, header with a
   Services menu, dark hero, stacked sections, dark footer), in Sound's own
   brand: ink + orange, Plus Jakarta Sans. Mobile-first: base rules are the
   phone layout, min-width queries widen it. */

:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-3: #374151;
  --text: #1f2937;
  --muted: #4b5563;
  --soft: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --tint: #f6f6f4;
  --orange: #f97316;
  --orange-hover: #fb8a3c;
  --orange-dark: #c2410c;
  --orange-soft: #fff1e6;
  --orange-light: #fdba74;
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { 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.6; color: var(--text); background: var(--paper); overflow-x: hidden; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-alt { background: var(--tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--orange-dark); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 8px; border-radius: 4px; background: var(--orange); flex: none; }
.lede { font-size: 1.08rem; color: var(--muted); margin-top: 14px; max-width: 62ch; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.center-cta { text-align: center; margin-top: 36px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.site-header .btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctas .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .ctas .btn { flex: 0 0 auto; } }
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link:hover { color: var(--orange-dark); }

/* Top bar */
.topbar { background: var(--ink); color: #d1d5db; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-address, .topbar .tb-hours { display: none; }
.topbar .tb-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); margin-right: 8px; vertical-align: 1px; }
.topbar .tb-status.is-open::before { background: #22c55e; }
.topbar .tb-status.is-closed::before { background: #ef4444; }
@media (min-width: 768px) { .topbar .tb-address { display: inline; } }
@media (min-width: 1100px) { .topbar .tb-hours { display: inline; } }

/* Header: logo row (logo + Get an estimate + Book appointment), then the
   sections bar (Home ... Contact), always visible, no hamburger menu.
   Phones: buttons drop to their own row and the bar wraps to 2 rows of 4.
   The header only sticks to the top from tablet width up; on a phone three
   rows would take too much of the screen. */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
@media (min-width: 768px) { .site-header { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; padding: 12px 0; }
.brand svg { width: 44px; height: 20px; flex: none; }
/* Logo lockup: "Sound Mechanical" / "& Calibrations", two lines at the same size */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; font-size: .95rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text b { font-weight: 800; color: var(--ink); }
.brand-text span { font-weight: 600; color: var(--orange-dark); }
@media (min-width: 400px) { .brand-text { font-size: 1.06rem; } }
@media (min-width: 768px) { .brand-text { font-size: 1.2rem; } .site-header .brand svg { width: 50px; height: 23px; } }

.nav-call { min-height: 44px; width: 44px; padding: 0; flex: none; }
.nav-call svg { width: 20px; height: 20px; }
.header-ctas { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 12px; }
.header-ctas .btn { min-height: 44px; padding: 8px 10px; font-size: .9rem; white-space: nowrap; }
@media (min-width: 768px) {
  .nav-call { display: none; }
  .header-ctas { order: 0; flex: none; display: flex; gap: 10px; padding-bottom: 0; }
  .header-ctas .btn { padding: 10px 20px; font-size: .95rem; }
}

/* Sections bar */
.section-bar { background: var(--tint); border-top: 1px solid var(--line); }
.section-bar .wrap { padding: 0 8px; }
.section-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.section-bar a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 2px; font-size: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; text-align: center; }
.section-bar a:hover { color: var(--orange-dark); }
.section-bar a[aria-current="page"], .section-bar a.is-active { color: var(--orange-dark); box-shadow: inset 0 -3px 0 var(--orange); }
@media (min-width: 400px) { .section-bar a { font-size: .88rem; } }
@media (min-width: 768px) {
  .section-bar .wrap { padding: 0 32px; }
  .section-bar ul { display: flex; justify-content: center; gap: 0 4px; }
  .section-bar a { padding: 0 10px; font-size: .9rem; }
}
@media (min-width: 1000px) { .section-bar a { padding: 0 16px; font-size: .95rem; } }

/* Home hero */
.hero { background: var(--ink); color: #d1d5db; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(249,115,22,.07); pointer-events: none; }
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--orange-light); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { color: #d1d5db; font-size: 1.12rem; }
.why { align-self: start; }
.why h2 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.why-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ink-3); }
.why-item:first-of-type { border-top: 0; }
.why-item .mark { width: 26px; height: 12px; border-radius: 6px; background: var(--orange); flex: none; margin-top: 6px; }
.why-item h3 { color: #fff; font-size: 1rem; }
.why-item p { color: #9ca3af; font-size: .95rem; margin-top: 4px; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
}

/* Inner page hero */
.page-hero { background: var(--ink); color: #d1d5db; padding: 40px 0 48px; }
.page-hero .eyebrow { color: var(--orange-light); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 7vw, 3rem); max-width: 22ch; }
.page-hero .lede { color: #d1d5db; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #9ca3af; margin-bottom: 20px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #6b7280; }
.crumbs a { color: #d1d5db; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .page-hero { padding: 64px 0 72px; } }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: 1fr; }
.fact { display: flex; gap: 12px; align-items: center; padding: 18px 0; font-weight: 700; color: var(--ink); }
.fact + .fact { border-top: 1px solid var(--line); }
.fact i { width: 24px; height: 12px; border-radius: 6px; background: var(--orange); flex: none; }
@media (min-width: 768px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact { justify-content: center; padding: 22px 12px; text-align: center; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }
}

/* Cards */
.grid { display: grid; gap: 36px 32px; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Flat style (owner: "too many boxes"): cards are plain columns, no border or fill */
.card { min-width: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin-top: 8px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.card .more::after { content: "→"; color: var(--orange-dark); transition: transform .15s; }
a.card { text-decoration: none; color: inherit; }
a.card h3 { transition: color .15s; }
a.card:hover h3 { color: var(--orange-dark); }
a.card:hover .more::after { transform: translateX(3px); }
.card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.card li { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.num { font-size: .85rem; font-weight: 700; color: var(--orange-dark); margin-bottom: 10px; }

/* Two-column split */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--orange-dark); margin-top: 2px; }

/* Detail list (service items with descriptions) */
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.detail { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.detail p { color: var(--muted); }
@media (min-width: 768px) { .detail { grid-template-columns: 280px 1fr; gap: 32px; } }

/* Steps */
.steps { display: grid; gap: 28px 32px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin-top: 6px; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }

/* Dark band */
.band { background: var(--ink); color: #d1d5db; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--orange-light); }
.band .lede { color: #d1d5db; }
.band .ticks li { color: #fff; }
.band .ticks svg { color: var(--orange); }
.band .ticks { margin: 0; }

/* Orange call-to-action band */
.cta-band { background: var(--orange); color: var(--ink); padding: 48px 0; }
.cta-inner { display: grid; gap: 20px; }
.cta-band h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.cta-band p { margin-top: 8px; font-weight: 500; }
.cta-band .ctas { margin-top: 0; }
.cta-band .btn-line:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }

/* Visit card: hours and location */
.visit { min-width: 0; }
.visit h3 { margin-bottom: 4px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin: 6px 0 16px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--soft); }
.status.is-open::before { background: #16a34a; }
.status.is-closed::before { background: #dc2626; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: .97rem; }
.hours span:nth-child(even) { text-align: right; color: var(--muted); }
.hours .today { font-weight: 700; color: var(--ink) !important; }
.visit hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.visit-row { display: flex; gap: 12px; align-items: flex-start; }
.visit-row + .visit-row { margin-top: 12px; }
.visit-row svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--orange-dark); }
.visit-row a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.visit-row a:hover { text-decoration: underline; }
.visit-row .sub { display: block; font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ADAS checker */
.checker { display: grid; gap: 28px; }
.repairs { display: flex; flex-wrap: wrap; gap: 8px; }
.repair { font: 600 .95rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.repair:hover { border-color: var(--ink); }
.repair[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); min-height: 120px; }
.result .hint { color: var(--soft); }
.result h3 { margin-bottom: 6px; }
.result ul { margin: 0 0 12px; padding-left: 20px; }
.result li { margin: 4px 0; }
.result li::marker { color: var(--orange); }
.result .why-text { color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.fine { font-size: .88rem; color: var(--soft); margin-top: 14px; }
.car-card { min-width: 0; }
.car-card svg { width: 100%; max-width: 200px; height: auto; margin: 0 auto; overflow: visible; }
.sensor { opacity: .18; transition: opacity .25s; }
.sensor.on { opacity: 1; }
.sensor.on .halo { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
@media (min-width: 900px) { .checker { grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; } .car-card svg { max-width: 240px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 68ch; }
.faq a { color: var(--ink); font-weight: 600; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* Forms */
.form { min-width: 0; }
.row { display: grid; gap: 0 12px; }
.field { margin-bottom: 14px; min-width: 0; }
.form label { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 500 1rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid #d1d5db; border-radius: 10px; padding: 11px 12px; min-height: 48px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(249,115,22,.35); }
.key-note { font-size: .9rem; background: var(--orange-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; margin: -4px 0 14px; }
.form .btn { width: 100%; }
.form-status { margin-top: 12px; font-size: .95rem; color: var(--muted); }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 90px 1fr 1fr; } }

.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--tint); display: block; }

/* Reviews */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.stars { color: var(--orange); letter-spacing: 2px; font-size: 1.15rem; }
.review { display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; color: var(--text); }
.review footer { font-size: .9rem; color: var(--soft); margin-top: auto; }
.review footer b { color: var(--ink); }

/* Blog */
.post-card time, .post-meta { font-size: .88rem; color: var(--soft); font-weight: 600; }
.post-card h3 { margin-top: 8px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.35rem, 4.5vw, 1.7rem); margin: 40px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; font-size: 1.05rem; line-height: 1.75; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange-dark); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.callout { background: var(--orange-soft); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #9ca3af; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text span { color: var(--orange-light); }
.site-footer .brand svg rect:first-child { fill: #fff; }
.site-footer .brand svg path { stroke: var(--ink); }
.footer-about p { margin-top: 16px; max-width: 34ch; }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-review { display: inline-flex; margin-top: 18px; }
.footer-review.btn { color: var(--ink); }
.footer-review.btn:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* 404 */
.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found .wrap { max-width: 560px; }
.not-found svg.level { width: 96px; height: 44px; margin: 0 auto 28px; }
.not-found .ctas { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sensor.on .halo { animation: none; }
}
