/* ==========================================================================
   Smart Scuffs base styles
   Global layer: tokens, layout, typography, header, footer, buttons, forms,
   quote modal and shared components. Section styles live with each block.
   ========================================================================== */

:root {
	--paper: var(--wp--preset--color--paper, #FFFFFF);
	--mist: var(--wp--preset--color--mist, #F2F4F7);
	--line: var(--wp--preset--color--line, #E2E6EC);
	--ink: var(--wp--preset--color--ink, #0F1115);
	--ink-2: var(--wp--preset--color--ink-2, #4B5260);
	--ink-3: #7A8190;
	--orange: var(--wp--preset--color--orange, #FF6526);
	--orange-hi: #FF7A42;
	--teal: var(--wp--preset--color--teal, #00BFA2);
	--teal-ink: var(--wp--preset--color--teal-ink, #007F6C);
	--night: var(--wp--preset--color--night, #111419);
	--night-2: #1B1F26;
	--night-line: #2C323C;
	--night-fg: #F3F5F8;
	--night-fg-2: #AAB2BF;
	--plate: #FFD500;
	--plate-band: #0B3FA8;
	--rainbow: linear-gradient(90deg, #1FA64A 0%, #C9D72A 18%, #F7B21B 32%, #F26522 46%, #E5243B 60%, #B4208A 74%, #5A2D91 86%, #1C75BC 100%);
	--display: var(--wp--preset--font-family--display, "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif);
	--body: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
	--plate-font: var(--wp--preset--font-family--plate, monospace);
	--r-xl: 28px;
	--r-lg: 20px;
	--r-md: 14px;
	--max: 1280px;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--header-h: 72px;
	--section: clamp(72px, 9vw, 120px);
}
@media (min-width: 760px) { :root { --gutter: max(32px, env(safe-area-inset-left, 0px)); } }

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.03rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band-mist { background: var(--mist); }
.band-night { background: var(--night); color: var(--night-fg); }
.section-head { display: grid; gap: 16px; max-width: 660px; align-content: start; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.lede { color: var(--ink-2); font-size: 1.075rem; max-width: 58ch; }
.band-night .lede { color: var(--night-fg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--rainbow); }
.band-night .eyebrow { color: var(--teal); }

/* Block content flow: our section blocks are full width; core blocks sit in a readable column. */
.entry > :where(:not(.alignfull):not(.alignwide)) { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry > .alignwide { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.entry > .alignfull { max-width: none; }
.entry > :where(:not(.alignfull)) + :where(:not(.alignfull)) { margin-top: 1.25em; }
.entry > .alignfull + :where(:not(.alignfull)) { margin-top: var(--section); }
.entry > :where(:not(.alignfull)) + .alignfull { margin-top: var(--section); }
.entry > :where(:not(.alignfull)):last-child { margin-bottom: var(--section); }

/* Prose (legal pages, written content) */
.entry > :where(h2) { font-size: var(--wp--preset--font-size--xx-large); margin-top: 1.6em; }
.entry > :where(h3) { font-size: var(--wp--preset--font-size--x-large); margin-top: 1.4em; }
.entry > :where(p, ul, ol), .entry > :where(ul, ol) li { color: var(--ink-2); }
.entry > :where(ul, ol) { padding-left: 1.25em; }
.entry > :where(ul, ol) li + li { margin-top: .35em; }
.entry > * :where(strong) { color: var(--ink); }
.entry > :where(p) a { color: var(--ink); }
.entry :where(.wp-block-table table) { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry :where(.wp-block-table th, .wp-block-table td) { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry :where(.wp-block-table th) { font-family: var(--display); }
.entry .wp-block-table { overflow-x: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #262B34; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.band-night .btn-ghost, .btn-ghost.on-dark { border-color: var(--night-line); color: var(--night-fg); }
.band-night .btn-ghost:hover, .btn-ghost.on-dark:hover { border-color: var(--night-fg); }
.btn-wa { background: #25D366; color: var(--ink); }
.btn-wa:hover { background: #3BE07A; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-family: var(--display); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

/* Rainbow rule (animated) */
.rainbow-rule { height: 3px; background: linear-gradient(90deg, #1FA64A, #C9D72A, #F7B21B, #F26522, #E5243B, #B4208A, #5A2D91, #1C75BC, #1FA64A); background-size: 200% 100%; animation: ss-rainbow 9s linear infinite; }
@keyframes ss-rainbow { to { background-position: -200% 0; } }

/* Utility bar ------------------------------------------------------------ */
.utility { background: var(--night); color: var(--night-fg-2); font-size: .84rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.utility strong { color: var(--night-fg); font-weight: 600; }
.utility nav, .utility ul { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.utility a { text-decoration: none; color: var(--night-fg-2); }
.utility a:hover { color: var(--night-fg); }
@media (max-width: 1079px) { .utility { display: none; } }

/* Header ----------------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.admin-bar .site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) + env(safe-area-inset-top, 0px)); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(15,17,21,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer; color: var(--ink); white-space: nowrap; }
.nav-link:hover, .nav-item.open > .nav-link, .nav-item.is-current > .nav-link { background: var(--mist); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: 540px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(15,17,21,.14); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.mega.narrow { width: 360px; grid-template-columns: 1fr; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.mega a:hover, .mega a[aria-current] { background: var(--mist); }
.mega a strong { font-family: var(--display); font-weight: 700; font-size: .97rem; }
.mega a span { font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.mega .mega-all { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: .9rem; background: var(--mist); }
.mega .mega-all svg { width: 16px; height: 16px; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.phone { display: grid; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.phone small { font-size: .7rem; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.phone strong { font-family: var(--display); font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1239px) { .header-cta .phone { display: none; } }
@media (max-width: 1079px) { .main-nav { display: none; } .burger { display: inline-flex; } .header-cta { margin-left: auto; gap: 10px; } }
@media (max-width: 479px) { .header-cta .btn { display: none; } .logo img { height: 34px; } }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head img { height: 34px; width: auto; }
.drawer-body { padding: 8px var(--gutter) 32px; display: grid; }
.drawer summary, .drawer .d-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; list-style: none; cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer details[open] summary { border-bottom: 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details div { display: grid; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer details a { padding: 10px 4px 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.drawer-actions { display: grid; gap: 10px; margin-top: 20px; }

/* Breadcrumbs */
.breadcrumbs { font-size: .86rem; color: var(--ink-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { text-decoration: none; color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* Number plate ----------------------------------------------------------- */
.plate { display: flex; align-items: stretch; flex: 1 1 220px; min-width: 0; height: 58px; border-radius: 10px; background: var(--plate); border: 2px solid var(--ink); overflow: hidden; }
.plate-band { flex: none; width: 36px; background: var(--plate-band); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-family: var(--display); font-weight: 800; font-size: .72rem; }
.plate-band svg { width: 20px; height: 20px; margin-bottom: auto; }
.plate input { flex: 1 1 auto; width: 0; min-width: 0; border: 0; background: transparent; font-family: var(--plate-font); font-size: 1.95rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--ink); padding: 0 10px; outline: none; }
.plate input::placeholder { color: rgba(15,17,21,.32); }
.plate:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.plate.lg { height: 66px; }
.plate.lg input { font-size: 2.3rem; }
.quote-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Before / after slider (shared) ----------------------------------------- */
.ba-frame { position: relative; overflow: hidden; max-width: 100%; background: var(--mist); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1115' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 6px 18px rgba(15,17,21,.3); }
.ba-label { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(15,17,21,.75); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba-label.l { left: 14px; } .ba-label.r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible ~ .ba-handle::after { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Footer ----------------------------------------------------------------- */
/* Accreditations strip (above the footer) */
.accreds { padding-block: 44px 48px; background: var(--paper); border-top: 1px solid var(--line); overflow: hidden; }
.accreds-head { display: flex; justify-content: center; margin-bottom: 26px; }
.accreds-track { display: flex; width: max-content; animation: ss-marquee 48s linear infinite; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.accreds:hover .accreds-track, .accreds:focus-within .accreds-track { animation-play-state: paused; }
.accreds-list { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); list-style: none; margin: 0; padding: 0 clamp(20px, 2.5vw, 36px); }
.accreds-list li { flex: none; }
.accreds-list a { display: block; }
.accreds-list img { display: block; height: 42px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.accreds-list li:hover img, .accreds-list a:focus-visible img { filter: none; opacity: 1; }
@keyframes ss-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.accreds-track { animation: none; width: auto; justify-content: center; -webkit-mask-image: none; mask-image: none; }
	.accreds-list { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
	.accreds-clone { display: none; }
}

.site-footer { background: var(--night); color: var(--night-fg-2); font-size: .93rem; }
.site-footer > .wrap { padding-block: 64px 32px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { width: 160px; }
.foot-brand .phone strong { color: var(--night-fg); font-size: 1.5rem; }
.foot-brand .phone small { color: var(--night-fg-2); }
.foot-brand address { font-style: normal; }
.site-footer h2 { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-fg); font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--night-fg-2); }
.site-footer a:hover { color: var(--night-fg); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .84rem; }
.foot-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 999px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .foot-top { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 759px) {
	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
	.mobile-bar .btn { min-height: 48px; padding: 0 12px; font-size: .92rem; }
	.site-footer > .wrap { padding-bottom: 110px; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: .92rem; max-width: min(440px, calc(100vw - 32px)); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Forms (shared) --------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); padding: 12px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 479px) { .chips { grid-template-columns: 1fr; } }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.chip-opt label::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-3); background: var(--paper) center/14px no-repeat; }
.chip-opt input:checked + label { border-color: var(--ink); background: var(--mist); }
.chip-opt input:checked + label::before { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.chip-opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row .chip-opt label { padding: 10px 14px; }
.radio-row .chip-opt label::before { border-radius: 50%; }
.form-error { color: #B42318; font-size: .88rem; font-weight: 600; }
.form-note { font-size: .84rem; color: var(--ink-3); }
.form-note a { color: inherit; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tips div { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; background: var(--mist); font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.25; }
.tips svg { width: 30px; height: 30px; }
.drop { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; border-radius: var(--r-md); border: 2px dashed var(--line); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--ink); background: var(--mist); }
.drop svg { width: 34px; height: 34px; }
.drop small { color: var(--ink-3); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--mist); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,17,21,.8); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }

/* Quote flow (modal and full-page) */
dialog.quote { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(15,17,21,.35); overflow: hidden; }
dialog.quote::backdrop { background: rgba(15,17,21,.6); backdrop-filter: blur(3px); }
.q-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.q-inline .q-shell { max-height: none; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 60px rgba(15,17,21,.08); }
.q-head { display: grid; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.q-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q-title h2 { font-size: 1.5rem; }
.q-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.q-progress span { display: grid; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.q-progress span::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.q-progress span.done { color: var(--ink); }
.q-progress span.done::before { background: var(--orange); }
.q-body { padding: 24px; overflow-y: auto; }
.q-step { display: grid; gap: 18px; }
.q-step h3 { font-size: 1.3rem; }
.q-step .hint { color: var(--ink-2); font-size: .95rem; }
.vehicle-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); font-size: .92rem; }
.vehicle-card svg { width: 28px; height: 28px; flex: none; }
.vehicle-card small { display: block; color: var(--ink-3); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.q-foot .btn { min-height: 48px; }
.q-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 24px 8px; }
.q-done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.q-done .tick svg { width: 36px; height: 36px; }
.q-done p { color: var(--ink-2); max-width: 42ch; }

/* Default page header (pages without a hero block) */
.page-header { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); background: var(--mist); margin-bottom: clamp(40px, 6vw, 72px); }
.page-header .wrap { display: grid; gap: 16px; }
.page-header h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.033em; max-width: 22ch; }
fieldset.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Area pages: town link grid */
.town-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.town-grid a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.town-grid a:hover { border-color: var(--ink); }
.town-grid svg { width: 24px; height: 24px; flex: none; color: var(--orange); }
.town-grid span { display: grid; font-size: .86rem; color: var(--ink-3); line-height: 1.35; }
.town-grid strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.area-entry:empty { display: none; }
