/* Auto MM LLC — shared styles. Brand: black, white, red, yellow. Font: Arial stack. */
:root {
  --black: #111111;
  --ink: #1c1c1c;
  --gray: #5a5a5a;
  --line: #e2e2e2;
  --soft: #f6f6f6;
  --white: #ffffff;
  --red: #e10600;
  --red-dark: #b30500;
  --yellow: #ffc20e;
  --yellow-soft: #fff6d6;
  --radius: 10px;
  --max: 1160px;
  --font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; color: var(--black); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--black); padding: 10px 16px; font-weight: 700; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--black); color: var(--white); border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 196px; height: auto; }
.nav-toggle { display: none; background: none; border: 2px solid #444; color: var(--white); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { margin: 0; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .97rem; padding: 10px 12px; border-radius: 6px; display: block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--yellow); }
.main-nav .nav-cta { background: var(--red); color: var(--white); margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 4px solid var(--red); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid #2a2a2a; }
  .main-nav .nav-cta { margin: 10px 0 0; text-align: center; border: 0; }
  .brand img { width: 168px; }
}

/* Buttons */
.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 8px; border: 2px solid transparent; line-height: 1.2; text-align: center; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #ffd24d; color: var(--black); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero { background-image: radial-gradient(ellipse 60% 90% at 85% 45%, rgba(255,194,14,.26), rgba(255,194,14,0) 70%); }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: var(--white); max-width: 18em; }
.hero h1 span { color: var(--yellow); }
.hero p.lead { font-size: 1.15rem; color: #e6e6e6; max-width: 38em; }
.hero .meta { margin-top: 22px; color: #cfcfcf; font-size: .95rem; }
.hero .meta a { color: var(--yellow); font-weight: 700; }
.page-hero .wrap { padding-top: 40px; padding-bottom: 40px; }

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; color: #cfcfcf; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--yellow); }
.breadcrumbs a { color: #e6e6e6; }

/* Sections */
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--gray); }

/* Key takeaways */
.key-takeaways { background: var(--yellow-soft); border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.key-takeaways h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5em; }
.key-takeaways ul { margin: 0; }

/* Category cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cat-card { display: flex; gap: 18px; align-items: center; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 26px; text-decoration: none; border-bottom: 5px solid var(--yellow); transition: transform .15s; }
.cat-card:hover { transform: translateY(-2px); color: var(--white); }
.cat-card.tail { border-bottom-color: var(--red); }
.cat-card svg { width: 84px; flex: 0 0 84px; }
.cat-card h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .25em; }
.cat-card p { margin: 0; color: #d6d6d6; }
.cat-card .count { color: var(--yellow); font-weight: 800; }

.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--red); }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--gray); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--black); font-weight: 900; display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--gray); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 2px solid var(--black); border-radius: 999px; color: var(--black); text-decoration: none; font-weight: 700; font-size: .95rem; }
.chips a:hover { background: var(--black); color: var(--yellow); }

/* Inventory */
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; background: var(--black); padding: 16px; border-radius: var(--radius); margin-bottom: 14px; }
.filters label { display: block; color: var(--yellow); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.filters input, .filters select { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 6px; border: 0; background: var(--white); color: var(--ink); }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } }
.inv-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .95rem; color: var(--gray); margin-bottom: 16px; }
.inv-status strong { color: var(--black); }
.btn-reset { background: none; border: 0; color: var(--red-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.inventory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.part { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.part[hidden] { display: none; }
.part > div:last-child { padding: 14px 16px 16px; }
.part .ph { aspect-ratio: 4 / 3; background: #f1f1f1; display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--yellow); }
.part .ph img { width: 100%; height: 100%; object-fit: cover; }
.part .ph-icon svg { width: 45%; }
.part h3 { font-size: 1.02rem; margin: 0 0 4px; }
.part .sub { margin: 0 0 8px; color: var(--gray); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { margin: 0; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--soft); color: var(--ink); }
.tags li.t-led { background: var(--yellow-soft); }
.tags li.t-oem { background: var(--black); color: var(--white); }
.tags li.t-pn { background: #fff; border: 1px solid var(--line); font-family: "Courier New", monospace; }
.no-results { padding: 24px; background: var(--soft); border-radius: var(--radius); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 20px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq details > p { padding: 0 20px 16px; margin: 0; color: var(--ink); }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; }
.cta-band p { margin: 0; }
.cta-band .btn-yellow { font-size: 1.05rem; }

/* Prose pages */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list strong { display: inline-block; min-width: 7.5em; }
.byline { color: var(--gray); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--black); color: #cfcfcf; font-size: .95rem; border-top: 4px solid var(--yellow); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer .logo { width: 180px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #2c2c2c; margin-top: 28px; padding-top: 18px; font-size: .88rem; color: #a9a9a9; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
[id] { scroll-margin-top: 96px; }
.part .ph.tall img { object-fit: contain; }
