/* FILE: assets/css/style.css */

/* ---------- Design tokens ---------- */
:root {
  --black: #0a0a0a;
  --black-soft: #161616;
  --black-card: #1c1c1c;
  --red: #d81324;
  --red-dark: #8a0d16;
  --red-bright: #ff2d3d;
  --silver: #b9bec4;
  --white: #f7f6f4;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --border: #2a2a2a;
  --border-light: #e3e1dc;

  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0 0 1em; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: .75em 1.25em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .9em 1.5em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { flex-shrink: 0; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-bright); }

.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--dark:hover { background: #000; border-color: #000; }

.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { border-color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-light); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark { width: 52px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; letter-spacing: .02em; }
.brand__sub { font-family: var(--font-display); font-weight: 600; color: var(--red); font-size: .85rem; letter-spacing: .12em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-grow: 1;
  justify-content: flex-end;
}
.primary-nav ul {
  display: flex;
  gap: 26px;
}
.primary-nav a:not(.btn) {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--silver);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:not(.btn):hover,
.primary-nav a:not(.btn).is-active {
  color: #fff;
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.75) 55%, rgba(10,10,10,.95) 100%), var(--black);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, #2a1414 0%, var(--black) 65%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 76px 24px 64px;
}
.hero__eyebrow {
  color: var(--red-bright);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .1em;
  font-size: .85rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
}
.hero h1 .accent { color: var(--red); display: block; }
.hero p.lede {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 20px 0 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2b1416, #0c0c0c 60%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__art-note {
  color: var(--muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  text-align: center;
  padding: 20px;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature-strip__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-left: 1px solid var(--border);
}
.feature-strip__item:first-child { border-left: none; }
.feature-strip__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.feature-strip__item h3 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.feature-strip__item p { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Section basics ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--black); color: #fff; }
.section--alt { background: #efedE8; }

.section-heading { text-align: center; margin-bottom: 44px; }
.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.section-heading h2::before,
.section-heading h2::after {
  content: '';
  width: 36px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}
.section--dark .section-heading h2 { color: #fff; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }
.service-card__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fdeceb;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.service-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- About / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #241414, #0c0c0c);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split__media-note {
  color: var(--muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  text-align: center;
  padding: 20px;
}
.split__content {
  background: var(--black);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split__content h2 { font-size: 1.8rem; margin-bottom: 18px; }
.split__content h2 .accent { color: var(--red); }
.split__content p { color: var(--silver); }

.split--area .split__content { background: #efedE8; color: var(--ink); }
.split--area .split__content p { color: var(--muted); }
.checklist { margin: 18px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.split__map { display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 24px;
  flex-wrap: wrap;
}
.cta-band__phone { display: flex; align-items: center; gap: 14px; flex-grow: 1; min-width: 220px; }
.cta-band__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-band__eyebrow { margin: 0; font-size: .85rem; opacity: .9; }
.cta-band__headline { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; }
.cta-band__number { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.cta-band__number:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--silver); padding-top: 56px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-col h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col--brand img { margin-bottom: 14px; }
.footer-tagline { font-size: .9rem; max-width: 26ch; }
.footer-tagline span { color: var(--red); font-weight: 600; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__bottom a { color: var(--muted); }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--black);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header h1 .accent { color: var(--red); }
.page-header p { color: var(--silver); max-width: 60ch; margin: 14px auto 0; }

/* ---------- Generic content blocks ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--muted); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
}
.stat-card span { color: var(--muted); font-size: .85rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-grid--single { grid-template-columns: 1fr; }

/* Intro/values split on about.php — two columns on desktop, stacked on mobile */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.value-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.value-card h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); margin: 0; font-size: .9rem; }

/* Service detail list (services.php) */
.service-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-detail:last-child { border-bottom: none; }
.service-detail__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fdeceb;
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.service-detail h3 { font-size: 1.15rem; margin-bottom: 6px; }
.service-detail p { color: var(--muted); margin: 0; }

/* Town list (service-area.php) */
.town-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.town-card {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .02em;
}
.town-card .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mechanics page ---------- */
.mechanic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mechanic-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.mechanic-card__photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #241414, #0c0c0c);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mechanic-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mechanic-card__body { padding: 28px 26px; }
.mechanic-card__name { font-size: 1.3rem; margin-bottom: 2px; }
.mechanic-card__title { color: var(--red); font-family: var(--font-display); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; margin-bottom: 16px; display: block; }
.mechanic-card__body p { color: var(--muted); font-size: .93rem; }

.expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.expertise-tags li {
  background: #fdeceb;
  color: var(--red-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .03em;
  padding: 8px 16px;
  border-radius: 999px;
}
.section--dark .expertise-tags li { background: var(--black-card); color: var(--silver); border: 1px solid var(--border); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 18px; color: #fff; }
.contact-info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.contact-info-row:first-of-type { border-top: none; }
.contact-info-row .icon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-row strong { display: block; font-size: .85rem; color: var(--silver); margin-bottom: 2px; }
.contact-info-row a, .contact-info-row span { color: #fff; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .8em .9em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font: inherit;
  background: #fdfdfc;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: -6px; margin-bottom: 18px; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: .92rem;
}
.alert--success { background: #eaf6ec; color: #1e6b34; border: 1px solid #bfe4c6; }
.alert--error { background: #fdecec; color: #a11c1c; border: 1px solid #f3c2c2; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  aspect-ratio: 16/7;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16/9; }
  .feature-strip__grid { grid-template-columns: 1fr; }
  .feature-strip__item { border-left: none; border-top: 1px solid var(--border); }
  .feature-strip__item:first-child { border-top: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__content { padding: 44px 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .mechanic-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height .25s ease;
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .primary-nav ul li { border-bottom: 1px solid var(--border); }
  .primary-nav ul a { display: block; padding: 14px 0; }
  .nav-cta { margin: 16px 24px 22px; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-band__inner { justify-content: center; text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .town-grid { grid-template-columns: 1fr; }
}