/* =========================================================
   Front page motion (v0.6.75)
   1. Journey scroll scene (patterns/journey-scroll.php)
   2. Scroll reveal + stat count-up helpers (front-motion.js)
   Default state is a static 4-step grid. front-motion.js adds
   .is-live only when JS runs and the visitor allows motion.
   ========================================================= */

.cc-journey {
	--cc-ink: #111;
	--cc-yellow: #FFC107;
	--cc-hh: 72px;
	--cc-road: 92px;
	background: #fff;
	position: relative;
}

/* ---------- head ---------- */
.cc-journey__head {
	width: 100%;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(28px, 4vh, 48px) var(--wp--preset--spacing--md, 24px) 16px;
}
.cc-journey__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 12px 0 18px;
	max-width: 22ch;
}
.cc-journey__progress { max-width: 720px; }
.cc-journey__bar {
	height: 6px;
	background: #ece8df;
	border-radius: 6px;
	overflow: hidden;
}
.cc-journey__fill {
	display: block;
	height: 100%;
	width: 100%;
	background: repeating-linear-gradient(90deg, var(--cc-yellow) 0 14px, var(--cc-ink) 14px 28px);
	transform-origin: left center;
	transform: scaleX(var(--cc-fill, 1));
}
.cc-journey__dots {
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8578;
}
.cc-journey__dots li { display: flex; align-items: center; gap: 6px; transition: color .3s; }
.cc-journey__dots span {
	width: 10px; height: 10px; border-radius: 50%;
	border: 2px solid currentColor; background: #fff;
	transition: background .3s, transform .3s;
}
.cc-journey__dots li.is-done { color: var(--cc-ink); }
.cc-journey__dots li.is-done span { background: var(--cc-yellow); border-color: var(--cc-ink); }
.cc-journey__dots li.is-active span { transform: scale(1.35); }

/* ---------- scene ---------- */
.cc-journey__stage { position: relative; }
.cc-journey__scene {
	position: relative;
	height: 360px;
	overflow: hidden;
	isolation: isolate;
	border-top: 4px solid var(--cc-ink);
	border-bottom: 4px solid var(--cc-ink);
}
.cc-journey__sky { position: absolute; inset: 0; z-index: 0; }
.cc-journey__sky--day  { background: linear-gradient(#8fd0f2, #d9f0fb 70%); }
.cc-journey__sky--gold { background: linear-gradient(#f6a96b, #ffe2a8 70%); opacity: 0; }
.cc-journey__sky--dusk { background: linear-gradient(#1f2a5a, #6c4f8f 65%, #f39a6b); opacity: 0; }
.cc-journey__stars {
	position: absolute; inset: 0 0 40% 0; z-index: 0; opacity: 0;
	background-image:
		radial-gradient(2px 2px at 12% 20%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 30% 42%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 48% 14%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 63% 34%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 77% 10%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 91% 38%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 22% 6%, #fff 50%, transparent 51%);
}
.cc-journey__sun {
	position: absolute; z-index: 1;
	top: 12%; left: 46%;
	width: 74px; height: 74px; border-radius: 50%;
	background: #ffd84d;
	box-shadow: 0 0 0 14px rgba(255, 216, 77, .25), 0 0 60px 20px rgba(255, 200, 60, .35);
	will-change: transform;
}

.cc-journey__layer {
	position: absolute; left: 0; z-index: 2;
	background-repeat: repeat-x;
	background-position: left bottom;
	will-change: transform;
}
.cc-journey__layer--clouds {
	top: 6%; height: 160px; width: calc(100% + 900px);
	background-size: 900px 160px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='160'%3E%3Cg fill='%23fff' opacity='.92'%3E%3Cellipse cx='110' cy='60' rx='60' ry='22'/%3E%3Cellipse cx='150' cy='46' rx='40' ry='26'/%3E%3Cellipse cx='86' cy='50' rx='30' ry='20'/%3E%3Cellipse cx='520' cy='100' rx='70' ry='20'/%3E%3Cellipse cx='560' cy='86' rx='42' ry='24'/%3E%3Cellipse cx='770' cy='40' rx='46' ry='16'/%3E%3Cellipse cx='796' cy='30' rx='28' ry='16'/%3E%3C/g%3E%3C/svg%3E");
}
.cc-journey__layer--city {
	bottom: calc(var(--cc-road) + 40px); height: 150px; width: calc(100% + 1200px);
	background-size: 1200px 150px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='150'%3E%3Cg fill='%23b8c4d1'%3E%3Crect x='20' y='60' width='60' height='90'/%3E%3Crect x='90' y='20' width='44' height='130'/%3E%3Crect x='140' y='80' width='70' height='70'/%3E%3Crect x='220' y='40' width='38' height='110'/%3E%3Crect x='300' y='96' width='90' height='54'/%3E%3Crect x='520' y='70' width='50' height='80'/%3E%3Crect x='578' y='30' width='40' height='120'/%3E%3Crect x='624' y='86' width='64' height='64'/%3E%3Crect x='860' y='54' width='56' height='96'/%3E%3Crect x='924' y='10' width='34' height='140'/%3E%3Crect x='964' y='76' width='80' height='74'/%3E%3C/g%3E%3Cg fill='%23d6dee6'%3E%3Crect x='100' y='30' width='8' height='8'/%3E%3Crect x='116' y='50' width='8' height='8'/%3E%3Crect x='586' y='44' width='8' height='8'/%3E%3Crect x='934' y='26' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E");
}
.cc-journey__layer--hills {
	bottom: calc(var(--cc-road) - 2px); height: 130px; width: calc(100% + 1000px);
	background-size: 1000px 130px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='130'%3E%3Cpath d='M0 70 Q125 10 250 60 T500 56 T750 50 T1000 70 V130 H0Z' fill='%2393c47d'/%3E%3Cpath d='M0 100 Q150 60 300 92 T600 88 T1000 100 V130 H0Z' fill='%2379b064'/%3E%3C/svg%3E");
}
/* night shade over the backdrop (not over landmarks or cab) */
.cc-journey__scene::after {
	content: ""; position: absolute; inset: 0; z-index: 3;
	background: #121a3d; opacity: var(--cc-night, 0); pointer-events: none;
	mix-blend-mode: multiply;
}

.cc-journey__world {
	position: absolute; left: 0; bottom: calc(var(--cc-road) - 6px); z-index: 4;
	width: 1px; height: 0;
	will-change: transform;
}
.cc-journey__mark {
	position: absolute; bottom: 0;
	height: clamp(120px, 20vh, 210px); width: auto;
	overflow: visible;
}
.cc-journey.is-night .cc-journey__window { fill: #ffd84d; transition: fill .4s; }
.cc-journey__heart { transform-box: fill-box; transform-origin: center; opacity: 0; }
.cc-journey.is-home .cc-journey__heart { animation: cc-heart 1.6s ease-in-out infinite; opacity: 1; }

.cc-journey__road {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
	height: var(--cc-road);
	background: #2b2b2b;
	border-top: 6px solid #6b6b6b;
	overflow: hidden;
}
.cc-journey__lines {
	position: absolute; left: 0; top: 50%; margin-top: -4px;
	height: 8px; width: calc(100% + 120px);
	background: repeating-linear-gradient(90deg, var(--cc-yellow) 0 64px, transparent 64px 120px);
	will-change: transform;
}

.cc-journey__cab {
	position: absolute; z-index: 6;
	left: 8%; bottom: 26px;
	width: clamp(180px, 24vw, 320px);
	will-change: transform;
}
.cc-journey__cab svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-journey__body { transform-box: view-box; transform-origin: 160px 130px; }
.cc-journey__ear { transform-box: fill-box; transform-origin: 100% 0; }
.cc-journey__tongue { transform-box: fill-box; transform-origin: 50% 0; }
.cc-journey__puff {
	position: absolute; left: -6px; bottom: 26%;
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(255, 255, 255, .85); opacity: 0;
}
.cc-journey.is-moving .cc-journey__body { animation: cc-bob .32s ease-in-out infinite alternate; }
.cc-journey.is-moving .cc-journey__ear { animation: cc-flap .22s ease-in-out infinite alternate; }
.cc-journey.is-moving .cc-journey__tongue { animation: cc-flap .3s ease-in-out infinite alternate; }
.cc-journey.is-moving .cc-journey__puff { animation: cc-puff .9s ease-out infinite; }
.cc-journey.is-moving .cc-journey__puff + .cc-journey__puff { animation-delay: .45s; }
.cc-journey:not(.is-moving) .cc-journey__tongue { animation: cc-pant .5s ease-in-out infinite alternate; }

@keyframes cc-bob   { to { transform: translateY(-3px) rotate(-.6deg); } }
@keyframes cc-flap  { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes cc-pant  { to { transform: scaleY(1.25); } }
@keyframes cc-puff  {
	0%   { opacity: .8; transform: translate(0, 0) scale(.5); }
	100% { opacity: 0;  transform: translate(-60px, -18px) scale(1.8); }
}
@keyframes cc-heart { 50% { transform: translateY(-8px) scale(1.15); } }

/* ---------- stop cards ---------- */
.cc-journey__stops {
	list-style: none; margin: 0; padding: 24px var(--wp--preset--spacing--md, 24px) 48px;
	max-width: 1200px; margin-inline: auto;
	display: grid; gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cc-journey__stop {
	align-self: start;
	background: #fff;
	border: 2px solid var(--cc-ink);
	box-shadow: 6px 6px 0 var(--cc-yellow);
	padding: 18px 20px 20px;
}
.cc-journey__num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800; font-size: 32px; line-height: 1;
}
.cc-journey__stop h3 { font-size: 19px; margin: 8px 0 6px; }
.cc-journey__stop p  { font-size: 15px; line-height: 1.5; margin: 0; color: #3f3c36; }
.cc-journey__cta {
	display: inline-block; margin-top: 14px;
	background: var(--cc-ink); color: var(--cc-yellow);
	font-weight: 700; text-decoration: none;
	padding: 10px 16px; border: 2px solid var(--cc-ink);
	transition: background .2s, color .2s;
}
.cc-journey__cta:hover, .cc-journey__cta:focus-visible { background: var(--cc-yellow); color: var(--cc-ink); }

/* ---------- live (animated) mode ---------- */
.cc-journey.is-live .cc-journey__track { height: 420vh; }
.cc-journey.is-live .cc-journey__sticky {
	position: sticky; top: var(--cc-hh);
	height: calc(100vh - var(--cc-hh));
	height: calc(100svh - var(--cc-hh));
	display: flex; flex-direction: column; overflow: hidden;
}
.cc-journey.is-live .cc-journey__stage { flex: 1; min-height: 0; }
.cc-journey.is-live .cc-journey__scene { height: 100%; }
.cc-journey.is-live .cc-journey__stops {
	position: absolute; z-index: 8;
	top: 28px; right: max(24px, calc((100vw - 1200px) / 2));
	width: min(380px, 40vw);
	padding: 0; margin: 0;
	grid-template-columns: 1fr;
}
.cc-journey.is-live .cc-journey__stop {
	grid-area: 1 / 1;
	opacity: 0; transform: translateY(14px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
}
.cc-journey.is-live .cc-journey__stop.is-active {
	opacity: 1; transform: none; pointer-events: auto;
}

@media (max-width: 900px) {
	.cc-journey__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.cc-journey { --cc-road: 64px; }
	.cc-journey__stops { grid-template-columns: 1fr; }
	.cc-journey__cab { left: 3%; bottom: 16px; }
	.cc-journey__sun { width: 52px; height: 52px; left: 76%; }
	.cc-journey__dots { font-size: 9.5px; }
	.cc-journey.is-live .cc-journey__track { height: 380vh; }
	.cc-journey.is-live .cc-journey__stage { display: flex; flex-direction: column; }
	.cc-journey.is-live .cc-journey__scene { flex: 1; height: auto; min-height: 0; }
	.cc-journey.is-live .cc-journey__stops {
		position: relative; top: auto; right: auto; width: auto;
		padding: 16px 20px 20px;
	}
	.cc-journey__stop { padding: 14px 16px; box-shadow: 4px 4px 0 var(--cc-yellow); }
	.cc-journey__stop p { font-size: 14px; }
	.cc-journey__num { font-size: 24px; }
	/* the scene has its own CTA; keep the floating pill off the cards */
	body.cc-journey-pinned .cc-sticky-cta { opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .25s, transform .25s; }
}

@media (prefers-reduced-motion: reduce) {
	.cc-journey *, .cc-journey *::before, .cc-journey *::after { animation: none !important; transition: none !important; }
}

/* Static fallback (no JS or reduced motion): one landmark, no progress bar. */
.cc-journey:not(.is-live) .cc-journey__progress { display: none; }
.cc-journey:not(.is-live) .cc-journey__mark { display: none; }
.cc-journey:not(.is-live) .cc-journey__mark[data-mark="3"] { display: block; left: 58vw; }
.cc-journey:not(.is-live) .cc-journey__window { fill: #ffd84d; }

/* =========================================================
   Pothole Pup mini game (patterns/pet-taxi-game.php, v0.6.76)
   ========================================================= */
.cc-game { background: #f7f5f0; padding: clamp(40px, 7vw, 88px) 0; }
.cc-game__inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--wp--preset--spacing--md, 24px); }
.cc-game__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 8px; }
.cc-game__sub { margin: 0 0 22px; color: #3f3c36; max-width: 60ch; }
.cc-game__box {
	position: relative;
	border: 3px solid #111;
	box-shadow: 8px 8px 0 #FFC107;
	background: #8fd0f2;
	overflow: hidden;
	touch-action: manipulation;
	user-select: none; -webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	outline: none;
}
.cc-game__box:focus-visible { box-shadow: 8px 8px 0 #FFC107, 0 0 0 4px #111; }
.cc-game__canvas { display: block; width: 100%; height: 300px; }
@media (min-width: 1001px) { .cc-game__canvas { height: 340px; } }
.cc-game__hud {
	position: absolute; top: 10px; right: 12px;
	display: flex; gap: 16px;
	font-family: var(--wp--preset--font-family--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
	background: rgba(255, 255, 255, .85); border: 2px solid #111; padding: 4px 10px;
}
.cc-game__hud strong { font-size: 15px; }
.cc-game__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: rgba(17, 17, 17, .35);
	text-align: center; padding: 20px;
}
.cc-game__overlay[hidden] { display: none; }
.cc-game__msg {
	margin: 0; background: #fff; border: 2px solid #111; padding: 10px 16px;
	font-weight: 600; max-width: 34ch;
}
.cc-game__btn {
	font: 700 17px/1 var(--wp--preset--font-family--body);
	background: #FFC107; color: #111; border: 3px solid #111;
	padding: 14px 22px; cursor: pointer; box-shadow: 4px 4px 0 #111;
	transition: transform .12s, box-shadow .12s;
}
.cc-game__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #111; }
.cc-game__btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #111; }
.cc-game__quote {
	background: #111; color: #FFC107; font-weight: 700; text-decoration: none; padding: 9px 14px; border: 2px solid #111;
}
.cc-game__quote:hover { background: #FFC107; color: #111; }
.cc-game__note { font-size: 13px; color: #6b665c; margin: 18px 0 0; }
@media (max-width: 600px) {
	.cc-game__canvas { height: 240px; }
	.cc-game__hud { font-size: 11px; gap: 10px; top: 6px; right: 6px; }
	.cc-game__msg { font-size: 14px; }
	.cc-game__overlay { padding-top: 48px; gap: 10px; }
}

/* =========================================================
   Hero "live route" (v0.6.78)
   ========================================================= */
/* rolling checker stripe under the header */
.cc-checker--roll { animation: cc-roll 1.6s linear infinite; }
@keyframes cc-roll {
	to { background-position: 14px 0, 21px 0, 21px -7px, 14px 7px; }
}

/* hand-drawn underline under "vetted operators" */
.cc-hl__line path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: cc-draw 1.1s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes cc-draw { to { stroke-dashoffset: 0; } }

/* ambient route layer (built by JS, desktop only) */
.cc-hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.cc-hero-fx__base { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.cc-hero-fx__trail { fill: none; stroke: #FFC107; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 193, 7, .55)); }
.cc-hero-fx__pin { fill: #111; stroke: #FFC107; stroke-width: 3; }
.cc-hero-fx__pulse { fill: none; stroke: #FFC107; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cc-hero-fx.is-arrived .cc-hero-fx__pulse { animation: cc-pulse 1.2s ease-out 2; }
@keyframes cc-pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
.cc-hero-fx__label { font: 700 11px/1 var(--wp--preset--font-family--mono, monospace); letter-spacing: .08em; fill: rgba(255, 255, 255, .78); text-transform: uppercase; }
.cc-hero-fx__label tspan.z { fill: #FFC107; }
.cc-hero-fx__cab { transition: opacity .4s; }
.cc-hero-fx__cab .ear { transform-box: fill-box; transform-origin: 100% 0; animation: cc-flap .22s ease-in-out infinite alternate; }

/* route strip inside the quote form */
.cc-route__cab { transition: transform 1.5s cubic-bezier(.55, 0, .2, 1); transform: translateX(var(--cc-cab-x, 0px)); }
.cc-route__cab svg { animation: cc-idle .5s ease-in-out infinite alternate; }
@keyframes cc-idle { to { transform: translateY(-1.5px); } }
.cc-route__pin { transition: background .3s, transform .3s; }
.cc-route.has-a .cc-route__pin--a,
.cc-route.has-b .cc-route__pin--b { background: #FFC107; transform: scale(1.15); }
.cc-route.is-ready .cc-route__line { border-top-style: solid; border-top-color: #FFC107; }
.cc-route.is-ready .cc-route__status { color: #111; font-weight: 600; }
.cc-hero-quote-form.is-ready .cc-hero-quote-form__cta { animation: cc-cta 1.6s ease-in-out 2; }
@keyframes cc-cta {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
	50% { box-shadow: 0 0 0 6px rgba(255, 193, 7, .55); }
}

@media (prefers-reduced-motion: reduce) {
	.cc-checker--roll, .cc-route__cab svg, .cc-hero-fx__cab .ear, .cc-hero-quote-form.is-ready .cc-hero-quote-form__cta { animation: none !important; }
	.cc-hl__line path { animation: none; stroke-dashoffset: 0; }
	.cc-route__cab { transition: none; }
}
