/* =====================================================================
   NO START GARAGE — styles
   Design system: oil-stained near-black, gunmetal steel, worn-paper text,
   cold steel-blue (the "no-start" state) + one hot ignition-ember accent.
   Type: Anton (display) / Barlow (body) / Spline Sans Mono (gauge + data).
   ===================================================================== */

:root {
  /* palette */
  --oil:        #14110d;  /* base background — oil-stained near-black */
  --oil-2:      #100e0a;  /* deeper wells */
  --steel:      #211e1a;  /* raised panel */
  --steel-2:    #2a2723;  /* card face */
  --gunmetal:   #3b3833;  /* hairline rules / borders */
  --gunmetal-2: #4a463f;
  --paper:      #ece6da;  /* primary text — worn manual pages */
  --paper-dim:  #a49b8d;  /* secondary text */
  --paper-faint:#7d7568;
  --cold:       #6e8391;  /* steel-blue: the cold / no-start state */
  --ember:      #e8551f;  /* the single GO accent — ignition orange */
  --ember-hot:  #ff6a2c;
  --hazard:     #e4b23c;  /* safety yellow — used only in the stripe */

  /* type */
  --f-display: 'Anton', 'Arial Narrow', system-ui, sans-serif;
  --f-cond:    'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --f-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'Spline Sans Mono', ui-monospace, 'Cascadia Code', monospace;

  /* scale / rhythm */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;   /* rugged: minimal rounding, not pillowy */
  --radius-lg: 8px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,0.8);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--oil);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* subtle machined-metal texture */
  background-image:
    radial-gradient(1200px 500px at 80% -5%, rgba(110,131,145,0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(232,85,31,0.05), transparent 55%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-hot); }

.wrap { width: min(100% - 2*var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; }

.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cold);
  margin: 0 0 0.9rem;
}
.accent { color: var(--ember); }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--ember); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius); z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ember); color: #1b0d05;
  box-shadow: 0 10px 24px -12px rgba(232,85,31,0.9);
}
.btn-primary:hover { background: var(--ember-hot); color: #1b0d05; }

.btn-ghost {
  background: transparent; color: var(--paper);
  border-color: var(--gunmetal-2);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }

.btn-call { background: transparent; border-color: var(--gunmetal-2); color: var(--paper); font-size: 0.9rem; padding: 0.55rem 0.95rem; }
.btn-call:hover { border-color: var(--ember); color: var(--paper); }
.btn-block { width: 100%; justify-content: center; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,14,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gunmetal);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand-mark { width: 34px; height: 34px; color: var(--ember); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 0.82; font-family: var(--f-display); text-transform: uppercase; }
.brand-line-1 { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-line-2 { font-size: 1.05rem; color: var(--ember); letter-spacing: 0.24em; }

.primary-nav { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav > a:not(.btn) {
  color: var(--paper-dim);
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
  position: relative;
  padding: 0.35rem 0;
}
.primary-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ember); transition: width 0.2s ease;
}
.primary-nav > a:not(.btn):hover { color: var(--paper); }
.primary-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle-bar { width: 26px; height: 2.5px; background: var(--paper); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-copy h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  margin: 0.4rem 0 1.2rem;
  letter-spacing: 0.005em;
}
.lede { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--paper-dim); max-width: 34ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.hero-note { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--paper-faint); margin: 0; }

/* --- the tachometer signature --- */
.hero-gauge { display: flex; flex-direction: column; align-items: center; }
.tach { position: relative; width: min(100%, 400px); aspect-ratio: 1; }
.tach-svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
.tach-needle-group { transform-box: fill-box; }
.tach-needle {
  transform-origin: 150px 150px;
  /* start pointing at the "0" tick, bottom-left */
  transform: rotate(-125deg);
}
.tach-readout {
  position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%);
  text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.tach-rpm { font-family: var(--f-mono); font-weight: 700; font-size: clamp(2rem, 7vw, 2.9rem); color: var(--paper); font-variant-numeric: tabular-nums; }
.tach-unit { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.35em; color: var(--paper-faint); margin-top: 0.15rem; }
.tach-state {
  margin-top: 0.7rem; font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.82rem; padding: 0.28rem 0.7rem; border-radius: 2px;
  color: var(--cold); border: 1px solid var(--cold);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.tach-state.is-running { color: var(--ember); border-color: var(--ember); background: rgba(232,85,31,0.1); }
.gauge-caption { font-family: var(--f-cond); font-style: italic; color: var(--paper-dim); text-align: center; margin: 1.4rem 0 0; max-width: 30ch; }

/* hazard stripe — the one loud decorative device, used once */
.hazard-stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 22px, #1a1710 22px 44px);
  opacity: 0.9;
  border-top: 1px solid rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.5);
}

/* =====================================================================
   SPEC PLATE (trust strip as a bolted-on data plate)
   ===================================================================== */
.spec-plate { background: var(--oil-2); border-bottom: 1px solid var(--gunmetal); }
.plate-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.plate-item {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--gunmetal);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.plate-item:first-child { border-left: 0; }
.plate-label { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-faint); }
.plate-value { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--paper); line-height: 1; }
.plate-value em { font-style: normal; font-size: 0.5em; color: var(--paper-dim); }
.plate-sub { font-size: 0.86rem; color: var(--paper-dim); }

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding-block: var(--section-y); border-bottom: 1px solid var(--gunmetal); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }

/* --- services --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--gunmetal); border: 1px solid var(--gunmetal); border-radius: var(--radius-lg); overflow: hidden; }
.service-card {
  background: var(--steel);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--steel-2); }
.svc-ico { width: 46px; height: 46px; color: var(--ember); }
.service-card h3 { font-size: 1.4rem; letter-spacing: 0.02em; }
.service-card p { color: var(--paper-dim); font-size: 0.95rem; margin: 0; }
.service-card--more { background: var(--oil-2); }
.service-card--more:hover { background: #0c0a07; }
.service-card--more .svc-ico { color: var(--cold); }

/* --- process / steps --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: none; }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--gunmetal); }
.step-num { font-family: var(--f-display); font-size: 2.6rem; color: var(--ember); line-height: 1; display: block; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--paper-dim); font-size: 0.95rem; margin: 0; }

/* --- about --- */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1.4rem; max-width: 20ch; }
.about-copy p { color: var(--paper-dim); margin: 0 0 1.1rem; }
.about-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.about-list li { position: relative; padding-left: 2rem; color: var(--paper); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 12px; height: 12px; background: var(--ember);
  clip-path: polygon(0 0, 100% 50%, 0 100%); /* small play-triangle bullet */
}
.about-card {
  background: var(--steel); border: 1px solid var(--gunmetal); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.about-card h3 { color: var(--ember); font-size: 1.3rem; margin-bottom: 1rem; }
.creed { font-family: var(--f-cond); font-style: italic; font-size: 1.12rem; color: var(--paper); line-height: 1.45; margin: 0 0 1.6rem; }
.about-stats { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.about-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--gunmetal); padding-top: 0.8rem; }
.about-stats dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-faint); margin: 0; }
.about-stats dd { margin: 0; font-family: var(--f-cond); font-weight: 700; color: var(--paper); }

/* --- faq --- */
.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq-item { background: var(--steel); border: 1px solid var(--gunmetal); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem; padding-right: 3rem;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.1rem; color: var(--paper);
  position: relative; transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 1.6rem; color: var(--ember); line-height: 1; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--ember); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--paper-dim); }
.faq-body p { margin: 0; }

/* --- contact --- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 1rem; }
.contact-lede { color: var(--paper-dim); margin: 0 0 2rem; max-width: 36ch; }
.contact-lines { list-style: none; margin: 0 0 2.2rem; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-lines li { display: flex; gap: 1rem; align-items: center; }
.cl-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--steel); border: 1px solid var(--gunmetal); border-radius: var(--radius); color: var(--ember); }
.cl-ico svg { width: 20px; height: 20px; }
.cl-label { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); }
.contact-lines a { color: var(--paper); font-family: var(--f-cond); font-weight: 700; font-size: 1.15rem; }
.contact-lines a:hover { color: var(--ember); }

.hours h3 { font-size: 1.2rem; color: var(--paper); margin-bottom: 0.8rem; }
.hours table { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--gunmetal); font-weight: 500; }
.hours th { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper); }
.hours td { color: var(--paper-dim); text-align: right; font-family: var(--f-mono); font-size: 0.9rem; }

/* --- form --- */
.contact-form-wrap { background: var(--steel); border: 1px solid var(--gunmetal); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-intro { font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cold); margin: 0 0 1.3rem; font-size: 0.95rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--f-cond); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; color: var(--paper-dim); text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--paper);
  background: var(--oil); border: 1px solid var(--gunmetal-2); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232,85,31,0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%23a49b8d'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px; padding-right: 2.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0.9rem 0 0; font-family: var(--f-cond); font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #7fbf6a; }
.form-status.err { color: var(--ember-hot); }
.form-fallback { margin: 1rem 0 0; font-size: 0.85rem; color: var(--paper-faint); }
.btn-block { margin-top: 0.4rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--oil-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-tag { font-family: var(--f-cond); font-style: italic; color: var(--paper-dim); margin: 1rem 0 1.4rem; }
.social { display: flex; gap: 0.7rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; background: var(--steel); border: 1px solid var(--gunmetal); border-radius: var(--radius); color: var(--paper-dim); transition: color 0.15s, border-color 0.15s, transform 0.12s; }
.social a:hover { color: var(--ember); border-color: var(--ember); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav h4, .footer-contact h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-faint); margin: 0 0 0.6rem; font-weight: 600; }
.footer-nav a { color: var(--paper-dim); font-family: var(--f-cond); font-weight: 600; }
.footer-nav a:hover { color: var(--ember); }
.footer-contact p { margin: 0 0 0.7rem; color: var(--paper-dim); }
.footer-contact a { color: var(--paper); }
.footer-contact a:hover { color: var(--ember); }
.footer-hours { font-family: var(--f-mono); font-size: 0.82rem; color: var(--paper-faint); }
.footer-bottom { border-top: 1px solid var(--gunmetal); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--paper-faint); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-gauge { order: -1; }
  .tach { width: min(78%, 320px); }
  .lede { max-width: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .plate-grid { grid-template-columns: repeat(2, 1fr); }
  .plate-item:nth-child(3) { border-left: 0; }
  .plate-item:nth-child(-n+2) { border-bottom: 1px solid var(--gunmetal); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--oil-2); border-bottom: 1px solid var(--gunmetal);
    padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-120%); transition: transform 0.28s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > a:not(.btn) { padding: 0.95rem 0; border-bottom: 1px solid var(--gunmetal); font-size: 1.1rem; }
  .primary-nav > a:not(.btn)::after { display: none; }
  .header-call { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 560px) {
  .plate-grid { grid-template-columns: 1fr; }
  .plate-item { border-left: 0 !important; border-bottom: 1px solid var(--gunmetal); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* reveal-on-scroll (progressive; no-JS shows everything) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }
