/* ==========================================================================
   Race Coatings — modern redesign
   --------------------------------------------------------------------------
   A dark, industrial, motorsport-flavored design system for the 4-page
   static site. No dependencies, no build step.

   Sections:
     1.  Fonts (self-hosted, OFL-licensed woff2 — same files as before)
     2.  Design tokens
     3.  Reset / base
     4.  Utilities (container, sections, eyebrows, prose, lists, chips)
     5.  Buttons
     6.  Skip link
     7.  Header (fixed, transparent → frosted on scroll) + scroll progress
     8.  Full-screen mobile menu
     9.  Footer
     10. Home hero + stats
     11. Service cards (home)
     12. "Why" split section
     13. CTA band
     14. Sub-page hero
     15. About page
     16. Services page (sticky anchor nav + feature sections)
     17. Contact page
     18. Reveal-on-scroll animations
     19. Responsive
     20. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700; /* variable font: covers 300–700 */
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jura-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jockey One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jockey-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Titan One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/titan-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* palette — same red family as the brand, on a modern charcoal base */
  --bg: #0c0d10;
  --bg-raise: #121419;
  --surface: #171a21;
  --surface-2: #1d212a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text: #eceef1;
  --muted: #a0a7b1;
  --faint: #6f7681;

  --red: #e21c21;          /* brand bright red */
  --red-deep: #b50707;     /* brand dark red */
  --red-soft: rgba(226, 28, 33, 0.14);
  --red-line: rgba(226, 28, 33, 0.45);
  --flame: #ff7a3d;        /* gradient companion for "hot metal" accents */

  /* type */
  --font-ui: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Jura", "Montserrat", sans-serif;
  --font-display: "Jockey One", "Montserrat", sans-serif;
  --font-heavy: "Titan One", "Montserrat", sans-serif;

  /* layout */
  --container: 1180px;
  --header-h: 72px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */

.container {
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

/* Section heading block */
.section-head {
  max-width: 660px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head__eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head .lede {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Eyebrow label — red, tracked-out, with a leading rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* Display headings (Jockey One) */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}

/* Body prose (Jura, as on the original site) */
.prose p {
  margin: 0 0 1.1em;
  font: 400 1.0625rem/1.85 var(--font-body);
  color: #b8bec7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

/* Dash lists (red dash, as on the original) */
.list li {
  position: relative;
  padding: 5px 0 5px 26px;
  font: 400 1.0625rem/1.7 var(--font-body);
  color: #b8bec7;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 16px;
  height: 2px;
  background: var(--red);
}

/* Small pill chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raise);
  font: 600 11.5px/1 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  font: 700 12.5px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  /* cut corner — a motorsport/industrial signature */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: drop-shadow(0 10px 26px rgba(226, 28, 33, 0.4));
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--light {
  background: #fff;
  color: #1c0505;
}

.btn--light:hover,
.btn--light:focus-visible {
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 11.5px;
}

.btn svg {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   6. Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   7. Header
   Fixed and transparent over heroes; gains a frosted dark background on
   scroll. A 2px flame-gradient progress bar rides the bottom edge.
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.72), rgba(8, 9, 11, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 15, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-logo img {
  width: 158px;
  height: auto;
}

/* Desktop navigation — centered */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font: 600 12.5px/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #c6ccd4;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: #fff;
}

/* Right-side actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #c6ccd4;
  transition: color 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: #fff;
}

.header-phone svg {
  color: var(--red);
}

/* Scroll progress bar */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--flame));
  transform: scaleX(0);
  transform-origin: left center;
}

/* Hamburger (mobile) */
.menu-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.menu-btn__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-btn__bar:nth-child(1) { top: 15px; }
.menu-btn__bar:nth-child(2) { top: 22px; }
.menu-btn__bar:nth-child(3) { top: 29px; }

body.menu-open .menu-btn__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .menu-btn__bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-btn__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Full-screen mobile menu
   Markup lives in every page; js/main.js toggles .open, handles Esc /
   focus / scroll-lock.
   -------------------------------------------------------------------------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-menu.open {
  opacity: 1;
  visibility: visible;
}

/* dimmed diamond-plate backdrop */
.site-menu__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0.94)),
    url("../assets/img/home-bg.jpg") center / cover no-repeat;
}

.site-menu__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  padding: 18px clamp(20px, 6vw, 48px) 28px;
}

.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-menu__logo {
  display: inline-block;
  text-decoration: none;
}

.site-menu__logo img {
  width: min(240px, 54vw);
}

.site-menu__close {
  width: 46px;
  height: 46px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.site-menu__close:hover,
.site-menu__close:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

.site-menu__nav {
  margin: auto 0;
  padding: 8px 0;
}

.site-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line-soft);
  font: 400 clamp(1.7rem, 6.5vw, 2.4rem)/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #e8eaee;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    color 0.2s ease, padding-left 0.25s var(--ease);
}

.site-menu.open .site-menu__nav a {
  opacity: 1;
  transform: none;
}

/* staggered entrance */
.site-menu__nav a:nth-child(1) { transition-delay: 0.05s; }
.site-menu__nav a:nth-child(2) { transition-delay: 0.1s; }
.site-menu__nav a:nth-child(3) { transition-delay: 0.15s; }
.site-menu__nav a:nth-child(4) { transition-delay: 0.2s; }

.site-menu__nav a:hover,
.site-menu__nav a:focus-visible {
  color: var(--red);
  padding-left: 16px;
}

.site-menu__nav a[aria-current="page"] {
  color: var(--red);
}

.site-menu__nav a .site-menu__idx {
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.18em;
  color: var(--faint);
}

.site-menu__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 600 13px/1.5 var(--font-ui);
  letter-spacing: 0.04em;
}

.site-menu__contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-menu__contact a:hover,
.site-menu__contact a:focus-visible {
  color: #fff;
}

.site-menu__contact .site-menu__social {
  color: var(--muted);
  margin-left: auto;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #090a0c;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}

.footer-brand img {
  width: 220px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-col__title {
  margin-bottom: 18px;
  font: 700 11.5px/1 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col a {
  display: inline-block;
  padding: 5px 0;
  color: #c2c7cf;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--red);
  transform: translateX(3px);
}

.footer-col address,
.footer-col .footer-contact {
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
  color: #c2c7cf;
}

.footer-col .footer-contact a {
  display: inline;
  padding: 0;
  transform: none;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.site-footer__bottom {
  border-top: 1px solid var(--line-soft);
}

.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px;
}

.site-footer__bottom p {
  font-size: 13px;
  color: var(--faint);
}

.site-footer__bottom a {
  color: var(--faint);
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   10. Home hero + stats
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/home-bg.jpg") center / cover no-repeat;
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 50% 40%, rgba(226, 28, 33, 0.16), transparent 72%),
    linear-gradient(180deg,
      rgba(9, 10, 12, 0.78) 0%,
      rgba(9, 10, 12, 0.46) 36%,
      rgba(9, 10, 12, 0.7) 72%,
      var(--bg) 100%);
}

.hero__content {
  position: relative;
  max-width: 900px;
  padding: 0 24px;
}

.hero__eyebrow {
  margin-bottom: 26px;
  color: #ffd9c9;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.6rem);
  line-height: 1.06;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 .accent {
  color: var(--red);
}

.hero__lede {
  max-width: 640px;
  margin: 28px auto 0;
  font: 400 1.125rem/1.9 var(--font-body);
  color: #cfd4db;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: scroll-cue 2s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Stats strip below the hero */
.stats {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line-soft);
}

.stat__value {
  font: 400 clamp(1.55rem, 2.6vw, 2.15rem)/1.2 var(--font-heavy);
  color: #fff;
}

.stat__value .stat__unit {
  color: var(--red);
}

.stat__label {
  margin-top: 8px;
  font: 600 11.5px/1.5 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   11. Service cards (home)
   -------------------------------------------------------------------------- */

.services-preview {
  background: var(--bg);
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.svc-card:hover,
.svc-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--red-line);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--red-line);
}

.svc-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.svc-card:hover .svc-card__media img,
.svc-card:focus-visible .svc-card__media img {
  transform: scale(1.05);
}

.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 13, 16, 0.65) 100%);
}

.svc-card__num {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  font: 400 1.6rem/1 var(--font-heavy);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}

.svc-card__body h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.svc-card__body p {
  flex: 1;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.svc-card__link::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.svc-card:hover .svc-card__link::after,
.svc-card:focus-visible .svc-card__link::after {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   12. "Why" split section
   -------------------------------------------------------------------------- */

.why {
  background:
    radial-gradient(46% 60% at 12% 50%, rgba(226, 28, 33, 0.07), transparent 70%),
    var(--bg-raise);
  border-block: 1px solid var(--line);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.why__media {
  position: relative;
}

.why__media img {
  width: 100%;
  aspect-ratio: 7 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.why__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  z-index: -1;
}

.why__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 18px;
  background: rgba(9, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  font: 700 11.5px/1.4 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.why__content .eyebrow {
  margin-bottom: 16px;
}

.why__content h2 {
  margin-bottom: 18px;
}

.why__content .prose {
  margin-bottom: 26px;
}

.checklist {
  margin-bottom: 32px;
}

.checklist li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font: 400 1rem/1.6 var(--font-ui);
  color: #c6ccd4;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.62em;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #6f0303 0%, var(--red-deep) 38%, var(--red) 78%, var(--flame) 130%);
}

/* subtle industrial texture over the red */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/parts-closeup.jpg") center / cover;
  opacity: 0.16;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(56px, 7vw, 84px) 24px;
}

.cta-band .eyebrow {
  color: #ffd9c9;
  margin-bottom: 14px;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 22ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   14. Sub-page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  min-height: clamp(420px, 58vh, 560px);
  padding: calc(var(--header-h) + 64px) 0 72px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(226, 28, 33, 0.1), transparent 75%),
    linear-gradient(180deg,
      rgba(9, 10, 12, 0.72) 0%,
      rgba(9, 10, 12, 0.55) 50%,
      var(--bg) 100%);
}

.page-hero--shop .page-hero__bg {
  background-image: url("../assets/img/contact-shop.jpg");
}

.page-hero--services .page-hero__bg {
  background-image: url("../assets/img/services-hero.jpg");
}

.page-hero--night .page-hero__bg {
  background-image: url("../assets/img/page-bg.jpg");
}

.page-hero__content {
  position: relative;
  max-width: 780px;
  padding: 0 24px;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero .eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.08;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.page-hero__lede {
  max-width: 560px;
  margin: 22px auto 0;
  font: 400 1.0625rem/1.85 var(--font-body);
  color: #c6ccd4;
}

/* --------------------------------------------------------------------------
   15. About page
   -------------------------------------------------------------------------- */

.about-story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.about-story__media {
  position: relative;
  order: -1;
}

.about-story__media img {
  width: 100%;
  aspect-ratio: 7 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-story__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-16px, 16px);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  z-index: -1;
}

.about-story__content .eyebrow {
  margin-bottom: 16px;
}

.about-story__content h2 {
  margin-bottom: 22px;
}

/* Full-bleed photo band with caption */
.band {
  position: relative;
  min-height: clamp(300px, 46vh, 420px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.band__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/about-info.jpg") center / cover no-repeat;
}

.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(9, 10, 12, 0.35) 28%, rgba(9, 10, 12, 0.42) 72%, var(--bg) 100%);
}

.band__caption {
  position: relative;
  padding: 0 24px;
  text-align: center;
  max-width: 760px;
}

.band__caption p {
  font: 400 clamp(1.35rem, 2.8vw, 2rem)/1.5 var(--font-display);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65);
}

.band__caption .band__sub {
  margin-top: 12px;
  font: 600 12px/1.6 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffd9c9;
}

/* Capabilities */
.capabilities {
  background: var(--bg-raise);
  border-block: 1px solid var(--line);
}

.capabilities .chips {
  gap: 12px;
}

.capabilities .chip {
  padding: 12px 20px;
  font-size: 12.5px;
  color: #cfd4db;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.capabilities .chip:hover {
  border-color: var(--red-line);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   16. Services page
   -------------------------------------------------------------------------- */

/* Sticky anchor nav (modern take on the old dot-nav) */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(11, 12, 15, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.anchor-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav__inner::-webkit-scrollbar {
  display: none;
}

.anchor-nav__link {
  flex: 0 0 auto;
  display: block;
  padding: 18px 16px;
  border-bottom: 2px solid transparent;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.anchor-nav__link:hover,
.anchor-nav__link:focus-visible {
  color: #fff;
}

.anchor-nav__link.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Feature sections */
.feature {
  padding: clamp(64px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line-soft);
  /* keep anchored sections clear of the fixed header + sticky anchor nav */
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.feature:last-of-type {
  border-bottom: 0;
}

.feature__grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature--flip .feature__media {
  order: 2;
}

.feature__media {
  position: relative;
}

.feature__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  z-index: -1;
}

.feature--flip .feature__media::before {
  transform: translate(-16px, 16px);
}

.feature__num {
  display: block;
  font: 400 clamp(3rem, 5vw, 4.2rem)/1 var(--font-heavy);
  color: rgba(226, 28, 33, 0.22);
}

.feature__title {
  margin: 6px 0 22px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.feature__title .feature__accent {
  color: var(--red);
}

.feature__content .prose {
  margin-bottom: 24px;
}

.feature__content .list {
  margin-bottom: 24px;
}

.feature__chips {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   17. Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left: info card */
.info-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.6vw, 40px);
}

.info-card__title {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.info-card__sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px dashed var(--line);
}

.info-row:first-of-type {
  margin-top: 12px;
}

.info-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red);
}

.info-row__label {
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.info-row__value {
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #e8eaee;
}

.info-row__value a {
  color: #e8eaee;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-row__value a:hover,
.info-row__value a:focus-visible {
  color: var(--red);
}

.info-row__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hours table */
.hours {
  margin-top: 8px;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14.5px;
}

.hours__row:last-child {
  border-bottom: 0;
}

.hours__row dt {
  color: var(--muted);
  margin: 0;
}

.hours__row dd {
  margin: 0;
  color: #e8eaee;
  font-weight: 600;
}

/* Right: shipping / drop-off card */
.ship-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.ship-card__img {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
}

.ship-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ship-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--surface) 96%);
}

.ship-card__body {
  position: relative;
  margin-top: -34px;
  padding: 26px clamp(24px, 3.4vw, 40px) clamp(30px, 4vw, 44px);
}

.ship-card__body .eyebrow {
  margin-bottom: 14px;
}

.ship-card__body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.ship-card__body .prose {
  margin-bottom: 26px;
}

.ship-card__note {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--bg-raise);
  font: 400 0.95rem/1.7 var(--font-body);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   18. Reveal-on-scroll animations
   JS adds .is-revealed (see js/main.js). Hidden state only applies when
   JS is present (html.js) and motion is welcome.
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

html.js [data-reveal][data-reveal-dir="left"] {
  transform: translateX(-32px);
}

html.js [data-reveal][data-reveal-dir="right"] {
  transform: translateX(32px);
}

html.js [data-reveal][data-reveal-dir="left"].is-revealed,
html.js [data-reveal][data-reveal-dir="right"].is-revealed {
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .feature__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature--flip .feature__media {
    order: 0;
  }

  .feature__media {
    max-width: 480px;
  }

  .feature__media img {
    aspect-ratio: 16 / 10;
  }

  .feature__media::before,
  .feature--flip .feature__media::before {
    transform: translate(12px, 12px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .site-nav,
  .header-phone,
  .site-header .btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .site-logo img {
    width: 128px;
  }

  .why__grid,
  .about-story__grid,
  .contact-grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .about-story__media {
    order: 0;
  }

  .why__media img,
  .about-story__media img {
    aspect-ratio: 16 / 10;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding-bottom: 120px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 22px 12px;
  }

  .svc-card__body {
    padding: 22px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom .container {
    justify-content: center;
    text-align: center;
  }

  .ship-card__img {
    aspect-ratio: 16 / 9;
  }
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__bg {
    animation: none;
  }

  .hero__scroll span {
    animation: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-menu,
  .site-menu__nav a,
  .btn,
  .svc-card,
  .svc-card__media img,
  .scroll-progress {
    transition: none;
    animation: none;
  }
}
