/* Telford Tyres – colour theme
   Charcoal (road / tyre) + high-visibility amber (roadside safety) */
:root {
  --ink: #14171c;
  --ink-2: #1e232b;
  --ink-3: #2b313a;
  --amber: #ffcb05;  /* logo yellow */
  --amber-2: #f0b800;
  --green: #1f662e;  /* logo green */
  --green-2: #17521f;
  --text: #1b1f24;
  --muted: #56606c;
  --line: #e3e6ea;
  --bg: #ffffff;
  --alt: #f4f5f7;
  --wa: #138a4a;
  --wa-2: #0f733d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 20, 26, .06), 0 6px 20px rgba(16, 20, 26, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0b5cad; }
a:hover { color: #08427c; }
h1, h2, h3, .h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sub { color: var(--muted); margin-top: -.3em; margin-bottom: 1.8em; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.25em; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-2); color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-2); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.block { display: flex; width: 100%; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9ced6; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar-in span { display: inline-flex; align-items: center; gap: 6px; }
.topbar strong { color: var(--amber); }
.topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.header { background: var(--ink-2); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--amber); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-text { color: #fff; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand-text span { color: var(--amber); }
.footer-brand { margin-bottom: 14px; }
.footer .brand img { height: 56px; margin: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #e8ebef; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:not(.btn):hover { background: var(--ink-3); color: #fff; }
.nav-call { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #2a2f38 0%, transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #e9ecf0; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.hero .lead { color: #c9ced6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--amber); background: rgba(255, 203, 5, .1); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #c9ced6; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--amber); }

.page-hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #c9ced6; padding: 40px 0 44px; }
.page-hero h1 { color: #fff; }
.page-hero a:not(.btn) { color: var(--amber); }
.page-hero .small { color: #aab1bb; }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 12px 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.crumbs { padding: 0; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.split-card { display: block; padding: 28px; border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .15s, box-shadow .15s; }
.split-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 20, 26, .12); color: var(--text); }
.split-mobile { border-top: 5px solid var(--amber); }
.split-shop { border-top: 5px solid var(--green); }
.split-icon, .card-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: var(--amber); align-items: center; justify-content: center; margin-bottom: 14px; }
.split-icon .icon, .card-icon .icon { width: 26px; height: 26px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--text); }
.card p { color: var(--muted); margin-bottom: .6em; font-size: .97rem; }
.area-cards { margin-bottom: 36px; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { display: flex; gap: 10px; margin-bottom: 12px; }
.ticks .icon { color: var(--green); margin-top: 4px; }
.review-box { background: var(--ink); color: #d4d8de; border-radius: var(--radius); padding: 28px; }
.review-box h3 { color: #fff; }
.review-box .btn-dark { background: var(--amber); color: var(--ink); }
.stars { color: var(--amber); display: flex; gap: 2px; margin-bottom: 10px; }
.stars .icon { width: 22px; height: 22px; }

.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 24px; }
.area-chips.left { justify-content: flex-start; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--amber); background: #fffbea; color: var(--ink); }
.page-hero .chip { color: var(--ink); }

/* FAQs */
.faqs details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faqs summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--muted); }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Map (loaded on click to keep pages fast and cookie-free) */
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-3) url("/images/map-placeholder.svg") center / cover no-repeat; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; background: var(--amber); color: var(--ink); border: 0; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; }

/* CTA band */
.cta-band { background: var(--amber); padding: 40px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: #3a2f00; }
.cta-band .btn-primary { background: var(--ink); color: #fff; }
.cta-band .btn-primary:hover { background: var(--ink-3); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Content pages */
.with-aside { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 40px; padding-bottom: 20px; }
.prose { min-width: 0; }
.content-block { margin-bottom: 36px; }
.aside { display: flex; flex-direction: column; gap: 18px; }
.aside-box { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-box h2 { font-size: 1.2rem; }
.aside > .aside-box:first-child { position: sticky; top: 90px; }
.inline-cta { margin: 10px 0 36px; border-left: 5px solid var(--amber); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border: 0; }
.more-guides { margin-bottom: 48px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--alt); border-radius: 10px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--amber); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps span { color: var(--muted); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; border-top: 4px solid var(--green); }
.mini-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--alt); }
.details { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 1.2em; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }

/* Contact */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; }
.contact-item:hover { border-color: var(--amber); color: var(--text); }
.contact-item .icon { width: 28px; height: 28px; color: var(--ink); }
.contact-item span { display: flex; flex-direction: column; }
.form-box { background: var(--alt); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
form label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid #c8cdd3; border-radius: 8px; background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid rgba(255, 203, 5, .6); border-color: var(--amber-2); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.notice p { margin: 0; }
.notice.success { background: #e6f6ec; border: 1px solid #a9dcbc; }
.notice.error { background: #fdecec; border: 1px solid #f2b8b8; }

/* Footer */
.footer { background: var(--ink); color: #b9bfc8; padding: 48px 0 24px; font-size: .95rem; }
.footer a { color: #e3e6ea; text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .8em; text-transform: uppercase; letter-spacing: .05em; }
.footer ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.footer li { padding: 3px 0; }
.footer address { font-style: normal; line-height: 1.8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 32px; }
.cols-2 { columns: 2; column-gap: 16px; }
.footer-bottom { border-top: 1px solid var(--ink-3); margin-top: 28px; padding-top: 18px; font-size: .85rem; }

/* Sticky call bar (phones) */
.callbar { display: none; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside > .aside-box:first-child { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink-2); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 3px solid var(--amber); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav-call { margin: 8px 0 0; }
  .hero-in, .two-col, .split { grid-template-columns: 1fr; }
  .hero-in { gap: 20px; }
  .hero { padding: 36px 0 44px; }
  .cards-3, .mini-cards { grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
  .callbar-call { background: var(--amber); color: var(--ink); }
  .callbar-wa { background: var(--wa); color: #fff; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
  .footer { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-in { font-size: .78rem; }
  .topbar-in a { display: none; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 40px 0; }
  .brand img { height: 46px; }
  .brand-text { font-size: 1.05rem; }
}

/* Photos */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border: 3px solid var(--ink-3); aspect-ratio: 16 / 10; }
.hero-photo picture { height: 100%; }
.hero-badge { position: absolute; left: 14px; bottom: 14px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-size: .9rem; display: flex; flex-direction: column; line-height: 1.3; }
.split-card { padding: 0 0 28px; overflow: hidden; }
.split-card > :not(.split-photo) { margin-left: 28px; margin-right: 28px; }
.split-photo { height: 230px; margin-bottom: -24px; }
.split-card .split-icon { position: relative; border: 3px solid #fff; }
.photo-frame { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--alt); border: 1px solid var(--line); }
.photo-frame figcaption, .gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.two-col > .photo-frame picture { aspect-ratio: 3 / 4; }
.aside-photo picture { aspect-ratio: 4 / 3; }
.about-photo { margin: 36px 0; }
.about-photo picture { aspect-ratio: 16 / 9; }
.two-col .map { margin-top: 20px; }
.gallery { display: grid; gap: 14px; margin-bottom: 14px; }
.g-row-wide { grid-template-columns: 1fr 1fr; }
.g-row-tall { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.g-row-wide picture { aspect-ratio: 16 / 9; }
.g-row-tall picture { aspect-ratio: 4 / 5; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); padding-top: 28px; }
@media (max-width: 860px) {
  .hero-photo { margin-top: 8px; }
  .g-row-wide { grid-template-columns: 1fr; }
  .gallery { gap: 10px; margin-bottom: 10px; }
  .g-row-tall figcaption { font-size: .75rem; padding: 18px 8px 6px; }
}
