/* Willpower Garage & Tyres Services
   Calm, friendly and consistent: one typeface, one brand colour (the lime
   from the WP logo), soft tinted panels and rounded cards. */

:root {
  --lime: #a8c900;          /* logo green: buttons and small accents only */
  --lime-deep: #5c6f00;     /* readable green for small text */
  --tint: #f4f7e4;          /* soft panel background */
  --tint-2: #eaf0cc;        /* slightly stronger tint */
  --ink: #171a12;           /* headings, dark buttons */
  --text: #4a4f43;          /* body text */
  --muted: #747a6b;
  --line: #e5e8da;
  --white: #ffffff;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 10px 30px rgba(23, 26, 18, 0.07);
  --wrap: 1160px;
  --gutter: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.soft { color: var(--lime-deep); }

/* Small label above each heading. The two slashes echo the slant of the logo. */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime-deep); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 12px; flex: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 0 / 6px 100% no-repeat,
              linear-gradient(var(--lime), var(--lime)) 100% 0 / 6px 100% no-repeat;
  transform: skewX(-22deg);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b5d70a; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-line { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--ink); text-decoration: none;
}
.link-arrow .ico { width: 18px; height: 18px; color: var(--lime-deep); transition: transform .2s ease; }
.link-arrow:hover { color: var(--lime-deep); }
.link-arrow:hover .ico { transform: translateX(4px); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.site-footer :focus-visible { outline-color: var(--lime); }

.stars { color: #e3a900; letter-spacing: 2px; }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--tint-2); color: var(--lime-deep);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Header: a floating rounded bar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.header-pill {
  max-width: calc(var(--wrap) + 40px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 66px; padding: 0 12px 0 22px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  transition: box-shadow .25s ease;
}
.is-scrolled .header-pill { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn), .menu-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 0.93rem; color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav > a:not(.btn):hover, .menu-button:hover, .has-menu:focus-within .menu-button { background: var(--tint); }
.site-nav .is-current { background: var(--tint); color: var(--lime-deep); }
.site-nav .btn { margin-left: 10px; }
/* Booking link: its own lime outline pill, so it stands apart from the plain links and the WhatsApp button */
.site-nav > a.nav-book {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 0 18px; min-height: 44px;
  border: 1.5px solid var(--lime); border-radius: 999px; background: var(--tint);
  font-weight: 700; font-size: 0.92rem; color: var(--lime-deep); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav > a.nav-book .ico { width: 18px; height: 18px; }
.site-nav > a.nav-book:hover, .site-nav > a.nav-book.is-current { background: var(--lime); color: var(--ink); }
/* Narrow desktops: keep just the logo so the full menu still fits on one line */
.site-nav > a, .menu-button { white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (min-width: 1021px) and (max-width: 1280px) {
  .brand-name { display: none; }
  .site-nav > a:not(.btn):not(.nav-book), .menu-button { padding-left: 10px; padding-right: 10px; }
}
.menu-button .ico { width: 16px; height: 16px; transition: transform .2s ease; }

.has-menu { position: relative; }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 270px; margin-top: 14px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* keeps the menu open while the mouse travels to it */
.menu a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 0.93rem; color: var(--ink); text-decoration: none; }
.menu a:hover { background: var(--tint); color: var(--lime-deep); }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover .menu-button .ico, .has-menu.is-open .menu-button .ico { transform: rotate(180deg); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: var(--tint); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: an inset rounded panel ---------- */
.hero { padding: 14px var(--gutter) 0; }
.hero-panel {
  max-width: calc(var(--wrap) + 40px); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 64px 56px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--tint) 0%, #fafbf3 60%, var(--tint) 100%);
}
.lead { font-size: 1.1rem; max-width: 33em; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow);
  font-size: 0.9rem; color: var(--ink); text-decoration: none; line-height: 1.3;
}
.float-rating { left: -22px; bottom: 26px; flex-direction: column; align-items: flex-start; gap: 2px; }
.float-rating strong { font-size: 1.15rem; }
.float-rating small { color: var(--muted); font-size: 0.8rem; }
.float-open { right: -14px; top: 22px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c2c6b8; flex: none; }
.dot.is-open { background: #49b34f; box-shadow: 0 0 0 4px rgba(73, 179, 79, 0.18); }

/* ---------- Facts ---------- */
.facts { padding: 28px 0 0; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); }
.fact strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.fact strong i { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fact > span { display: block; margin-top: 8px; font-size: 0.92rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
.section-tight { padding-top: 96px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 + p { margin-top: 18px; font-size: 1.04rem; }
.section-head.with-aside { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-grid { display: grid; gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.service-card:hover, .why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tint-2); }

.icon-badge {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
  background: var(--lime); color: var(--ink); margin-bottom: 26px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.icon-badge svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon-badge { background: var(--ink); color: var(--lime); transform: rotate(-4deg) scale(1.04); }

/* ---------- Service icons: each one moves to show what the service is ---------- */
.svc-icon { overflow: visible; }
.svc-icon .svc-thin { stroke-width: 1.2; }
.service-card:hover .icon-badge { transform: none; }   /* these three have their own motion instead of the tilt */

/* Tyre: rolls forward over a moving road, then settles back */
.svc-tyre-shift { transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.svc-tyre-wheel { transform-box: fill-box; transform-origin: center; }
.svc-road { stroke-width: 1.2; stroke-dasharray: 3 2.4; opacity: 0; transition: opacity .3s ease; }
.is-active .svc-tyre-shift { transform: translateX(2.5px); }
.is-active .svc-road { opacity: .85; }

/* Engine oil: the bottle tips further and the oil flows */
.svc-oil-bottle { transform: rotate(-105deg); transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.svc-oil-drop { fill: currentColor; stroke: none; transition: opacity .25s ease, transform .25s ease; }
.svc-oil-stream { stroke-width: 2.2; stroke-dasharray: 4.6 1.4; opacity: 0; transition: opacity .25s ease; }
.is-active .svc-oil-bottle { transform: rotate(-121deg); }
.is-active .svc-oil-drop { opacity: 0; transform: translateY(3px); }
.is-active .svc-oil-stream { opacity: 1; transition-delay: .2s; }

@media (prefers-reduced-motion: no-preference) {
  .is-active .svc-tyre-wheel { animation: svc-roll .42s linear infinite; }
  .is-active .svc-road { animation: svc-road .42s linear infinite; }
  .is-active .svc-align { animation: svc-align 1.9s infinite; }
  .is-active .svc-oil-stream { animation: svc-flow .5s linear infinite; }
}
/* 72 degrees is one spoke: the wheel looks identical at the end of each loop, so it can stop cleanly */
@keyframes svc-roll { to { transform: rotate(72deg); } }
@keyframes svc-road { to { stroke-dashoffset: 5.4; } }
@keyframes svc-flow { to { stroke-dashoffset: -6; } }
/* small left / right adjustments that settle back on centre, like setting an alignment */
@keyframes svc-align {
  0% { transform: translateX(0); animation-timing-function: ease-in-out; }
  14%, 26% { transform: translateX(-3px); animation-timing-function: ease-in-out; }
  42%, 54% { transform: translateX(3px); animation-timing-function: ease-in-out; }
  66%, 74% { transform: translateX(-1.2px); animation-timing-function: ease-in-out; }
  84%, 100% { transform: translateX(0); }
}

.service-card { display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { flex: 1; margin-bottom: 24px; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 0.95rem; }

.more-services { margin-top: 20px; padding: 28px 30px; border-radius: var(--r-md); background: var(--tint); }
.more-services h3 { margin-bottom: 18px; }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mini-grid li { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--white); border-radius: var(--r-sm); }
.mini-grid svg { width: 36px; height: 36px; flex: none; color: var(--lime-deep); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mini-grid li:target { box-shadow: 0 0 0 2px var(--lime); }   /* shows which one a menu link jumped to */
.mini-grid strong { display: block; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.mini-grid span { display: block; font-size: 0.84rem; line-height: 1.4; margin-top: 3px; }

/* ---------- Tinted panels (on-wheel balancing, closing call to action) ---------- */
.panel {
  max-width: calc(var(--wrap) + 40px); margin: 0 var(--gutter); border-radius: var(--r-lg); background: var(--tint);
}
@media (min-width: 1240px) { .panel { margin: 0 auto; } }
.panel-inner { max-width: var(--wrap); margin: 0 auto; padding: 72px 56px; }

.signs { margin-top: 44px; }
.signs ol { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 32px; }
.signs li { counter-increment: s; padding: 20px; background: var(--white); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; line-height: 1.45; }
.signs-cta { margin-top: 0; }
.signs-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.signs li::before { content: "0" counter(s); display: block; font-size: 0.8rem; font-weight: 800; color: var(--lime-deep); letter-spacing: 0.08em; margin-bottom: 8px; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px; }
.cta-panel p { margin-top: 10px; font-size: 1.04rem; }
.cta-panel .cta-row { margin-top: 0; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 30px; border-radius: var(--r-md); background: var(--tint); }
.step-no {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--ink); font-weight: 800; margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p + p { margin-top: 14px; }
.profile { padding: 10px 30px; }
.profile > div { padding: 18px 0; }
.profile > div + div { border-top: 1px solid var(--line); }
.profile dt, .contact-card dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.profile dd { color: var(--ink); font-weight: 600; }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card { padding: 12px; }
.brand-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); }
.brand-card img.is-logo { object-fit: contain; padding: 0 12%; background: var(--white); border: 1px solid var(--line); }
.brand-card figcaption { padding: 20px 18px 14px; }
.brand-card strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-top: 12px; }
.brand-card figcaption > span:last-child { font-size: 0.95rem; }

/* ---------- Reviews: soft "+" pattern behind tinted cards ---------- */
.reviews-band {
  margin-top: 112px; padding: 96px 0;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 16v12M16 22h12' stroke='%23e2e9c2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 44px 44px;
}
.score { display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.score strong { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.score div { display: flex; flex-direction: column; font-size: 0.9rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-md); background: var(--tint);
  transition: transform .25s ease, box-shadow .25s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review .stars { font-size: 1.05rem; letter-spacing: 3px; margin-bottom: 14px; }
.review p { flex: 1; font-size: 1.02rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.review footer { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.15rem; flex: none; object-fit: cover; }
.review footer strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.review footer span:not(.avatar) { font-size: 0.84rem; color: var(--muted); }
#reviews .center { margin-top: 40px; }
#reviews .link-arrow { padding: 12px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: stretch; }
.map { border-radius: var(--r-md); overflow: hidden; min-height: 440px; background: var(--tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.contact-card dl > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-card dd { color: var(--ink); }
.contact-card dd a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Footer: one rounded card ---------- */
.site-footer { padding: 96px var(--gutter) 20px; }
.footer-card {
  max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 56px 56px 28px;
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px;
  background: var(--ink); color: #c5c9ba; border-radius: var(--r-lg); font-size: 0.93rem;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.footer-card h3 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-card li + li, .footer-card p + p { margin-top: 10px; }
.footer-card a { text-decoration: none; transition: color .2s ease; }
.footer-card a:hover { color: var(--lime); }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #2f3326; font-size: 0.84rem; color: #8d9282; }

/* ---------- Floating WhatsApp + phone action bar ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.action-bar { display: none; }

/* ---------- Sections pop up into place as they scroll into view ---------- */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: pop-in .9s cubic-bezier(.22, 1.3, .36, 1) var(--delay, 0s) backwards; }
@keyframes pop-in { from { opacity: 0; transform: translateY(56px) scale(.93); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-visible) { opacity: 1; }
  .js .reveal.is-visible { animation: none; }
  .btn, .card, .review, .icon-badge, .wa-float, .menu, .site-nav { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .header-pill { position: relative; padding-right: 10px; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
    max-height: calc(100vh - 120px); overflow: auto;
    /* fades and slides both ways, so it never snaps open or shut */
    opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none;
    transition: opacity .32s ease, transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  /* invisible bridge over the small gap, so the menu stays open while the mouse crosses it */
  .header-pill::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
  .site-nav > a:not(.btn), .menu-button { padding: 13px 14px; font-size: 1rem; border-radius: 12px; width: 100%; justify-content: space-between; }
  .site-nav .btn { margin: 10px 0 0; min-height: 50px; }
  .site-nav > a.nav-book { margin: 10px 0 0; min-height: 50px; justify-content: center; font-size: 1rem; }
  .menu { position: static; min-width: 0; margin: 0 0 6px 12px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--tint-2); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .menu::before { display: none; }
  .menu-button .ico { display: none; }

  .hero-panel { grid-template-columns: 1fr; gap: 40px; padding: 48px 36px; }
  .float-rating { left: 14px; bottom: 14px; }
  .float-open { right: 14px; top: 14px; }
  .fact-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three, .steps, .signs ol { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-band { margin-top: 88px; padding: 76px 0; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .panel-inner, .cta-panel { padding: 48px 36px; }
  .footer-card { grid-template-columns: 1fr 1fr; padding: 44px 36px 24px; }
  .section { padding-top: 88px; }
  .section-tight { padding-top: 76px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 14px; --r-lg: 24px; }
  body { font-size: 16px; padding-bottom: 76px; }
  html { scroll-padding-top: 92px; }
  .site-header { padding-top: 10px; }
  .header-pill { height: 60px; padding-left: 18px; }
  .brand-name span { display: none; }

  .hero { padding-top: 10px; }
  .hero-panel { padding: 36px 22px 22px; gap: 32px; }
  .lead { font-size: 1.02rem; }
  .hero .btn { flex: 1 1 100%; }
  .float-card { padding: 10px 13px; font-size: 0.84rem; }

  .facts { padding-top: 14px; }
  .fact-grid { gap: 10px; }
  .fact { padding: 18px; }
  .fact strong { font-size: 1.45rem; }
  .fact > span { font-size: 0.86rem; }

  .section { padding-top: 72px; }
  .section-tight { padding-top: 64px; }
  .section-head { margin-bottom: 30px; }
  .card { padding: 24px; }
  .card-grid.two, .card-grid.four, .brand-grid, .mini-grid, .review-grid { grid-template-columns: 1fr; }
  .reviews-band { margin-top: 72px; padding: 60px 0; }
  .review { padding: 24px; }
  .icon-badge { width: 68px; height: 68px; border-radius: 20px; }
  .icon-badge svg { width: 38px; height: 38px; }
  .more-services { padding: 22px; }
  .panel-inner, .cta-panel { padding: 36px 22px; }
  .brand-card { padding: 10px; }
  .map, .map iframe { min-height: 320px; }
  .contact-card .btn, .cta-panel .btn { flex: 1 1 auto; }
  .site-footer { padding-top: 72px; }
  .footer-card { grid-template-columns: 1fr; gap: 30px; padding: 36px 24px 22px; }

  .wa-float { display: none; }
  .action-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; padding: 6px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  }
  .action-bar a.is-primary { background: var(--lime); }
}

/* ==========================================================
   Animated explainer in the on-wheel balancing section
   ========================================================== */

.mg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }

/* ---- Scene tabs, each with a thin progress line ---- */
.mg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mg-tab {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 0; border-radius: var(--r-sm); background: var(--tint); cursor: pointer;
  font-weight: 700; font-size: 0.93rem; color: var(--muted); text-align: left;
  transition: background-color .25s ease, color .25s ease;
}
.mg-tab b { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--lime-deep); }
.mg-tab-short { display: none; }
.mg-tab.is-active { background: var(--tint-2); color: var(--ink); }
.mg-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lime); }
.mg-tab.is-done i { width: 100%; }

/* ---- Stage: all scenes share one grid cell, so the height never jumps ---- */
.mg-stage { display: grid; margin-top: 14px; }
.mg-scene {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: center;
  padding: 10px 14px 6px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.mg-scene.is-active { opacity: 1; visibility: visible; }
.mg-scene.is-compare { grid-template-columns: 1fr; gap: 22px; align-content: center; max-width: 760px; width: 100%; margin: 0 auto; }

/* ---- Drawing styles ---- */
.mg-art { width: 100%; height: auto; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mg-ground { stroke: var(--line); stroke-width: 2; }
.mg-l { stroke: #b9beab; stroke-width: 3; }
.mg-box { fill: var(--tint); stroke: #b9beab; stroke-width: 2.5; }
.mg-cable { stroke: #cfd3c2; stroke-width: 2; stroke-dasharray: 2 7; }
.mg-bounds { stroke: none; }
.mg-tyre { stroke: var(--ink); stroke-width: 14; fill: var(--white); }
.mg-rim { stroke: #9aa08b; stroke-width: 3; fill: var(--white); }
.mg-spokes { stroke: #b9beab; stroke-width: 5; }
.mg-spokes.is-thin { stroke-width: 3.5; }
.mg-cap { fill: var(--ink); }
.mg-roller { fill: var(--white); stroke: var(--ink); stroke-width: 4; }
.mg-disc { stroke: var(--lime); stroke-width: 7; }
.mg-hub { fill: var(--lime-deep); }
.mg-disc.is-off { stroke: #d5d9c8; }
.mg-hub.is-off { fill: #c3c8b4; }
.mg-heavy { fill: #e08a2e; }                 /* the heavy spot causing vibration */
.mg-weight { fill: var(--lime-deep); }       /* the balance weight that corrects it */
.mg-sensor { fill: var(--lime-deep); }
.mg-signal { stroke: var(--lime-deep); stroke-width: 2.5; opacity: 0; }
.mg-wave { stroke-width: 3; }
.mg-wavy { stroke: #e08a2e; opacity: 0; }
.mg-flat { stroke: var(--lime-deep); }
.mg-flash { stroke: var(--lime); opacity: 0; }
.mg-flash.is-tyre { stroke-width: 14; }
.mg-flash.is-rim { stroke-width: 5; }
.mg-flash.is-disc { stroke-width: 9; stroke: var(--white); }
.mg-flash.is-hub { stroke-width: 6; stroke: var(--white); }
.mg-spin { transform-box: fill-box; transform-origin: center; }
.s1-move { transform: translate(400px, 132px); }

/* ---- Notes and part chips ---- */
.mg-notes { counter-reset: n; display: grid; gap: 12px; }
.mg-notes li { counter-increment: n; position: relative; padding-left: 34px; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.mg-notes li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint-2); color: var(--lime-deep); font-size: 0.74rem; font-weight: 800;
}
.mg-notes.is-key li { padding-left: 0; font-size: 1rem; }
.mg-notes.is-key li::before { display: none; }

.mg-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.mg-parts-label { flex: 1 1 100%; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mg-chip {
  padding: 7px 14px; border-radius: 999px; border: 1.5px dashed #cfd3c2; background: var(--white);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a3a897;
}
.mg-chip.is-on { border: 1.5px solid var(--lime); background: var(--lime); color: var(--ink); }

.mg-compare { display: grid; gap: 12px; }
.mg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mg-row.is-ours { border: 2px solid var(--lime); }
.mg-row .mg-parts { margin-top: 0; }
.mg-row-head strong { display: block; color: var(--ink); font-size: 1.08rem; }
.mg-row-head span { font-size: 0.88rem; color: var(--muted); }

.mg-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 14px 4px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.mg-toggle { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 0.82rem; color: var(--ink); cursor: pointer; }
.mg-toggle:hover { border-color: var(--ink); }

/* ---- Motion. Without it (or with "reduce motion" on) every scene simply shows its finished state. ---- */
@media (prefers-reduced-motion: no-preference) {
  .mg-tab.is-active i { animation: mgbar var(--dur, 8s) linear both; }

  .mg-scene.is-active .mg-notes li { animation: mgnote .5s var(--at, 0s) both; }
  .mg-scene.is-active .mg-chip.is-on { animation: mgchip .45s var(--at, 0s) both; }

  /* Scene 01 */
  .mg-scene.is-active .s1-move { animation: s1move 8s both; }
  .mg-scene.is-active .s1-spin { animation: mgspin 1.3s linear 2.3s infinite; }
  .mg-scene.is-active .s1-wobble { animation: mgwobble 1.3s linear 2.3s 2; }
  .mg-scene.is-active .s1-f1 { animation: mgflash .9s 2.7s; }
  .mg-scene.is-active .s1-f2 { animation: mgflash .9s 3.1s; }
  .mg-scene.is-active .s1-wavy { animation: mgshow .3s 2.5s both, mghide .3s 4.9s forwards; }
  .mg-scene.is-active .s1-flat { animation: mgshow .3s 4.9s both; }
  .mg-scene.is-active .s1-weight { animation: mgshow .4s 4.9s both; }

  /* Scene 02 */
  .mg-scene.is-active .s2-drive { animation: s2drive .9s .6s ease-out both; }
  .mg-scene.is-active .s2-spin { animation: mgspin 1.3s linear 1.7s infinite; }
  .mg-scene.is-active .s2-roller { animation: mgspin .34s linear 1.7s infinite reverse; }
  .mg-scene.is-active .s2-wobble { animation: mgwobble 1.3s linear 2.1s 3; }
  .mg-scene.is-active .s2-sig1 { animation: mgsignal 1.3s 2.4s 3; }
  .mg-scene.is-active .s2-sig2 { animation: mgsignal 1.3s 2.65s 3; }
  .mg-scene.is-active .s2-wavy { animation: mgshow .3s 2.6s both, mghide .3s 6s forwards; }
  .mg-scene.is-active .s2-flat { animation: mgshow .3s 6s both; }
  .mg-scene.is-active .s2-f1 { animation: mgflash .9s 3s; }
  .mg-scene.is-active .s2-f2 { animation: mgflash .9s 3.5s; }
  .mg-scene.is-active .s2-f3 { animation: mgflash .9s 4s; }
  .mg-scene.is-active .s2-f4 { animation: mgflash .9s 4.5s; }
  .mg-scene.is-active .s2-weight { animation: mgshow .4s 6s both; }

  .mg.is-paused * { animation-play-state: paused !important; }
}

@keyframes mgbar { from { width: 0; } to { width: 100%; } }
@keyframes mgnote { from { opacity: .3; } to { opacity: 1; } }
@keyframes mgchip { from { background: var(--white); border-color: #cfd3c2; color: #a3a897; } to { background: var(--lime); border-color: var(--lime); color: var(--ink); } }
@keyframes mgspin { to { transform: rotate(360deg); } }
@keyframes mgwobble { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-2.5px); } 75% { transform: translateY(2.5px); } }
@keyframes mgflash { 0%, 100% { opacity: 0; } 40% { opacity: .85; } }
@keyframes mgshow { from { opacity: 0; } to { opacity: 1; } }
@keyframes mghide { to { opacity: 0; } }
@keyframes mgsignal { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes s1move {
  0%, 7% { transform: translate(130px, 132px); animation-timing-function: ease-in-out; }
  26%, 100% { transform: translate(400px, 132px); }
}
@keyframes s2drive { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Smaller screens ---- */
@media (max-width: 1020px) {
  .mg-scene { grid-template-columns: 1fr; gap: 18px; align-content: start; }
  .mg-art { max-width: 560px; margin: 0 auto; }
  .mg-tab { white-space: nowrap; }
}
@media (max-width: 640px) {
  .mg { padding: 10px; }
  .mg-tabs { gap: 6px; }
  .mg-tab { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 10px; font-size: 0.8rem; }
  .mg-tab-long { display: none; }
  .mg-tab-short { display: inline; }
  .mg-scene { padding: 8px 6px 4px; }
  .mg-notes li { font-size: 0.92rem; }
  .mg-row { padding: 16px; }
  .mg-controls { padding: 10px 6px 2px; }
}
