/* Ayrshire Vehicle Recovery
   Mobile-first. No framework, no webfonts, no external requests. */

:root {
  --navy: #0b1d2a;
  --navy-2: #14344a;
  --amber: #ffb400;
  --amber-dk: #d99700;
  --ink: #14202a;
  --muted: #5a6b78;
  --line: #dfe5ea;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --radius: 10px;
  --wrap: 1080px;
  --sticky-h: 62px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  /* Clears the fixed mobile call bar. */
  padding-bottom: var(--sticky-h);
}

img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }

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

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px; z-index: 100;
  background: #fff; padding: 10px 14px; border-radius: 6px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { background: var(--navy); color: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: block; text-decoration: none; color: #fff; }
.brand-name { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-strap { display: block; font-size: .76rem; color: var(--amber); letter-spacing: .02em; }

.call-btn {
  display: flex; flex-direction: column; align-items: center;
  background: var(--amber); color: #12202b; text-decoration: none;
  padding: 8px 14px; border-radius: var(--radius); font-weight: 700;
  line-height: 1.15; white-space: nowrap;
}
.call-btn:hover { background: var(--amber-dk); }
.call-btn-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.call-btn-num { font-size: 1rem; }

.site-nav { background: var(--navy-2); }
.site-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.site-nav a {
  color: #dbe6ee; text-decoration: none; padding: 11px 12px;
  font-size: .92rem; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 34px 0 38px;
}
.hero h1 { margin: 0 0 12px; font-size: 1.85rem; line-height: 1.2; }
.hero-lede { margin: 0 0 22px; font-size: 1.05rem; color: #cfdce5; max-width: 62ch; }

.hero-call {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--amber); color: #12202b; text-decoration: none;
  padding: 15px 20px; border-radius: var(--radius); font-weight: 800;
  text-align: center; margin-bottom: 22px;
}
.hero-call:hover { background: var(--amber-dk); }
.hero-call span { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.hero-call strong { font-size: 1.6rem; letter-spacing: .01em; }

.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hero-points li { padding-left: 26px; position: relative; color: #cfdce5; font-size: .95rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 34px 0; }
.page { padding: 24px 0 40px; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 30px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 65ch; margin: 0 0 20px; }
.section-lede { color: var(--muted); max-width: 65ch; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 15px; }

.more-link { font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ── Call-to-action links ───────────────────────────────────────────── */
.inline-call {
  display: inline-block; background: var(--navy); color: #fff;
  text-decoration: none; font-weight: 700; padding: 13px 22px;
  border-radius: var(--radius); margin: 4px 0 24px;
}
.inline-call:hover { background: var(--navy-2); }

.big-call {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--amber); color: #12202b; text-decoration: none;
  padding: 22px; border-radius: var(--radius); font-weight: 800;
  text-align: center; margin: 0 0 26px;
}
.big-call:hover { background: var(--amber-dk); }
.big-call span { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.big-call strong { font-size: 1.9rem; }
.big-call-note { font-weight: 600; opacity: .8; text-transform: none !important; letter-spacing: 0 !important; }

.cta-band {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 30px 0;
  text-align: center;
}
.cta-band h2 { margin-top: 0; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: #fff;
}
.card:hover { border-color: var(--navy-2); box-shadow: 0 2px 10px rgba(11,29,42,.07); }
.card h3 { color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

.area-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.area-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: #fff;
}
.area-card:hover { border-color: var(--navy-2); }
.area-card h3 { color: var(--navy); margin-bottom: 2px; }
.area-council { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.area-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

/* ── Roads ──────────────────────────────────────────────────────────── */
.road-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.road-chip {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 15px; background: var(--bg-alt); min-width: 150px;
}
.road-chip:hover { border-color: var(--navy-2); background: #fff; }
.road-chip strong { color: var(--navy); font-size: 1.05rem; }
.road-chip span { font-size: .8rem; color: var(--muted); }

.road-list { color: var(--muted); }

.safety {
  border-left: 4px solid var(--amber); background: var(--bg-alt);
  padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0 26px;
}
.safety h2 { margin-top: 0; font-size: 1.1rem; }
.safety ol { margin: 0 0 16px; padding-left: 20px; }
.safety li { margin-bottom: 6px; }

/* ── Town grid ──────────────────────────────────────────────────────── */
.town-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-bottom: 16px;
}
.town-grid a {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 6px; font-size: .92rem; font-weight: 600;
  color: var(--navy); background: #fff;
}
.town-grid a:hover { background: var(--bg-alt); border-color: var(--navy-2); }

/* ── Articles ───────────────────────────────────────────────────────── */
.article-list { display: grid; gap: 22px; }
.article-item { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.article-item h2 { margin: 0 0 4px; }
.article-item h2 a { text-decoration: none; color: var(--navy); }
.article-date { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }

/* ── Form ───────────────────────────────────────────────────────────── */
.callback {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 34px 0;
}
.callback h2 { margin-top: 0; }
.callback-lede { color: var(--muted); margin: 0 0 18px; }

.enquiry-form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px; font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  border: 1px solid #c3ccd4; border-radius: 8px; background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2);
}
.field-error { color: #b3261e; font-size: .85rem; margin: 0; }
.form-error {
  background: #fdecea; border: 1px solid #f5c2bd; color: #8c1d18;
  padding: 10px 12px; border-radius: 8px; font-size: .9rem;
}

/* Off-screen, not display:none — bots skip display:none fields. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.submit-btn {
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
  padding: 15px 20px; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer;
}
.submit-btn:hover { background: var(--navy-2); }

.thanks { text-align: center; max-width: 520px; margin: 30px auto; }
.thanks .lede { margin-left: auto; margin-right: auto; }

.contact-facts { max-width: 65ch; }
.contact-facts ul { padding-left: 20px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: #b9cad7; margin-top: 40px;
  padding: 32px 0 26px; font-size: .9rem;
}
.foot-cols { display: grid; gap: 26px; grid-template-columns: 1fr; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer a { color: #b9cad7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-areas { columns: 2; }
.foot-phone a { color: var(--amber); font-weight: 700; font-size: 1.15rem; }
.copy {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8ba2b3;
}

/* ── Sticky mobile call bar ─────────────────────────────────────────── */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  height: var(--sticky-h);
  background: var(--amber); color: #12202b;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-call:active { background: var(--amber-dk); }

/* ── Desktop ────────────────────────────────────────────────────────── */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky-call { display: none; }

  .hero { padding: 56px 0 60px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-lede { font-size: 1.15rem; }
  .hero-call { display: inline-flex; padding: 16px 32px; }
  .hero-call strong { font-size: 1.9rem; }
  .hero-points { grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 6px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .area-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .big-call { display: inline-flex; padding: 24px 48px; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
