/* ===========================================================
   TYRE LAB — Pirelli Performance Centre, Pukekohe
   Design tokens
   =========================================================== */
:root {
  --black: #0a0a0a;
  --charcoal: #151515;
  --charcoal-2: #1e1e1e;
  --steel: #8a8a8a;
  --steel-light: #b8b8b8;
  --white: #f5f5f5;
  --red: #e0201f;
  --red-dark: #a91616;
  --red-glow: rgba(224, 32, 31, 0.35);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;

  /* Theme tokens — power the light/dark mode split, decided by the
     browser/OS "prefers-color-scheme" setting (see the media query
     below). Defaults here match the original all-dark design. The
     header, footer, search panel and hero banners deliberately keep
     referencing the constants above directly (not these tokens) so
     they stay black in both modes. */
  --bg: var(--black);
  --surface: var(--charcoal-2);
  --surface-hover: #232323;
  --surface-alt: var(--charcoal);
  --text: var(--white);
  --text-muted: var(--steel-light);
  --text-faint: var(--steel);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --input-bg: var(--black);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f4f1;
    --surface: #fff;
    --surface-hover: #f2f0eb;
    --surface-alt: #ebe9e4;
    --text: #17181a;
    --text-muted: #53565b;
    --text-faint: #6d7075;
    --line: rgba(15, 13, 10, 0.12);
    --line-soft: rgba(15, 13, 10, 0.08);
    --line-strong: rgba(15, 13, 10, 0.18);
    --input-bg: #fff;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.eyebrow {
  font-family: var(--font-display);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* Skip link for a11y */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  z-index: 600;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Groups main nav + icon buttons on the right of the header */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--red);
}
.search-toggle svg {
  width: 18px;
  height: 18px;
}

/* ===========================================================
   Site search panel
   =========================================================== */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0 28px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 400;
}
.search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.search-form {
  display: flex;
  gap: 12px;
}
.search-form input[type="search"] {
  flex: 1;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--red);
}
.search-form input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 360px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  transition: color 0.15s ease;
}
.search-result:hover,
.search-result:focus-visible {
  color: var(--red);
}
.search-result-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.search-result-meta {
  color: var(--steel-light);
  font-size: 0.8rem;
  white-space: nowrap;
}
.search-no-results {
  color: var(--steel-light);
  font-size: 0.9rem;
  padding: 12px 4px 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 54px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-text .tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--white);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.main-nav a.nav-cta {
  font-family: var(--font-display);
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 26px 10px 32px !important;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.main-nav a.nav-cta:hover {
  background: var(--red-dark);
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  padding: 15px 30px 15px 38px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 10px 30px var(--red-glow);
}

/* .btn-outline draws its fill + border as two stacked, independently
   clipped layers instead of a native `border`. A native border combined
   with clip-path only strokes the rectangular edges — the sloped edge
   clip-path cuts is left with no stroke at all, so the outline looked
   broken/cut open along the slant. Stacking a full-size "border colour"
   layer behind a slightly inset "fill colour" layer (both clipped to the
   same notched shape) keeps a uniform outline all the way around,
   slope included.

   There are only two button looks on the whole site — this one (solid
   black, white outline, white text; hover reddens the outline only) and
   .btn-primary (solid red). Both stay identical in every section and in
   both colour themes — do not add per-section or light-mode overrides. */
.btn-outline {
  --btn-outline-fill: var(--black);
  --btn-outline-border: rgba(255, 255, 255, 0.4);
  --btn-outline-border-width: 1.5px;

  position: relative;
  background: transparent;
  color: var(--white);
  border: none;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
}
.btn-outline::before,
.btn-outline::after {
  content: "";
  position: absolute;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  transition: background 0.2s ease;
}
.btn-outline::before {
  inset: 0;
  background: var(--btn-outline-border);
  z-index: -2;
}
.btn-outline::after {
  inset: var(--btn-outline-border-width);
  background: var(--btn-outline-fill);
  z-index: -1;
}
.btn-outline:hover {
  --btn-outline-border: var(--red);
}

/* ===========================================================
   Speed stripe divider — signature element
   =========================================================== */
.stripe-divider {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    115deg,
    var(--red) 0 40px,
    transparent 40px 56px
  );
  opacity: 0.9;
}
.stripe-divider.thin {
  height: 4px;
  opacity: 0.6;
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);

  /* TODO: replace with a real hero photo of the workshop/track:
     background: linear-gradient(100deg, rgba(10,10,10,0.96) 30%, rgba(10,10,10,0.55) 65%, rgba(10,10,10,0.25) 100%),
                 url('images/hero.jpg') center/cover no-repeat; */
  background:
    radial-gradient(
      circle at 78% 25%,
      rgba(224, 32, 31, 0.16),
      transparent 55%
    ),
    linear-gradient(135deg, var(--charcoal-2) 0%, var(--black) 75%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 120px,
    rgba(224, 32, 31, 0.06) 120px 128px
  );
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 28px 80px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 18px 0 22px;
  max-width: 780px;
}
.hero h1 span {
  color: var(--red);
}

.hero p.lead {
  max-width: 560px;
  color: var(--steel-light);
  font-size: 1.08rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-badge {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(21, 21, 21, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 20px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
}
.hero-badge span {
  font-size: 0.85rem;
  color: var(--steel-light);
  letter-spacing: 0.02em;
}
.hero-badge strong {
  color: var(--white);
}

/* ===========================================================
   Sections
   =========================================================== */
section {
  padding: 50px 0;
  position: relative;
}
.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: 14px;
}
.section-head p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.02rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow::before {
  display: none;
}

/* ===========================================================
   Cards / Grids — Services
   =========================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--red);
}
.service-card .service-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.service-card .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-media img {
  transform: scale(1.06);
}
.service-card .service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface) 0%, transparent 45%);
}
.service-card .service-media .num {
  position: absolute;
  bottom: 10px;
  left: 20px;
  z-index: 1;
}
.service-card .service-body {
  padding: 24px 28px 30px;
}
.service-card .num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.service-card h3 {
  font-size: 1.25rem;
  margin: 14px 0 12px;
}
.service-card .service-media ~ .service-body h3 {
  margin-top: 0;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.3s ease;
}
.service-card:hover::before {
  width: 100%;
}

/* ===========================================================
   Why us / stats strip
   =========================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child {
  border-right: none;
}
.stat .val,
.stat-brand-logo {
  height: clamp(2.6rem, 6vw, 3.6rem);
}
.stat .val {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  line-height: 1;
  color: var(--red);
}
.stat .label {
  color: var(--text-muted);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.stat-brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ===========================================================
   Brand strip
   =========================================================== */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 24px 20px;
  background: var(--surface);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.brand-logo-card img {
  max-width: 130px;
  max-height: 44px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  transition: filter 0.2s ease;
}

@media (prefers-color-scheme: light) {
  .brand-logo-card img {
    filter: grayscale(1) brightness(0.95) contrast(1.05);
  }
}

.brand-logo-card:hover,
.brand-logo-card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--red);
}
.brand-logo-card:hover img,
.brand-logo-card:focus-visible img {
  filter: none;
}
.brand-logo-card.featured {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(224, 32, 31, 0.18), transparent);
}
.brand-logo-card.featured img {
  filter: none;
}
.brand-logo-card .flag {
  color: var(--red);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===========================================================
   Tyre catalogue
   =========================================================== */
.tyre-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 24px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 150px;
  min-width: 140px;
}
.filter-group label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.filter-group input,
.filter-group select {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 100%;
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--red);
}
.filter-group select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23e0201f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.filter-group select:hover {
  border-color: rgba(224, 32, 31, 0.5);
}
.filter-group select option {
  background: var(--surface);
  color: var(--text);
}
.filter-actions {
  flex: 0 0 auto;
}

.tyre-results-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.tyre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tyre-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.tyre-card:hover {
  background: var(--surface-hover);
  border-color: var(--red);
}
.tyre-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tyre-card:hover img {
  transform: scale(1.06);
}
.tyre-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tyre-brand {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tyre-card h3 {
  font-size: 1.1rem;
}
.tyre-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.tyre-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tyre-spec {
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tyre-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}

/* ===========================================================
   Reviews
   =========================================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 32px 28px;
}
.review-card .stars {
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.review-card .review-text {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto;
}
.review-card .review-author {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ===========================================================
   Page hero — shared banner for About / Services / Tyres.
   Set --hero-image inline on the section to give a page its own
   photo (different per page); the gradient + diagonal stripe
   overlay always renders on top so the heading stays legible.
   No image wanted? Just leave --hero-image unset, or set
   --hero-image-opacity: 0 to hide a photo without removing it.

   Path gotcha: the url() lives in a custom property, but it's read
   by the `background-image` declaration below — so per spec it
   resolves relative to THIS file (css/style.css), not the HTML page
   that sets --hero-image. Inline styles must use "../images/…". */
.page-hero {
  --hero-image: none;
  --hero-image-opacity: 1;

  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
  color: var(--white);
  background: var(--black);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center 65%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--hero-image-opacity);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(10, 10, 10, 0.75) 10%,
      rgba(10, 10, 10, 0.4) 55%,
      rgba(10, 10, 10, 0.2) 100%
    ),
    repeating-linear-gradient(
      115deg,
      transparent 0 120px,
      rgba(224, 32, 31, 0.16) 120px 128px
    );
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 24px),
    calc(100% - 24px) 100%,
    0 100%,
    0 24px
  );
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.values-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.values-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
}
.values-list li::before {
  content: "";
  min-width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.team-card {
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  margin-bottom: 16px;
  clip-path: polygon(
    16px 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%,
    0 16px
  );
}
.team-card h4 {
  font-size: 1.05rem;
}
.team-card span {
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===========================================================
   FAQ page
   =========================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}
.faq-item p {
  color: var(--text-muted);
  padding: 18px 26px 24px;
}

/* ===========================================================
   Contact page
   =========================================================== */
.contact-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}
.contact-form-card {
  padding: 44px;
}
.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 26px;
}
.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.contact-info-col + .contact-info-col {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  margin-left: 32px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child {
  border-bottom: none;
}
.info-row .ico {
  display: flex;
  color: var(--red);
  min-width: 26px;
}
.info-row .lbl {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.info-row .val {
  color: var(--text);
}
.info-row .val a:hover {
  color: var(--red);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.hours-table tr {
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table td {
  padding: 11px 0;
  font-size: 0.95rem;
}
.hours-table td:first-child {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.82rem;
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text);
}
.hours-table tr.closed td:last-child {
  color: var(--text-faint);
}
.hours-table tr.today {
  background: rgba(224, 32, 31, 0.06);
}
.hours-table tr.today td:first-child {
  color: var(--red);
}

.map-wrap {
  border: 1px solid var(--line);
  height: 100%;
  min-height: 340px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0; /* filter: grayscale(0.4) invert(0.92) contrast(0.9); */
}

.footer-map {
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  min-height: 340px;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0; /* filter: grayscale(0.4) invert(0.92) contrast(0.9); */
}

/* Contact form */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===========================================================
   Services page — process
   =========================================================== */
.process-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.process-item:first-child {
  padding-top: 0;
}
.process-item .step {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(224, 32, 31, 0.4);
}
.process-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.process-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 30px;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 26px;

  /* The footer deliberately stays dark in both themes (see the note on
     --bg above), but unstyled text (e.g. the plain <li> rows in the
     Contact column) inherited body's theme-switching --text colour and
     went near-black on a dark background in light mode. Fall back to a
     constant light grey here so any un-styled footer text stays legible
     regardless of theme. */
  color: var(--steel-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--steel);
  font-size: 0.9rem;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--white);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: var(--steel);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--red);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--red);
  color: var(--red);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--steel);
  font-size: 0.84rem;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .grid-3,
  .review-grid,
  .tyre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split img {
    height: 340px;
  }
  .contact-bottom-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 32px 12px;
  }
  .map-wrap {
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .grid-3,
  .grid-2,
  .review-grid,
  .tyre-grid {
    grid-template-columns: 1fr;
  }
  .tyre-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .hero-inner {
    padding-top: 60px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .contact-info-col + .contact-info-col {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
}

/* ===========================================================
   Mobile nav — hamburger + collapsible drawer
   =========================================================== */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .brand img {
    height: 40px;
  }
  .brand-text .name {
    font-size: 1rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 28px 30px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.3s ease,
      opacity 0.25s ease;
  }
  .main-nav.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }
  .main-nav a.nav-cta {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .main-nav {
    padding: 20px 18px 26px;
  }
  .hero-inner {
    padding: 50px 18px 50px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .contact-card {
    padding: 26px 20px;
  }
  .service-card .service-body {
    padding: 22px 20px 26px;
  }
  .brand-pill {
    padding: 12px 18px;
    font-size: 0.92rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .search-form {
    flex-direction: column;
  }
  .search-form button {
    width: 100%;
    justify-content: center;
  }

  .nav-wrap {
    padding: 10px 14px;
    gap: 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    height: 28px;
  }
  .nav-right {
    gap: 8px;
  }
  .search-toggle,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }
  .search-toggle svg {
    width: 15px;
    height: 15px;
  }
  .nav-toggle span {
    width: 16px;
  }
}
