/* cl-site.css: the site's tokens, fonts, reset and chrome (header, menu, footer, the primary button), on every
   page, in aeromotiveinc.com's look: a red strip, a near-black bar with the logo, the search and the cart, a
   white bar of our tree's headings in condensed capitals, and a near-black footer of columns.
   cl-shop.css reads only these tokens, so the title band and the cart follow.

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` below sets the order; the
   tokens sit on :root outside any layer, the reset in @layer base, every other rule in @layer site. The kit's
   shop pages and vehicle band take the site's brand colour and font from the --parts-* tokens below alone:
   no rule here names a kit class.

   Two layouts: from 980px the desktop one (measured in a 1440 window), below it the phone one (their 390
   stage), with the menu behind its toggle (cl-site.js). */
@layer base, kit, site;

/* Acumin Pro, their family, is Adobe Fonts only: Barlow and Barlow Condensed (SIL OFL) stand in (fonts/FONTS.md) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-italic-latin.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #121212;
  --site-muted: #3A3A3A;
  --site-line: #D4D4D4;
  --site-band: #F1F1F1;
  --site-card: #F6F6F6;
  --site-accent: #EA0029;
  --site-accent-strong: #BB0021;
  --site-accent-fg: #FFFFFF;
  --site-dark: #121212;
  --site-dark-2: #16181B;
  --site-dark-3: #36393E;
  --site-on-dark: #FFFFFF;
  --site-rule: #DCDBDC;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #EA0029;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #BB0021;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #121212;
  --site-placeholder: #55585C;   /* a field's hint */
  --site-photo: #FFFFFF;         /* the plate under a product or category photo, white in both themes */

  /* fonts */
  --site-font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1340px;
  --site-gutter: 50px;

  /* one phone-stage pixel (their stage is 390), which cl-shop.css reads */
  --mx: calc(100vw / 390);
  --u: 1px;
}
/* the kit's shop pages and vehicle band (storefront_kit/static/parts/tokens.css): only the brand tokens a site
   owns, drawn from the tokens above. Every other --parts-* default is the kit's counter look (storefront-kit
   ADR 0007): never set one here. */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 20px; }
}
/* the night look (storefront-kit 0.10.0, Site(dark="night")): the kit's head block sets data-parts-theme="dark" on
   <html> from 21:30 to 04:30 by the shopper's clock or on their pick, and every token above takes its dark value
   here, in the kit's warm family (static/parts/tokens.css): the page #121110, cards and fields a step up, rules
   #3D3833, text near white. The red strip, the near-black bar and footer and the red buttons are theirs in both;
   photos keep their white plates. The vehicle band takes the kit's own dark values. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-accent: #EA0029;
  --site-accent-strong: #BB0021;
  --site-accent-fg: #FFFFFF;
  --site-dark: #121212;
  --site-dark-2: #16181B;
  --site-dark-3: #36393E;
  --site-on-dark: #FFFFFF;
  --site-rule: #3D3833;
  --site-field-bg: #1C1A18;
  --site-button-bg: #EA0029;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #BB0021;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-placeholder: #EBE6E0;
  --site-photo: #FFFFFF;
}

@layer base {

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--site-bg); }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font: 400 16px/1.6 var(--site-font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

}

@layer site {

.cl-wrap { max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin: 0 auto; padding: 0 var(--site-gutter); }

/* ---------- the primary button (Add to Cart, Check out, the home's red buttons) ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 0; border-radius: var(--site-radius);
  font: 700 14px/1.2 var(--site-font-button); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; cursor: pointer;
  transition: background-color 0.1s ease;
}
.cl-btn:hover { background: var(--site-accent-strong); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }
.cl-btn--light { background: #FDFDFD; color: var(--site-dark-3); }
.cl-btn--light:hover { background: var(--site-band); }

/* ---------- header: the red strip ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-bg); border-bottom: 1px solid var(--site-rule); }
.cl-hd__strip { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; background: var(--site-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cl-hd__strip a { font: 400 14px/22.4px var(--site-font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--site-accent-fg); text-align: center; }
.cl-hd__strip a:hover { text-decoration: underline; }

/* ---------- header: the dark bar (logo, search, cart) ---------- */
.cl-hd__bar { background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__row { display: flex; align-items: center; height: 70px; gap: 20px; }
.cl-hd__logo { flex: none; display: block; margin-left: -8px; }
.cl-hd__logo img { width: 250px; height: auto; }
.cl-hd__toggle { display: none; }
.cl-hd__search { display: flex; width: 433px; height: 46px; margin-left: 191px; background: var(--site-field-bg); border: 1px solid var(--site-field-bg); }
.cl-hd__search input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; border-radius: 0; background: var(--site-field-bg); color: var(--site-fg);
  font: 400 16px/21px var(--site-font-body); letter-spacing: 0.5px; outline: none; }
.cl-hd__search input::placeholder { color: var(--site-placeholder); opacity: 1; font-size: 14px; letter-spacing: 1px; }
.cl-hd__search button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--site-fg); }
.cl-hd__search:focus-within { outline: 2px solid var(--site-accent); outline-offset: 0; }
.cl-hd__cart { flex: none; position: relative; display: grid; place-items: center; width: 44px; height: 46px; margin-left: auto; color: var(--site-on-dark); }
.cl-hd__cart:hover { color: #FFD7DE; }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 4px; right: 0; min-width: 18px; padding: 0 4px; font: 700 13px/18px var(--site-font-body); text-align: center;
  border-radius: 9px; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }

/* ---------- header: the white bar of our tree's headings ---------- */
.cl-hd__nav { background: var(--site-bg); }
.cl-hd__list { display: flex; flex-wrap: wrap; height: 52px; overflow: hidden; margin-left: -10px; }
.cl-hd__link { display: block; padding: 0 10px; font: 700 16px/52px var(--site-font-heading); letter-spacing: 0.6px; text-transform: uppercase; color: var(--site-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }

/* ---------- footer ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-on-dark); padding-top: 36px; }
.cl-ft__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 45px; padding-bottom: 50px; border-bottom: 1px solid #F3F3F3; min-height: 452px; }
.cl-ft__logo img { width: 100px; height: auto; }
.cl-ft__h { margin-bottom: 18px; font: 700 19.2px/16.8px var(--site-font-body); text-transform: uppercase; }
.cl-ft__list a { display: inline-block; padding: 3px 0; font: 400 14px/22px var(--site-font-body); color: var(--site-on-dark); }
.cl-ft__list a:hover { text-decoration: underline; }
.cl-ft__small { padding: 30px 0 36px; text-align: center; font: 400 13px/36px var(--site-font-body); color: var(--site-on-dark); }

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding: 80px 0 120px; text-align: center; }
.cl-404__h1 { font: italic 800 72px/0.84 var(--site-font-heading); text-transform: uppercase; letter-spacing: -1px; }
.cl-404__p { margin: 24px 0 32px; font-size: 16px; }

/* the footer's trademark line: "owner" links the client's site in the line's own colour, underlined (Greg 2026-10-01) */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

/* the theme switch (the kit's parts/theme_switch.html, 40px, shown 21:30 to 04:30 only): the bar's white, at the
   cart's left, which gives up its auto margin to it while it shows */
.cl-hd__row > .parts-theme-switch { flex: none; margin-left: auto; }
:root[data-parts-night] .cl-hd__row > .cl-hd__cart { margin-left: 0; }

/* the night look: the near-black footer meets the near-black page on a rule, drawn inside so no height changes */
:root[data-parts-theme="dark"] .cl-ft { box-shadow: inset 0 1px var(--site-line); }

/* ---------- phones: the menu behind its toggle (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd__strip { min-height: 41px; padding: 2px 40px; }
  .cl-hd__strip a { font-size: 13px; line-height: 19px; }
  .cl-hd__bar .cl-wrap { padding: 0 10px; }
  .cl-hd__row { flex-wrap: wrap; height: auto; gap: 0; }
  .cl-hd__toggle { display: grid; place-items: center; width: 44px; height: 64px; color: var(--site-on-dark); }
  .cl-hd__logo { order: 2; margin: 0 auto; }
  .cl-hd__logo img { width: 177px; }
  .cl-hd__cart { order: 3; width: 44px; height: 64px; margin-left: 0; }
  .cl-hd__row > .parts-theme-switch { order: 3; margin-left: 0; }
  .cl-hd__search { order: 4; flex: 1 1 100%; width: auto; margin: 0 10px 10px; }
  .cl-hd__search input { font-size: 16px; }
  .cl-hd__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--site-bg); border-bottom: 1px solid var(--site-rule);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; flex-wrap: nowrap; height: auto; margin: 0; padding: 4px 20px 12px; }
  .cl-hd__link { padding: 0; line-height: 48px; font-size: 18px; border-bottom: 1px solid var(--site-rule); }

  .cl-ft { padding-top: 27px; }
  .cl-ft__cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; min-height: 0; padding-bottom: 50px; }
  .cl-ft__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
  .cl-ft__col:last-child { grid-column: 1 / -1; }
  .cl-ft__h { margin-bottom: 8px; font-size: 17px; line-height: 17px; }
  .cl-ft__list a { padding: 9px 0; font-size: 15px; line-height: 22px; }
  .cl-ft__small { padding: 28px 0 40px; line-height: 20px; }
}

}
