/* cl-site.css: Garrett's tokens, type and chrome (the header, its menu, the footer, the primary button) on every
   page, written by hand from the capture of garrettmotion.com (review/pages/home.json): white page, black type,
   their red #ED1C24 for the header's slanted block and their figures, black square buttons, light grey footer.
   Their face is Gotham, which we cannot ship; Montserrat stands in (static/fonts/FONTS.md).
   Cascade: `@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 take only the three --parts-* tokens.
   Two layouts: from 980px the desktop one, below it their phone one (measured in a 390px stage). */
@layer base, kit, site;

@font-face { font-family: "Montserrat"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-300-700.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #737373;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F5F5F5;
  --site-wash: #F8F8F8;
  --site-red: #ED1C24;
  --site-accent: #000000;
  --site-accent-fg: #FFFFFF;
  --site-footer-bg: #F1F1F1;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #000000;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #ED1C24;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #111111;

  /* fonts: Montserrat in Gotham's place, their light menu at 300, body 400, headings and buttons 500 */
  --site-font-body: "Montserrat", "Gotham A", "Gotham B", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
  --site-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  --site-red-strong: #C8141B;  /* the red cart block on hover */
  --site-red-fg: #FFFFFF;      /* ink on the red, in both themes */
  --site-photo: #FFFFFF;       /* the plate under a photo: white in both themes */
  --site-photo-ink: #000000;   /* words laid on a photo's light side: black in both themes */
  --site-veil: rgba(255, 255, 255, 0.8);  /* the box over a banner photo */
}
/* the kit's shop pages and vehicle band: only the brand tokens a site owns (storefront-kit ADR 0007); the main
   action is their black button, deepening to their red */
:root {
  --parts-accent: var(--site-button-bg);
  --parts-accent-strong: var(--site-red);
  --parts-font: var(--site-font-body);
}
/* the dark theme (kit 0.10.0, Site(dark="night")): the kit stamps data-parts-theme="dark" on <html> from 21:30 to 04:30
   by the visitor's clock, or when the shopper picks it. The white bar, the page, the cards and the grey footer turn the
   kit's warm near black with near-white text; the red cart block and Garrett's red name stay; the black buttons turn
   Garrett's red, since black reads as nothing on the dark; photos keep white plates and the words on a photo stay black. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-wash: #1C1A18;
  --site-accent: #F6F3EF;
  --site-accent-fg: #121110;
  --site-footer-bg: #1C1A18;
  --site-field-bg: #1C1A18;
  --site-button-bg: #D9141C;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-veil: rgba(18, 17, 16, 0.85);
  --parts-band-bg: #24201C;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #36312C;
}

@layer base {

*, *::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.43 var(--site-font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; font-style: normal; }
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 black square, uppercase 15px, a chevron after the words ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 500 15px/20px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cl-btn:hover { background: var(--site-button-hover-bg); border-color: var(--site-button-hover-bg); color: var(--site-button-hover-fg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-red); outline-offset: 2px; }
.cl-btn svg { flex: none; }

/* ---------- header: their 80px white bar, the red slanted block at the right edge ---------- */
.cl-hd { position: relative; z-index: 50; display: flex; align-items: center; height: 80px; background: var(--site-bg); }
.cl-hd__logo { flex: 0 0 300px; display: flex; padding-left: 60px; }
/* the Orbital Parts mark: the light one on the white bar, the dark one on the night theme's near black */
.cl-hd__mark { width: auto; height: 44px; }
.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; }
.cl-hd__nav { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 30px; }
.cl-hd__list { display: flex; }
.cl-hd__link { display: block; padding: 0 20px; border-bottom: 2px solid transparent; font: 300 18px/78px var(--site-font-body); color: var(--site-fg); white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { border-bottom-color: var(--site-red); }
.cl-hd__search { display: flex; width: 360px; max-width: 100%; height: 42px; border: 1px solid var(--site-line); background: var(--site-field-bg); }
.cl-hd__search input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: none; font: 400 15px var(--site-font-body); color: var(--site-fg); }
.cl-hd__search input::placeholder { color: var(--site-fg); opacity: 0.7; }
.cl-hd__search input:focus { outline: none; }
.cl-hd__search:focus-within { border-color: var(--site-fg); }
.cl-hd__search button { flex: none; display: grid; place-items: center; width: 42px; color: var(--site-fg); }
.cl-hd__search button:hover { color: var(--site-red); }
.cl-hd__cart {
  flex: 0 0 250px; align-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-left: 30px; background: var(--site-red); color: var(--site-red-fg); clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
  font: 500 15px/20px var(--site-font-body); text-transform: uppercase;
}
.cl-hd__cart:hover { background: var(--site-red-strong); }
.cl-hd__cart svg { overflow: visible; }
.cl-hd__cart-count { min-width: 22px; padding: 0 5px; border-radius: 11px; background: var(--site-red-fg); color: var(--site-red); font: 700 13px/22px var(--site-font-body); text-align: center; }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__toggle { display: none; }
/* the kit's theme switch (the kit shows it at night): at the cart's left, in the bar's ink */
.cl-hd .parts-theme-switch { flex: none; margin-right: 8px; color: var(--site-fg); }
.cl-hd .parts-theme-switch:hover { color: var(--site-red); }

/* ---------- footer: their light grey, three columns, then the legal row and the copyright ---------- */
.cl-ft { background: var(--site-footer-bg); color: var(--site-fg); padding: 60px 30px 60px; }
.cl-ft__cols { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 440px)); column-gap: 30px; }
.cl-ft__title { margin: 5px 0 17px; font: 700 11px/16px var(--site-font-body); letter-spacing: 1px; text-transform: uppercase; }
.cl-ft__list li { font: 400 14px/20px var(--site-font-body); letter-spacing: -0.3px; padding: 5px 0; }
.cl-ft__title--next { margin-top: 35px; }
.cl-ft__list a:hover, .cl-ft__legal a:hover { color: var(--site-red); }
.cl-ft__base { max-width: 1380px; margin: 20px auto 0; display: grid; grid-template-columns: 1fr minmax(0, 780px) 1fr; column-gap: 20px; align-items: center; }
.cl-ft__legal { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: center; }
.cl-ft__legal li { font: 400 14px/20px var(--site-font-body); text-transform: uppercase; }
.cl-ft__legal li + li::before { content: "|"; padding: 0 14px; }
.cl-ft__phone-only { display: none; }
.cl-ft__legal .cl-ft__phone-only + li::before { content: none; }
.cl-ft__copy { grid-column: 2; grid-row: 2; margin-top: 20px; font: 400 14px/20px var(--site-font-body); text-transform: uppercase; text-align: center; }

/* 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 404 (templates/404.html) ---------- */
.cl-404 { max-width: var(--site-max); margin: 0 auto; padding: 120px 30px 140px; text-align: center; }
.cl-404__h { font: 500 36px/40px var(--site-font-heading); }
.cl-404__text { margin-top: 20px; font: 400 18px/26px var(--site-font-body); }
.cl-404__home { margin-top: 30px; }

@media (max-width: 1199.98px) {
  .cl-hd__logo { flex-basis: 220px; padding-left: 30px; }
  .cl-hd__mark { height: 38px; }
  .cl-hd__cart { flex-basis: 160px; }
  .cl-ft__base { grid-template-columns: 1fr; justify-items: center; }
  .cl-ft__legal, .cl-ft__copy { grid-column: 1; grid-row: auto; justify-self: center; }
}

/* ---------- phones: their 60px bar, the menu and search behind the three bars (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd { height: 60px; }
  .cl-hd__logo { flex: 1; min-width: 0; padding-left: 20px; }
  .cl-hd__mark { height: 32px; }
  .cl-hd__nav { position: absolute; top: 60px; left: 0; right: 0; display: block; padding: 8px 16px 20px; background: var(--site-bg); border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; margin-bottom: 16px; }
  .cl-hd__link { padding: 0; border-bottom: 1px solid var(--site-line); font-size: 17px; line-height: 48px; }
  .cl-hd__link:hover, .cl-hd__link.is-current { border-bottom-color: var(--site-line); color: var(--site-red); }
  .cl-hd__search { width: 100%; height: 44px; }
  .cl-hd__search input { font-size: 16px; }
  .cl-hd__search button { width: 44px; }
  .cl-hd__cart { flex: none; align-self: center; width: 48px; height: 48px; padding: 0; gap: 0; background: none; color: var(--site-fg); clip-path: none; }
  .cl-hd__cart:hover { background: none; color: var(--site-red); }
  .cl-hd__cart-label { display: none; }
  .cl-hd__cart-count { position: absolute; top: 4px; right: 0; min-width: 18px; padding: 0 4px; border-radius: 9px; background: var(--site-red); color: var(--site-red-fg); font-size: 13px; line-height: 18px; }
  .cl-hd__toggle {
    flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 90px; padding-left: 30px; background: var(--site-red); clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
  }
  .cl-hd__toggle span { display: block; width: 25px; height: 3px; background: var(--site-red-fg); }

  .cl-ft { padding: 15px 16px 40px; }
  .cl-ft__cols { display: none; }
  .cl-ft__base { margin-top: 0; }
  .cl-ft__legal { order: 3; flex-direction: column; align-items: center; }
  .cl-ft__legal li { text-align: center; }
  .cl-ft__legal li::before, .cl-ft__legal li + li::before { content: none; }
  .cl-ft__legal a { display: inline-block; padding: 10px 0; }
  .cl-ft__phone-only { display: list-item; }
  .cl-ft__copy { order: 4; margin-top: 15px; }
  .cl-404 { padding: 60px 16px 80px; }
  .cl-404__h { font-size: 28px; line-height: 32px; }
}

}
