/* ============================================
   AUTOMOTIX TYRES — Design Tokens
   Charcoal black / racing red / brushed silver
   ============================================ */
:root {
  --black: #0d0d0d;
  --charcoal: #1a1a1a;
  --charcoal-2: #232323;
  --red: #c81d25;
  --red-dark: #93151b;
  --silver: #b8bcc2;
  --silver-light: #e4e6e9;
  --off-white: #f2f2f0;
  --white: #ffffff;
  --text-dim: #9a9a9a;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.95rem 2.2rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  transform-origin: center;
}
.btn:hover { transform: translateY(-2px); }

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

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

.btn-full { width: 100%; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.96);
  border-bottom: 2px solid var(--red);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--red-dark); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--off-white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-tread {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    115deg,
    var(--silver) 0px, var(--silver) 2px,
    transparent 2px, transparent 26px
  );
  pointer-events: none;
}

.hero-tread::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  border: 32px solid var(--silver);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.3rem;
}
.hero h1 span { color: var(--red); }

.hero-sub {
  color: var(--silver-light);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   VALUE BANNERS
   ============================================ */
.value-banners {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  transform: translateY(-3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.value-card {
  background: var(--white);
  border: 1px solid #e2e2e0;
  border-top: 4px solid var(--silver);
  padding: 2rem 1.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-radius: var(--radius);
}

.value-card--accent {
  background: var(--charcoal);
  color: var(--white);
  border-top: 4px solid var(--red);
}
.value-card--accent .value-mark { color: var(--red); }
.value-card--accent p { color: var(--silver-light); }

.value-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  color: #5a5a5a;
}

/* ============================================
   SECTION HEAD
   ============================================ */
.section-head {
  max-width: 620px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: #5a5a5a;
  font-size: 1.02rem;
}

.section-head--light .section-sub { color: var(--silver); }

/* ============================================
   SERVICES
   ============================================ */
.services {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.service-tile {
  background: var(--white);
  border: 1px solid #e2e2e0;
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-tile:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  color: var(--red);
}
.service-icon svg { width: 100%; height: 100%; }

.service-tile h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-tile p {
  font-size: 0.92rem;
  color: #666;
}

/* ============================================
   WORKSHOP / GALLERY
   ============================================ */
.workshop {
  background: var(--black);
  padding: 5rem 1.5rem 6rem;
}

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #2a2a2a;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--charcoal-2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-placeholder svg { width: 36px; height: 36px; }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
  text-transform: none;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.3rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

.contact-list strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--charcoal);
  padding: 2.5rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
}

.form-row {
  margin-bottom: 1.3rem;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid #3a3a3a;
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--red);
  outline: none;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--silver);
  text-align: center;
  min-height: 1.2em;
}

.map-wrap {
  width: 100%;
  height: 380px;
  border-top: 4px solid var(--red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: var(--silver);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 340px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--red); }

.footer-contact p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding: 1.3rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .value-banners { grid-template-columns: 1fr; transform: translateY(-2rem); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 2px solid var(--red);
  }
  .main-nav.open { max-height: 360px; }
  .main-nav a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #262626;
  }
  .nav-cta { margin: 1rem 1.5rem; text-align: center; }

  .hero { padding: 4.5rem 1.2rem 7rem; }

  .service-tiles { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
