/* D&M Automotive — dark premium */

:root {
  --bg: #0d1210;
  --bg-2: #121a17;
  --bg-3: #17211d;
  --ink: #ece6d9;
  --muted: #a9a596;
  --brass: #c9a96a;
  --brass-hi: #dcc08a;
  --line: rgba(201, 169, 106, 0.35);
  --line-soft: rgba(201, 169, 106, 0.18);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: 1.375rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; }
p, dl, dd, ol { margin: 0; }
em { font-style: italic; color: var(--brass-hi); }

a { color: var(--brass-hi); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow,
.card-label,
dt {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow-extra { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-call { background: var(--brass); color: #14110a; }
.btn-call:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: #14110a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--brass); }
.btn-ghost:hover { background: rgba(201, 169, 106, 0.12); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 18, 16, 0.96);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-mark .amp { color: var(--brass); font-style: italic; font-weight: 500; padding: 0 0.04em; }
.logo-word {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: none; }
.btn-sm { gap: 0.4em; min-height: 3rem; padding: 0.5rem 1.1rem; font-size: 0.8125rem; letter-spacing: 0.12em; }
.btn-sm-number { display: none; }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  letter-spacing: -0.01em;
}
.hero h1 em { display: block; }
.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.rating {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.star { color: var(--brass); margin-right: 0.35rem; }

.fact-card {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.fact-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.card-label { margin-bottom: 1rem; }
.fact-card dl > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft);
}
.fact-card dt { font-size: 0.6875rem; margin-bottom: 0.2rem; color: var(--muted); }
.fact-card dd { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.fact-card dd a { color: var(--ink); }
.fact-card dd a:hover { color: var(--brass-hi); }

/* Section heads */
.section-head h2 { font-size: clamp(2.25rem, 8vw, 3.75rem); }

/* Services */
.services { padding: 5rem 0; }
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-list .num {
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--brass);
  line-height: 1.3;
}
.service-list h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.service-list p { color: var(--muted); max-width: 36rem; }

/* Why */
.why {
  padding: 5rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.why-body { margin-top: 3rem; }
.why-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.point-figure {
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 6.5rem);
  line-height: 1;
  color: var(--brass-hi);
  margin-bottom: 0.75rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.why-points { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
.point h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.point p:last-child { color: var(--muted); }

/* Visit */
.visit { padding: 5rem 0; }
.visit .section-head h2 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
.details { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.details > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.details dt { padding-top: 0.35rem; }
.details dd { font-family: var(--serif); font-size: 1.375rem; line-height: 1.35; }
.details dd a { color: var(--ink); }
.details dd a:hover { color: var(--brass-hi); }

.map { margin: 3rem 0 0; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 6px;
  background: var(--bg-2);
}
.map-fallback {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}
.map-fallback span {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.map iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
}
.map figcaption {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 5rem 0;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}
.cta-inner { display: flex; flex-direction: column; gap: 2rem; }
.cta h2 { font-size: clamp(2rem, 7vw, 3.5rem); max-width: 46rem; }
.cta h2 em { display: block; }

/* Footer */
.site-footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brass-hi); }
.copy { margin-top: 1rem; font-size: 0.8125rem; letter-spacing: 0.08em; }

/* Tablet and up */
@media (min-width: 640px) {
  :root { --pad: 2rem; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .btn-sm-number { display: inline; }
  .eyebrow-extra { display: inline; }
  .why-stats { gap: 2rem; }
  .why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .cta-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .cta .btn { flex: none; }
}

@media (min-width: 900px) {
  :root { --pad: 3rem; }
  .nav { display: flex; gap: 2.25rem; margin-left: auto; margin-right: 1rem; }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.5rem 0;
  }
  .nav a:hover { color: var(--brass-hi); }

  .hero { padding: 6.5rem 0 7rem; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }
  /* Sized so "Auto repair in Tracy," always fits the column on one line */
  .hero h1 { font-size: clamp(3.25rem, 5.6vw, 4.75rem); }
  .hero h1 .h1-line { white-space: nowrap; }
  .fact-card { margin-top: 0; padding: 2.5rem 2.25rem; }

  .services, .why, .visit { padding: 7.5rem 0; }
  .service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    border-top: 0;
  }
  .service-list li { border-top: 1px solid var(--line); border-bottom: 0; padding: 2.25rem 0 2.5rem; }

  .why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }
  .why-body { margin-top: 0; }

  .visit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 5rem;
    align-items: start;
  }
  .map { margin-top: 0; }
  .map iframe { height: 460px; }

  .cta { padding: 6.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
