/* A1 Autoparts brand (guidelines v2, Oct 2015): Priority Blue PMS 287, Feature Red PMS 485,
   black, white. Header + body font: Play (bold / regular). Logo only on white, never stretched. */
:root {
  --blue: #10489d;
  --blue-deep: #0b3577;
  --red: #ec2429;
  --black: #111111;
  --white: #ffffff;
  --paper: #f3f5f9;
  --line: #d9dee8;
  --text: #1b1f27;
  --muted: #545c6b;
  --font: "Play", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--text); }
body { font: 17px/1.6 var(--font); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Top bar */
.topbar { background: var(--blue-deep); color: var(--white); font-weight: 700; font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); text-decoration: none; }

/* Header: trading name left, A1 logo right (as on A1 store signage) */
header { border-bottom: 4px solid var(--red); background: var(--white); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.brand img { height: 84px; width: auto; }
@media (max-width: 520px) { .brand img { height: 60px; } }
.brand span { line-height: 1.2; border-left: 2px solid var(--line); padding-left: 18px; }
.brand strong { display: block; font-size: 18px; color: var(--blue); }
.brand small { color: var(--muted); font-size: 14px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 4px; font-weight: 700; }
nav a:hover { background: var(--paper); }
nav a[aria-current="page"] { background: var(--blue); color: var(--white); }

/* Hero */
.hero { background: linear-gradient(100deg, rgba(11,53,119,.96) 0%, rgba(16,72,157,.88) 55%, rgba(16,72,157,.55) 100%), url("img/sign.jpg") center/cover; color: var(--white); }
.hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.hero p { font-size: 19px; max-width: 620px; margin: 0 0 24px; }

.btn { display: inline-block; background: var(--red); color: var(--white); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 4px; margin: 0 8px 8px 0; }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn.blue { background: var(--blue); }

main section { padding-top: 48px; padding-bottom: 48px; }
main section.alt { background: var(--paper); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: 28px; margin: 0 0 16px; color: var(--blue); }
h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-top: 8px; }
.page-title { background: var(--blue); color: var(--white); }
.page-title .wrap { padding-top: 32px; padding-bottom: 32px; }
.page-title h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.lead { color: var(--muted); font-size: 19px; max-width: 720px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 20px; }
.card h3 { margin: 0 0 6px; color: var(--blue); font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

table.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
table.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.hours td:last-child { text-align: right; font-weight: 700; }

.map { width: 100%; height: 360px; border: 0; border-radius: 4px; }
.photo { border-radius: 4px; border: 1px solid var(--line); }

footer { background: var(--black); color: #c9ccd3; font-size: 14px; }
footer a { color: var(--white); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; }
.note { color: var(--muted); font-size: 15px; max-width: 420px; margin: 12px 0 0; }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.brand-grid li { background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 16px; aspect-ratio: 3 / 2; max-width: 100%; }
.brand-grid img { max-height: 64px; width: auto; object-fit: contain; }
.fb svg { vertical-align: -3px; margin-right: 5px; }
form.enquiry { display: grid; gap: 20px; max-width: 760px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; color: var(--blue); font-size: 19px; margin-bottom: 10px; }
.fields { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
form.enquiry label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; min-width: 0; }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #aab3c3; border-radius: 4px; background: var(--white); color: var(--text); width: 100%; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 3px solid rgba(16,72,157,.35); border-color: var(--blue); }
form.enquiry .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 16px; border-radius: 4px; font-weight: 700; max-width: 760px; }
.form-msg.ok { background: #e3f3e6; color: #17602a; }
.form-msg.err { background: #fde5e5; color: #a3161a; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .year { font-weight: 700; font-size: 22px; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.3; }
.timeline p { margin: 0; }
.brand-grid li.dark { background: var(--black); border-color: var(--black); }
.brand-grid img { max-width: 100%; }
