/* Little John's Auto Electric — Swiss / clinical clean */

:root {
  --ink: #111417;
  --ink-2: #4a5157;
  --rule: #d5d9dc;
  --paper: #ffffff;
  --tint: #f3f5f5;
  --accent: #0a6660;
  --accent-dark: #074b47;
  --gutter: 20px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 14px; background: var(--ink); color: #fff;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Grid ---------- */

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

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * { grid-column: 1 / -1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-invert { background: #fff; border-color: #fff; color: var(--accent-dark); }
.btn-invert:hover { background: transparent; color: #fff; }
.btn-invert:focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.logo:hover { color: var(--ink); }
.logo-strong { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo-light {
  font-weight: 500; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.nav { display: none; }
.btn-header { min-height: 48px; padding: 0 14px; font-size: 16px; }
.hide-sm { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--rule); }

.eyebrow,
.facts-title,
.section-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 11vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.rating {
  margin-top: 20px;
  font-size: 16px;
  color: var(--ink-2);
}
.rating strong { color: var(--ink); }

.facts {
  margin-top: 48px;
  border-top: 4px solid var(--ink);
  padding-top: 14px;
}
.facts dl { margin-top: 10px; }
.facts dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.facts dt { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 1px; }
.facts dd { font-weight: 500; }
.facts a { color: var(--ink); font-weight: 700; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { margin-bottom: 36px; }
.section-num { color: var(--accent); }
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-note {
  margin-top: 16px;
  max-width: 28em;
  color: var(--ink-2);
}

/* Services: two-column definition list */
.def-list { border-top: 2px solid var(--ink); }
.def-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.def-row dt { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.def-row dd { color: var(--ink-2); max-width: 36em; }

/* Why: numbered three-up */
.points {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.points li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.point-key {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.point-key span { font-size: 0.5em; color: var(--ink-2); letter-spacing: 0; }
.points h3 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.points li > p:last-child { margin-top: 6px; color: var(--ink-2); }

/* Visit */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.info-table th,
.info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 96px;
  padding-right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.info-table td { font-weight: 500; }
.info-table a { color: var(--ink); font-weight: 700; }

.map { margin-top: 40px; }
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--ink);
  background: var(--tint);
}
.map figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.map figcaption a { font-weight: 600; }

/* CTA */
.cta { background: var(--accent-dark); color: #fff; padding: 64px 0; }
.cta h2 {
  font-size: clamp(28px, 6.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.cta-action { margin-top: 32px; }
.cta-action .btn { width: 100%; }

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--ink-2);
  border-top: 1px solid var(--ink);
}
.site-footer p + p { margin-top: 4px; }
.footer-name { font-weight: 800; color: var(--ink); font-size: 17px; }
.site-footer a { color: var(--ink); }
.footer-copy { margin-top: 16px !important; }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hide-sm { display: inline; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .def-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding: 24px 0; }
  .cta-action .btn { width: auto; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .header-inner { min-height: 76px; }
  .logo-strong { font-size: 20px; }
  .nav { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
  .nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
  .nav a:hover { color: var(--accent); text-decoration: underline; }

  .hero { padding: 96px 0 104px; }
  .hero-copy { grid-column: 1 / span 7; }
  .facts { grid-column: 9 / span 4; margin-top: 0; align-self: end; }
  .lede { font-size: 21px; }

  .section { padding: 112px 0; }
  .section-head { grid-column: 1 / span 4; margin-bottom: 0; }
  .def-list,
  .points,
  .visit-info { grid-column: 6 / span 7; }

  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 0; }
  .points li { border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 24px; }

  .map { grid-column: 6 / span 7; margin-top: 48px; }
  .map iframe { height: 400px; }

  .cta { padding: 96px 0; }
  .cta h2 { grid-column: 1 / span 8; }
  .cta-action { grid-column: 10 / span 3; margin-top: 0; align-self: end; justify-self: end; }

  .site-footer .grid > p { grid-column: span 3; margin-top: 0; }
  .footer-copy { margin-top: 0 !important; text-align: right; }
}
