/*
Theme Name: Hugo's Remaps
Theme URI: https://hugoremaps.co.uk
Author: Hugo's Remaps
Description: Mobile remapping site for Hugo's Remaps — carbon, red and amber from the van livery; light and dark; anime.js motion that only ever delays content, never hides it.
Version: 1.0.6
Requires PHP: 8.1
Text Domain: hugos-remaps
*/

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Russo One"; src: url("assets/fonts/russo-one-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("assets/fonts/kaushan-script-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ----------------------------------------------------------------- tokens
   Three layers. Primitives are the livery: carbon, the logo's red frame,
   the amber LED lettering on the banners. Semantic tokens say what a colour
   is FOR and are the only thing components read. Light mode re-points the
   semantic layer; "fixed dark" surfaces (nav, hero, bands, footer) re-point
   it back locally, so they stay carbon in both themes with their own ink. */
:root {
    /* primitives */
    --carbon-950: #0c0d10;
    --carbon-900: #101215;
    --carbon-850: #15181d;
    --carbon-800: #1b1f25;
    --carbon-750: #20252c;
    --carbon-700: #272c34;
    --red-600: #d3141d;
    --red-700: #b81018;
    --red-300: #ff5f66;
    --amber-400: #ffad33;
    --amber-800: #9a5200;
    --plate-yellow: #ffd200;
    --uk-blue: #003399;
    --wa-green: #0f7a3f;

    /* type & shape */
    --font-display: "Russo One", "Barlow Condensed", Impact, sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
    --font-script: "Kaushan Script", "Brush Script MT", cursive;
    --radius: 14px;
    --radius-sm: 10px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 72px;
    --carbon:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 5px);

    /* semantic — dark (default) */
    --bg: var(--carbon-850);
    --bg-2: var(--carbon-800);
    --surface: var(--carbon-750);
    --surface-2: var(--carbon-700);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .17);
    --ink: #f2f3f5;
    --ink-2: #c7ccd4;
    --ink-3: #9ea6b2;
    --brand: var(--red-600);
    --brand-hover: var(--red-700);
    --brand-ink: var(--red-300);
    --brand-soft: rgba(211, 20, 29, .13);
    --accent: var(--amber-400);
    --accent-soft: rgba(255, 173, 51, .09);
    --ok: #22c55e;
    --bad: #ef4444;
    --shadow: 0 22px 50px -24px rgba(0, 0, 0, .7);
    --input-bg: var(--carbon-850);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f4f5f7;
    --bg-2: #eaecf0;
    --surface: #ffffff;
    --surface-2: #f6f7f9;
    --line: rgba(16, 19, 24, .10);
    --line-2: rgba(16, 19, 24, .19);
    --ink: #12151a;
    --ink-2: #3a414c;
    --ink-3: #5b636f;
    --brand: #c8141c;
    --brand-hover: #a90f16;
    --brand-ink: #b0101a;
    --brand-soft: rgba(200, 20, 28, .08);
    --accent: var(--amber-800);
    --accent-soft: rgba(154, 82, 0, .07);
    --ok: #15803d;
    --bad: #c81e1e;
    --shadow: 0 22px 50px -28px rgba(20, 24, 32, .28);
    --input-bg: #ffffff;
    color-scheme: light;
}

/* fixed-dark surfaces: same component tokens, dark values, both themes */
.topnav, .hero, .pagehero, .trust, .ctaband, .dealerband, .foot, .drawer__panel, .actbar {
    --line: rgba(255, 255, 255, .10);
    --line-2: rgba(255, 255, 255, .19);
    --ink: #f2f3f5;
    --ink-2: #c9ced6;
    --ink-3: #a6aeb9;
    --brand-ink: var(--red-300);
    --accent: var(--amber-400);
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .08);
    color: var(--ink);
    color-scheme: dark;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.62 var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background-color .3s ease, color .3s ease;
}
/* a lit room, not a black rectangle: two soft livery washes behind it all */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60vw 50vh at 0% 0%, rgba(211, 20, 29, .07), transparent 70%),
        radial-gradient(50vw 50vh at 100% 100%, rgba(255, 173, 51, .045), transparent 70%);
}
[data-theme="light"] body::before {
    background:
        radial-gradient(60vw 50vh at 0% 0%, rgba(200, 20, 28, .04), transparent 70%),
        radial-gradient(50vw 50vh at 100% 100%, rgba(154, 82, 0, .035), transparent 70%);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .45em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font: 700 1.16rem/1.3 var(--font-body); margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
.ico { flex: 0 0 auto; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: #fff; color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.note { color: var(--ink-3); font-size: .95rem; margin-top: 20px; }

.kick {
    font: 700 .82rem/1.25 var(--font-cond);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}
.script { font-family: var(--font-script); color: var(--brand-ink); line-height: 1.1; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .7em 1.3em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: 700 1rem/1.1 var(--font-body);
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
    will-change: transform;
}
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(211, 20, 29, .85); }
.btn--brand:hover { background: var(--brand-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
.btn--light { background: #fff; color: #12151a; }
.btn--light:hover { background: #e9ecf0; color: #12151a; }
.btn--wa { background: var(--wa-green); color: #fff; }
.btn--wa:hover { background: #0c6634; color: #fff; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .94rem; }
.btn--lg { min-height: 56px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------- nav */
.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: var(--carbon), var(--carbon-900);
    border-bottom: 2px solid var(--brand);
    transition: box-shadow .25s;
}
.topnav.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.topnav__in { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 44px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.navlinks > a, .ndd__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font: 600 .98rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
.navlinks > a:hover, .ndd__btn:hover, .ndd.open .ndd__btn { color: var(--ink); background: var(--surface); }
.navlinks > a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--brand); border-radius: 2px; }
.ndd__btn .ico { transition: transform .2s; }
.ndd.open .ndd__btn .ico { transform: rotate(180deg); }
.ndd__panel {
    position: fixed;
    top: calc(var(--nav-h) - 2px);
    left: 50%;
    width: min(900px, 100vw - 32px);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--carbon), var(--carbon-900);
    border: 1px solid var(--line-2);
    border-top: 2px solid var(--brand);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    padding: 16px;
    transition: opacity .2s, transform .2s, visibility .2s;
}
.ndd.open .ndd__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.ndd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ndd__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.ndd__item:hover { background: var(--surface-2); color: var(--ink); }
.ndd__ico { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.ndd__txt b { display: block; font: 700 1rem/1.25 var(--font-body); }
.ndd__txt small { display: block; color: var(--ink-3); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
.ndd__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; padding: 12px 12px 4px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-3); }
.ndd__foot a { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.topnav__act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topnav__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 700 1rem/1 var(--font-body); text-decoration: none; padding: 0 8px; min-height: 44px; }
.topnav__tel .ico { color: var(--brand-ink); }
.topnav__tel:hover { color: var(--accent); }
.modebtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.modebtn:hover { background: var(--surface); }
.modebtn__moon { display: none; }
[data-theme="light"] .modebtn__sun { display: none; }
[data-theme="light"] .modebtn__moon { display: inline; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); place-items: center; cursor: pointer; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__bg { position: absolute; inset: 0; background: rgba(5, 6, 8, .6); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: var(--carbon), var(--carbon-900);
    border-left: 2px solid var(--brand);
    padding: 64px 22px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer__svc { display: grid; gap: 2px; margin-bottom: 18px; }
.drawer__svc a, .drawer__main a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer__svc a .ico { color: var(--brand-ink); }
.drawer__svc a:hover, .drawer__main a:hover { background: var(--surface-2); }
.drawer__main { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer__main a { font: 400 1.15rem/1 var(--font-display); }
.drawer__cta { display: grid; gap: 10px; margin-top: 22px; }

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative;
    min-height: clamp(620px, calc(100svh - var(--nav-h)), 880px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--carbon-950);
    isolation: isolate;
}
.hero__slides, .slide, .slide__bg { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide__bg { background: var(--photo, none) center / cover no-repeat; transform-origin: 70% 50%; }
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(9, 10, 13, .94) 0%, rgba(9, 10, 13, .82) 34%, rgba(9, 10, 13, .38) 66%, rgba(9, 10, 13, .18) 100%),
        linear-gradient(0deg, rgba(9, 10, 13, .75) 0%, transparent 35%);
}
.hero__streak { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.hero.streak-on .hero__streak { opacity: .7; }
.hero__streak path { fill: none; stroke-linecap: round; }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 32px; align-items: end; padding: clamp(40px, 7vh, 80px) 0 clamp(32px, 6vh, 56px); }
.hero__copy { align-self: center; }
.hero__title { font-size: clamp(2.35rem, 5.7vw, 4.5rem); margin: 0 0 4px; }
.hero__title > span { display: block; }
.hero__title small { display: block; font: 600 clamp(1.08rem, 2.2vw, 1.55rem)/1.3 var(--font-body); color: var(--ink-2); margin-top: .4em; letter-spacing: 0; }
.hero__script { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 6px 0 14px; transform: rotate(-3deg); transform-origin: 0 50%; display: inline-block; }
.hero__sub { color: var(--ink-2); max-width: 560px; font-size: 1.08rem; margin: 0 0 6px; }
.hero__ctas { margin-top: 4px; }
.hero__story {
    justify-self: end;
    width: min(380px, 100%);
    background: rgba(12, 13, 16, .74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    padding: 18px 20px 14px;
}
.hstory { display: none; }
.hstory.is-active { display: block; }
.hstory__kick { font: 700 .8rem/1.2 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.hstory__line { margin: 0 0 10px; font-size: 1rem; color: var(--ink); }
.hstory__link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 700; text-decoration: none; min-height: 32px; }
.hstory__link:hover { color: #fff; }
.hero__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.hero__arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero__dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .35); transform: translate(-50%, -50%); transition: width .3s, background .3s; }
.hero__dot.is-active::before { width: 22px; background: var(--brand); }

/* ------------------------------------------------------------ number plate */
.plate { margin: 22px 0 14px; max-width: 540px; }
.plate__label { display: block; font: 700 .8rem/1.2 var(--font-cond); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.plate__row {
    display: flex;
    align-items: stretch;
    min-height: 62px;
    background: var(--plate-yellow);
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .75), inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.plate__row:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.plate__band { flex: 0 0 46px; background: var(--uk-blue); color: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; }
.plate__band b { font: 700 .82rem/1 var(--font-cond); letter-spacing: .06em; }
.plate__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #111;
    font: 700 clamp(1.6rem, 4vw, 2.05rem)/1 var(--font-cond);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 12px;
    outline: none;
}
.plate__input::placeholder { color: rgba(17, 17, 17, .36); }
.plate__go { flex: 0 0 auto; border: 0; background: var(--brand); color: #fff; font: 700 1rem/1 var(--font-body); padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .2s; }
.plate__go:hover { background: var(--brand-hover); }
.plate__hint { font-size: .9rem; color: var(--ink-3); margin: 8px 0 0; }
.plate__row.is-shake { animation: plate-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes plate-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

/* ------------------------------------------------------------ trust strip */
.trust { background: var(--carbon), var(--carbon-900); border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item .ico { color: var(--brand-ink); }
.trust__item p { margin: 0; line-height: 1.3; }
.trust__item b { display: block; color: var(--ink); }
.trust__item span { color: var(--ink-3); font-size: .92rem; }

/* --------------------------------------------------------------- sections */
.sec { padding: clamp(60px, 8vw, 108px) 0; position: relative; }
.sec--alt { background: var(--bg-2); }
.sechead { max-width: 780px; margin: 0 auto clamp(30px, 4vw, 50px); text-align: center; }
.sechead > p:last-child { color: var(--ink-2); margin: 0; }
.sechead--left { text-align: left; margin-left: 0; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }
.split--form { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; }
.split--feel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; }
.split--feel .split__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.split--feel .cards--2 { align-content: stretch; }
.split__copy > p:not(.kick) { color: var(--ink-2); }
.split__media { margin: 0; position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption { margin-top: 10px; color: var(--ink-3); font-size: .92rem; }
.ph { border-radius: var(--radius); box-shadow: var(--shadow); }
.ph--white { background: #fff; padding: 14px; object-fit: contain !important; }

.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks li .ico { color: var(--brand-ink); margin-top: 3px; }

/* service cards */
.svcgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(211, 20, 29, .5); box-shadow: var(--shadow); color: var(--ink); }
.svc:hover::before { transform: scaleX(1); }
.svc__ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.svc h3 { margin: 4px 0 0; }
.svc p { color: var(--ink-2); margin: 0; flex: 1; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 700; }
.svc:hover .svc__go .ico { transform: translateX(3px); }
.svc__go .ico { transition: transform .2s; }

/* steps */
.steps { --p: 1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 46px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(var(--p)); transform-origin: 0 50%; opacity: .55; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; font: 400 1.05rem/1 var(--font-display); margin-bottom: 16px; position: relative; z-index: 1; }
.step p { color: var(--ink-2); margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; }
.card__ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.card__ico--wa { background: rgba(15, 122, 63, .16); color: #2fbf6c; }
[data-theme="light"] .card__ico--wa { color: var(--wa-green); }
.card--big { padding: 30px; }
.card--big h3 { font: 400 1.5rem/1.15 var(--font-display); }
.card--big .ticks { margin-bottom: 0; }

/* figures */
.gains { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 18px; margin: 0 0 24px; box-shadow: var(--shadow); }
.gains table { width: 100%; border-collapse: collapse; }
.gains th, .gains td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gains thead th { font: 700 .78rem/1.2 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gains tbody th b { display: block; font-size: 1.02rem; }
.gains tbody th small { display: block; color: var(--ink-3); font-weight: 400; font-size: .86rem; }
.gains__nums { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gains__nums .ico { color: var(--ink-3); }
.gains__from { color: var(--ink-3); }
.gains__nums b { font: 400 1.25rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.gains__nums em { font-style: normal; color: var(--brand-ink); font-weight: 700; font-size: .9rem; }
.gbar { display: block; position: relative; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--line); overflow: hidden; max-width: 220px; }
.gbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 6px; }
.gbar__a { background: var(--ink-3); opacity: .55; z-index: 2; }
.gbar__b { background: linear-gradient(90deg, var(--brand), var(--accent)); z-index: 1; }
.gains__note { font-size: .88rem; color: var(--ink-3); margin: 14px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 14px; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(8, 9, 11, .88), transparent); color: #fff; font-weight: 600; font-size: .95rem; }

/* area chips + generic chips */
.areachips, .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.areachips a, .chips a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.areachips a .ico, .chips a .ico { color: var(--brand-ink); }
.areachips a:hover, .chips a:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.related { margin-top: 36px; }
.related .chips { margin-bottom: 0; }

/* dealer band */
.dealerband { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0; background: var(--carbon-950); isolation: isolate; }
.dealerband__bg { position: absolute; inset: -12% 0; z-index: -2; background: var(--photo, none) center / cover no-repeat; opacity: .5; }
.dealerband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 10, 13, .95) 0%, rgba(9, 10, 13, .8) 45%, rgba(9, 10, 13, .3) 100%); }
.dealerband__in > * { max-width: 640px; }
.dealerband__in > p:not(.kick) { color: var(--ink-2); font-size: 1.08rem; }
.dealerband h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 700; font-size: 1.04rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { color: var(--brand-ink); transition: transform .25s; }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item[open] { border-color: var(--line-2); }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); }
.faq__a p { margin: 0; }

/* cta band */
.ctaband { background: radial-gradient(70% 120% at 100% 0%, rgba(211, 20, 29, .28), transparent 60%), var(--carbon), var(--carbon-900); padding: clamp(60px, 8vw, 100px) 0; border-top: 2px solid var(--brand); }
.ctaband__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.ctaband__copy > p:not(.kick) { color: var(--ink-2); font-size: 1.06rem; }
.ctaband h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.ctaband .plate { margin: 0; }

/* page hero */
.pagehero { position: relative; overflow: hidden; background: var(--carbon), var(--carbon-950); padding: clamp(56px, 9vw, 116px) 0 clamp(44px, 6vw, 76px); isolation: isolate; }
.pagehero__bg { position: absolute; inset: -6% 0; z-index: -2; background: var(--photo, none) center / cover no-repeat; opacity: .55; }
.pagehero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 10, 13, .95) 0%, rgba(9, 10, 13, .82) 45%, rgba(9, 10, 13, .45) 100%), linear-gradient(0deg, rgba(9, 10, 13, .6), transparent 40%); }
.pagehero__in { position: relative; }
.pagehero h1 { font-size: clamp(2.05rem, 4.8vw, 3.5rem); max-width: 920px; }
.pagehero__sub { color: var(--ink-2); font-size: 1.12rem; max-width: 700px; margin: 0 0 24px; }
.pagehero--plain { padding-bottom: clamp(36px, 5vw, 56px); }
.pagehero--404 { min-height: 60vh; display: flex; align-items: center; }
.pagehero--404 .chips a { background: rgba(255, 255, 255, .05); }
.herostats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.herostat { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); min-width: 168px; }
.herostat b { display: block; font: 400 1.32rem/1.2 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.herostat > span { font-size: .88rem; color: var(--ink-3); }
.herostat .cnt { font-style: normal; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* panels, notices, lists */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.panel > p:not(.kick) { color: var(--ink-2); }
.panel__note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-size: .93rem; margin: 14px 0 0; }
.panel__note .ico { color: var(--accent); margin-top: 2px; }
.panel__cta { margin-top: 18px; }
.towns { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.towns li { padding: 4px 0; break-inside: avoid; color: var(--ink-2); }
.towns li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 9px; vertical-align: middle; }
.towns--inline { columns: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 18px; }
.towns--inline li { font-size: .93rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 173, 51, .35); background: var(--accent-soft); color: var(--ink-2); font-size: .96rem; }
[data-theme="light"] .notice { border-color: rgba(154, 82, 0, .3); }
.notice .ico { color: var(--accent); margin-top: 2px; }
.notice p { margin: 0; }
.notice b { color: var(--ink); }

/* dealer page */
.feat { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; }
.feat li > span { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.feat b { display: block; font-size: 1.06rem; }
.feat p { margin: 4px 0 0; color: var(--ink-2); }
.portalmock { background: #14171c; color: #e9ecf1; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.portalmock__bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 12px; font-size: .85rem; color: #9aa2ae; }
.portalmock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; }
.portalmock__bar span:first-child { background: var(--red-600); }
.portalmock__bar b { margin-left: 8px; font-weight: 600; }
.portalmock__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.portalmock__row b { display: block; font-size: .98rem; }
.portalmock__row small { color: #9aa2ae; font-size: .85rem; }
.portalmock__row em { font-style: normal; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.portalmock .is-ok { background: rgba(34, 197, 94, .16); color: #4ade80; }
.portalmock .is-wip { background: rgba(255, 173, 51, .14); color: #ffbf5e; }
.portalmock .is-new { background: rgba(96, 165, 250, .15); color: #93c5fd; }
.portalmock__cap { font-size: .82rem; color: #9aa2ae; margin: 10px 6px 2px; }

/* forms */
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); }
.formcard h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 6px; }
.formcard__lead { color: var(--ink-3); margin: 0 0 22px; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .96rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.form input:not([type="hidden"]):not(.plate__input), .form select, .form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--input-bg);
    color: var(--ink);
    font: 400 1rem/1.4 var(--font-body);
    transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form select option { background: var(--surface); color: var(--ink); }
.field.is-bad input, .field.is-bad select, .field.is-bad .plate__row { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plate__row--form { min-height: 58px; max-width: 360px; }
.form__privacy { font-size: .9rem; color: var(--ink-3); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.formmsg h3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 1.2rem; }
.formmsg p { margin: 0; color: var(--ink-2); }
.formmsg--ok { background: rgba(34, 197, 94, .09); border: 1px solid rgba(34, 197, 94, .4); }
.formmsg--ok h3 .ico { color: var(--ok); }
.formmsg--err { background: rgba(239, 68, 68, .09); border: 1px solid rgba(239, 68, 68, .45); }
.formmsg__ref { font: 700 1rem/1.4 var(--font-cond); letter-spacing: .08em; background: var(--plate-yellow); color: #111; padding: 1px 10px; border-radius: 6px; }
.formmsg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
.bookside { display: grid; gap: 16px; align-content: start; }
/* day + time picker (inc/diary.php). Works as one long radio list without JS. */
.slotpick { border: 0; padding: 0; margin: 0; min-width: 0; }
.slotpick__legend { font-weight: 700; font-size: .96rem; margin-bottom: 8px; padding: 0; }
.slotpick__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.slotpick__day { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--input-bg); color: var(--ink); cursor: pointer; scroll-snap-align: start; font-family: var(--font-body); transition: background-color .2s, border-color .2s; }
.slotpick__day small { font: 700 .7rem/1.3 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.slotpick__day b { font: 400 1.45rem/1.15 var(--font-display); }
.slotpick__day em { font-style: normal; font-size: .72rem; color: var(--brand-ink); margin-top: 2px; }
.slotpick__day:hover { border-color: var(--brand); }
.slotpick__day.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.slotpick__day.is-on small, .slotpick__day.is-on em { color: rgba(255, 255, 255, .88); }
.slotpick__group + .slotpick__group { margin-top: 14px; }
.slotpick__dlabel { font-weight: 600; margin: 6px 0 8px; }
.slotpick.is-js .slotpick__dlabel { color: var(--ink-3); font-size: .9rem; font-weight: 400; }
.slotpick__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input-bg); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, border-color .15s; }
.slot span:hover { border-color: var(--brand); }
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.slot.is-full span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.slot.is-full span:hover { border-color: var(--line-2); }
.slot span small { font-size: .7rem; font-weight: 400; text-decoration: none; }
.slotpick__note { font-size: .88rem; color: var(--ink-3); margin: 10px 0 0; }
.slotpick__empty { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-2); margin: 0; }
.field.is-bad .slotpick__times { outline: 2px solid var(--bad); outline-offset: 4px; border-radius: 10px; }

.stack { display: grid; gap: 10px; margin-top: 14px; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* contact */
.contactgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contactcard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); text-decoration: none; transition: transform .25s, border-color .25s; }
.contactcard:hover { transform: translateY(-4px); border-color: rgba(211, 20, 29, .5); color: var(--ink); }
.contactcard .card__ico { margin-bottom: 10px; }
.contactcard h2 { font: 700 1.05rem/1.2 var(--font-body); margin: 0; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.contactcard__big { font: 400 1.3rem/1.25 var(--font-display); margin: 2px 0 6px; }
.contactcard__big--sm { font-size: 1rem; overflow-wrap: anywhere; }
.contactcard p:last-child { color: var(--ink-2); margin: 0; font-size: .95rem; }
.mapcard iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

/* services hub */
.svclist { display: grid; gap: 18px; margin-bottom: 8px; }
.svcrow { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, border-color .25s; }
.svcrow:hover { transform: translateY(-3px); border-color: rgba(211, 20, 29, .5); color: var(--ink); }
.svcrow__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.svcrow__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.svcrow__body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 4px 0 0; }
.svcrow__body p { color: var(--ink-2); margin: 0; }

/* areas hub */
.areagrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.areacard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.areacard h2 { font-size: 1.45rem; margin: 0; }
.areacard h2 a { color: var(--ink); text-decoration: none; }
.areacard h2 a:hover { color: var(--brand-ink); }
.areacard__kick { font: 700 .8rem/1.2 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.areacard > p:not(.areacard__kick) { color: var(--ink-2); }
.areacard .svc__go { text-decoration: none; }

/* prose (privacy & any wp-admin page) */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--brand-ink); }

/* ----------------------------------------------------------------- footer */
.foot { background: var(--carbon), var(--carbon-950); border-top: 2px solid var(--brand); padding-top: clamp(48px, 7vw, 72px); color: var(--ink-2); }
.foot__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 32px; }
.foot__logo img { height: 52px; width: auto; }
.foot .script { font-size: 1.65rem; margin: 12px 0 10px; transform: rotate(-2deg); transform-origin: 0 50%; }
.foot__brand > p { font-size: .97rem; }
.foot__dealer { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; }
.foot__dealer .ico { color: var(--accent); }
.foot__social { display: flex; gap: 10px; margin-top: 16px; }
.foot__social a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); transition: background .2s, border-color .2s; }
.foot__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.foot__h { font: 700 .82rem/1.2 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.foot__col { display: flex; flex-direction: column; gap: 2px; }
.foot__col a, .foot__col span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: var(--ink-2); text-decoration: none; font-size: .97rem; }
.foot__col a:hover { color: #fff; }
.foot__col .ico { color: var(--brand-ink); }
.foot__col .foot__book { align-self: flex-start; margin-top: 10px; color: #fff; min-height: 40px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.foot__base p { margin: 0; }
.foot__legal { flex: 1 1 420px; }
.foot__base nav a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 40px; }

/* quick-contact bar (phones) + back to top */
.actbar { display: none; }
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: var(--carbon-900); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brand); }

/* scroll progress (created by motion.js) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* --------------------------------------------------------- motion states
   html.motion is set pre-paint only when motion can actually run (visible
   tab, no reduced-motion). It hides ONLY the hero intro pieces, and a timer
   in the head removes it if motion.js never arrives — so the worst case is
   an intro that does not play, never a hero that does not show. */
.motion .hero [data-in],
.motion .pagehero [data-in],
.motion .brand,
.motion .navlinks > *,
.motion .topnav__act > * { opacity: 0; }
.motion-on .svcgrid, .motion-on .contactgrid, .motion-on .svclist { perspective: 1400px; }
.motion-on .svc:hover, .motion-on .contactcard:hover, .motion-on .svcrow:hover { transform: none; }
.motion-on .gallery__item:hover img { transform: none; }
[data-split] { overflow-wrap: normal; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
    .topnav__tel { display: none; }
}
@media (max-width: 1100px) {
    .svcgrid, .cards--4, .contactgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .navlinks { display: none; }
    .burger { display: grid; }
    .hero__in { grid-template-columns: 1fr; align-items: start; }
    .hero__story { justify-self: stretch; width: 100%; max-width: 620px; }
    .split, .split--wide, .split--form, .ctaband__in { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .trust__in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
    .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .areagrid { grid-template-columns: 1fr; }
    .cards--2 { grid-template-columns: 1fr; }
    .steps::before { display: none; }
}
@media (max-width: 760px) {
    :root { --nav-h: 64px; }
    .brand img { height: 38px; }
    .slide__bg, .pagehero__bg, .dealerband__bg { background-image: var(--photo-sm, var(--photo, none)); }
    .hero__scrim { background: linear-gradient(180deg, rgba(9, 10, 13, .72) 0%, rgba(9, 10, 13, .86) 45%, rgba(9, 10, 13, .95) 100%); }
    .svcrow { grid-template-columns: 1fr; }
    .svcrow__media img { aspect-ratio: 16 / 9; }
    .actbar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        background: var(--carbon), var(--carbon-900);
        border-top: 2px solid var(--brand);
        transform: translateY(110%);
        transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    }
    .actbar.is-shown { transform: none; }
    .actbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); color: #fff; font: 700 .8rem/1 var(--font-body); text-decoration: none; }
    .actbar__book { background: var(--brand); }
    body { padding-bottom: 60px; }
    .totop { bottom: 76px; right: 14px; }
    .topnav__book { display: none; }
}
@media (max-width: 600px) {
    .svcgrid, .cards--4, .contactgrid { grid-template-columns: 1fr; }
    .foot__grid { grid-template-columns: 1fr; }
    .field--2 { grid-template-columns: 1fr; }
    .gallery, .gallery--4 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery__item--tall { grid-row: span 1; }
    .towns { columns: 1; }
    .gains { padding: 4px 16px 16px; }
    .gains thead { display: none; }
    .gains table, .gains tbody { display: block; }
    .gains tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .gains tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
    .gains td { padding: 0; border: 0; }
    .gains td::before { content: attr(data-l); display: block; font: 700 .72rem/1.2 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
    .gains__nums b { font-size: 1.1rem; }
    .trust__in { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    .trust__item { align-items: flex-start; }
    .herostat { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 440px) {
    .plate__row { flex-wrap: wrap; }
    .plate__input { flex-basis: calc(100% - 46px); }
    .plate__go { flex: 1 1 100%; justify-content: center; min-height: 48px; }
    .plate__band { min-height: 58px; }
    .hero__title { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
