/* Apex Motors — demo garage (Friendly Workshop) */
:root {
  --bg: #F5F4F0;
  --white: #FFFFFF;
  --ink: #1F2226;
  --ink-2: #4A4A46;
  --muted: #6B6A66;
  --line: #DAD8D1;
  --line-2: #E4E2DC;
  --yellow: #FFD400;
  --yellow-soft: #FFF6C2;
  --plate: #FFE55C;
  --uk: #1E4DB7;
  --ok-bg: #E6F4E8;
  --ok: #1D6B34;
  --stone: #D8D6D0;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, sans-serif;
  --gutter: 18px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hidden { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.005em; }
.hl { background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-size: 100% .74em; background-position: 0 78%; padding: 0 .1em; border-radius: .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Demo bar */
.demo-bar { background: var(--ink); color: #C9C7C1; font-size: 13px; }
.demo-bar .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.demo-bar a { color: #fff; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar .long { display: none; }
@media (min-width: 640px) { .demo-bar .long { display: inline; } }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line-2); }
.header .wrap { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 1000px) { .header .wrap { height: 84px; } }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 25px; flex-shrink: 0; transition: transform .25s; }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; display: block; }
.logo-sub { display: none; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1; }
@media (min-width: 1000px) { .logo-mark { width: 46px; height: 46px; font-size: 28px; } .logo-name { font-size: 28px; } }
@media (min-width: 1320px) { .logo-sub { display: block; } }
.nav { display: none; gap: 28px; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
@media (min-width: 1080px) { .nav { display: flex; } }
.header-right { display: flex; align-items: center; gap: 12px; }
.status { display: none; padding: 7px 13px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 700; white-space: nowrap; }
.status.closed { background: #F3ECDD; color: #7A5A00; }
@media (min-width: 1200px) { .status { display: inline-block; } }
.menu-toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 1080px) { .menu-toggle { display: none; } }
.mobile-nav { padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line-2); }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 18px; text-decoration: none; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31,34,38,.12); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; border-color: #6B6A66; color: #fff; }
.btn-sm { min-height: 46px; padding: 0 18px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; }
.header .btn { display: none; }
@media (min-width: 560px) { .header .btn { display: inline-flex; } }

/* Hero */
.hero { padding: 30px 0 0; }
@media (min-width: 1000px) { .hero { padding-top: 56px; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 44px; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(50px, 6.6vw, 92px); line-height: .96; }
.hero h1 .hl { white-space: nowrap; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 580px; }
@media (min-width: 768px) { .lede { font-size: 20px; } }
.promises { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.promises li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; height: 320px; border-radius: 28px; background: var(--stone); }
@media (min-width: 1000px) { .hero-photo { height: 540px; } }
.hero-photo .ph { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; right: -8px; top: 22px; background: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 20px; padding: 9px 15px; border-radius: 12px; box-shadow: 0 10px 24px rgba(31,34,38,.18); transform: rotate(2deg); }
@media (min-width: 1000px) { .sticker { font-size: 22px; right: -14px; } }

/* Sections */
.section { padding: 64px 0 0; }
@media (min-width: 1000px) { .section { padding-top: 88px; } }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 62px); line-height: .95; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 24px; }
.sub { color: var(--muted); font-size: 16px; }

/* MOT checker */
.mot { background: var(--yellow); border-radius: 28px; padding: 24px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
@media (min-width: 1000px) { .mot { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 32px 36px; } }
.mot-intro .display { font-size: clamp(34px, 3.6vw, 46px); line-height: .95; display: block; margin-bottom: 8px; }
.mot-form { display: flex; flex-direction: column; gap: 10px; }
.mot-form label { font-size: 14px; font-weight: 700; }
.plate { display: flex; height: 70px; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--plate); }
.plate .uk { width: 42px; background: var(--uk); color: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.plate input { flex: 1; min-width: 0; border: 0; background: transparent; text-align: center; text-transform: uppercase; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: .06em; color: var(--ink); }
.plate input::placeholder { color: rgba(31,34,38,.35); }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: 0 0 0 4px rgba(31,34,38,.25); }
.date { min-height: 52px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; padding: 0 14px; font-size: 18px; font-weight: 600; width: 100%; }
.mot-result { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.mot-result .display { font-size: 32px; line-height: 1; color: var(--yellow); }
.mot-result .row { display: flex; gap: 8px; margin-top: auto; }
.mot-result .btn { flex: 1; min-height: 48px; font-size: 16px; padding: 0 12px; white-space: normal; }
.mot-result.bad .display { color: #FF9A8A; }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .quote { grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; } }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.size { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 17px; transition: background-color .15s, border-color .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #B9B7B0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--yellow); }
.opt .name { flex: 1; }
.opt .name small { display: block; font-size: 14px; color: var(--muted); }
.opt .p { font-weight: 700; white-space: nowrap; }
.opt.on { background: var(--yellow-soft); border: 2px solid var(--yellow); padding: 13px 15px; }
.opt.on .box { background: var(--ink); border-color: var(--ink); }
.opt.on .box::after { content: "✓"; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.estimate { background: var(--white); border-radius: 26px; padding: 26px; box-shadow: 0 20px 50px rgba(31,34,38,.10); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .estimate { position: sticky; top: 110px; } }
.estimate .total { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .9; }
.estimate .fine { font-size: 13px; color: var(--muted); }
.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.05); } }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .how { grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; } }
.how .ph { border-radius: 26px; background: var(--stone); min-height: 260px; overflow: hidden; }
.how .ph img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 18px; background: var(--white); border-radius: 18px; counter-increment: s; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--ink-2); }

/* Booking */
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .book { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; } }
.panel { background: var(--white); border-radius: 26px; padding: 22px 18px; }
@media (min-width: 900px) { .panel { padding: 30px; } }
.step-t { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.step-t:first-child { margin-top: 0; }
.chosen { display: flex; flex-wrap: wrap; gap: 8px; }
.chosen span { padding: 8px 12px; border-radius: 10px; background: var(--yellow-soft); font-weight: 600; font-size: 15px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.day { flex: 0 0 64px; min-height: 70px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.day b { font-size: 21px; color: var(--ink); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #C9C7C1; }
.day[aria-pressed="true"] b { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 700; }
.slot:disabled { color: #B0AEA8; background: #F1F0EC; text-decoration: line-through; cursor: not-allowed; }
.slot[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.grid-3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.summary { background: var(--ink); color: #fff; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .summary { position: sticky; top: 110px; } }
.summary .display { font-size: 34px; line-height: 1; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #3A3D42; padding-bottom: 8px; }
.summary .row span:first-child { color: #B9B7B0; }
.summary .note { font-size: 14px; background: #2C3036; border-radius: 12px; padding: 12px 14px; color: #E4E2DC; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* Services list */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.svc { background: var(--white); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s; }
.svc:hover { transform: translateY(-3px); }
.svc h3 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc .price { margin-top: auto; padding-top: 8px; font-weight: 700; }
.svc .price b { font-family: var(--display); font-size: 30px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 820px; }

/* Reviews placeholder */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 18px; } }
.rev { border: 2px dashed #C9C7C1; border-radius: 22px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.rev i { height: 10px; border-radius: 5px; background: var(--line); display: block; }
.rev i:nth-child(2) { width: 80%; } .rev i:nth-child(3) { width: 55%; }
.rev span { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) { .visit { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; } }
.card { background: var(--white); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { font-weight: 800; }
.hours tr.today td:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); margin-right: 8px; box-shadow: 0 0 0 2px var(--ink); }
.map { position: relative; min-height: 260px; border-radius: 26px; overflow: hidden; background-color: #E9E7E1; background-image: linear-gradient(90deg, rgba(31,34,38,.06) 1px, transparent 1px), linear-gradient(rgba(31,34,38,.06) 1px, transparent 1px); background-size: 28px 28px; text-decoration: none; }
.map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 22px; background: #fff; transform: rotate(-6deg); }
.map::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 62%; width: 16px; background: #fff; transform: rotate(10deg); }
.map .pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.map .pin b { background: var(--ink); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 13px; }
.map .pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--ink); display: block; }

/* Footer */
.footer { margin-top: 88px; border-top: 1px solid var(--line-2); background: var(--white); padding: 28px 0 110px; font-size: 15px; color: var(--muted); }
@media (min-width: 760px) { .footer { padding-bottom: 32px; } }
.footer .wrap { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; color: var(--ink); }
.footer nav a { text-decoration: none; padding: 6px 0; }
.footer nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* Mobile bar */
.action-bar { position: fixed; left: 10px; right: 10px; bottom: 12px; z-index: 40; height: 64px; padding: 0 8px 0 16px; background: var(--ink); color: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 14px 30px rgba(31,34,38,.3); }
.action-bar .est { display: flex; flex-direction: column; line-height: 1.1; }
.action-bar .est span { font-size: 12px; color: #C9C7C1; }
.action-bar .est b { font-family: var(--display); font-size: 25px; }
.action-bar .acts { display: flex; gap: 6px; }
.action-bar a { min-height: 48px; padding: 0 14px; display: flex; align-items: center; border-radius: 12px; font-weight: 700; text-decoration: none; }
.action-bar a.call { background: #2C3036; color: #fff; }
.action-bar a.go { background: var(--yellow); color: var(--ink); }
@media (min-width: 760px) { .action-bar { display: none; } }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (min-width: 760px) { .toast { bottom: 28px; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .svc:hover { transform: none; } }

/* About */
.about-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .9; max-width: 15ch; }
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 1000px) { .story { grid-template-columns: 5fr 7fr; gap: 48px; } }
.story .ph { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--stone); }
.story .ph img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.promise-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.promise { background: var(--white); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--yellow); }
.promise h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.promise p { color: var(--ink-2); }
.cta { background: var(--yellow); border-radius: 30px; padding: 40px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
