/* B & M Lubricants — mockup stylesheet. Mobile-first, no frameworks. */
:root {
  --navy-900: #0b1320;
  --navy-800: #0e1726;
  --navy-700: #16233a;
  --navy-600: #22324f;
  --ink: #18202c;
  --muted: #5a6474;
  --paper: #f6f4ef;
  --white: #ffffff;
  --amber: #f4a71d;
  --amber-600: #d98e0b;
  --red: #c8352b;
  --line: #e3dfd5;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", system-ui, -apple-system, "Segoe 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: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy-900); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.wordmark-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--amber); color: var(--navy-900);
  font-family: var(--font-display); font-weight: 900; font-size: .95rem; letter-spacing: -0.02em;
}
.wordmark-text { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.wordmark-text small { font-family: var(--font); font-weight: 500; font-size: .72rem; color: #b9c3d3; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.site-nav { display: none; }
.header-cta {
  display: inline-block;
  background: var(--amber); color: var(--navy-900);
  font-weight: 750; text-decoration: none; white-space: nowrap;
  padding: .55rem 1rem; border-radius: 999px; font-size: .95rem;
}
.header-cta:hover { background: #ffbb3d; }
.hide-sm { display: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: 10px;
  font-weight: 750; font-size: 1.02rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--amber); color: var(--navy-900); }
.btn-accent:hover { background: #ffbb3d; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-600); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-sm { min-height: 46px; padding: .6rem 1rem; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244,167,29,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2rem; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber);
  border-left: 3px solid var(--red); padding-left: .6rem;
}
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.9rem); max-width: 14ch; }
.lede { font-size: 1.1rem; color: #cfd7e3; max-width: 38rem; margin-bottom: 1.5rem; }
.hero .btn-row .btn { flex: 1 1 160px; }
.hero-note { margin: 1rem 0 0; font-size: .95rem; color: #aeb9ca; }
.hero-note a { color: var(--amber); font-weight: 650; }
.hero-photo { margin: 0; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  background: var(--navy-700);
  aspect-ratio: 1600 / 794; object-fit: cover; width: 100%;
}
.hero-photo figcaption { font-size: .85rem; color: #94a1b5; margin-top: .6rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.kicker {
  font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}
.kicker-light { color: var(--amber); }
.section-intro { color: var(--muted); max-width: 44rem; font-size: 1.05rem; }

/* Chooser */
.chooser { background: var(--white); }
.tile-group-h {
  font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 2rem 0 .85rem;
}
.tile-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile-grid > li { display: flex; }
.tile-wide { grid-column: 1 / -1; }
.tile {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem;
  min-height: 128px; padding: 1rem .9rem; border-radius: var(--radius);
  background: var(--paper); border: 2px solid var(--line); color: var(--ink);
  text-decoration: none; position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s, background-color .15s;
}
.tile:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(14,23,38,.5); }
.tile:active { transform: translateY(0); }
.tile-icon {
  width: 46px; height: 46px; padding: 8px; border-radius: 12px; flex: none;
  background: var(--navy-800); color: var(--amber);
}
.tile-text { display: flex; flex-direction: column; gap: .2rem; }
.tile-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.tile-sub { font-size: .86rem; line-height: 1.35; color: var(--muted); }
.tile-arrow { position: absolute; right: 1rem; top: 1.1rem; font-weight: 800; font-size: 1.2rem; color: var(--amber-600); transition: transform .15s; }
.tile:hover .tile-arrow { transform: translateX(3px); }
.tile-feature { background: var(--amber); border-color: var(--amber); color: var(--navy-900); flex-direction: row; align-items: center; min-height: 104px; gap: 1rem; }
.tile-feature:hover { border-color: var(--navy-800); background: #ffbb3d; }
.tile-feature .tile-sub { color: rgba(11,19,32,.75); }
.tile-feature .tile-title { font-size: 1.3rem; }
.tile-feature .tile-icon { width: 56px; height: 56px; padding: 9px; }
.tile-feature .tile-text { padding-right: 1.6rem; }
.tile-feature .tile-arrow { color: var(--navy-900); top: 50%; margin-top: -.75em; font-size: 1.5rem; }
.tile-dark { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tile-dark:hover { background: var(--navy-700); }
.tile-dark .tile-icon { background: var(--amber); color: var(--navy-900); }
.tile-dark .tile-sub { color: #b9c3d3; }
.tile-dark .tile-arrow { color: var(--amber); }

/* How it works */
.how { background: var(--navy-800); color: var(--white); padding: 2.5rem 0; border-top: 3px solid var(--amber); }
.how-h { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 1.25rem; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: none; }
.how-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.how-num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--navy-900); font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
}
.how-steps h3 { font-size: 1.1rem; margin: .1rem 0 .25rem; }
.how-steps p { margin: 0; color: #cfd7e3; font-size: .97rem; }
.how-steps a { color: var(--amber); font-weight: 700; }

/* Products */
.card-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy-800); }
.card:hover::before { background: var(--amber); }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--amber); margin-bottom: 1rem;
}
.card-icon svg { width: 34px; height: 34px; }
.card > p { color: var(--muted); margin-bottom: .75rem; }
.card-list { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .95rem; }
.card-list li { padding: .45rem 0 .45rem 1.1rem; border-top: 1px dashed var(--line); position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-600); }
.card-quick { font-size: .88rem; color: var(--muted); margin: -.5rem 0 1.1rem; line-height: 2; }
.card-quick a { color: var(--navy-800); font-weight: 700; }
.card-quick a:hover { color: var(--red); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-actions .btn-dark { flex: 1 1 auto; }
.card-actions .btn-outline { flex: 0 0 auto; }
.products-cta {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--navy-800); color: var(--white);
}
.products-cta p { margin: 0; font-weight: 700; font-size: 1.1rem; flex: 1 1 220px; }

/* Commercial */
.commercial {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px),
    var(--navy-700);
  color: var(--white);
}
.commercial p { color: #cfd7e3; }
.commercial-grid { display: grid; gap: 2rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.check-list li {
  padding: .85rem 1rem .85rem 2.8rem; border-radius: 10px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); font-weight: 650; position: relative;
}
.check-list li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 10px; margin-top: -7px;
  border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg);
}
.commercial .btn-row .btn { flex: 1 1 auto; }

/* Preferred Customer */
.pc-panel {
  display: grid; gap: 1.5rem;
  background: var(--amber); color: var(--navy-900);
  border-radius: calc(var(--radius) + 4px); padding: 2rem 1.5rem;
  box-shadow: 0 18px 40px -24px rgba(120,70,0,.6);
}
.pc-panel .kicker { color: var(--navy-900); opacity: .75; }
.pc-panel p { max-width: 40rem; }
.pc-panel p:last-child { margin-bottom: 0; }
.pc-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.text-link { font-weight: 700; color: var(--navy-900); }

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about h2 { max-width: none; }
.about-badge {
  display: none; flex-direction: column-reverse; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  border-left: 6px solid var(--red); max-width: 320px;
}
.about-year { font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--navy-800); }
.about-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.about p { max-width: 40rem; }
.about p a { color: var(--red); font-weight: 700; }
.about .btn-row { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c3d3; padding: 2.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: .4rem; }
.site-footer a { color: #e3e8f0; }
.site-footer a:hover { color: var(--amber); }
.footer-contact { font-size: .85rem; color: #8995a8; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-legal { margin-top: 2rem; font-size: .82rem; color: #8995a8; }
.footer-legal::before { content: ""; display: block; border-top: 1px solid var(--navy-600); margin-bottom: 1.25rem; }
.footer-legal p { margin-bottom: .4rem; }
.nw { white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hide-sm { display: inline; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-grid-buy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .btn-row .btn { flex: 0 0 auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { font-size: 1.075rem; }
  .site-nav { display: flex; gap: 1.6rem; margin-left: auto; margin-right: .5rem; }
  .site-nav a { color: #d6dde8; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .site-nav a:hover { color: var(--amber); }
  .hero { padding: 3.5rem 0 4rem; }
  .chooser { padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1fr 1.3fr; align-items: center; gap: 3rem; }
  .section { padding: 5rem 0; }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .tile-wide { grid-column: span 2; }
  .tile { min-height: 150px; padding: 1.25rem 1.15rem; }
  .tile-title { font-size: 1.05rem; }
  .tile-arrow { right: 1.15rem; top: 1.35rem; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { flex: 0 0 auto; width: 100%; }
  .about-badge { display: flex; }
  .tile-feature { min-height: 150px; padding: 1.25rem 1.5rem; }
  .tile-feature .tile-title { font-size: 1.5rem; }
  .how { padding: 3rem 0; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .commercial-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  .pc-panel { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 3rem; gap: 3rem; }
  .pc-actions { align-items: stretch; }
  .about-grid { grid-template-columns: 320px 1fr; gap: 4rem; }
  .about-badge { padding: 2rem; }
  .about-year { font-size: 5rem; }
}

/* Preferred panel follows Products on the same background; trim doubled spacing */
.products + .preferred { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Local landing pages ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(244,167,29,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 1.75rem 0 2.5rem;
}
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); max-width: 22ch; overflow-wrap: break-word; }
.page-hero .lede { margin-bottom: 1.5rem; }
.page-hero .btn-row .btn { flex: 1 1 200px; }
.breadcrumb { font-size: .88rem; color: #aeb9ca; margin: 0 0 1.1rem; }
.breadcrumb a { color: var(--amber); font-weight: 650; }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; }
.page-body { background: var(--white); }
.page-grid { display: grid; gap: 2rem; }
.prose { max-width: 44rem; min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 1.95rem); max-width: none; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--amber-600); font-weight: 800; }
.prose a { color: var(--red); font-weight: 700; }
.prose strong { color: var(--navy-800); }
.cta-box {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.4rem;
}
.cta-box h2 { font-size: 1.35rem; margin-bottom: .4rem; max-width: none; }
.cta-box p { color: var(--muted); font-size: .95rem; }
.cta-stack { display: grid; gap: .6rem; }
.cta-stack .btn { width: 100%; }
.related { background: var(--paper); }
.related h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.related-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.related-grid > li { display: flex; }
.related-link {
  flex: 1; display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 2.6rem 1rem 1.1rem; border-radius: var(--radius); position: relative;
  background: var(--white); border: 2px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.related-link:hover { border-color: var(--amber); }
.related-link strong { font-size: 1.02rem; line-height: 1.25; }
.related-link span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.related-link::after { content: "\2192"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--amber-600); }
.card-more { font-size: .92rem; margin: -.4rem 0 1rem; }
.card-more a { color: var(--red); font-weight: 700; }
.section-more { margin: 1rem 0 0; font-size: .97rem; }
.section-more a { font-weight: 700; }
.commercial .section-more a { color: var(--amber); }
.footer-h { color: var(--white); font-weight: 750; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .7rem; }

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .page-hero { padding: 2.5rem 0 3.5rem; }
  .page-hero .btn-row .btn { flex: 0 0 auto; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; }
  .page-aside { position: sticky; top: 90px; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
