/* T & M Autocare — workshop job-card system
   Brand: garage red #990000, plate yellow #f4d800, beige #ece2d2 */

:root {
  --red: #990000;
  --red-dk: #6b0000;
  --red-lt: #c00;
  --plate: #f4d800;
  --beige: #ece2d2;
  --paper: #f7f2ea;
  --ink: #1d1a1a;
  --mid: #5e5650;
  --line: #d9cdb9;
  --white: #fff;
  --cond: "Saira", "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--cond); font-variation-settings: "wdth" 80; font-weight: 800; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plate); color: var(--ink); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--cond); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); }

/* UK number plate */
.plate {
  display: inline-flex; align-items: stretch; background: var(--plate); color: #111; border: 3px solid #111; border-radius: 8px; overflow: hidden;
  font-family: var(--cond); font-variation-settings: "wdth" 70; font-weight: 800; text-decoration: none; line-height: 1; box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.plate__band { background: #00309a; color: var(--plate); font-size: 11px; font-variation-settings: "wdth" 100; display: grid; place-items: center; padding: 0 6px; letter-spacing: .06em; }
.plate__text { padding: 8px 14px 6px; font-size: 30px; letter-spacing: .02em; white-space: nowrap; }
.plate:hover { color: #111; filter: brightness(1.05); }

/* ---------- header ---------- */
.strap { background: var(--ink); color: #d9d2c7; font-size: 13.5px; }
.strap .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.strap a { color: #fff; text-decoration: none; }
.strap .today b { color: var(--plate); font-weight: 600; }
.header { background: var(--white); border-bottom: 4px solid var(--red); position: relative; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.logo img { width: 300px; }
.header__call { display: flex; align-items: center; gap: 14px; }
.header__call > span { font-style: italic; color: var(--red); font-size: 15px; text-align: right; line-height: 1.2; }
.nav { background: var(--red); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block; padding: 16px 22px; color: #fff; text-decoration: none; font-family: var(--cond); font-variation-settings: "wdth" 90;
  font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,.18);
}
.nav li:first-child a { border-left: 1px solid rgba(255,255,255,.18); }
.nav a:hover { background: var(--red-dk); }
.nav a[aria-current="page"] { background: var(--plate); color: #111; }
.menu-toggle { display: none; }

/* ---------- home hero ---------- */
.hero { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero .kicker { color: var(--plate); }
.hero h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.05; margin: 16px 0 20px; font-variation-settings: "wdth" 82; }
.hero__lead { font-weight: 600; font-size: 18px; color: #f3dede; max-width: 560px; }
.prices { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 26px; align-items: center; }
.prices .plate__text { font-size: 34px; }
.prices .plate__text small { font-size: 17px; margin-right: 6px; font-variation-settings: "wdth" 90; }
.prices em { font-style: normal; color: #f3dede; font-size: 15px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.tile { position: relative; overflow: hidden; border: 4px solid #fff; box-shadow: 0 16px 30px rgba(0,0,0,.25); background: #222; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 279 / 230; }
.tile--a img { object-position: 0% 50%; }
.tile--b img { object-position: 50% 50%; }
.tile--c img { object-position: 100% 50%; }
.tile--b { grid-row: span 2; }
.tile--b img { aspect-ratio: auto; height: 100%; }
.tile span { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; }

/* checker strip */
.checker { height: 18px; background: conic-gradient(var(--ink) 90deg, #fff 90deg 180deg, var(--ink) 180deg 270deg, #fff 270deg) 0 0 / 18px 18px; }

/* ---------- job card layout ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.jobs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 24px; color: var(--ink); }
.article p { max-width: 680px; }
.article .callout {
  font-family: var(--cond); font-variation-settings: "wdth" 85; font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2;
  color: var(--red); border-left: 8px solid var(--plate); padding: 6px 0 6px 22px; margin: 32px 0; max-width: 680px; text-transform: none;
}
.badge-gg { display: flex; gap: 16px; align-items: center; background: var(--white); border: 2px solid var(--ink); padding: 16px 20px; margin: 28px 0; max-width: 680px; }
.badge-gg strong { font-family: var(--cond); font-size: 22px; text-transform: uppercase; color: var(--red); line-height: 1; white-space: nowrap; }
.badge-gg p { margin: 0; font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); margin: 32px 0; max-width: 680px; background: var(--white); }
.facts div { padding: 18px; }
.facts div + div { border-left: 2px solid var(--ink); }
.facts b { display: block; font-family: var(--cond); font-weight: 800; font-size: 32px; color: var(--red); line-height: 1; }
.facts span { font-size: 14px; color: var(--mid); line-height: 1.35; display: block; margin-top: 6px; }

/* the job card (contact details) */
.card { background: var(--white); border: 2px solid var(--ink); position: sticky; top: 24px; }
.card__head { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.card__head h2 { font-size: 26px; }
.card__head span { font-family: var(--cond); font-size: 12px; letter-spacing: .14em; color: var(--plate); text-transform: uppercase; }
.card__row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.card__row b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--mid); padding-top: 3px; }
.card__row a { color: var(--ink); font-weight: 600; word-break: break-word; }
.card__tick { list-style: none; margin: 0; padding: 14px 20px 18px; display: grid; gap: 8px; font-size: 15px; }
.card__tick li { display: flex; gap: 10px; align-items: baseline; }
.card__tick li::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--red) 45% 60%, transparent 60%); transform: translateY(2px); }
.card .plate { margin: 0 20px 20px; }
.card .plate__text { font-size: 26px; }
.card__perf { height: 14px; background: radial-gradient(circle at 7px 0, var(--paper) 6px, transparent 6.5px) 0 0 / 14px 14px repeat-x; }

/* parts promo band */
.promo { background: var(--ink); color: #fff; }
.promo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.promo .kicker { color: var(--plate); }
.promo h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 12px 0 16px; }
.promo p { color: #d9d2c7; }
.promo__imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promo__imgs img { width: 100%; aspect-ratio: 267 / 178; object-fit: cover; border: 3px solid #fff; }
.promo__imgs img:nth-child(2) { transform: translateY(22px); }
.btn {
  display: inline-flex; gap: 10px; align-items: center; background: var(--plate); color: #111; padding: 14px 22px; text-decoration: none;
  font-family: var(--cond); font-variation-settings: "wdth" 90; font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; border: 3px solid #111;
}
.btn:hover { background: #fff; color: #111; }

/* ---------- inner page heading ---------- */
.page-head { background: var(--red); color: #fff; padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.page-head .kicker { color: var(--plate); }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); margin-top: 14px; font-variation-settings: "wdth" 72; }
.lead { font-family: var(--cond); font-variation-settings: "wdth" 88; font-weight: 600; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; text-transform: none; color: var(--ink); max-width: 900px; margin-bottom: 28px; }

/* parts bin wall */
.bins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 36px 0 44px; padding: 14px; background: #3a3533; border: 6px solid var(--ink); box-shadow: inset 0 0 0 2px #5b5350; }
.bin { background: linear-gradient(#c7beb2, #b2a898); border: 1px solid #8a7f72; padding: 10px 10px 14px; position: relative; }
.bin::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 38%; height: 5px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #6f655b; }
.bin span { display: block; background: #fff; border: 1px solid #8a7f72; text-align: center; padding: 6px 4px; font-family: var(--cond); font-variation-settings: "wdth" 85; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.bin:nth-child(7n+3) span { background: var(--plate); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hours { background: var(--ink); color: #fff; margin-top: 28px; }
.hours h2 { font-size: 24px; padding: 16px 20px; border-bottom: 2px solid var(--plate); display: flex; justify-content: space-between; align-items: center; }
.hours h2 span { font-size: 12px; color: var(--plate); letter-spacing: .14em; }
.hours dl { margin: 0; }
.hours div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours dt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hours dd { margin: 0; font-family: var(--cond); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 19px; text-align: right; }
.hours dd small { display: block; font-size: 13px; color: #bdb3a7; font-family: var(--body); font-weight: 400; }
.hours .is-today { background: var(--plate); color: #111; }
.hours .is-today dd small { color: #3a3533; }
.hours .is-today dt::after { content: "Today"; display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--red); color: #f3dede; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 14.5px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer .plate__text { font-size: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .jobs, .promo .wrap, .contact-grid { grid-template-columns: 1fr; }
  .card { position: static; }
  .tiles { max-width: 620px; }
}
@media (max-width: 760px) {
  .strap .addr { display: none; }
  .header .wrap { min-height: 80px; }
  .logo img { width: 200px; }
  .header__call > span { display: none; }
  .header__call .plate__text { font-size: 22px; padding: 6px 10px 4px; }
  .menu-toggle { display: block; background: var(--red); color: #fff; border: 0; width: 100%; padding: 14px 0; text-align: left; font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 16px; cursor: pointer; }
  .nav ul { flex-direction: column; display: none; }
  .nav ul.open { display: flex; }
  .nav a { border: 0 !important; border-top: 1px solid rgba(255,255,255,.18) !important; }
  .facts { grid-template-columns: 1fr; }
  .badge-gg { flex-direction: column; align-items: flex-start; gap: 6px; }
  .facts div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .bins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .bin { padding: 6px 5px 11px; }
  .bin span { font-size: 12px; padding: 5px 2px; letter-spacing: 0; overflow-wrap: anywhere; }
  .promo__imgs img:nth-child(2) { transform: none; }
  .prices .plate__text { font-size: 26px; }
}
@media (max-width: 480px) {
  .logo img { width: 160px; }
  .header__call .plate__band { display: none; }
}

