/* cl-site.css: the site's tokens, reset and chrome on every page, in Gorilla Automotive's look as measured on
   gorilla-auto.com (review/pages/home.json): white pages, near-black #141414 type, their pink #E54360, the
   grey utility bar, the white 81px menu bar and the #333 footer. Their face is Adobe's Ofelia Text, which we
   cannot ship, so every line falls back to the system sans (static/fonts/FONTS.md).

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` 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 only --parts-accent, --parts-accent-strong and --parts-font from here.

   Two layouts: from 980px the desktop one, below it the phone one (their 390px stage). */
@layer base, kit, site;

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #141414;
  --site-muted: #7E7E7E;
  --site-line: #D5D5D5;
  --site-band: #F1F1F1;
  --site-card: #F6F6F6;
  --site-accent: #E54360;
  --site-accent-strong: #C42A47;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #333333;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #141414;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #555555;
  --site-util-bg: #D6D6D6;
  --site-footer-bg: #333333;
  --site-footer-fg: #FFFFFF;
  --site-footer-line: #858585;
  --site-footer-field-bg: #FFFFFF;      /* the footer's mail line */
  --site-footer-field-fg: #141414;
  --site-placeholder: #555555;          /* the header search's placeholder */
  --site-tile-bg: #FFFFFF;              /* a part tile or a popular product's card */
  --site-card-line: #D6D6D6;            /* a popular product card's rule */
  --site-photo: #FFFFFF;                /* the plate under a product photo, white in both themes */
  --site-scroll: rgba(20, 20, 20, .5);  /* a rail's scrollbar */
  --site-scroll-track: rgba(20, 20, 20, .1);

  /* fonts: their Ofelia Text is Adobe Fonts only, so the closest system sans stands in */
  --site-font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout: square boxes, their 50px desktop gutter */
  --site-radius: 0;
  --site-max: 1440px;
  --site-gutter: 50px;
}
/* the kit's shop pages and vehicle band: only the brand tokens a site owns (storefront-kit ADR 0007) */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
  /* the vehicle band (the --parts-band-* tokens a site owns, storefront/CLAUDE.md): their near-black vehicle bar */
  --parts-band-bg: #141414;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #141414;
  --parts-band-go: var(--site-accent-strong);
  --parts-band-go-hover: #A31F38;
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 16px; }
}
/* the dark theme (the kit's head block sets data-parts-theme="dark" on <html> at night, storefront-kit 0.10.0): the
   white page and bar turn the kit's warm near black, the text near white, the rules a dark grey, the cards and the
   footer a step up, the dark grey buttons near white with dark words, the pink kept. Product photos and their logo
   (near black letters) keep white plates: they are drawn for white. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #F6F3EF;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-accent: #E54360;
  --site-accent-strong: #C42A47;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #1C1A18;
  --site-button-bg: #F6F3EF;
  --site-button-fg: #121110;
  --site-button-hover-bg: #C42A47;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --site-util-bg: #24201C;
  --site-footer-bg: #1C1A18;
  --site-footer-fg: #F6F3EF;
  --site-footer-line: #3D3833;
  --site-footer-field-bg: #121110;
  --site-footer-field-fg: #F6F3EF;
  --site-placeholder: #EBE6E0;
  --site-tile-bg: #1C1A18;
  --site-card-line: #3D3833;
  --site-photo: #FFFFFF;
  --site-scroll: rgba(246, 243, 239, .5);
  --site-scroll-track: rgba(246, 243, 239, .1);

  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
  --parts-band-go-hover: #D4405B;
}
/* the Orbital Parts mark: the light one on the white bar, the dark one on the night theme's near black */
.cl-hd__mark--dark, :root[data-parts-theme="dark"] .cl-hd__mark--light { display: none; }
:root[data-parts-theme="dark"] .cl-hd__mark--dark { display: block; }

@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.5 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; }
[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 {

/* ---------- the primary button: their dark #333 button, bold uppercase, 48px ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 700 16px/24px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.cl-btn:hover { background: var(--site-button-hover-bg); border-color: var(--site-button-hover-bg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.cl-btn--light { background: #FFFFFF; border-color: #FFFFFF; color: #333333; }
.cl-btn--light:hover { background: #141414; border-color: #141414; color: #FFFFFF; }

/* ---------- header: the grey utility bar, then the white menu bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-bg); }
.cl-util { background: var(--site-util-bg); color: var(--site-fg); }
.cl-util__in { height: 56px; padding: 0 var(--site-gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cl-util__note { font: 400 11px/24px var(--site-font-body); }
.cl-util__links { display: flex; align-items: center; }
.cl-util__links li { display: flex; align-items: center; font: 400 14px/21px var(--site-font-body); }
.cl-util__links li + li::before { content: "|"; padding: 0 20px; }
.cl-util__links a:hover { text-decoration: underline; }

.cl-hd__bar { height: 81px; display: flex; align-items: center; background: var(--site-bg); }
.cl-hd__logo { flex: none; width: 280px; height: 100%; display: flex; align-items: center; padding-left: var(--site-gutter); }
.cl-hd__logo img { width: auto; height: 40px; }
.cl-hd__nav { flex: 1; min-width: 0; height: 100%; display: flex; justify-content: center; }
.cl-hd__list { display: flex; height: 100%; }
.cl-hd__link { display: flex; align-items: center; height: 100%; padding: 0 22px; font: 500 16px/24px var(--site-font-body); color: var(--site-fg); box-shadow: inset 0 -3px 0 transparent; transition: box-shadow 0.3s ease-in-out; }
.cl-hd__link:hover, .cl-hd__link.is-current { box-shadow: inset 0 -3px 0 var(--site-accent); }
.cl-hd__extra { display: none; }
.cl-hd__tools { flex: none; display: flex; align-items: center; gap: 16px; padding-right: var(--site-gutter); }
.cl-search { display: flex; align-items: center; width: 300px; height: 40px; border: 1px solid var(--site-line); background: var(--site-field-bg); }
.cl-search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; font: 400 14px/1 var(--site-font-body); color: var(--site-fg); }
.cl-search__input::placeholder { color: var(--site-placeholder); }
.cl-search__input:focus { outline: none; }
.cl-search:focus-within { border-color: var(--site-fg); }
.cl-search__btn { flex: none; width: 40px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--site-fg); }
.cl-hd__find, .cl-hd__toggle { display: none; }
.cl-hd__cart { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-fg); }
.cl-hd__cart:hover { color: var(--site-accent); }
.cl-hd__cart .fm-icon { overflow: visible; }
.cl-hd__count { position: absolute; top: 0; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--site-accent-strong); color: var(--site-accent-fg); font: 700 13px/18px var(--site-font-body); text-align: center; }
.cl-hd__count:empty { display: none; }
/* the kit's theme switch (night hours only, the kit shows and hides it): the header's ink, pink on hover as the cart */
.cl-hd .parts-theme-switch:hover { color: var(--site-accent); }

/* ---------- footer: the #333 block of three service links, the columns, the copyright bar ---------- */
.cl-ft { background: var(--site-footer-bg); color: var(--site-footer-fg); font-family: var(--site-font-body); }
.cl-ft a:hover { text-decoration: underline; }
.cl-ft__service { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 80px 30px; border-bottom: 1px solid var(--site-footer-line); }
.cl-ft__svc { display: flex; justify-content: center; gap: 14px; min-height: 75px; }
.cl-ft__svc:hover { text-decoration: none !important; }
.cl-ft__svc:hover .cl-ft__svc-h { text-decoration: underline; }
.cl-ft__ring { flex: none; width: 46px; height: 46px; border: 2px solid var(--site-footer-fg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cl-ft__svc-text { width: 150px; }
.cl-ft__svc-h { display: block; margin-top: 2px; font: 500 14px/16px var(--site-font-body); }
.cl-ft__svc-p { display: block; margin-top: 3px; font: 500 12px/18px var(--site-font-body); }

.cl-ft__main { display: grid; grid-template-columns: 400px 1fr; padding: 63px 80px 50px; min-height: 373px; }
.cl-ft__h { font: 500 16px/24px var(--site-font-body); text-transform: uppercase; }
.cl-ft__about p { margin-top: 10px; font: 400 14px/24px var(--site-font-body); }
.cl-ft__mail { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 46px; margin-top: 20px; padding: 0 16px 0 20px; background: var(--site-footer-field-bg); color: var(--site-footer-field-fg); font: 400 16px/24px var(--site-font-body); }
.cl-ft__cols { display: flex; justify-content: space-between; padding-left: 38px; }
.cl-ft__col summary { list-style: none; cursor: default; font: 500 16px/24px var(--site-font-body); padding-bottom: 6px; }
.cl-ft__col summary::-webkit-details-marker { display: none; }
.cl-ft__chev { display: none; }
.cl-ft__links { padding: 4px 15px 0; }
.cl-ft__links li { font: 300 14px/21px var(--site-font-body); }
.cl-ft__links li + li { margin-top: 5px; }

.cl-ft__bar { border-top: 1px solid var(--site-footer-line); }
.cl-ft__bar-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; min-height: 69px; padding: 12px 80px; font: 400 14px/16px var(--site-font-body); }
.cl-ft__legal { display: flex; flex-wrap: wrap; }
.cl-ft__legal li a { padding: 0 13px; }
.cl-ft__small { margin-right: 13px; }
.cl-ft__bar-mail { display: inline-block; padding: 10px 0; }

/* ---------- phones: the 62px bar with the search, cart and menu icons, the menu in an opaque drawer ---------- */
@media (max-width: 979.98px) {
  .cl-util { display: none; }
  .cl-hd__bar { height: 62px; }
  .cl-hd__logo { width: auto; padding-left: var(--site-gutter); }
  .cl-hd__logo img { height: 32px; }
  .cl-hd__tools { margin-left: auto; gap: 4px; padding-right: 10px; }
  .cl-search { display: none; }
  .cl-hd__find, .cl-hd__toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-fg); }
  .cl-hd__nav { position: absolute; top: 62px; left: 0; right: 0; height: auto; display: block; background: var(--site-bg); border-bottom: 1px solid var(--site-util-bg); max-height: calc(100vh - 62px); overflow-y: auto; }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { display: block; height: auto; }
  .cl-hd__link, .cl-hd__extra a { display: flex; align-items: center; height: 60px; padding: 0 var(--site-gutter); border-top: 1px solid var(--site-util-bg); font: 500 14px/20px var(--site-font-body); box-shadow: none; }
  .cl-hd__link:hover, .cl-hd__link.is-current { box-shadow: none; color: var(--site-accent-strong); }
  .cl-hd__extra { display: block; }

  .cl-ft__service { grid-template-columns: repeat(3, 1fr); padding: 30px var(--site-gutter); }
  .cl-ft__svc { flex-direction: column; align-items: center; gap: 4px; min-height: 77px; text-align: center; }
  .cl-ft__ring { width: 40px; height: 40px; }
  .cl-ft__svc-text { width: auto; }
  .cl-ft__svc-h { font-size: 14px; line-height: 16px; }
  .cl-ft__svc-p { display: none; }
  .cl-ft__main { display: block; padding: 30px 0 0; min-height: 0; }
  .cl-ft__about { padding: 0 var(--site-gutter) 30px; min-height: 258px; }
  .cl-ft__h { font-size: 14px; }
  .cl-ft__about p { font-size: 13px; line-height: 20px; }
  .cl-ft__cols { display: block; padding: 0; }
  .cl-ft__col { border-top: 1px solid var(--site-footer-line); }
  .cl-ft__col:last-child { border-bottom: 1px solid var(--site-footer-line); }
  .cl-ft__col summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 var(--site-gutter); font-size: 14px; }
  .cl-ft__chev { display: block; transition: transform 0.3s; }
  .cl-ft__col[open] .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__links { padding: 0 var(--site-gutter) 20px; }
  .cl-ft__links li { font-size: 14px; line-height: 24px; }
  .cl-ft__links li a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__links li + li { margin-top: 0; }
  .cl-ft__bar { border-top: 0; }
  .cl-ft__bar-in { flex-direction: column; justify-content: center; gap: 0; padding: 40px var(--site-gutter) 80px; text-align: center; font-size: 13px; }
  .cl-ft__legal { justify-content: center; order: 1; }
  .cl-ft__legal li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; }
  .cl-ft__small { order: 2; margin: 24px 0 0; line-height: 20px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__home { text-align: center; padding: 0 20px 80px; }
.cl-404__home .cl-btn { color: var(--site-button-fg); }

/* 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; }

}
