/* Eagle Rock Import Car Service — Skill E House v1.24 build
   ICONIC-PALETTE PATH (v1.15): their identity is a red name on a white sign
   band over a blue block wall, proven on two physical artifacts (the fascia
   and the hand-painted ENTRANCE sign). Ground goes to the set's cleanest
   member (white). Blue does headings, links and icons. RED IS THE ACTION
   COLOR — it is literally the colour their name is painted in — and it
   appears nowhere on this page except CTAs. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-var.woff2?v=1") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-var.woff2?v=1") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ground: #fcfcfb;
  --tint: #eef3f5;
  --ink: #12313f;          /* the ONE dark hue: their wall blue, deepened */
  --muted: #4e6472;
  --blue: #1f4e68;         /* sampled straight off their block wall */
  --blue-lt: #a9c3d0;
  --band-text: #e8eff2;
  --rule: #dce4e8;
  --action: #be2b24;       /* the red their name is painted in */
  --action-dark: #9c201a;
  --dot-green: #15803d;
  --dot-red: #d92d20;
  --display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(26px, 4.5vw, 36px); margin-bottom: 26px; }
h3 { font-size: 20px; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 8px;
  min-height: 52px;
  padding: 12px 26px;
  width: 100%;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-dark); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-secondary:hover { background: rgba(18, 49, 63, 0.06); }
.visit-band .btn-secondary { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.75); }
.visit-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; min-height: 62px; gap: 14px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.wordmark span { display: block; font-size: 12.5px; letter-spacing: 0.1em; color: var(--blue); text-transform: uppercase; }
.site-nav { display: none; }
/* v1.19 header law: button flush RIGHT at every width; every nav-adjacent
   spacing rule lives inside the desktop query (a display:none nav is still
   a sibling, which is how the brow bar pill collapsed inward). */
.btn-header {
  margin-left: auto;
  width: auto;
  min-height: 44px;
  min-width: 104px;
  padding: 8px 22px;
  font-size: 16px;
}
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 24px; margin-left: auto; }
  .site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; padding: 10px 2px; }
  .site-nav a:hover { color: var(--action); }
  .btn-header { margin-left: 14px; }
}

/* ---------- First screen ---------- */
.hero { padding: 38px 0 0; }
.hero h1 { font-size: clamp(35px, 8.6vw, 56px); max-width: 15ch; }
.subtitle { font-size: 18px; color: var(--muted); max-width: 54ch; margin: 18px 0 24px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

.hours { margin: 26px 0 30px; }
.hours-status { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--muted);
  flex: none;
  display: none;
}
.dot.open { background: var(--dot-green); display: inline-block; }
.dot.closed { background: var(--dot-red); display: inline-block; }
.hours-line { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

.hero-photo img { width: 100%; border-radius: 12px; }

/* ---------- Proof strip (quiet, never a band) ---------- */
.proof { padding: 44px 0 10px; }
.proof-inner { max-width: 720px; }
.proof blockquote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.35;
}
.proof blockquote footer { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.quiet-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 12px 4px;
  margin: -12px -4px;
}

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-tint { background: var(--tint); }

/* Service cards — ICONS, not photos (house rule: icons when the photos are
   weak, and this shop has almost none of its own work) */
.card-grid { display: grid; gap: 16px; }
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 20px 20px;
}
.card svg { width: 34px; height: 34px; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- THE WORK ORDER (signature element) ----------
   Mechanics write estimates on a numbered pad; this is that pad. One
   signature element on the page, and the boldness is spent here. */
.workorder {
  background: #fff;
  border: 1px solid var(--blue-lt);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(18, 49, 63, 0.5);
  overflow: hidden;
  margin-top: 6px;
}
.workorder-head {
  background: var(--blue);
  color: #fff;
  padding: 13px 20px;
}
.workorder-head strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.workorder ol { list-style: none; counter-reset: wo; }
.workorder li {
  counter-increment: wo;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
}
.workorder li:first-child { border-top: 0; }
.workorder li::before {
  content: counter(wo);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  background: var(--tint);
  border-radius: 50%;
  width: 28px; height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.workorder li p { font-size: 17px; }
.workorder li p em { font-style: normal; display: block; color: var(--muted); font-size: 15.5px; margin-top: 3px; }
.workorder-foot {
  border-top: 2px solid var(--blue);
  padding: 14px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Pricing ---------- */
.pricing-copy { max-width: 52ch; }
.pricing-copy p { margin-bottom: 18px; }
.section-cta { display: flex; }
.section-cta .btn { max-width: 420px; }

/* ---------- Shop photos ---------- */
.shopgrid { display: grid; gap: 12px; }
.shopgrid figure { border-radius: 12px; overflow: hidden; background: #fff; }
.shopgrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shopgrid figcaption { padding: 12px 14px; color: var(--muted); font-size: 15px; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 18px; }
.review {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 22px 18px;
}
.review p { font-size: 16.5px; }
.review p::before { content: "\201C"; color: var(--blue); font-family: var(--display); font-weight: 700; }
.review p::after { content: "\201D"; color: var(--blue); font-family: var(--display); font-weight: 700; }
.review footer { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 26px; }
.about-copy p { margin-bottom: 16px; max-width: 56ch; }
.about-photo img { border-radius: 12px; }

/* ---------- FAQ ---------- */
.section-faq { padding-top: 0; }
.faq-list { max-width: 720px; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  padding: 15px 4px;
  cursor: pointer;
  min-height: 44px;
}
.faq-list details p { padding: 0 4px 16px; color: var(--muted); }

/* ---------- Visit band (the ONE heavy band) ---------- */
.visit-band { background: var(--ink); color: var(--band-text); padding: 56px 0; }
.visit-band h2 { color: #fff; margin-bottom: 10px; }
.visit-band h3 {
  color: var(--blue-lt);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.visit-grid { display: grid; gap: 32px; }
.visit-cta p { margin-bottom: 20px; max-width: 40ch; }
.visit-cta .btn { max-width: 420px; }
.visit-cta .cta-row { max-width: 420px; }
.band-link {
  color: var(--band-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 10px 4px;
  margin: -10px -4px;
}
.entrance-note { margin-top: 26px; }
.entrance-note img { border-radius: 10px; margin-bottom: 12px; }
.entrance-note p { font-size: 15.5px; color: var(--blue-lt); max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0 34px; }
.site-footer p { color: var(--muted); font-size: 14.5px; }

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  .hero { padding-top: 60px; }
  .cta-row { flex-direction: row; }
  .btn { width: auto; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .shopgrid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 3fr 2fr; align-items: start; }
  .visit-grid { grid-template-columns: 2fr 1fr 1fr; }
  .workorder li { padding: 20px 26px; }
  .workorder-head, .workorder-foot { padding-left: 26px; padding-right: 26px; }
}

/* ---------- Animations (js-gated; content fully visible without JS) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 250ms ease, transform 250ms ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
