/* Colmech DriveFix — public website (home, cars, updates, content pages). */

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(3, 17, 34, 0.16);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.97); }
  .glass-dark { background: #14294a; }
  .site-header { background: #fff !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.site-header .brand { display: flex; align-items: center; text-decoration: none; }
.site-header .brand-lockup { height: 48px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: color .15s, background-color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--overall); background: rgba(12, 35, 64, 0.06); }
.header-cta { display: flex; gap: 8px; }
.site-menu-btn { display: none; margin-left: auto; }

/* ---------- Hero: a night road ---------- */
.hero { position: relative; background: var(--overall-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(700px 420px at 8% 0%, rgba(47, 111, 214, .28), transparent 70%), radial-gradient(520px 360px at 62% 78%, rgba(212, 1, 4, .22), transparent 70%); }
.hero-inner { min-height: clamp(440px, 54vh, 560px); display: flex; align-items: center; padding: 64px 0 8px; }
.hero-copy { max-width: 620px; }
.hero h1 { display: grid; gap: 14px; margin: 0; }
.hero .h1-q { font-size: clamp(60px, 8.4vw, 118px); line-height: .9; letter-spacing: -.01em; }
.hero .h1-a { font-family: var(--font); font-weight: 600; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.12; color: rgba(255,255,255,.94); max-width: 18ch; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.82); max-width: 46ch; margin: 22px 0 28px; }
.hero .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-points span { display: inline-flex; gap: 8px; align-items: center; }
.hero-points .icon { color: #fff; opacity: .8; }

/* The photo bleeds off the right edge and melts into the night on its left and bottom. */
.hero-photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 50%; display: block; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 48%);
  animation: photo-in 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,17,34,0) 55%, var(--overall-deep) 97%); }
@keyframes photo-in { from { opacity: 0; transform: scale(1.07); } }

/* Hero entrance: one orchestrated sequence on load. */
.hero [data-enter] { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Road scene (the hero animation) ----------
   One 12 s story: the car drives in and breaks down (hazards, smoke), a pin drops,
   the Colmech van arrives, the car is fixed and paid for, then drives away. */
.road { position: relative; margin-top: -8px; }
.road-scene { display: block; width: 100%; height: clamp(130px, 15vw, 216px); --rs: 12s; --car-stop: 500px; --van-stop: 270px; --pin-x: 590px; }
.road-scene .rs-pin-pos { transform: translate(var(--pin-x), 92px); }
.road-scene text { font-family: var(--font); font-weight: 600; font-size: 15px; fill: var(--ink); }
.road-scene .rs-chip > g { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.road-scene .rs-wheel, .road-scene .rs-puff, .road-scene .rs-ripple, .road-scene .rs-check, .road-scene .rs-body, .road-scene .rs-pin, .road-scene .rs-chip > g { transform-box: fill-box; transform-origin: center; }
.road-scene .rs-body { transform-origin: 50% 100%; }
.road-scene .rs-wrench > g { transform-box: fill-box; transform-origin: 30% 75%; }
.road-scene .rs-puff { fill: #cfd6e0; }

/* Resting picture (used as-is when motion is reduced): both vehicles parked, help on the way. */
.rs-car { transform: translateX(var(--car-stop)); }
.rs-van { transform: translateX(var(--van-stop)); }
.rs-beam, .rs-hazard, .rs-puff, .rs-ripple, .rs-wrench, .rs-check, .rs-chip2 { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .rs-car { animation: rs-car var(--rs) .9s infinite both; }
  .rs-cw { animation: rs-car-wheel var(--rs) .9s infinite both; }
  .rs-van { animation: rs-van var(--rs) .9s infinite both; }
  .rs-vw { animation: rs-van-wheel var(--rs) .9s infinite both; }
  .rs-body { animation: rs-settle var(--rs) .9s infinite both; }
  .rs-beam { animation: rs-beam var(--rs) .9s infinite both; }
  .rs-lamp { animation: rs-lamp var(--rs) .9s infinite both; }
  .rs-hazard { animation: rs-hazard var(--rs) .9s infinite both; }
  .rs-puff { animation: rs-puff var(--rs) .9s infinite both; }
  .rs-puff.p2 { animation-delay: 1.25s; }
  .rs-puff.p3 { animation-delay: 1.6s; }
  .rs-pin { animation: rs-pin var(--rs) .9s infinite both; }
  .rs-ripple { animation: rs-ripple var(--rs) .9s infinite both; }
  .rs-ripple.r2 { animation-delay: 2.1s; }
  .rs-chip1 > g { animation: rs-chip1 var(--rs) .9s infinite both; }
  .rs-chip1 { opacity: 1; }
  .rs-chip2 { opacity: 1; }
  .rs-chip2 > g { animation: rs-chip2 var(--rs) .9s infinite both; }
  .rs-wrench { opacity: 1; }
  .rs-wrench > g { animation: rs-wrench var(--rs) .9s infinite both; }
  .rs-check { opacity: 1; animation: rs-check var(--rs) .9s infinite both; }
  .rs-beacon { animation: rs-beacon var(--rs) .9s infinite both; }
  .road-scene.is-paused * { animation-play-state: paused !important; }
}
@keyframes rs-car {
  0% { transform: translateX(-240px); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  16% { transform: translateX(var(--car-stop)); }
  70% { transform: translateX(var(--car-stop)); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
  84%, 100% { transform: translateX(1320px); }
}
@keyframes rs-car-wheel {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  16% { transform: rotate(3030deg); }
  70% { transform: rotate(3030deg); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
  84%, 100% { transform: rotate(6380deg); }
}
@keyframes rs-van {
  0% { transform: translateX(-260px); }
  24% { transform: translateX(-260px); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  40% { transform: translateX(var(--van-stop)); }
  74% { transform: translateX(var(--van-stop)); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
  90%, 100% { transform: translateX(1340px); }
}
@keyframes rs-van-wheel {
  0% { transform: rotate(0deg); }
  24% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  40% { transform: rotate(2335deg); }
  74% { transform: rotate(2335deg); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
  90%, 100% { transform: rotate(7050deg); }
}
@keyframes rs-settle { 0%, 15.5%, 19%, 100% { transform: none; } 16.6% { transform: translateY(2px) rotate(.8deg); } 17.6% { transform: translateY(-1px) rotate(-.3deg); } }
@keyframes rs-beam { 0%, 15% { opacity: .9; } 16.5%, 66% { opacity: 0; } 69%, 84% { opacity: .9; } 86%, 100% { opacity: 0; } }
@keyframes rs-lamp { 0%, 15% { opacity: 1; } 16.5%, 66% { opacity: .3; } 69%, 100% { opacity: 1; } }
@keyframes rs-hazard {
  0%, 17%, 22%, 25%, 30%, 33%, 38%, 41%, 46%, 49%, 54%, 100% { opacity: 0; }
  18%, 21%, 26%, 29%, 34%, 37%, 42%, 45%, 50%, 53% { opacity: 1; }
}
@keyframes rs-puff { 0%, 17% { opacity: 0; transform: translateY(0) scale(.4); } 20% { opacity: .75; } 34%, 100% { opacity: 0; transform: translateY(-46px) scale(1.6); } }
@keyframes rs-pin { 0%, 19% { opacity: 0; transform: translateY(-40px); } 22% { opacity: 1; transform: translateY(4px); } 24% { transform: translateY(-6px); } 26%, 60% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: none; } }
@keyframes rs-ripple { 0%, 26% { opacity: 0; transform: scale(.4); } 27% { opacity: .8; } 37%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes rs-chip1 { 0%, 21% { opacity: 0; transform: translateY(8px); } 24%, 44% { opacity: 1; transform: none; } 47%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes rs-chip2 { 0%, 46% { opacity: 0; transform: translateY(8px); } 49%, 66% { opacity: 1; transform: none; } 69%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes rs-wrench { 0%, 41% { opacity: 0; transform: rotate(0); } 43% { opacity: 1; } 45%, 51% { transform: rotate(-28deg); } 48%, 54% { transform: rotate(14deg); } 56% { opacity: 1; transform: rotate(0); } 58%, 100% { opacity: 0; } }
@keyframes rs-check { 0%, 57% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 62%, 67% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1); } }
@keyframes rs-beacon { 0%, 24%, 28%, 32%, 36%, 40%, 100% { opacity: .3; } 26%, 30%, 34%, 38% { opacity: 1; } }

/* The job card: the product, shown as it plays out on a customer's phone. */
.jobcard { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 440px; justify-self: end; width: 100%;
  box-shadow: 0 30px 60px rgba(3, 17, 34, .14), 0 2px 0 rgba(3, 17, 34, .04); rotate: 1.2deg; }
.jobcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.jobcard .job-ref { font-size: 22px; }
.jobcard-svc { font-family: var(--font-cond); font-weight: 700; font-size: 24px; margin: 10px 0 2px; }
.jobcard-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; }
.jobcard-steps li { position: relative; padding: 0 0 12px 28px; color: var(--muted); font-size: 15px; transition: color .3s; }
.jobcard-steps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: background-color .3s, border-color .3s; }
.jobcard-steps li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--line-strong); transition: background-color .3s; }
.jobcard-steps li:last-child::after { display: none; }
.jobcard-steps li.done { color: var(--ink-2); }
.jobcard-steps li.done::before { background: var(--overall); border-color: var(--overall); }
.jobcard-steps li.done::after { background: var(--overall); }
.jobcard-steps li.now { color: var(--ink); font-weight: 600; }
.jobcard-steps li.now::before { background: var(--signal); border-color: var(--signal); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,1,4,.45); } 50% { box-shadow: 0 0 0 7px rgba(212,1,4,0); } }
.jobcard [data-chip] { transition: opacity .25s; }
.jobcard-mech { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid rgba(12,35,64,.12); }
.jobcard-mech .avatar { background: var(--overall); color: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }

/* Quick actions: glass tiles sitting on the hero's edge. */
.quick { position: relative; z-index: 2; padding-top: 26px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease; }
.quick a:hover { transform: translateY(-3px); box-shadow: 0 24px 44px rgba(3,17,34,.2); color: var(--ink); }
.quick .icon { width: 30px; height: 30px; color: var(--overall); flex: none; }
.quick a.urgent .icon { color: var(--signal); }
.quick strong { display: block; font-family: var(--font-cond); font-size: 20px; line-height: 1.1; }
.quick span { font-size: 14px; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .lede { margin-bottom: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin-bottom: 32px; }

/* Scroll reveal (added by site-motion.js only when motion is allowed). */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
.steps li > * { grid-column: 2; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; font-family: var(--font-cond); font-weight: 700; font-size: 26px; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--overall); color: var(--plate); }
.steps h3 { font-size: 21px; margin: 2px 0 4px; }
.steps p { color: var(--ink-2); margin: 0; }

.menu-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.menu-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.menu-item .icon { width: 26px; height: 26px; color: var(--overall); margin-top: 2px; }
.menu-item h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.menu-item p { color: var(--ink-2); margin: 4px 0 0; font-size: 15px; }
.menu-item .tag { font-family: var(--font); }

/* ---------- Towing ---------- */
.towing { position: relative; background: var(--overall-deep); color: #fff; overflow: hidden; isolation: isolate; }
.towing::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(600px 300px at 85% 20%, rgba(212,1,4,.55), transparent 70%), radial-gradient(500px 300px at 10% 90%, rgba(47,111,214,.45), transparent 70%); }
.towing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.towing h2 { color: #fff; }
.towing .lede { color: rgba(255,255,255,.86); }
.tow-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tow-card { border-radius: 14px; padding: 18px; }
.tow-card .icon { width: 26px; height: 26px; margin-bottom: 8px; color: #fff; }
.tow-card h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.tow-card p { color: rgba(255,255,255,.8); margin: 0; font-size: 15px; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.car-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform .22s ease, box-shadow .22s ease; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(3,17,34,.14); color: var(--ink); }
.car-photo { position: relative; aspect-ratio: 4 / 3; background: var(--grey-tint); overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-photo img { transform: scale(1.05); }
.car-price { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.car-flags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; justify-content: space-between; }
.car-flag { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(3,17,34,.72); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.car-flag.ok { background: rgba(30,122,70,.88); }
.car-flag.hold { background: rgba(168,93,0,.9); }
.car-flag.sold { background: rgba(212,1,4,.92); }
.car-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.car-title { font-family: var(--font-cond); font-weight: 700; font-size: 21px; line-height: 1.15; }
.car-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 14px; }
.car-where { color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.car-where .icon { width: 16px; height: 16px; }
.empty-cars { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 28px; text-align: center; color: var(--ink-2); }

/* Cars showcase: the photo sets the standard, the copy says what Colmech does. */
.showcase { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-bottom: 22px; border-radius: 18px; overflow: hidden;
  background: var(--overall); color: #fff; box-shadow: 0 30px 60px rgba(3, 17, 34, .16); }
.showcase-photo { display: block; min-height: 100%; }
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.showcase-copy { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.showcase-copy h3 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; }
.showcase-copy .small { color: rgba(255,255,255,.72); margin: 0; }
.showcase .btn-ghost { align-self: flex-start; background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.showcase .btn-ghost:hover { border-color: #fff; color: #fff; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); }
.ticks .icon { color: var(--plate); flex: none; margin-top: 2px; }

/* Spare parts: the fitting photo is the first tile, so the section works even before parts are listed. */
.fit-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 340px; background: var(--overall-deep); color: #fff; text-decoration: none; isolation: isolate; }
.fit-tile picture, .fit-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fit-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,17,34,0) 30%, rgba(3,17,34,.92) 78%); }
.fit-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; gap: 6px; }
.fit-copy strong { font-family: var(--font-cond); font-size: 24px; line-height: 1.05; }
.fit-copy > span:not(.btn) { font-size: 15px; color: rgba(255,255,255,.85); }
.fit-copy .btn { justify-self: start; margin-top: 6px; }
.fit-tile:hover { color: #fff; }
.fit-tile:hover img { transform: scale(1.04); }
.fit-tile img { transition: transform .5s ease; }
.parts-empty { display: grid; align-content: center; gap: 10px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-2); }
.parts-empty h3 { font-size: 22px; color: var(--ink); }

/* Filters on the cars page */
.filters { position: sticky; top: 72px; z-index: 20; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; padding: 12px; border-radius: 14px; margin-bottom: 20px; }
.filters .input, .filters .select { min-height: 42px; background-color: rgba(255,255,255,.9); }

/* Car detail */
.car-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--grey-tint); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; animation: fade .3s ease; }
@keyframes fade { from { opacity: .4; } }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--grey-tint); }
.thumbs button[aria-current="true"] { border-color: var(--signal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.car-side .panel { border-radius: 14px; }
.big-price { font-size: 34px; font-weight: 700; line-height: 1.1; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.spec-grid div { padding: 12px; border-radius: 10px; background: var(--paper); }
.spec-grid dt { font-size: 13px; color: var(--muted); }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 4px 12px; border-radius: 999px; background: var(--overall-tint); color: var(--overall); font-size: 14px; font-weight: 500; }

/* ---------- Updates ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(3,17,34,.12); color: var(--ink); }
.post-cover { aspect-ratio: 16 / 9; background: var(--overall-tint); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-body { padding: 16px; display: grid; gap: 6px; }
.post-body h3 { font-size: 21px; }
.post-body p { color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { font-size: 14px; color: var(--muted); }
.post-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.post-photos a { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; display: block; background: var(--grey-tint); }
.post-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bands, FAQ, contact, footer ---------- */
.band { background: var(--overall); color: #fff; }
.band-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.band-photo { display: block; }
.band-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.band h3 { color: #fff; margin: 22px 0 10px; }
.band h2 { color: #fff; }
.band p, .band li { color: rgba(255,255,255,.88); }
.band ul { padding-left: 20px; margin: 0 0 24px; }
.band li { margin-bottom: 8px; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--signal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--ink-2); padding-top: 8px; }

.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.contact-list .icon { color: var(--overall); }

/* Sign-off: the slogan, then the two ways to reach Colmech. On every public page. */
.signoff { background: var(--signal); color: #fff; padding: 40px 0; position: relative; overflow: hidden; isolation: isolate; }
.signoff::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 84px) 0 calc(100% - 22px) / 100% 4px no-repeat; }
.signoff .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.signoff-line { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: .95; letter-spacing: -.005em; max-width: 14ch; }
.signoff .btn-primary { background: #fff; color: var(--signal); border-color: #fff; }
.signoff .btn-primary:hover { background: var(--paper); color: var(--signal-deep); }
.signoff .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.signoff .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }

.site-footer { background: var(--overall-deep); color: rgba(255,255,255,.78); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr) 1.3fr; gap: 32px; align-items: start; }
.site-footer h2 { font-family: var(--font-cond); font-size: 18px; color: #fff; margin-bottom: 12px; letter-spacing: .01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand p { margin: 14px 0; font-size: 14px; }
.footer-logo { width: 132px; height: auto; background: #fff; border-radius: 16px; padding: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; }
.socials a:hover { text-decoration: none; border-color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: rgba(255,255,255,.7); }
.footer-signin { margin-top: 16px; background: transparent; color: #fff !important; border-color: rgba(255,255,255,.4); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.62); }
.footer-bottom > span:last-child { display: flex; gap: 18px; }

/* Floating WhatsApp button. The page ends with enough space below the footer that it never sits on top of text,
   and it steps aside while someone is typing in a form. */
.wa-float { position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 28px; background: #1c8f4a; color: #fff;
  font-weight: 600; text-decoration: none; box-shadow: 0 12px 28px rgba(3, 17, 34, .28), 0 2px 6px rgba(3, 17, 34, .18);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.wa-float:hover { background: #167a3e; color: #fff; transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #1c8f4a; }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.site-footer { padding-bottom: 104px; }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--overall); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Service pages ---------- */
.svc-hero { background: var(--overall-deep); color: #fff; padding: 44px 0 56px; position: relative; overflow: hidden; isolation: isolate; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 90% 0%, rgba(212,1,4,.32), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(47,111,214,.25), transparent 70%); }
.svc-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: .95; max-width: 16ch; }
.svc-hero .crumbs, .svc-hero .crumbs a { color: rgba(255,255,255,.75); }
.svc-hero .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.5); }
.svc-hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 18px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list .icon { color: var(--good); width: 22px; height: 22px; flex: none; margin-top: 3px; }
.how-panel { border-radius: 16px; }
.how-panel h2 { margin-bottom: 16px; }
.how-panel .steps li::before { width: 44px; height: 44px; font-size: 22px; }
.how-panel .steps li { grid-template-columns: 44px 1fr; }
.svc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-link { display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.svc-link:hover { border-color: var(--overall); color: var(--ink); transform: translateY(-2px); }
.svc-link .icon { color: var(--signal); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(3,17,34,.12); border-color: var(--overall); color: var(--ink); }
.svc-card .icon { width: 34px; height: 34px; color: var(--signal); }
.svc-card h2 { font-size: 26px; }
.svc-card p { color: var(--ink-2); margin: 0; }
.svc-more { font-weight: 600; color: var(--overall); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms and documents ---------- */
.form-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.doc-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.doc-preview { display: grid; place-items: center; background: var(--grey-tint); padding: 18px; border-bottom: 1px solid var(--line); height: 260px; overflow: hidden; }
.doc-preview img { max-height: 224px; max-width: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 24px rgba(3,17,34,.18); border-radius: 2px; background: #fff; transition: transform .25s ease; }
.doc-preview:hover img { transform: scale(1.03); }
.doc-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.doc-body h2 { font-size: 22px; }
.doc-body p { margin: 0; color: var(--ink-2); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.page-title { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.crumbs { display: flex; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.skeleton { background: linear-gradient(90deg, var(--grey-tint) 25%, #f6f8fa 50%, var(--grey-tint) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
  .footer-brand .socials { grid-column: 2; }
}
@media (max-width: 960px) {
  .svc-cards { grid-template-columns: 1fr 1fr; }
  .band-grid, .split, .towing .wrap, .car-detail, .how-grid, .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase { gap: 0; }
  .jobcard { justify-self: start; rotate: none; }
  .hero-inner { min-height: 0; padding: 40px 0 0; }
  .hero-photo { position: relative; width: 100%; height: clamp(320px, 86vw, 460px); margin-top: 6px; }
  .hero-photo img { object-position: 50% 58%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 70%, transparent 100%); }
  .hero-photo::after { display: none; }
  .road { margin-top: calc(-1 * clamp(130px, 15vw, 216px) + 10px); }
  .band-photo { max-width: 520px; }
  .menu-board { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filters .search { grid-column: 1 / -1; }
  .car-side { position: static; }
}
@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 10px 20px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; animation: enter .2s ease both; }
  .site-menu-btn { display: inline-grid; }
  .header-cta { margin-left: auto; }
  .site-menu-btn { margin-left: 0; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-brand .socials { grid-column: 1; }
  .footer-contact { grid-column: 1 / -1; }
  .svc-cards { grid-template-columns: 1fr; }
  .wa-float { height: 58px; width: 58px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .signoff { padding: 32px 0; }
  .header-cta .btn-ghost { display: none; }
  .site-header .brand-lockup { height: 38px; }
  .hero .h1-q { font-size: clamp(52px, 16vw, 72px); }
  /* Phones: a taller road and both vehicles parked closer together, so they stay in view. */
  .road-scene { height: 170px; --car-stop: 614px; --van-stop: 405px; --pin-x: 704px; }
  .road { margin-top: -160px; }
  .hero-sub { font-size: 17px; }
  .showcase-copy { padding: 22px; }
  .section { padding: 52px 0; }
  .tow-cards { grid-template-columns: 1fr; }
  .quick-grid { gap: 10px; }
  .quick a { padding: 14px; gap: 10px; }
  .quick strong { font-size: 17px; }
  .quick span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero [data-enter], .hero-photo img { animation: none; }
}
