/*
 * Link underlines from the mockup. Elementor's Site Settings can only underline every link
 * (buttons and menus included), so this is limited to links inside text and list widgets.
 */
.elementor-widget-text-editor a,
.elementor-widget-icon-list a .elementor-icon-list-text {
	text-decoration: underline;
}

.zps-site-footer a,
.zps-site-footer a .elementor-icon-list-text {
	text-decoration: none;
}

.zps-site-footer a:hover,
.zps-site-footer a:hover .elementor-icon-list-text {
	text-decoration: underline;
}

/*
 * ---- Floating header: no gap above the bar while scrolling ----
 * The Site header template has 24px space above the white bar (12px on mobile). Sticking the
 * header that far above the screen edge keeps the space at the top of the page but lets the bar sit
 * flush against the top once scrolled. "body" outranks header.css, which sets top: 0.
 * Admin bar (logged in): 32px high, 46px at 782px and below, and not fixed at 600px and below.
 */
body .zps-site-header { top: -24px; }
body.admin-bar .zps-site-header { top: 8px; }

@media (max-width: 782px) {
	body.admin-bar .zps-site-header { top: 22px; }
}

@media (max-width: 767px) {
	body .zps-site-header { top: -12px; }
	body.admin-bar .zps-site-header { top: 34px; }
}

@media (max-width: 600px) {
	body.admin-bar .zps-site-header { top: -12px; }
}

/*
 * ---- Stacked cards on scroll (Home "Four ways") ----
 * Free Elementor has no sticky option, so cards with the CSS classes zp-stack-card + zp-stack-1..4
 * (Advanced > CSS Classes) stick below the floating header and stack as the page scrolls.
 * Desktop only: on tablet and mobile the cards are too tall, so they simply sit one under another.
 */
@media (min-width: 1025px) {
	/* Elementor containers use position: var(--position), so set the variable. */
	.e-con.zp-stack-card { --position: sticky; position: sticky; }
	.zp-stack-1 { top: 120px; }
	.zp-stack-2 { top: 240px; }
	.zp-stack-3 { top: 360px; }
	.zp-stack-4 { top: 480px; }
}

/*
 * ---- Scroll timeline (Home "How we get you live") ----
 * assets/timeline.js adds zp-timeline--js and the step states (is-done, is-current, is-next, is-later)
 * and sets --zp-progress. Without JavaScript every step simply shows in full.
 */
/* ::after, because Elementor containers use ::before for their background overlay. */
.e-con.zp-timeline--js::after {
	content: '';
	position: absolute;
	left: -3px; /* over the container's 3px left border */
	top: var(--zp-line-start, 0px);
	width: 3px;
	height: var(--zp-progress, 0px);
	border-radius: 3px;
	background: linear-gradient(to bottom, rgba(242, 154, 31, 0), #F29A1F 70%);
	transition: height 0.15s linear;
}

/* Step content (not the marker, which stays on the line) fades and shifts until it is reached. */
.zp-timeline--js .zp-step > .elementor-element:not(.zp-marker) {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.zp-timeline--js .zp-step.is-next > .elementor-element:not(.zp-marker) {
	opacity: 0.55;
	transform: translateX(32px);
}

.zp-timeline--js .zp-step.is-later > .elementor-element:not(.zp-marker) {
	opacity: 0.3;
	transform: translateX(64px);
}

/* Markers: empty ring, then an orange dot (current), then a blue check in an orange ring (done). */
.zp-timeline--js .zp-marker .elementor-icon {
	position: relative;
	border-color: #C9DCF5 !important;
	background: #fff !important;
	color: transparent !important;
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.zp-timeline--js .zp-marker .elementor-icon svg {
	fill: transparent !important;
}

.zp-timeline--js .zp-step.is-current .zp-marker .elementor-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #F29A1F;
}

.zp-timeline--js .zp-step.is-done .zp-marker .elementor-icon {
	border-color: #F29A1F !important;
	background: #1A9BDA !important;
	box-shadow: inset 0 0 0 3px #fff;
	color: #fff !important;
}

.zp-timeline--js .zp-step.is-done .zp-marker .elementor-icon svg {
	fill: #fff !important;
}

@media (max-width: 767px) {
	.zp-timeline--js .zp-step.is-next > .elementor-element:not(.zp-marker) { transform: translateX(12px); }
	.zp-timeline--js .zp-step.is-later > .elementor-element:not(.zp-marker) { transform: translateX(24px); }
}

@media (prefers-reduced-motion: reduce) {
	.e-con.zp-timeline--js::after,
	.zp-timeline--js .zp-step > .elementor-element:not(.zp-marker),
	.zp-timeline--js .zp-marker .elementor-icon { transition: none; }
}

/* 1.5.3: mobile and readability fixes from the December 2026 review */
/* Long links (web addresses in legal text) wrap instead of running off narrow screens. */
.elementor-widget-text-editor a,
.zps-post-content a { overflow-wrap: anywhere; }

@media (max-width: 767px) {
	/* iPhones zoom into any form field with text under 16px; keep fields at 16px on phones. */
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
	select,
	textarea { font-size: 16px !important; }

	/* Bigger tap areas for link lists (footer columns) and the post "Back to Blogs" link. */
	.elementor-widget-icon-list .elementor-icon-list-item > a { padding-top: 6px; padding-bottom: 6px; }
	.zps-post-top .elementor-button { padding-top: 12px !important; padding-bottom: 12px !important; }
}
