/* Precision Automotive — mobile-first styles */

:root {
  --ink: #12151a;
  --ink-2: #1b1f26;
  --ink-3: #262b34;
  --steel: #a9b1bd;
  --paper: #ffffff;
  --paper-2: #f3f2ef;
  --text: #1d2229;
  --muted: #555d69;
  --accent: #ff6b1a;
  --accent-hover: #ff8540;
  --accent-dark: #b4470a;
  --line: #e2e0db;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 21, 26, .06), 0 10px 30px -12px rgba(18, 21, 26, .22);
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

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

img, svg, iframe { max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(255, 107, 26, .6);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn-secondary-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary-light:hover { background: var(--ink); color: #fff; }

.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 21, 26, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}
.logo-text span { color: var(--accent); }

.header-nav { display: none; }

.call-number { display: none; }

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

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(255, 107, 26, .22), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(120, 140, 170, .16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 14px, var(--ink) 14px 28px);
  opacity: .9;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.hero .eyebrow { color: var(--accent); }

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: #d3d8e0;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn { width: 100%; }

.rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
  color: #d3d8e0;
  font-size: .98rem;
}
.rating-line strong { color: #fff; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }

/* Fact card */

.fact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
}
.fact-card-head { margin-bottom: 14px; }
.fact-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts svg { color: var(--accent); margin-top: 2px; }
.facts strong { display: block; font-weight: 600; color: #fff; }
.facts span { display: block; color: var(--steel); font-size: .95rem; }

.fact-call {
  display: block;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
}
.fact-call:hover { color: var(--accent); }

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

.section { padding: 72px 0; }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2,
.visit h2 {
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Services */

.services { background: var(--paper-2); }

.cards {
  display: grid;
  gap: 18px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.card p { color: var(--muted); }

/* Why */

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.point {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 107, 26, .06), transparent 45%),
    var(--paper);
}
.point-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.point h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.point p { color: var(--muted); }

/* Visit */

.visit { background: var(--paper-2); }

.visit-grid { display: grid; gap: 36px; }

.info-list { margin: 26px 0 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.info-list dd { margin: 0; font-weight: 500; color: var(--ink); }
.info-list dd a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }

.visit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.visit-actions .btn { width: 100%; }

.map { margin: 0; }
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(18, 21, 26, .05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(18, 21, 26, .05) 0 1px, transparent 1px 32px),
    #e9e7e2;
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map figcaption {
  margin-top: 12px;
  font-size: .95rem;
  color: var(--muted);
}
.map figcaption a {
  color: var(--accent-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* CTA */

.cta {
  position: relative;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 107, 26, .25), transparent 70%),
    var(--ink);
  color: #fff;
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta h2 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  max-width: 18em;
}
.cta .btn { width: 100%; }

/* Footer */

.site-footer {
  background: #0c0e12;
  color: var(--steel);
  padding: 36px 0;
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}
.site-footer a { color: #fff; text-underline-offset: 3px; }
.copyright { margin-top: 8px; font-size: .85rem; }

/* ---------- Small phones ---------- */

@media (max-width: 479px) {
  .logo-mark { display: none; }
  .logo-text { font-size: 1.2rem; }
}

@media (max-width: 339px) {
  .logo-text span { display: none; }
}

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

@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero-actions,
  .visit-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn,
  .visit-actions .btn,
  .cta .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .call-number { display: inline; }
  .call-label { display: none; }
}

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

@media (min-width: 960px) {
  body { font-size: 18px; }

  .header-inner { min-height: 76px; gap: 24px; }
  .header-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  .header-nav a {
    color: #d3d8e0;
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    padding: 10px 14px;
    border-radius: 8px;
  }
  .header-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

  .hero { padding: 96px 0 104px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
  .fact-card { padding: 30px; }

  .section { padding: 104px 0; }
  .section-head { margin-bottom: 48px; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 34px 30px; }

  .points { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .point { padding: 32px 30px; }

  .visit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 64px;
  }

  .cta { padding: 80px 0; }
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
  }
  .copyright { margin: 0 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
