/* ==========================================================================
   AUTOPIA, CLIENT OVERRIDES
   Loaded after styles.css. Kept in its own file so the shared component sheet
   stays byte-identical to the template and these deltas are easy to review.

   NOTE FOR THE TEMPLATE: sections 1 and 2 are template-level defects, not
   Autopia-specific. They affect every client built from lumen-trades-v1 and
   are worth back-porting into styles.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tap targets. Footer links rendered 99x16 and the footer phone 123x20,
      under the 24x24 minimum, on a page whose whole job is getting a call.
      Inline-block so vertical padding actually grows the hit area.
   -------------------------------------------------------------------------- */
.site-footer li a,
.site-footer p a,
.footer-bottom a {
  display: inline-block;
  padding-block: var(--space-2);
}
.site-footer li { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   2. The phone number is the product, so it should not render at body size
      buried in a paragraph. Contact block gets display type and a real target.
   -------------------------------------------------------------------------- */
.info-block a[href^="tel:"] {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-block: var(--space-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   3. YELLOW ACCENT ACCESSIBILITY.
      Autopia's brand yellow is a fill colour. Against white it tops out near
      2.3:1, so every place the template used --accent for small text or for a
      focus indicator on a light background is switched to ink here. Yellow is
      kept everywhere it sits on navy, where it is high contrast and on brand.
   -------------------------------------------------------------------------- */

/* Eyebrows on paper go navy. On dark bands they stay yellow. */
.eyebrow { color: var(--text); }
.hero .eyebrow,
.band-invert .eyebrow { color: var(--accent-on-dark); }

/* Service numbers are read as content, not decoration. */
.svc-num { color: var(--text); }

/* Star glyphs are non-text content (WCAG 1.4.11, 3:1). The deeper gold clears
   that, still reads as gold, and the rating is also present as text and as an
   aria-label on every instance. */
.stars { color: var(--accent-700); }
.hero .stars,
.band-invert .stars { color: var(--accent-on-dark); }

/* Focus must be visible on white paper AND on the dark hero. A yellow ring
   with a navy halo works on both, the same two-tone approach GOV.UK uses. */
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px hsl(var(--brand-ink-h) var(--brand-ink-s) 11% / 0.65);
}

/* Field focus ring: yellow border on a white field is not a visible state. */
.field:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px hsl(var(--brand-ink-h) var(--brand-ink-s) 30% / 0.28);
}

/* Nav underline is a state indicator, so it needs to be seen on white. */
.nav-link::after { background: var(--text); }

/* --------------------------------------------------------------------------
   4. Autopia-specific: the gallery is portrait phone photography. The template
      assumes 4:3 landscape, which crops the taller shots badly. A square tile
      keeps more of each car in frame without touching the shared grid.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .shot { aspect-ratio: 1 / 1; }
}

/* --------------------------------------------------------------------------
   5. Two locations. A plain two-up card row, so the pair reads as one shop
      with two doors rather than as a chain with a store locator.
   -------------------------------------------------------------------------- */
.locations { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .locations { grid-template-columns: 1fr 1fr; } }

.location {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}
.location h3 { margin-bottom: var(--space-2); }
.location .location-addr { color: var(--text-muted); margin-bottom: var(--space-4); }
.location a[href^="tel:"],
.location a[href^="https://maps"] {
  display: inline-block;
  padding-block: var(--space-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location a:hover { color: var(--accent-700); }

/* --------------------------------------------------------------------------
   6. Makes serviced. Set as text, not manufacturer logos: reproducing car
      marques on a third-party site is a trademark question the client has not
      cleared, and the wordmarks add weight for no extra trust.
   -------------------------------------------------------------------------- */
.makes {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.makes li {
  font-family: var(--font-display); font-size: var(--step-h3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Hero rating line. Sits between the headline and the buttons so the 5.0
      clears the fold on a phone once Safari's toolbars take their ~180px.
   -------------------------------------------------------------------------- */
.hero-rating {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  margin-top: var(--space-4);
  font-size: var(--step-small);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
  color: var(--text-invert);
}
.hero-rating strong { font-family: var(--font-display); font-size: var(--step-h3); }

/* Inline link inside a .small paragraph. The base rule now lives in styles.css;
   this only tightens the padding so the sentence does not gain extra leading. */
.info-block p.small a { padding-block: var(--space-1); }
