/*!
 * Sentio for Elementor - count-up widget styles
 * Extracted 2026-04-20 during the CSS cross-contamination rescue.
 * Previously this block lived in `info-box.css:311-560` (origin unknown —
 * possibly a Batch 8 co-location during the info-box extraction). count-up
 * is its own widget with `.sentio-cu*` prefix and `sentio-count-up` Elementor
 * slug; info-box has zero `.sentio-cu*` references.
 *
 * Pre-rescue defect: count-up.php returned `[]` from `get_style_depends()`
 * with a misleading comment ("No per-widget CSS file — all styling via
 * Elementor control selectors"). The widget actually has ~250 lines of
 * static CSS (layout variants, icon badges, accent borders, responsive
 * behavior). It rendered correctly only when info-box was also on the page
 * (piggybacking on info-box.css). Same latent-defect pattern as pre-rescue
 * facebook-embed.
 *
 * The original @media (max-width: 767px) block at the end of this section
 * was missing its closing `}` in info-box.css (pre-existing syntax defect).
 * Properly closed in this extraction. See
 * `_audits/ports/css-contamination-rescue.md`.
 */

/* ==============================================
   Count Up Widget (.sentio-cu)
   ============================================== */

/* ─── Base ─── */
.sentio-cu {
	position: relative;
	overflow: hidden;
	--sentio-cu-accent-color: #6366f1;
	--sentio-cu-accent-width: 4px;
	transition-property: background-color, background, border-color, box-shadow;
	transition-timing-function: ease;
}

/* ─── Global Link Overlay ─── */
.sentio-cu__overlay-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	text-decoration: none;
}

/* ─── Body (flex container) ─── */
.sentio-cu__body {
	position: relative;
	display: flex;
	z-index: 1;
}

/* ─── Layout: Top (stacked, centered) ─── */
/* Source order becomes visual order: icon → number-wrap → title → cta.
 * Each gap is individually controllable via its own Elementor control:
 *   icon_spacing    → .sentio-cu__icon-wrap  margin-bottom
 *   number_spacing  → .sentio-cu__number-wrap margin-bottom
 *   cta_spacing     → .sentio-cu__cta-wrap   margin-top
 */
.sentio-cu--layout-top .sentio-cu__body {
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.sentio-cu--layout-top .sentio-cu__icon-wrap {
	margin-bottom: 20px;
}
.sentio-cu--layout-top .sentio-cu__number-wrap {
	justify-content: center;
}

/* ─── Layout: Start (icon-left, content right, CTA below) ─── */
/* The body is flex-row with flex-wrap: wrap so the CTA (3rd flex child)
 * wraps to its own row instead of being pushed horizontally next to the
 * content column. CTA gets flex-basis: 100% to span the body's full width.
 *
 * `align-items: flex-start` prevents icon badge vertical-stretching when the
 * content column is taller than the icon. The icon_vertical_align control
 * (`.sentio-cu__body { align-items }`) still overrides this default when
 * the user explicitly sets it.
 */
.sentio-cu--layout-start .sentio-cu__body {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
}
.sentio-cu--layout-start .sentio-cu__icon-wrap {
	flex-shrink: 0;
	margin-inline-end: 20px;
}
.sentio-cu--layout-start .sentio-cu__content {
	flex: 1;
	min-width: 0;
}
.sentio-cu--layout-start .sentio-cu__number-wrap {
	justify-content: flex-start;
}
.sentio-cu--layout-start .sentio-cu__cta-wrap {
	/* Wrap to own row below the icon + content pair. flush-left with icon
	 * column so the button reads as a continuation of the card rather than
	 * a separate orphan element. */
	flex-basis: 100%;
}

/* ─── Layout: Inline (compact horizontal stat strip) ─── */
/* Icon on left; number + title sit on the same baseline to the right of
 * the icon as flex children of `.sentio-cu__content` (which becomes a
 * flex container in this mode only). CTA wraps to own row via
 * flex-basis: 100% on body.
 *
 * This differs from `start` in that number and title sit side-by-side
 * (not stacked), producing a compact one-line stat where the title acts
 * as a label for the number.
 *
 * Backward-compat: if user sets wide title text that can't fit next to
 * a large number, `flex-wrap: wrap` inside content lets title drop to
 * its own line — graceful degradation rather than overflow.
 */
.sentio-cu--layout-inline .sentio-cu__body {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}
.sentio-cu--layout-inline .sentio-cu__icon-wrap {
	flex-shrink: 0;
	margin-inline-end: 16px;
}
.sentio-cu--layout-inline .sentio-cu__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 14px;
}
.sentio-cu--layout-inline .sentio-cu__number-wrap {
	justify-content: flex-start;
	margin-bottom: 0;
	flex-shrink: 0;
}
.sentio-cu--layout-inline .sentio-cu__title {
	margin: 0;
	padding: 0;
}
.sentio-cu--layout-inline .sentio-cu__cta-wrap {
	/* CTA always starts on its own row, flush-left below the icon + content row. */
	flex-basis: 100%;
}

/* ─── Number Wrap ─── */
/* margin-bottom default 16px (was 10px). Per Phase 1 audit: the prior
 * 10/20/20 gap hierarchy compressed the middle of the top-layout stack.
 * 16px brings the number→title gap closer to the bracketing 20px gaps
 * without exceeding them. Overrideable per-widget by the `number_spacing`
 * control (range 0–60). */
.sentio-cu__number-wrap {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 16px;
}

/* ─── Number ─── */
.sentio-cu__number {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
}

/* ─── Prefix / Suffix ─── */
.sentio-cu__prefix,
.sentio-cu__suffix {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

/* ─── Title ─── */
.sentio-cu__title {
	margin: 0;
	padding: 0;
}

/* ─── Icon Badge ─── */
.sentio-cu__icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sentio-cu__icon-badge--circle {
	border-radius: 50%;
}
.sentio-cu__icon-badge--rounded-square {
	border-radius: 8px;
}
.sentio-cu__icon-badge--none {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* ─── Icon ─── */
.sentio-cu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: color 0.3s ease;
}
.sentio-cu__icon i {
	font-size: inherit;
}
.sentio-cu__icon svg {
	fill: currentColor;
	width: 1em;
	height: 1em;
}
.sentio-cu__icon img {
	max-width: 100%;
	height: auto;
	display: block;
}
.sentio-cu__icon-text {
	font-weight: 700;
	line-height: 1;
}
.sentio-cu__icon-wrap {
	line-height: 1;
}

/* ─── Content ─── */
.sentio-cu__content {
	flex: 1;
	min-width: 0;
}

/* ─── CTA Button ─── */
.sentio-cu__cta-wrap {
	margin-top: 20px;
	position: relative;
	z-index: 1;
}
.sentio-cu__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	position: relative;
	z-index: 1;
	cursor: pointer;
}
.sentio-cu__cta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}
.sentio-cu__cta-icon i {
	font-size: inherit;
}
.sentio-cu__cta-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ─── Accent Borders ─── */
.sentio-cu[class*="sentio-cu--accent-"]::before {
	content: '';
	position: absolute;
	background-color: var(--sentio-cu-accent-color);
	z-index: 2;
}
.sentio-cu--accent-top::before {
	top: 0;
	left: 0;
	right: 0;
	height: var(--sentio-cu-accent-width);
}
.sentio-cu--accent-bottom::before {
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--sentio-cu-accent-width);
}
.sentio-cu--accent-start::before {
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	width: var(--sentio-cu-accent-width);
}
.sentio-cu--accent-end::before {
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: var(--sentio-cu-accent-width);
}

/* ─── Responsive ─── */
/* Mobile collapse: `start` and `inline` both switch to a centered stacked
 * layout (`top`-like) on narrow viewports. This ensures readable content
 * on phones regardless of the author's chosen desktop layout mode.
 * `top` mode is inherently column-based and needs no mobile override. */
@media (max-width: 767px) {
	.sentio-cu--layout-start .sentio-cu__body,
	.sentio-cu--layout-inline .sentio-cu__body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.sentio-cu--layout-start .sentio-cu__icon-wrap,
	.sentio-cu--layout-inline .sentio-cu__icon-wrap {
		margin-inline-end: 0;
		margin-bottom: 20px;
	}
	.sentio-cu--layout-start .sentio-cu__number-wrap,
	.sentio-cu--layout-inline .sentio-cu__number-wrap {
		justify-content: center;
	}
	/* Inline mode's content box (flex-row side-by-side number+title on
	 * desktop) collapses to centered-column so number sits above title,
	 * matching the mobile `start` + `top` look. */
	.sentio-cu--layout-inline .sentio-cu__content {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
}
