/* Select Rims — Clubsport Garage–inspired motorsport retail (clubsportgarage.co.uk) */
:root {
  --csg-black: #0a0a0a;
  --csg-surface: #141414;
  --csg-elevated: #1c1c1c;
  --csg-border: #2a2a2a;
  --csg-muted: #9a9a9a;
  --csg-text: #e8e8e8;
  --csg-white: #ffffff;
  --csg-accent: rgb(10, 132, 255);
  --csg-accent-hover: rgb(74, 163, 255);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --top-strip-h: 44px;
  --header-h: 68px;
  --nav-top: calc(var(--top-strip-h) + var(--header-h));
  --header-offset: var(--nav-top);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--csg-text);
  background: var(--csg-black);
  -webkit-font-smoothing: antialiased;
}

main > section {
  scroll-margin-top: var(--header-offset);
}

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

a {
  color: var(--csg-white);
}

a:hover {
  color: var(--csg-accent-hover);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--csg-accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Top bar — phone, email, Instagram, eBay (icon links) */
.top-bar {
  background: var(--csg-surface);
  border-bottom: 1px solid var(--csg-border);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 48px);
  min-height: var(--top-strip-h);
  padding: 10px 0;
}

.top-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--csg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar__link:hover,
.top-bar__link:focus-visible {
  color: var(--csg-accent);
}

.top-bar__link--ebay {
  margin-left: -10px;
}

.top-bar__icon {
  display: block;
  flex-shrink: 0;
}

.top-bar__icon--ebay {
  width: 58px;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--csg-black);
  border-bottom: 1px solid var(--csg-border);
  min-height: var(--header-h);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  text-decoration: none;
  color: var(--csg-white);
}

.logo__name {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}

.primary-nav__list a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--csg-text);
  transition: color 0.2s;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
  color: var(--csg-accent);
}

.primary-nav__list a:focus-visible {
  outline: 2px solid var(--csg-accent);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--csg-border);
  background: var(--csg-surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--csg-white);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--nav-top);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    padding: 28px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 150;
    border-top: 1px solid var(--csg-border);
  }

  body.nav-open .primary-nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .primary-nav__list a {
    font-size: 15px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--csg-accent);
  color: var(--csg-white);
  border-color: var(--csg-accent);
}

.btn--primary:hover {
  background: var(--csg-accent-hover);
  border-color: var(--csg-accent-hover);
  color: var(--csg-white);
}

.btn--ghost {
  background: transparent;
  color: var(--csg-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--csg-white);
  color: var(--csg-white);
}

.btn--dark {
  background: var(--csg-white);
  color: var(--csg-black);
  border-color: var(--csg-white);
}

.btn--dark:hover {
  background: transparent;
  color: var(--csg-white);
  border-color: var(--csg-white);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 13px;
}

/* Promo dual cards */
.promo-dual {
  margin-top: 0;
  position: relative;
  z-index: 3;
  padding-top: 72px;
  padding-bottom: 72px;
}

.promo-dual__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  .promo-dual__grid {
    grid-template-columns: 1fr;
  }
}

.promo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--csg-elevated);
  border: 1px solid var(--csg-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.promo-card:hover,
.promo-card:focus-visible {
  border-color: var(--csg-accent);
  outline: none;
}

.promo-card--accent {
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  border-color: var(--csg-border);
}

.promo-card__media {
  min-height: 200px;
  background: #111;
  overflow: hidden;
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.promo-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: 0.04em;
  color: var(--csg-white);
  margin: 0 0 10px;
  line-height: 1;
}

.promo-card__text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--csg-muted);
  line-height: 1.5;
}

.promo-card__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--csg-accent);
}

@media (max-width: 600px) {
  .promo-card:not(.promo-card--accent) {
    grid-template-columns: 1fr;
  }

  .promo-card__media {
    min-height: 180px;
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--dark {
  background: var(--csg-black);
}

.section--surface {
  background: var(--csg-surface);
}

/* About / story section — dark panel, accent highlights */
.section--story {
  background: linear-gradient(165deg, #0e1622 0%, #0a1018 45%, #0c121c 100%);
  color: #c9d4de;
  border-top: 1px solid rgba(10, 132, 255, 0.18);
  border-bottom: 1px solid var(--csg-border);
  padding-top: 56px;
  padding-bottom: 56px;
}

.section--story .section-heading__eyebrow {
  color: rgba(10, 132, 255, 0.9);
}

.section--story .section-heading__title {
  color: #f2f6fa;
}

.section--story .prose {
  color: #9eb0bf;
}

.section--story .prose strong {
  color: #e8f0f7;
}

.section--story .btn--dark {
  background: rgba(10, 132, 255, 0.12);
  color: #fff;
  border-color: rgba(10, 132, 255, 0.45);
}

.section--story .btn--dark:hover {
  background: var(--csg-accent);
  border-color: var(--csg-accent);
  color: #fff;
}

.section--cta-banner .btn--dark {
  background: rgba(10, 132, 255, 0.12);
  color: #fff;
  border-color: rgba(10, 132, 255, 0.45);
}

.section--cta-banner .btn--dark:hover {
  background: var(--csg-accent);
  border-color: var(--csg-accent);
  color: #fff;
}

.section--quote {
  background: var(--csg-surface);
  border-top: 1px solid var(--csg-border);
  border-bottom: 1px solid var(--csg-border);
  padding: 56px 0;
}

.section--cta-banner {
  padding: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 40px;
}

.section-heading--center {
  text-align: center;
  align-items: center;
}

.section-heading--inline {
  margin: 0;
}

.section-heading__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--csg-muted);
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--csg-white);
  line-height: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head--center .section-heading {
  margin-bottom: 0;
}

.section-head--center .text-link {
  margin-top: 4px;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--csg-accent);
}

.text-link:hover {
  color: var(--csg-accent-hover);
}

/* Feature grid — services */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--csg-elevated);
  border: 1px solid var(--csg-border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  border-color: var(--csg-accent);
}

.feature-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

/* Tyres card: show upper portion of portrait tyre/wheel photo */
.feature-grid .feature-card:nth-child(2) .feature-card__media img {
  object-position: center top;
}

.feature-card__body {
  padding: 20px 18px 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--csg-white);
  margin: 0 0 4px;
  line-height: 1;
}

.feature-card__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--csg-accent);
  margin: 0 0 10px;
}

.feature-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--csg-muted);
  line-height: 1.45;
}

/* Quotes / reviews */
.section--quote .section-heading {
  margin-bottom: 36px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

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

.quotes__item {
  margin: 0;
  padding: 24px;
  background: var(--csg-black);
  border: 1px solid var(--csg-border);
  border-left: 3px solid var(--csg-accent);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.quotes__item:hover,
.quotes__item:focus-within {
  border-color: var(--csg-accent);
}

.quotes__item > p:first-of-type {
  margin: 0 0 14px;
  font-size: 15px;
  font-style: italic;
  color: #ccc;
  line-height: 1.55;
  flex: 1 1 auto;
}

.quotes__item-product {
  margin: 0 0 14px !important;
  font-size: 11px;
  font-style: normal !important;
  font-weight: 500;
  line-height: 1.45;
  color: var(--csg-muted);
  letter-spacing: 0.02em;
}

.quotes__item footer {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--csg-muted);
  text-transform: none;
}

/* Story */
.story__content {
  max-width: 640px;
}

.prose p {
  margin: 0 0 1em;
}

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

.story .btn {
  margin-top: 24px;
}

/* Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 1000px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-masonry__item {
  background: var(--csg-elevated);
  border: 1px solid var(--csg-border);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.gallery-masonry__item:hover,
.gallery-masonry__item:focus-within {
  border-color: var(--csg-accent);
}

.gallery-masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* CTA banner — on small screens gradient moves to .section--cta-banner for full-bleed width */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px 0;
  background: linear-gradient(90deg, rgb(8, 40, 78) 0%, #0a0a0a 50%, #0a0a0a 100%);
  border-top: 1px solid var(--csg-border);
  border-bottom: 1px solid var(--csg-border);
}

.cta-banner__text {
  padding-inline-start: clamp(16px, 4vw, 40px);
  min-width: min(100%, 280px);
}

@media (max-width: 768px) {
  .section--cta-banner {
    background: linear-gradient(90deg, rgb(8, 40, 78) 0%, #0a0a0a 50%, #0a0a0a 100%);
    border-top: 1px solid var(--csg-border);
    border-bottom: 1px solid var(--csg-border);
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 40px 0;
    background: none;
    border-top: none;
    border-bottom: none;
  }

  .cta-banner__text {
    padding-inline-start: 0;
    min-width: 0;
  }

  .section--cta-banner .btn {
    align-self: flex-start;
  }
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--csg-white);
  margin: 0 0 12px;
  line-height: 1.05;
}

.cta-banner__lead {
  margin: 0;
  max-width: 480px;
  color: var(--csg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 32px;
  min-width: 200px;
  background: var(--csg-elevated);
  border: 1px solid var(--csg-border);
  text-decoration: none;
  color: var(--csg-white);
  transition: border-color 0.2s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  border-color: var(--csg-accent);
  color: var(--csg-white);
  outline: none;
}

.contact-chip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--csg-muted);
}

.contact-chip__value {
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #050505;
  color: var(--csg-muted);
  padding: 48px 0 0;
  border-top: 1px solid var(--csg-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--csg-white);
  display: block;
  margin-bottom: 10px;
}

.footer__tag {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--csg-white);
  margin: 0 0 14px;
}

.footer__links ul,
.footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li,
.footer__social-list li {
  margin-bottom: 8px;
}

.footer__links a,
.footer__social-list a {
  color: var(--csg-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer__links a:hover,
.footer__social-list a:hover {
  color: var(--csg-white);
}

.footer__bar {
  border-top: 1px solid var(--csg-border);
  padding: 18px 0 22px;
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12px;
  color: #666;
}

.footer__copyright {
  margin: 0;
}

.footer__credit {
  margin: 0;
  font-size: 11px;
  color: inherit;
}

@media (max-width: 560px) {
  .footer__bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
