/**
 * Addons for WPBakery - element styles.
 *
 * Design tokens are declared once here and referenced by every element so the
 * whole pack feels like a single, consistent family.
 */

:root {
	--cafw-radius: 10px;
	--cafw-space: 1rem;
	--cafw-space-lg: 1.5rem;
	--cafw-accent: #502bf8;
	--cafw-muted: #6b7280;
	--cafw-border: #e5e7eb;
	--cafw-card-bg: #ffffff;
	--cafw-card-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
}

/* ---------------------------------------------------------------- Icon Box */

.cafw-icon-box {
	position: relative;
	display: flex;
	gap: 0.75rem;
	padding: var(--cafw-space-lg);
	/* A light default card border + radius; both can be overridden from the
	   Design Options tab (which owns background / border / radius). */
	border: 1px solid #efedf7;
	border-radius: var(--cafw-radius);
}

/* Icon position: top (stacked) / left / right (beside the content). */
.cafw-icon-box--top   { flex-direction: column; }
.cafw-icon-box--left  { flex-direction: row; align-items: flex-start; }
.cafw-icon-box--right { flex-direction: row-reverse; align-items: flex-start; }

/* Text alignment - also sets cross-axis alignment for the stacked layout. */
.cafw-icon-box--align-center { text-align: center; }
.cafw-icon-box--align-left   { text-align: left; }
.cafw-icon-box--align-right  { text-align: right; }
.cafw-icon-box--top.cafw-icon-box--align-center { align-items: center; }
.cafw-icon-box--top.cafw-icon-box--align-left   { align-items: flex-start; }
.cafw-icon-box--top.cafw-icon-box--align-right  { align-items: flex-end; }

/* The icon / image wrapper - an inline-flex badge so background, padding,
   border and radius shape it consistently for both icons and images. */
.cafw-icon-box__media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--cafw-accent);
}

/* Glyphs get a 1em-minimum square box so a round background stays a circle
   even for narrow icons. */
.cafw-icon-box__media > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1em;
	line-height: 1;
}

.cafw-icon-box__img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* When the wrapper has a background/border ("shaped"), square the image box
   too - a non-square image would otherwise turn the circle into an ellipse. */
.cafw-icon-box__media--shaped .cafw-icon-box__img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

/* Content is a flex column so the same Gap value evenly spaces the title, text
   and button (matching the icon-to-content gap on the root). */
.cafw-icon-box__content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

.cafw-icon-box--align-center .cafw-icon-box__content { align-items: center; }
.cafw-icon-box--align-left   .cafw-icon-box__content { align-items: flex-start; }
.cafw-icon-box--align-right  .cafw-icon-box__content { align-items: flex-end; }

.cafw-icon-box__title {
	width: 100%;
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

.cafw-icon-box__title a { color: inherit; text-decoration: none; }
.cafw-icon-box__title a:hover { text-decoration: underline; }

.cafw-icon-box__text {
	width: 100%;
	margin: 0;
	color: var(--cafw-muted);
}

.cafw-icon-box__text p:last-child { margin-bottom: 0; }

/* CTA button. */
.cafw-icon-box__button {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 0.6rem 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #fff;
	background: var(--cafw-accent);
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Corner badge. */
.cafw-icon-box__badge {
	position: absolute;
	top: 12px;
	z-index: 3;
	padding: 2px 10px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
	background: var(--cafw-accent);
	border-radius: 4px;
}
.cafw-icon-box__badge--right { right: 12px; }
.cafw-icon-box__badge--left  { left: 12px; }

.cafw-icon-box__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-decoration: none;
}

.cafw-icon-box__link:focus-visible {
	outline: 2px solid var(--cafw-accent);
	outline-offset: 2px;
}

/* Hover effects (colour changes are emitted per-element as scoped CSS). */
.cafw-icon-box--hover-lift {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cafw-icon-box--hover-lift:hover { transform: translateY(-4px); }
.cafw-icon-box--hover-shadow:hover { box-shadow: var(--cafw-card-shadow); }
.cafw-icon-box__media,
.cafw-icon-box__title { transition: color 0.2s ease, background-color 0.2s ease; }

/* ---------------------------------------------------------------- Counters */

.cafw-counters {
	display: grid;
	column-gap: var(--cafw-space-lg);
	row-gap: var(--cafw-space);
	/* Lay the counters out automatically: as many per row as fit, wrapping
	   responsively. No "columns" setting needed - it follows the counter count
	   and the available width. */
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cafw-counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	/* gap between icon / number / title is set inline from the "Gap" setting */
}

.cafw-counter__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--cafw-accent);
}

.cafw-counter__number {
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	color: #111827;
}

.cafw-counter__prefix,
.cafw-counter__suffix {
	font-size: 0.7em;
	vertical-align: top;
}

.cafw-counter__title {
	color: var(--cafw-muted);
	font-size: 1rem;
	line-height: 1.25;
}

/* ------------------------------------------------------------- Testimonial */

/* Style knobs arrive as --cafw-t-* custom properties set inline on the root
   (card colours, star/avatar/quote-mark sizing); each falls back to the pack
   design tokens, so an untouched element looks exactly like before. */
.cafw-testimonial {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: var(--cafw-space-lg);
	background: var(--cafw-t-bg, var(--cafw-card-bg));
	border: 1px solid var(--cafw-t-border, var(--cafw-border));
	border-radius: var(--cafw-t-radius, var(--cafw-radius));
	box-shadow: var(--cafw-card-shadow);
}

.cafw-testimonial--noshadow {
	box-shadow: none;
}

/* Alignment - cross-axis position + text alignment. */
.cafw-testimonial--align-left   { align-items: flex-start; text-align: left; }
.cafw-testimonial--align-center { align-items: center; text-align: center; }
.cafw-testimonial--align-right  { align-items: flex-end; text-align: right; }

.cafw-testimonial__rating {
	font-size: var(--cafw-t-star-size, 1.1rem);
	line-height: 1;
	letter-spacing: 2px;
}

.cafw-testimonial__star {
	color: var(--cafw-border);
}

.cafw-testimonial__star.is-filled {
	color: var(--cafw-t-star, #f59e0b);
}

.cafw-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #1f2937;
}

.cafw-testimonial__person {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cafw-testimonial__avatar {
	width: var(--cafw-t-avatar, 48px);
	height: var(--cafw-t-avatar, 48px);
	border-radius: var(--cafw-t-avatar-radius, 50%);
	object-fit: cover;
	flex: 0 0 auto;
}

.cafw-testimonial__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f4;
	color: #c3c8d0;
}

.cafw-testimonial__avatar--placeholder svg {
	width: 62%;
	height: 62%;
}

.cafw-testimonial__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.cafw-testimonial__author {
	font-weight: 600;
	color: #111827;
}

.cafw-testimonial__role {
	color: var(--cafw-t-role, var(--cafw-muted));
	font-size: 0.875rem;
}

/* Decorative quote mark - sits in the card's top-right padding. */
.cafw-testimonial__mark {
	position: absolute;
	top: 0.25rem;
	right: 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--cafw-t-mark-size, 3rem);
	line-height: 1.2;
	color: var(--cafw-t-mark-color, var(--cafw-border));
	pointer-events: none;
	user-select: none;
}

/* Skin: inline (compact header) - the person row spans the card and the
   stars slide to its far end. */
.cafw-testimonial__person--spread {
	width: 100%;
}

.cafw-testimonial--align-left .cafw-testimonial__person--spread > .cafw-testimonial__rating {
	margin-left: auto;
}

.cafw-testimonial--align-center .cafw-testimonial__person--spread { justify-content: center; }
.cafw-testimonial--align-right  .cafw-testimonial__person--spread { justify-content: flex-end; }

/* Stars placed inside the meta block (the "Under the author name" option). */
.cafw-testimonial__meta .cafw-testimonial__rating {
	margin: 3px 0;
}

/* Role placed next to the name (the "Next to the author name" option). The
   pair shares one reading line (baseline-aligned), so the role sits on the
   bottom of the name regardless of the fonts in play. The line-height clamp
   (!important, so it also beats a typography line-height inlined on the
   name) keeps the boxes glyph-tight; single-line context, no other effect. */
.cafw-testimonial__namerow {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.cafw-testimonial__namerow > .cafw-testimonial__author,
.cafw-testimonial__namerow > .cafw-testimonial__role {
	line-height: 1.15 !important;
}

.cafw-testimonial--align-center .cafw-testimonial__namerow { justify-content: center; }
.cafw-testimonial--align-right  .cafw-testimonial__namerow { justify-content: flex-end; }

/* "Stars right" skins - the meta grows to fill the person row and the stars
   slide to the far end of the name line, vertically aligned with it. */
.cafw-testimonial__meta--bar {
	flex: 1 1 auto;
	min-width: 0;
}

.cafw-testimonial__namerow--bar .cafw-testimonial__rating {
	margin: 0 0 0 auto;
	align-self: center;
}

/* Skin: aside-left - the avatar becomes its own column. */
.cafw-testimonial--aside-left {
	flex-direction: row;
	align-items: flex-start;
}

.cafw-testimonial__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	flex: 1 1 auto;
}

.cafw-testimonial--align-left   .cafw-testimonial__body { align-items: flex-start; }
.cafw-testimonial--align-center .cafw-testimonial__body { align-items: center; }
.cafw-testimonial--align-right  .cafw-testimonial__body { align-items: flex-end; }

/* --------------------------------------------------------- Flip Container */

.cafw-flip {
	perspective: 1200px;
	--cafw-flip-rot: rotateY(180deg);
}

/* Flip direction sets the rotation used by both the inner and the back face. */
.cafw-flip--right { --cafw-flip-rot: rotateY(180deg); }
.cafw-flip--left  { --cafw-flip-rot: rotateY(-180deg); }
.cafw-flip--up    { --cafw-flip-rot: rotateX(180deg); }
.cafw-flip--down  { --cafw-flip-rot: rotateX(-180deg); }

.cafw-flip__inner {
	position: relative;
	width: 100%;
	transition: transform var(--cafw-flip-speed, 0.6s) cubic-bezier(0.4, 0.2, 0.2, 1);
	transform-style: preserve-3d;
}

/* Flip: on hover (default) or on click (JS toggles .is-flipped). */
.cafw-flip--hover:hover .cafw-flip__inner,
.cafw-flip--hover:focus-within .cafw-flip__inner,
.cafw-flip--click .cafw-flip__inner.is-flipped {
	transform: var(--cafw-flip-rot);
}

.cafw-flip__inner[role="button"] {
	cursor: pointer;
}

.cafw-flip__inner[role="button"]:focus-visible {
	outline: 2px solid var(--cafw-accent);
	outline-offset: 3px;
}

.cafw-flip__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: var(--cafw-space-lg);
	border-radius: var(--cafw-radius);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	overflow: auto;
	background-color: #fff;
	border: 1px solid var(--cafw-border);
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
}

/*
 * Both faces are absolutely positioned and fill the inner box, so the front and
 * back share the exact same size and the card height never changes when it flips.
 * The inner gets its height from the element's "Height (px)" setting.
 */
.cafw-flip__face:nth-child(2) {
	transform: var(--cafw-flip-rot);
}

/* A flip card only has two sides - ignore any extra faces. */
.cafw-flip__face:nth-child(n+3) {
	display: none;
}

.cafw-flip__face-inner {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.cafw-flip__inner {
		transition: none;
	}
}

/*
 * Editor preview (WPBakery inline editor): show ONE face at a time as a single
 * card with a "Flip" button (added by admin/js/cafw-editor.js), instead of two
 * separate stacked boxes. A real 3D flip can't render cleanly through WPBakery's
 * per-face editor wrappers, so we keep each face in normal flow (fully editable)
 * and just reveal one side at a time with a quick flip animation.
 * Applied when the container carries .cafw-flip--editor (set via vc_is_inline()).
 */
.cafw-flip--editor {
	position: relative;
}

.cafw-flip--editor .cafw-flip__inner {
	transform: none !important;
	transform-style: flat;
	height: auto !important;
}

.cafw-flip--editor .cafw-flip__face {
	position: relative;
	height: auto;
	transform: none !important;
	backface-visibility: visible;
	-webkit-backface-visibility: visible;
}

/* Room above each face for its WPBakery toolbar so the flip container's controls
   don't sit under the parent row/column and stay clickable. */
.cafw-flip--editor .vc_cafw_flip_face {
	margin-top: 38px;
}

/* The inactive side is hidden; JS shows one at a time. */
.cafw-flip--editor .vc_cafw_flip_face[hidden] {
	display: none !important;
}

/* Quick flip-in animation when a side is revealed. */
@keyframes cafw-editor-flip {
	from { transform: rotateY(90deg); opacity: 0; }
	to   { transform: rotateY(0); opacity: 1; }
}

.cafw-flip--editor .vc_cafw_flip_face.cafw-flip-anim {
	animation: cafw-editor-flip 0.35s ease;
}

/* Editor-only "Flip" button. */
.cafw-flip__flip-toggle {
	display: none;
}

.cafw-flip--editor > .cafw-flip__flip-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 20;
	min-width: 92px;
	height: 28px;
	padding: 0 12px;
	font: 600 12px/1 -apple-system, "Segoe UI", sans-serif;
	color: #fff;
	background: var(--cafw-accent);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

/*
 * The Front / Back title is kept in the DOM but hidden: the Flip button reads it
 * to show the current side (e.g. "Front ↻"), so there's no separate badge.
 */
.cafw-flip__editor-label {
	display: none;
}

/* ---------------------------------------------------------- Image Scroller */

.cafw-imgscroll {
	display: block;
}

.cafw-imgscroll__frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
}

.cafw-imgscroll--shadow-soft .cafw-imgscroll__frame {
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.cafw-imgscroll--shadow-strong .cafw-imgscroll__frame {
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.cafw-imgscroll__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.cafw-imgscroll__img {
	display: block;
	margin: 0;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

/* Vertical: full width, natural (taller) height pans on the Y axis. */
.cafw-imgscroll--vertical .cafw-imgscroll__img {
	width: 100%;
	height: auto;
}

/* Horizontal: full frame height, natural (wider) width pans on the X axis. */
.cafw-imgscroll--horizontal .cafw-imgscroll__img {
	height: 100%;
	width: auto;
	max-width: none;
}

/* Touch / reduced-motion fallback: the frame becomes drag-scrollable and the
   image sits at its natural size with no transform. */
.cafw-imgscroll__viewport.is-touch {
	-webkit-overflow-scrolling: touch;
}

.cafw-imgscroll--vertical .cafw-imgscroll__viewport.is-touch {
	overflow-y: auto;
}

.cafw-imgscroll--horizontal .cafw-imgscroll__viewport.is-touch {
	overflow-x: auto;
}

.cafw-imgscroll__viewport.is-touch .cafw-imgscroll__img {
	transform: none !important;
	transition: none !important;
}

/* Overlay tint: visible at rest, fades out while hovering the frame. */
.cafw-imgscroll__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.45;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.cafw-imgscroll__frame:hover .cafw-imgscroll__overlay {
	opacity: 0;
}

/* Minimal scroll indicator: a thin track with a thumb that reflects how far
   the image is panned. JS sizes/moves the thumb; the chosen colour tints it.
   It sits quietly at rest and brightens a touch while interacting. */
.cafw-imgscroll__bar {
	position: absolute;
	z-index: 4;
	background: rgba(17, 24, 39, 0.14);
	border-radius: 999px;
	opacity: 0.85;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.cafw-imgscroll--vertical .cafw-imgscroll__bar {
	top: 8px;
	bottom: 8px;
	right: 7px;
	width: 4px;
}

.cafw-imgscroll--horizontal .cafw-imgscroll__bar {
	left: 8px;
	right: 8px;
	bottom: 7px;
	height: 4px;
}

.cafw-imgscroll__thumb {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 4px;
	height: 4px;
	background: rgba(17, 24, 39, 0.6);
	border-radius: 999px;
}

.cafw-imgscroll__frame:hover .cafw-imgscroll__bar {
	opacity: 1;
}

/* Badge: a small corner label over the image. */
.cafw-imgscroll__badge {
	position: absolute;
	z-index: 4;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: #ef4444;
	border-radius: 4px;
	pointer-events: none;
}

.cafw-imgscroll__badge--top-left { top: 12px; left: 12px; }
.cafw-imgscroll__badge--top-right { top: 12px; right: 12px; }
.cafw-imgscroll__badge--bottom-left { bottom: 12px; left: 12px; }
.cafw-imgscroll__badge--bottom-right { bottom: 12px; right: 12px; }

/* Whole-frame link sits above everything but below nothing it should block. */
.cafw-imgscroll__link {
	position: absolute;
	inset: 0;
	z-index: 5;
}

/* Device frame: browser bar. The viewport drops below a faux toolbar. */
.cafw-imgscroll--device-browser .cafw-imgscroll__chrome {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 6px;
	padding-left: 12px;
	background: #e8eaed;
	border-bottom: 1px solid #d3d6db;
}

.cafw-imgscroll--device-browser .cafw-imgscroll__chrome i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c3c7cd;
}

.cafw-imgscroll--device-browser .cafw-imgscroll__viewport {
	inset: 32px 0 0 0;
}

/* Device frame: laptop. A dark screen bezel (thicker chin) sitting on a
   metallic deck that is wider than the screen, with a centred lip - reads as
   an open laptop without any images. */
.cafw-imgscroll--device-laptop {
	position: relative;
	padding-bottom: 20px;
}

.cafw-imgscroll--device-laptop .cafw-imgscroll__frame {
	border: 14px solid #23272f;
	border-bottom-width: 20px;
	border-radius: 18px;
	background: #23272f;
}

/* The deck (keyboard base): wider than the screen, brushed-metal gradient. */
.cafw-imgscroll--device-laptop::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: calc(100% + 56px);
	max-width: 820px;
	height: 20px;
	background: linear-gradient(180deg, #d7dbe1 0%, #b4bac4 70%, #a3a9b4 100%);
	border-radius: 3px 3px 13px 13px;
	box-shadow: 0 4px 7px rgba(17, 24, 39, 0.22);
}

/* The opening lip / trackpad hint in the centre of the deck. */
.cafw-imgscroll--device-laptop::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 13px;
	z-index: 1;
	transform: translateX(-50%);
	width: 92px;
	height: 7px;
	background: #aeb4be;
	border-radius: 0 0 7px 7px;
	box-shadow: inset 0 -1px 2px rgba(17, 24, 39, 0.25);
}
/* Info List -------------------------------------------------------------- */

.cafw-info-list {
	display: flex;
	flex-direction: column;
	gap: var(--cafw-il-gap, 24px);
	margin: 0;
	padding: 0;
}

.cafw-info-list__item {
	display: flex;
	align-items: flex-start;
	gap: var(--cafw-il-icon-gap, 16px);
	position: relative;
	color: inherit;
	text-decoration: none;
}

a.cafw-info-list__item:hover .cafw-info-list__title {
	text-decoration: underline;
}

.cafw-info-list__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--cafw-il-icon-box, 44px);
	height: var(--cafw-il-icon-box, 44px);
	color: var(--cafw-il-icon-color, #502bf8);
	font-size: var(--cafw-il-icon-size, 20px);
	line-height: 1;
	position: relative;
	z-index: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cafw-info-list__icon > span {
	display: inline-block;
}

/* Icon shapes: circle / square / rounded are filled or framed; none is bare. */
.cafw-info-list--shape-circle .cafw-info-list__icon,
.cafw-info-list--shape-square .cafw-info-list__icon,
.cafw-info-list--shape-rounded .cafw-info-list__icon {
	background-color: var(--cafw-il-icon-bg, transparent);
	border: var(--cafw-il-icon-border, 0 solid transparent);
}

.cafw-info-list--shape-circle .cafw-info-list__icon {
	border-radius: 50%;
}

.cafw-info-list--shape-square .cafw-info-list__icon {
	border-radius: 0;
}

.cafw-info-list--shape-rounded .cafw-info-list__icon {
	border-radius: 25%;
}

.cafw-info-list__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cafw-info-list__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: inherit;
}

.cafw-info-list__desc {
	color: #6b7280;
	line-height: 1.55;
}

/* Alignment (affects the text, and the cross-axis for column layouts). */
.cafw-info-list--align-center .cafw-info-list__content {
	text-align: center;
}

.cafw-info-list--align-right .cafw-info-list__content {
	text-align: right;
}

/* --- Layout: icon on top (each row stacks, centred) --- */
.cafw-info-list--top .cafw-info-list__item {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cafw-info-list--top .cafw-info-list__content {
	align-items: center;
}

.cafw-info-list--top.cafw-info-list--align-left .cafw-info-list__item {
	align-items: flex-start;
	text-align: left;
}

.cafw-info-list--top.cafw-info-list--align-left .cafw-info-list__content {
	align-items: flex-start;
}

.cafw-info-list--top.cafw-info-list--align-right .cafw-info-list__item {
	align-items: flex-end;
	text-align: right;
}

.cafw-info-list--top.cafw-info-list--align-right .cafw-info-list__content {
	align-items: flex-end;
}

/* --- Layout: inline row (items side by side) --- */
.cafw-info-list--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
}

.cafw-info-list--inline .cafw-info-list__item {
	flex: 1 1 0;
	min-width: 140px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	/* Hold each item at content height, top of the row, so the icons line up
	   even if a theme forces align-items/justify-content:center on the flex. */
	align-self: flex-start;
	text-align: center;
}

.cafw-info-list--inline .cafw-info-list__content {
	align-items: center;
}

/* --- Connector: a line joining the icons --- */
.cafw-info-list--left.cafw-info-list--connector .cafw-info-list__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: calc(var(--cafw-il-icon-box, 44px) / 2);
	left: calc(var(--cafw-il-icon-box, 44px) / 2);
	width: 0;
	height: calc(100% + var(--cafw-il-gap, 24px));
	margin-left: calc(var(--cafw-il-connector-width, 2px) / -2);
	border-left: var(--cafw-il-connector-width, 2px) var(--cafw-il-connector-style, solid) var(--cafw-il-connector-color, #d9cef8);
	z-index: 0;
}

.cafw-info-list--inline.cafw-info-list--connector .cafw-info-list__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: calc(var(--cafw-il-icon-box, 44px) / 2);
	left: 50%;
	width: calc(100% + var(--cafw-il-gap, 24px));
	height: 0;
	margin-top: calc(var(--cafw-il-connector-width, 2px) / -2);
	border-top: var(--cafw-il-connector-width, 2px) var(--cafw-il-connector-style, solid) var(--cafw-il-connector-color, #d9cef8);
	z-index: 0;
}

/* --- Divider --- */
/* Vertical layouts: a horizontal rule between the stacked rows. */
.cafw-info-list--left.cafw-info-list--divider,
.cafw-info-list--top.cafw-info-list--divider {
	gap: 0;
}

.cafw-info-list--left.cafw-info-list--divider .cafw-info-list__item:not(:last-child),
.cafw-info-list--top.cafw-info-list--divider .cafw-info-list__item:not(:last-child) {
	padding-bottom: var(--cafw-il-gap, 24px);
	border-bottom: 1px solid var(--cafw-il-divider-color, #ececec);
}

.cafw-info-list--left.cafw-info-list--divider .cafw-info-list__item + .cafw-info-list__item,
.cafw-info-list--top.cafw-info-list--divider .cafw-info-list__item + .cafw-info-list__item {
	padding-top: var(--cafw-il-gap, 24px);
}

/* Inline layout: a vertical rule between the columns - no vertical padding,
   so the icons stay on one line. */
.cafw-info-list--inline.cafw-info-list--divider .cafw-info-list__item + .cafw-info-list__item {
	border-left: 1px solid var(--cafw-il-divider-color, #ececec);
}

@media (max-width: 600px) {
	.cafw-info-list--inline {
		flex-direction: column;
	}

	.cafw-info-list--inline .cafw-info-list__item {
		flex: 1 1 auto;
	}

	.cafw-info-list--inline.cafw-info-list--connector .cafw-info-list__item:not(:last-child)::before {
		display: none;
	}
}
/* Logo Grid -------------------------------------------------------------- */

.cafw-logo-grid {
	display: grid;
	grid-template-columns: repeat(var(--cafw-lg-cols, 4), 1fr);
	gap: var(--cafw-lg-gap, 24px);
	margin: 0;
	padding: 0;
}

.cafw-logo-grid__item {
	display: flex;
	align-items: center;
	justify-content: var(--cafw-lg-justify, center);
	min-width: 0;
	padding: var(--cafw-lg-pad, 20px);
	background: var(--cafw-lg-cell-bg, transparent);
	border: var(--cafw-lg-cell-border, 0 solid transparent);
	border-radius: var(--cafw-lg-radius, 8px);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cafw-logo-grid__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.cafw-logo-grid__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--cafw-lg-logo-h, 60px);
	object-fit: contain;
	opacity: var(--cafw-lg-opacity, 1);
	transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

/* Placeholder shown for a slot with no logo set yet. */
.cafw-logo-grid__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--cafw-lg-logo-h, 60px);
	color: #c3c8d0;
}

.cafw-logo-grid__placeholder svg {
	width: auto;
	height: 100%;
}

/* Grayscale until hover. */
.cafw-logo-grid--grayscale .cafw-logo-grid__img {
	filter: grayscale(100%);
}

.cafw-logo-grid--grayscale .cafw-logo-grid__item:hover .cafw-logo-grid__img {
	filter: grayscale(0);
}

/* Hover effects. */
.cafw-logo-grid--hover-color .cafw-logo-grid__item:hover .cafw-logo-grid__img,
.cafw-logo-grid--hover-zoom .cafw-logo-grid__item:hover .cafw-logo-grid__img,
.cafw-logo-grid--hover-lift .cafw-logo-grid__item:hover .cafw-logo-grid__img {
	opacity: 1;
}

.cafw-logo-grid--hover-zoom .cafw-logo-grid__item:hover .cafw-logo-grid__img {
	transform: scale(1.08);
}

.cafw-logo-grid--hover-lift .cafw-logo-grid__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
}

/* Responsive columns. */
@media (max-width: 1024px) {
	.cafw-logo-grid {
		grid-template-columns: repeat(var(--cafw-lg-cols-t, 3), 1fr);
	}
}

@media (max-width: 600px) {
	.cafw-logo-grid {
		grid-template-columns: repeat(var(--cafw-lg-cols-m, 2), 1fr);
	}
}
/* Team Member ------------------------------------------------------------ */

.cafw-team {
	background: var(--cafw-tm-card-bg, #fff);
	padding: var(--cafw-tm-pad, 28px);
	border-radius: var(--cafw-tm-radius, 14px);
	border: var(--cafw-tm-card-border, 0 solid transparent);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cafw-team--shadow-soft {
	box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.cafw-team--shadow-strong {
	box-shadow: 0 12px 36px rgba(17, 24, 39, 0.14);
}

.cafw-team--hover-lift:hover {
	transform: translateY(-6px);
}

.cafw-team--hover-shadow:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
}

.cafw-team__media {
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
}

.cafw-team__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.cafw-team__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f4;
	color: #c3c8d0;
}

.cafw-team--ihover-zoom:hover .cafw-team__img {
	transform: scale(1.08);
}

.cafw-team--ihover-grayscale .cafw-team__img {
	filter: grayscale(100%);
}

.cafw-team--ihover-grayscale:hover .cafw-team__img {
	filter: grayscale(0);
}

.cafw-team__name {
	margin: 0;
	line-height: 1.25;
	color: inherit;
}

.cafw-team__role {
	color: var(--cafw-tm-role, #502bf8);
	font-weight: 600;
}

.cafw-team__bio {
	color: #6b7280;
	line-height: 1.6;
}

.cafw-team__bio p {
	margin: 0;
}

.cafw-team__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cafw-team__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--cafw-tm-soc-size, 16px) + 18px);
	height: calc(var(--cafw-tm-soc-size, 16px) + 18px);
	font-size: var(--cafw-tm-soc-size, 16px);
	line-height: 1;
	color: var(--cafw-tm-soc, #64748b);
	background: var(--cafw-tm-soc-bg, transparent);
	border-radius: 50%;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cafw-team__social:hover {
	color: var(--cafw-tm-soc-hov, #502bf8);
	transform: translateY(-2px);
}

/* Image shapes (Classic + Image-left). */
.cafw-team--shape-circle .cafw-team__media {
	border-radius: 50%;
}

.cafw-team--shape-rounded .cafw-team__media {
	border-radius: 16px;
}

.cafw-team--shape-square .cafw-team__media {
	border-radius: 0;
}

/* --- Layout: classic (image on top) --- */
.cafw-team--classic {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cafw-team--classic .cafw-team__media,
.cafw-team--horizontal .cafw-team__media {
	width: var(--cafw-tm-img, 150px);
	height: var(--cafw-tm-img, 150px);
}

.cafw-team--classic .cafw-team__body,
.cafw-team--horizontal .cafw-team__body,
.cafw-team--overlay .cafw-team__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cafw-team--classic .cafw-team__socials,
.cafw-team--horizontal .cafw-team__socials {
	margin-top: 6px;
}

.cafw-team--classic.cafw-team--align-center {
	align-items: center;
	text-align: center;
}

.cafw-team--classic.cafw-team--align-center .cafw-team__socials {
	justify-content: center;
}

.cafw-team--classic.cafw-team--align-left {
	align-items: flex-start;
	text-align: left;
}

.cafw-team--classic.cafw-team--align-right {
	align-items: flex-end;
	text-align: right;
}

.cafw-team--classic.cafw-team--align-right .cafw-team__socials {
	justify-content: flex-end;
}

/* --- Layout: horizontal (image left) --- */
.cafw-team--horizontal {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cafw-team--horizontal .cafw-team__body {
	flex: 1 1 auto;
	min-width: 0;
}

/* --- Layout: overlay (socials over the image on hover) --- */
.cafw-team--overlay {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.cafw-team--overlay .cafw-team__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 0;
}

.cafw-team--overlay .cafw-team__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(17, 24, 39, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cafw-team--overlay .cafw-team__media:hover .cafw-team__overlay {
	opacity: 1;
}

.cafw-team--overlay .cafw-team__overlay .cafw-team__social {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}

.cafw-team--overlay .cafw-team__overlay .cafw-team__social:hover {
	background: #fff;
	color: var(--cafw-tm-soc-hov, #502bf8);
}

.cafw-team--overlay .cafw-team__body {
	padding: 18px var(--cafw-tm-pad, 28px) var(--cafw-tm-pad, 28px);
}

.cafw-team--overlay.cafw-team--align-center .cafw-team__body {
	text-align: center;
	align-items: center;
}

.cafw-team--overlay.cafw-team--align-right .cafw-team__body {
	text-align: right;
	align-items: flex-end;
}

@media (max-width: 600px) {
	.cafw-team--horizontal {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Before / After (Pro) ---------------------------------------------------- */

.cafw-ba__frame {
	position: relative;
	overflow: hidden;
	line-height: 0;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	border-radius: inherit;
	--cafw-ba-pos: 50%;
	--cafw-ba-handle: #ffffff;
}

.cafw-ba__pane {
	position: relative;
}

.cafw-ba__pane--after {
	position: absolute;
	inset: 0;
}

.cafw-ba--horizontal .cafw-ba__pane--after {
	clip-path: inset(0 0 0 var(--cafw-ba-pos));
}

.cafw-ba--vertical .cafw-ba__pane--after {
	clip-path: inset(var(--cafw-ba-pos) 0 0 0);
}

.cafw-ba__img {
	display: block;
	width: 100%;
	pointer-events: none;
	-webkit-user-drag: none;
}

.cafw-ba__pane--before .cafw-ba__img {
	height: auto;
}

.cafw-ba__pane--after .cafw-ba__img {
	height: 100%;
	object-fit: cover;
}

.cafw-ba__label {
	position: absolute;
	top: 12px;
	z-index: 2;
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	pointer-events: none;
}

.cafw-ba__label--before {
	left: 12px;
}

.cafw-ba__label--after {
	right: 12px;
}

.cafw-ba--vertical .cafw-ba__label {
	left: 50%;
	transform: translateX(-50%);
}

.cafw-ba--vertical .cafw-ba__label--before {
	top: 12px;
}

.cafw-ba--vertical .cafw-ba__label--after {
	top: auto;
	right: auto;
	bottom: 12px;
}

.cafw-ba__handle {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #374151;
	-webkit-appearance: none;
	appearance: none;
}

.cafw-ba--horizontal .cafw-ba__handle {
	top: 0;
	bottom: 0;
	left: var(--cafw-ba-pos);
	width: 46px;
	transform: translateX(-50%);
	cursor: ew-resize;
}

.cafw-ba--vertical .cafw-ba__handle {
	left: 0;
	right: 0;
	top: var(--cafw-ba-pos);
	height: 46px;
	transform: translateY(-50%);
	cursor: ns-resize;
}

.cafw-ba__line {
	position: absolute;
	background: var(--cafw-ba-handle, #fff);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cafw-ba--horizontal .cafw-ba__line {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
}

.cafw-ba--vertical .cafw-ba__line {
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	transform: translateY(-50%);
}

.cafw-ba__knob {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--cafw-ba-icon, #4b5563);
	border-radius: 50%;
	background: var(--cafw-ba-handle, #fff);
	box-shadow: 0 2px 10px rgba(2, 6, 23, 0.3);
}

.cafw-ba__icon {
	font-size: 17px;
	line-height: 1;
}

.cafw-ba__handle:focus {
	outline: none;
}

.cafw-ba__handle:focus-visible .cafw-ba__knob {
	outline: 3px solid #502bf8;
	outline-offset: 3px;
}

/* Query Grid (Pro) -------------------------------------------------------- */

.cafw-qg .vc_grid.vc_row {
	display: flex;
	flex-wrap: wrap;
}

.cafw-qg .vc_grid.vc_row .vc_grid-item {
	display: block;
	float: none;
}

.cafw-qg__empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--cafw-muted);
}

.cafw-qg__pagination {
	margin-top: 24px;
}

.cafw-qg__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cafw-qg__pagination a,
.cafw-qg__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--cafw-border);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.cafw-qg__pagination .current,
.cafw-qg__pagination a:hover {
	background: var(--cafw-accent);
	border-color: var(--cafw-accent);
	color: #fff;
}

.cafw-qg__fallback {
	margin: 0;
	padding-left: 1.2em;
}
/* Interactive Banner ----------------------------------------------------- */

.cafw-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--cafw-bn-h, 340px);
	border-radius: var(--cafw-bn-radius, 16px);
	overflow: hidden;
	isolation: isolate;
}

.cafw-banner--pos-top    { justify-content: flex-start; }
.cafw-banner--pos-center { justify-content: center; }
.cafw-banner--pos-bottom { justify-content: flex-end; }

.cafw-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.cafw-banner__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cafw-banner__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f4;
	color: #c3c8d0;
}

.cafw-banner--ihover-zoom:hover .cafw-banner__img {
	transform: scale(1.06);
}

.cafw-banner__overlay {
	position: absolute;
	inset: 0;
	background: var(--cafw-bn-ov, #1f1147);
	opacity: var(--cafw-bn-ov-op, 0.55);
	transition: opacity 0.4s ease;
}

.cafw-banner:hover .cafw-banner__overlay {
	opacity: var(--cafw-bn-ov-op-h, 0.7);
}

.cafw-banner__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	color: #fff;
}

.cafw-banner--align-left .cafw-banner__content   { align-items: flex-start; text-align: left; }
.cafw-banner--align-center .cafw-banner__content { align-items: center; text-align: center; }
.cafw-banner--align-right .cafw-banner__content  { align-items: flex-end; text-align: right; }

.cafw-banner__sub {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cafw-bn-sub, #ffd5e8);
}

.cafw-banner__title {
	margin: 0;
	font-size: 1.9rem;
	line-height: 1.15;
	color: #fff;
}

.cafw-banner__text {
	margin: 0;
	max-width: 46ch;
	line-height: 1.55;
	color: var(--cafw-bn-text, #f3f0ff);
}

.cafw-banner__text p { margin: 0; }

.cafw-banner__btn {
	display: inline-block;
	margin-top: 6px;
	padding: 11px 22px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--cafw-bn-btn-c, #1f1147);
	background: var(--cafw-bn-btn-bg, #fff);
	border-radius: var(--cafw-bn-btn-r, 8px);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cafw-banner:hover .cafw-banner__btn,
.cafw-banner__btn:hover {
	color: var(--cafw-bn-btn-c-h, #fff);
	background: var(--cafw-bn-btn-bg-h, #502bf8);
}

.cafw-banner__badge {
	position: absolute;
	z-index: 2;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cafw-bn-badge-c, #fff);
	background: var(--cafw-bn-badge-bg, #502bf8);
	border-radius: 999px;
}

.cafw-banner__badge--top-left     { top: 16px; left: 16px; }
.cafw-banner__badge--top-right    { top: 16px; right: 16px; }
.cafw-banner__badge--bottom-left  { bottom: 16px; left: 16px; }
.cafw-banner__badge--bottom-right { bottom: 16px; right: 16px; }

/* Reveal the text + button on hover (the "interactive" option). */
.cafw-banner--reveal-hover .cafw-banner__text,
.cafw-banner--reveal-hover .cafw-banner__btn {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.cafw-banner--reveal-hover:hover .cafw-banner__text,
.cafw-banner--reveal-hover:hover .cafw-banner__btn,
.cafw-banner--reveal-hover:focus-within .cafw-banner__text,
.cafw-banner--reveal-hover:focus-within .cafw-banner__btn {
	opacity: 1;
	transform: none;
}

.cafw-banner__link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

@media (max-width: 600px) {
	.cafw-banner__title { font-size: 1.5rem; }
	.cafw-banner__content { padding: 22px; }
}
