/* Community Auto Repair — brand tokens from Brand Guide v1 */
:root {
  --charcoal: #2B2D2F;
  --orange: #FF6A13;
  --white: #FFFFFF;
  --shop-gray: #EEEEEC;
  --steel: #6B6E72;
  --charcoal-2: #35383B;
  --line: #DCDCD8;
  --line-dark: #45484C;
  --text-on-dark: #C9CBCD;

  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--steel { color: var(--steel); }

.placeholder {
  background: #FFF1E7;
  color: #8A3A08;
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 600;
  white-space: nowrap;
}
.on-dark .placeholder { background: #4A3A2F; color: #FFD2B5; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border-radius: 8px;
  font: 600 0.95rem/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--orange); color: var(--charcoal); }
.btn--primary:hover { background: #FF7F33; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name strong { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand__name span {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--orange);
  margin-top: 5px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { min-height: 42px; padding-inline: 1.1em; font-size: 0.85rem; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}

/* Hero */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 104px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: grid; gap: 24px; }
.hero__lede { font-size: 1.2rem; color: var(--text-on-dark); max-width: 34em; }
.tagline { display: flex; flex-wrap: wrap; gap: 0 0.45em; font-weight: 800; font-size: clamp(1.25rem, 2.3vw, 1.6rem); }
.tagline span:last-child { color: var(--orange); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { color: var(--text-on-dark); font-size: 0.95rem; }

/* Inspection card: what a customer receives */
.inspect {
  background: var(--white);
  color: var(--charcoal);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: grid;
  gap: 16px;
  max-width: 460px;
  margin: 0;
  justify-self: end;
  width: 100%;
}
.inspect__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.inspect__head b { font-weight: 800; font-size: 1.05rem; }
.inspect__head small { color: var(--steel); font-size: 0.85rem; }
.inspect__photo {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 8px;
  background: var(--shop-gray);
  display: block;
  overflow: hidden;
}
.gauge { display: grid; gap: 8px; }
.gauge__row { display: flex; justify-content: space-between; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.gauge__row b { font-weight: 700; }
.gauge__bar { position: relative; height: 10px; border-radius: 5px; background: var(--shop-gray); }
.gauge__fill { position: absolute; inset: 0 auto 0 0; width: 25%; border-radius: 5px; background: var(--charcoal); }
.gauge__min { position: absolute; top: -4px; bottom: -4px; left: 16.7%; width: 2px; background: var(--orange); }
.gauge__scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.inspect__note { font-size: 0.95rem; }
.inspect__quote {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-variant-numeric: tabular-nums;
}
.inspect__quote strong { font-size: 1.5rem; font-weight: 800; }
.inspect__quote .btn { min-height: 40px; font-size: 0.8rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .inspect { justify-self: start; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--gray { background: var(--shop-gray); }
.section__head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--steel); font-size: 1.1rem; }

/* Promise steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  background: var(--shop-gray);
  border-top: 4px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 24px 28px;
  display: grid;
  gap: 10px;
  align-content: start;
  counter-increment: step;
}
.step::before {
  content: "Step " counter(step);
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel);
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--charcoal); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 22px 20px 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  align-content: start;
}
.service h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.service h3 svg { width: 18px; height: 18px; flex: none; color: var(--orange); }
.service p { color: var(--steel); font-size: 0.98rem; }
.services-note { margin-top: 24px; color: var(--steel); }

/* Voice / plain-English examples */
.plain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.plain__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.plain__card .label { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.plain__card blockquote { margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.45; }
@media (max-width: 760px) { .plain { grid-template-columns: 1fr; } }

/* Safety Day */
.safety { background: var(--charcoal); color: var(--white); }
.safety .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.badge {
  width: clamp(200px, 26vw, 260px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 10px var(--charcoal), 0 0 0 16px var(--white);
  margin: 16px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--charcoal);
  line-height: 0.95;
}
.badge small { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.3em; margin-bottom: 8px; display: block; }
.badge b { font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.6rem); display: block; }
.badge small:last-child { margin: 10px 0 0; }
.safety__copy { display: grid; gap: 20px; }
.safety__copy h2 span { color: var(--orange); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg) translateY(-3px); }
.safety__meta { color: var(--text-on-dark); }
@media (max-width: 760px) {
  .safety .wrap { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}

/* Visit */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.cta-card {
  background: var(--shop-gray);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 16px;
}
.cta-card .btn--ghost { color: var(--charcoal); }
.cta-card .btn--ghost:hover { background: rgba(43,45,47,0.06); }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .visit { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* Footer */
.site-footer { background: var(--charcoal); color: var(--text-on-dark); padding-block: 40px; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer .brand__name strong { font-size: 1.1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Small screens */
.nav .btn, .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .placeholder { white-space: normal; }
  .brand__name strong { font-size: 1.15rem; }
  .brand svg { width: 34px; height: 34px; }
  .nav .btn { padding-inline: 0.8em; font-size: 0.75rem; letter-spacing: 0.08em; }
  .badge { width: 200px; }
  .hours td:last-child { padding-left: 12px; }
}
