/* Telford MOTs (telfordmots.co.uk): MOT-only site for Madeley Testing Station. Light, plain, big touch targets. */
:root {
  --ink: #0f1b2d;
  --navy: #12305a;
  --navy-2: #1b4275;
  --plate: #ffd400;
  --plate-dark: #e6bf00;
  --bg: #f3f4f6;
  --card: #ffffff;
  --muted: #566170;
  --line: #dde1e7;
  --ok: #15803d;
  --bad: #b42318;
  --radius: 14px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--navy); color: #fff; font-size: .95rem; }
.top .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 40px; flex-wrap: wrap; }
.top a { color: #fff; text-decoration: none; font-weight: 600; }
.top span { opacity: .9; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo .plate {
  background: var(--plate); border: 2px solid var(--ink); border-radius: 7px; padding: 3px 10px 2px;
  font: 800 1.25rem/1.2 "Arial Black", Arial, sans-serif; letter-spacing: .04em; white-space: nowrap;
}
.logo small { display: block; font-size: .78rem; line-height: 1.25; color: var(--muted); }
nav.main { margin-left: auto; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
nav.main li { margin: 0; }
nav.main a { display: block; white-space: nowrap; padding: 12px 11px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--bg); color: var(--navy); }
.menu-btn { display: none; margin-left: auto; min-height: 48px; min-width: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 600 1rem system-ui, sans-serif; padding: 0 14px; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1.05rem; border: 2px solid transparent; text-align: center;
}
.btn-book { background: var(--plate); color: var(--ink); border-color: var(--ink); }
.btn-book:hover { background: var(--plate-dark); color: var(--ink); }
.btn-call { background: var(--navy); color: #fff; }
.btn-call:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
nav.main .btn { margin-left: 8px; min-height: 46px; padding: 8px 16px; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding-top: 40px; padding-bottom: 44px; align-items: start; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 1em; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(15, 27, 45, .12); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.price-chip { display: inline-block; background: var(--plate); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; font-weight: 800; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 30px; padding-bottom: 30px; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; margin-bottom: 1.2em; }

/* Content */
main { display: block; }
.section { padding-top: 36px; padding-bottom: 36px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 34px; padding-bottom: 20px; }
.content > article > :first-child { margin-top: 0; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 92px; }
.aside-card h2 { font-size: 1.25rem; margin-top: 0; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .95rem; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .price { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0 0 .4em; }
.card .more { margin-top: auto; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--navy-2); box-shadow: 0 6px 18px rgba(15, 27, 45, .08); }
a.card .more { color: var(--navy-2); }

table.prices { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 16px 0 20px; }
table.prices th, table.prices td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { background: var(--navy); color: #fff; font-size: .95rem; }
table.prices td:last-child, table.prices th:last-child { text-align: right; white-space: nowrap; }
table.prices td strong { display: block; }
table.prices td span { color: var(--muted); font-size: .93rem; }
table.prices tr:last-child td { border-bottom: 0; }
.note { background: #fff8d6; border: 1px solid #f1dc7c; border-radius: 12px; padding: 14px 16px; }
.warn { background: #fdecea; border: 1px solid #f3c1bb; border-radius: 12px; padding: 14px 16px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.photos img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photos figure { margin: 0; }
.photos figcaption { font-size: .88rem; color: var(--muted); padding-top: 6px; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; min-height: 56px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; line-height: 1.2; color: var(--navy-2); }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding: 0 18px 6px; }

.check-list { columns: 2; column-gap: 32px; padding-left: 1.2em; }
.check-list li { break-inside: avoid; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Booking widget */
.booking { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; margin: 10px 0 0; scroll-margin-top: 90px; }
.booking h2 { margin-top: 0; }
.booking .sub { color: var(--muted); margin-bottom: 12px; }
.booking iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.booking .alt { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
.book-band { background: var(--navy); color: #fff; padding: 40px 0; }
.book-band .booking { color: var(--ink); max-width: 760px; margin: 0 auto; }

/* Footer */
footer.site { background: var(--ink); color: #d6dbe3; padding: 40px 0 110px; font-size: .95rem; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
footer.site h2 { font-size: 1.05rem; color: #fff; margin: 0 0 .6em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li a { display: inline-block; padding: 6px 0; text-decoration: none; }
footer.site li a:hover { text-decoration: underline; }
footer.site .legal { border-top: 1px solid #2a3850; margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #aab3c0; }

/* Phone bar: book and call always one tap away */
.phone-bar { display: none; }

@media (max-width: 1120px) {
  nav.main a { padding: 12px 8px; }
  .content { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 27, 45, .12); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  nav.main a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--bg); }
  nav.main .btn { margin: 10px 0 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top .hours { display: none; }
  .logo small { display: none; }
  .logo .plate { font-size: 1.1rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:nth-child(3) { display: none; }
  .check-list { columns: 1; }
  .booking { padding: 14px 10px; }
  .book-band { padding: 24px 0; }
  footer.site .cols { grid-template-columns: 1fr; }
  table.prices th, table.prices td { padding: 12px 10px; }
  .phone-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .phone-bar .btn { min-height: 52px; padding: 8px; }
}
a[href^="mailto:"] { overflow-wrap: anywhere; }
.card, .content > article { min-width: 0; }
.cards.classes { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Area pages */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 8px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stats strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.stats span { color: var(--muted); font-size: .92rem; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px; }
.area-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.area-links a span { color: var(--muted); font-weight: 400; font-size: .88rem; }
footer.site .areas-h { margin-top: 28px; }
footer.site .area-links a { background: transparent; border-color: #2a3850; color: #fff; font-weight: 500; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
