/* ShopSite public styles — ECC look: black, yellow, white bands with the M-stripe accent.
   Brand colors come from /theme.css (Admin → Settings → Colors). */
:root {
  --primary: #ffc72c; --dark: #0b0b0b; --accent1: #33c3f0; --accent2: #ee2229;
  --ink: #141414; --muted: #5a5a5a; --paper: #ffffff; --soft: #f5f4ef; --line: #e2e0d8;
  --radius: 12px; --shadow: 0 2px 10px rgba(0,0,0,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: #0b57a4; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .carousel-track:focus-visible {
  outline: 3px solid var(--accent1); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; font-style: italic; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 850; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: inherit; opacity: .92; max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 50; background: var(--primary); color: #000; padding: .6em 1em; }
.skip:focus { left: 8px; top: 8px; }
.rounded { border-radius: var(--radius); }

/* Admin bar (signed-in staff only) */
.adminbar { background: #222; color: #ddd; font-size: .85rem; padding: .3rem 20px; text-align: right; }
.adminbar a { color: var(--primary); }

/* Top strip */
.topstrip { background: var(--dark); color: #e8e8e8; font-size: .9rem; border-bottom: 1px solid #222; }
.topstrip .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; padding-top: .4rem; padding-bottom: .4rem; }
.topstrip a { color: #e8e8e8; text-decoration: none; }
.topstrip a:hover { text-decoration: underline; }
.top-phone { margin-left: auto; font-weight: 800; color: var(--primary) !important; }
.status::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .4em; background: #888; }
.status.is-open::before { background: #33d17a; }
.status.is-closed::before { background: var(--accent2); }
.es { background: var(--primary); color: #000; border-radius: 999px; padding: 0 .6em; font-weight: 700; }

/* Header */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.logo img { height: 54px; width: auto; }
.logo span { color: #fff; font-weight: 900; font-style: italic; font-size: 1.4rem; }
.site-nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: #f3f3f3; text-decoration: none; font-weight: 700; padding: .55rem .75rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(255,255,255,.1); }
.site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav .nav-cta { margin-left: .4rem; color: #000; }
.site-nav .nav-cta:hover { background: var(--primary); filter: brightness(1.05); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #555; color: #fff; border-radius: 8px; padding: .5rem .9rem; font: inherit; font-weight: 700; }
.stripe { height: 6px; background: linear-gradient(90deg, var(--primary) 0 58%, #fff 58% 72%, var(--accent1) 72% 86%, var(--accent2) 86%); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .6rem; }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { margin: .4rem 0 0; }
  .header-inner { flex-wrap: wrap; }
  .topstrip .wrap > a:not(.top-phone) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .65rem 1.3rem; border-radius: 10px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-lg { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 9vw, 7rem); }
.hero h1 { max-width: 760px; text-transform: uppercase; }
.hero h1::after { content: ""; display: block; width: 120px; height: 6px; margin-top: .35em; background: linear-gradient(90deg, #fff 0 33%, var(--accent1) 33% 66%, var(--accent2) 66%); transform: skewX(-20deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1rem; }
.rating-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem 1rem; }
.rating-badge a { color: #fff; text-decoration: none; }
.stars { color: var(--primary); letter-spacing: .05em; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section:nth-of-type(even) { background: var(--soft); }
.section-title { text-align: center; font-style: italic; text-transform: uppercase; }
.section-title::after { content: ""; display: block; width: 70px; height: 5px; margin: .35em auto 0; background: var(--primary); transform: skewX(-20deg); }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.two-col.wide-left { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 860px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; } }

.trust { background: var(--primary) !important; }
.trust .section-title::after { background: var(--dark); }
.trust-grid ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.trust-grid li { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); border-top: 5px solid var(--dark); }
.trust-grid strong { display: block; font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.svc-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; color: inherit; text-decoration: none; box-shadow: var(--shadow); border-bottom: 5px solid var(--primary); transition: transform .15s; }
.svc-card:hover { transform: translateY(-3px); }
.svc-card h2, .svc-card h3 { font-size: 1.15rem; margin: .4rem 0; }
.svc-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.svc-icon { font-size: 2rem; }

.brands-band { background: var(--dark) !important; color: #fff; }
.brands-band .muted { color: #aaa; }
.brand-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.brand-list li { border: 1px solid #444; border-radius: 999px; padding: .45rem 1.1rem; font-weight: 800; font-style: italic; }

.kb-band { background: var(--dark) !important; color: #fff; }
.kb-band .section-sub { color: #bbb; }
.code-search { display: flex; gap: .6rem; max-width: 560px; margin: 0 auto 1.5rem; }
.page-head .code-search { margin: 1rem 0 0; }
.code-search input { flex: 1; }
.code-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.code-chip { display: block; background: #1c1c1c; border: 1px solid #333; border-left: 5px solid var(--primary); border-radius: 10px; padding: .8rem 1rem; color: #fff; text-decoration: none; }
.code-chip b { display: block; color: var(--primary); font-size: 1.05rem; }
.code-chip span { font-size: .9rem; color: #ddd; }
.code-chip:hover { border-color: var(--primary); }

.dealers-band img { box-shadow: var(--shadow); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); border-left: 5px solid var(--primary); }
.quote footer { color: var(--muted); font-size: .9rem; }
.big-rating { font-size: 1.3rem; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-weight: 800; padding: .95rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }

.visit .address { font-size: 1.1rem; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 1rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

.cta-band { background: var(--primary); padding: 2.4rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-band h2 { font-style: italic; text-transform: uppercase; margin: 0; }
.cta-band p { margin: .3rem 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn-primary { background: var(--dark); color: #fff; }
.cta-band .btn-outline { border-color: var(--dark); color: var(--dark); }

/* Inner pages */
.page-head { background: var(--dark); color: #fff; padding: 2.6rem 0 2.2rem; border-bottom: 6px solid var(--primary); }
.page-head a { color: var(--primary); }
.page-head .btn-outline-dark { border-color: #fff; color: #fff; }
.crumbs { margin: 0 0 .3rem; font-size: .9rem; }
.prose h2 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .3rem; }
.prose img { margin-bottom: 1.2rem; }
.side-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 100px; }
.side-card h2 { font-size: 1.15rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list a { display: block; padding: .55rem 0; color: inherit; text-decoration: none; }
.side-list a:hover { color: #0b57a4; }
.notice { background: #fff8e1; border-left: 5px solid var(--primary); padding: .9rem 1.1rem; border-radius: 8px; margin: 1rem 0; }
.notice-error { background: #fdecec; border-left-color: var(--accent2); }
.notice ul { margin: .3rem 0 0; }

/* Knowledge base */
.table-wrap { overflow-x: auto; }
.dtc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dtc-table th { background: var(--dark); color: #fff; text-align: left; padding: .8rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.dtc-table td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtc-table tr:hover td { background: #fffbea; }
.dtc-table .code { font-weight: 900; white-space: nowrap; color: var(--ink); }
.dtc-table tr[hidden] { display: none; }
.dtc-head .dtc-code { display: inline-block; background: var(--primary); color: #000; font-weight: 900; font-size: 1.4rem; padding: .2rem .8rem; border-radius: 8px; transform: skewX(-8deg); margin: 0 0 .6rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-block; border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; font-weight: 700; background: #2a2a2a; color: #fff; }
.sev-high { background: var(--accent2); color: #fff; }
.sev-medium { background: #f59e0b; color: #000; }
.sev-low { background: #16a34a; color: #fff; }
.drive-box { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.drive-box h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.drive-box p { margin: 0; }
.drive-box.sev-medium { background: #fff4d6; color: #000; }
.drive-box.sev-high { background: #fde8e8; color: #000; border-left: 6px solid var(--accent2); }
.drive-box.sev-low { background: #e8f7ec; color: #000; }

/* Chips & forms */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.chips a[aria-current="page"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; background: #fff; min-height: 44px; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 3px solid var(--accent1); outline-offset: 2px; }
label { display: block; font-weight: 700; margin-bottom: 1rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #c9c7bd; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-weight: 900; font-size: 1.15rem; margin-bottom: .6rem; font-style: italic; text-transform: uppercase; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-line.is-open { color: #15803d; font-weight: 800; }
.status-line.is-closed { color: var(--accent2); font-weight: 800; }

/* Carousel */
.carousel { position: relative; margin-bottom: 1.6rem; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); background: #000; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.2rem .9rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-weight: 700; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.carousel-btn:hover { background: var(--primary); color: #000; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.carousel-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #c9c7bd; padding: 0; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--dark); transform: scale(1.25); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .15s; }
.photo:hover img { transform: scale(1.02); }
.lightbox { border: 0; padding: 0; background: #000; color: #fff; max-width: 96vw; max-height: 94vh; width: 96vw; height: 94vh; border-radius: 12px; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { width: 100%; height: calc(100% - 3.2rem); object-fit: contain; }
.lb-caption { text-align: center; margin: .6rem 0 0; }
.lb-btn, .lb-close { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; } .lb-close { right: 12px; top: 12px; font-size: 1.2rem; }

/* Footer */
.site-footer { background: var(--dark); color: #cfcfcf; padding: 3rem 0 6rem; border-top: 6px solid var(--primary); }
.site-footer a { color: #fff; }
.site-footer h2 { color: var(--primary); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 54px; width: auto; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-links li { margin-bottom: .35rem; }
.social a { margin-right: .8rem; }
.legal { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1rem; display: flex; flex-direction: column; gap: .3rem; color: #9a9a9a; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--dark); border-top: 3px solid var(--primary); }
  .mobile-bar a { color: #fff; text-decoration: none; text-align: center; padding: .8rem .2rem; font-weight: 800; }
  .mobile-bar a.is-primary { background: var(--primary); color: #000; }
  body { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .carousel-track { scroll-behavior: auto; } .svc-card, .photo img { transition: none; } }
@media print { .topstrip, .site-header, .mobile-bar, .cta-band, .site-footer, .adminbar { display: none; } }
