/* Approved catalogue artwork fills the right side of each banner. */
@media (min-width: 960px) {
  body #page-tires .tire-hero {
    background-image: linear-gradient(90deg, #050505 20%, #050505f5 37%, #05050572 57%, #05050512 82%),
      url("/assets/r16-tire-representative.jpg") !important;
    background-position: center, right 45% !important;
    background-size: cover, min(59vw, 870px) auto !important;
  }
  body #page-wheels .wheel-hero {
    background-image: linear-gradient(90deg, #050505 20%, #050505f5 36%, #05050570 58%, #05050512 82%),
      url("/assets/r16-wheel-representative.jpg") !important;
    background-position: center, right 50% !important;
    background-size: cover, min(59vw, 870px) auto !important;
  }
}

.tl-footer {
  --footer-width: 1540px;
  --footer-gutter: clamp(20px, 4vw, 60px);
  --footer-muted: #bdbbb9;
  --footer-line: #34312f;
  --footer-orange: #fb6027;
  position: relative;
  isolation: isolate;
  background: #070707;
  border-top: 1px solid #292725;
  color: var(--footer-muted);
  font: 400 14px/1.45 Arial, sans-serif;
  text-align: left;
}

.tl-footer::before,
.tl-footer::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 35px;
  width: min(33%, 510px);
  content: "";
  background: url("/assets/r16-tire-representative.jpg") center / cover no-repeat;
  opacity: .32;
  filter: grayscale(1);
  pointer-events: none;
}

.tl-footer::before {
  right: 0;
  mask-image: linear-gradient(to left, #000, #0008 45%, transparent 91%);
}

.tl-footer::after {
  left: 0;
  opacity: .22;
  transform: scaleX(-1);
  mask-image: linear-gradient(to left, #000, #0005 46%, transparent 91%);
}

.tl-footer .tl-footer-main,
.tl-footer .tl-footer-credits-inner {
  box-sizing: border-box;
  width: min(100%, var(--footer-width));
  margin-inline: auto;
  padding-inline: var(--footer-gutter);
}

.tl-footer .tl-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, .73fr) minmax(0, .88fr) minmax(0, 1.08fr);
  align-items: start;
  padding-block: 25px 24px;
}

.tl-footer-brand,
.tl-footer-column { min-width: 0; }

.tl-footer-brand {
  scroll-margin-top: 80px;
  padding-right: 24px;
}

.tl-footer-logo {
  display: block;
  width: min(100%, 324px);
}

.tl-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.tl-footer-brand p {
  margin: 9px 0 4px;
  color: #d2cfcc;
}

.tl-footer a {
  color: inherit;
  text-decoration: none;
}

.tl-footer a:hover,
.tl-footer a:focus-visible {
  color: var(--footer-orange);
}

.tl-footer a:focus-visible {
  outline: 2px solid var(--footer-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.tl-footer-social {
  display: flex;
  gap: 3px;
  margin-inline-start: -6px;
}

.tl-footer-social a {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  color: #f5f4f2;
}

.tl-footer-social svg { width: 17px; height: 17px; }

.tl-footer-column {
  padding-inline: clamp(12px, 2.2vw, 34px);
  border-inline-start: 1px solid var(--footer-line);
}

.tl-footer .tl-footer-column h2 {
  margin: 0 0 9px;
  color: #f5f4f2;
  font: 700 14px/1.2 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tl-footer-column nav { display: grid; justify-items: start; }

.tl-footer-column nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  line-height: 1.25;
}

.tl-footer-services { display: none; }
body:has(#page-service.active) .tl-footer-services { display: block; }

body:has(.page[data-page="tires"].active) .tl-footer nav [data-page-link="tires"],
body:has(.page[data-page="wheels"].active) .tl-footer nav [data-page-link="wheels"],
body:has(.page[data-page="builder"].active) .tl-footer nav [data-page-link="builder"],
body:has(.page[data-page="service"].active) .tl-footer nav [data-page-link="service"],
body:has(.page[data-page="contact"].active) .tl-footer nav [data-page-link="contact"] {
  color: var(--footer-orange);
}

.tl-footer-hours { display: grid; gap: 5px; margin: 0; }
.tl-footer-hours dt { color: #e4e1de; }
.tl-footer-hours dd { margin: 0; }

.tl-footer-seasonal {
  margin: 7px 0 0;
  color: #aaa7a4;
  font-size: 12px;
}

.tl-footer-contact { display: grid; gap: 5px; font-style: normal; }

.tl-footer-contact a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-content: start;
  min-height: 24px;
  overflow-wrap: anywhere;
}

.tl-footer-contact svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  fill: none;
  stroke: var(--footer-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tl-footer-credits {
  border-top: 1px solid #292725;
  background: #151515;
  color: #adaba9;
  font-size: 12px;
}

.tl-footer .tl-footer-credits-inner,
.tl-footer-credits-right { display: flex; flex-wrap: wrap; align-items: baseline; }
.tl-footer .tl-footer-credits-inner { justify-content: space-between; gap: 5px 24px; padding-block: 10px; }
.tl-footer-credits-right { gap: 4px 14px; }
.tl-footer-credits-right a { color: #ddd9d4; }

.mock-service-card[id^="booking-option-"] { scroll-margin-top: 100px; }

@media (min-width: 1120px) {
  body:has(#page-service.active) .tl-footer-main {
    grid-template-columns: minmax(0, 1.46fr) minmax(0, .69fr) minmax(0, 1fr) minmax(0, .87fr) minmax(0, 1fr);
  }

  body:has(#page-service.active) .tl-footer-column { padding-inline: clamp(11px, 1.6vw, 25px); }
}

@media (max-width: 1119px) {
  body:has(#page-service.active) .tl-footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .tl-footer .tl-footer-services { grid-column: 2; grid-row: 2; }
}

@media (max-width: 859px) {
  .tl-footer .tl-footer-main,
  body:has(#page-service.active) .tl-footer-main {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 18px 20px;
    padding-block: 22px 20px;
  }

  .tl-footer-brand { grid-column: 1 / -1; padding: 0 0 12px; border-bottom: 1px solid var(--footer-line); }
  .tl-footer-logo { width: min(100%, 246px); }
  .tl-footer-column { border: 0; padding: 0; }
  .tl-footer .tl-footer-services { grid-column: auto; grid-row: auto; }
  .tl-footer-visit { grid-column: 1 / -1; border-top: 1px solid var(--footer-line); padding-top: 14px; }
  .tl-footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tl-footer { font-size: 14px; }
  .tl-footer::before { width: 75%; opacity: .22; }
  .tl-footer::after { display: none; }
  .tl-footer-column nav a { min-height: 31px; }
  .tl-footer-contact { grid-template-columns: 1fr; gap: 6px; }
  .tl-footer-contact a { min-height: 31px; }
  .tl-footer-social a { width: 42px; min-height: 42px; }
  .tl-footer .tl-footer-credits-inner { padding-block: 12px; }
}

/* The package banner shares the homepage truck scene; its preview has its own image. */
body #page-builder .builder-hero {
  background-image: linear-gradient(90deg, #050505 14%, #050505ee 36%, #0505053d 68%, #05050512 100%),
    url("/assets/hero-r16.jpg") !important;
  background-position: center, right 53% !important;
  background-size: cover, max(690px, 70vw) auto !important;
}

@media (max-width: 700px) {
  body #page-builder .builder-hero {
    background-image: linear-gradient(95deg, #050505ef 6%, #050505b8 70%, #05050578),
      url("/assets/hero-r16.jpg") !important;
    background-position: center, 72% 48% !important;
  }
}

@media (min-width: 601px) and (max-width: 859px) {
  body:has(#page-service.active) .tl-footer-main {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

/* Approved homepage Recent Builds and customer-review layout */
body #page-home .mock-recent-approved{display:flex!important;min-height:118px!important;align-items:center!important;justify-content:center!important;padding:22px!important;border-top:1px solid #333!important;border-bottom:1px solid #333!important;background:#101112!important}
body #page-home .mock-recent-approved .mock-recent-copy{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;width:min(1120px,100%)!important;gap:24px!important}
body #page-home .mock-recent-approved .mock-recent-copy>b{font-size:24px!important}
body #page-home .mock-recent-approved .mock-recent-copy>small{font-size:15px!important}
body #page-home .mock-reviews-approved{grid-template-columns:minmax(220px,.8fr) minmax(0,2.2fr)!important;align-items:stretch!important}
body #page-home .mock-reviews-approved .mock-review-lead{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:12px!important}
body #page-home .mock-reviews-approved .mock-review-lead>strong{color:#fff!important;font-size:20px!important}
body #page-home .mock-testimonial-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body #page-home .mock-testimonial-grid blockquote{margin:0!important;padding:18px!important;border:1px solid #35383a!important;background:#181a1b!important;color:#eee!important;font-size:15px!important;line-height:1.5!important}
body #page-home .mock-testimonial-grid cite{display:block!important;margin-top:12px!important;color:#bbb!important;font-style:normal!important;font-weight:700!important}
@media(max-width:700px){body #page-home .mock-recent-approved .mock-recent-copy{flex-direction:column!important;text-align:center!important;gap:10px!important}body #page-home .mock-reviews-approved{grid-template-columns:1fr!important}body #page-home .mock-testimonial-grid{grid-template-columns:1fr!important}}

/* Match approved single-row desktop testimonials */
body #page-home .mock-reviews-approved{grid-template-columns:minmax(170px,.8fr) minmax(0,3.2fr)!important}
body #page-home .mock-testimonial-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){body #page-home .mock-reviews-approved{grid-template-columns:1fr!important}body #page-home .mock-testimonial-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body #page-home .mock-testimonial-grid{grid-template-columns:1fr!important}}
