/*
 * Every selector is prefixed with .elementor: Elementor prints its global classes as `.elementor .ac-x`, and these
 * rules must outrank them (same specificity, loaded later).
 * Cards inside the Home carousels (Services, Testimonials, Insights), rendered by includes/carousels.php.
 * Colours, type and radii come from the ac- global classes and variables; this file only holds what the
 * Elementor cards had as local styles (widths, image ratios, gaps). Breakpoints: mobile = 767px.
 */

.elementor .ac-card__title a, .elementor .ac-card__more a {
	all: unset;
	cursor: pointer;
}

.elementor .ac-card__img {
	display: block;
	width: 100%;
	object-fit: cover;
}

/* ---------- Mirror of Elementor global classes ----------
   Elementor only prints the CSS of a global class that some element on the page uses. The cards are
   rendered here, not in Elementor, so these classes would otherwise lose their styles. The source of
   truth is custom/elementor-global-settings.json in the project; keep these rules in step with it. */

/* ac-h3 is used by the plugin cards only since the Home Why Us titles moved to ac-h3--statement (2026-11-09) */
.elementor .ac-h3 {
	margin: 0;
	font-family: var(--f-primary);
	font-weight: 500;
	color: var(--c-navy);
	font-size: clamp(18px, 8px + 1.25vw, 32px);
	line-height: 1.125;
	letter-spacing: 0;
}

@media (max-width: 767px) {
	.elementor .ac-h3 {
		font-size: 18px;
	}
}

.elementor .ac-h3--card {
	line-height: 0.94;
	letter-spacing: -0.03em;
}

.elementor .ac-author-name {
	margin: 0;
	font-family: var(--f-accent);
	font-weight: 600;
	font-size: clamp(22px, 14px + 1vw, 32px);
	line-height: 1.125;
}

.elementor .ac-btn-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--c-navy);
	font-family: var(--f-primary);
	font-weight: 700;
	font-size: 18px;
	line-height: 26px;
	text-decoration: none;
	cursor: pointer;
}

.elementor .ac-btn-link:hover, .elementor .ac-btn-link:focus, .elementor .ac-btn-link:active {
	background-color: transparent;
	color: var(--c-navy);
	text-decoration: underline;
}

.elementor .ac-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background-color: var(--c-white);
	color: var(--c-navy);
}

.elementor .ac-card--service {
	height: 100%;
	gap: 44px;
	padding: 30px 33px 40px;
	border-radius: var(--radius-card-lg);
	transition: background-color 0.25s ease;
}

.elementor .ac-card--service img {
	transition: transform 0.4s ease;
}

.elementor .ac-card--service:hover {
	background-color: var(--c-navy);
}

.elementor .ac-card--service:hover img {
	transform: scale(1.06);
}

.elementor .ac-card--service:hover h3, .elementor .ac-card--service:hover p {
	color: var(--c-white);
}

.elementor .ac-card--testimonial {
	justify-content: flex-end;
	min-height: 582px;
	padding: 41px 49px 55px;
	border-radius: var(--radius-card-xl);
}

.elementor .ac-card--insight {
	gap: 31px;
	padding: 30px 25px;
	border-radius: var(--radius-card);
}

.elementor .ac-card--insight img {
	border-radius: var(--radius-sm);
}

/* After the rules above so it wins over .ac-card and .ac-card--testimonial, as the class order does in Elementor. */
.elementor .ac-card--dark {
	background-color: var(--c-navy);
	color: var(--c-white);
}

.elementor .ac-card--dark h1, .elementor .ac-card--dark h2, .elementor .ac-card--dark h3, .elementor .ac-card--dark h4, .elementor .ac-card--dark p, .elementor .ac-card--dark span {
	color: var(--c-white);
}

/* ---------- Services ---------- */

.elementor .ac-card--service {
	height: auto; /* the global class says 100%, which doesn't stretch; auto makes the cards one height */
	aspect-ratio: 557 / 604; /* Figma card size; taller content still grows the card */
	padding-bottom: 26px; /* Figma: 40px, but its 5-line card (accounting) overflows into it inside the fixed 604px */
	min-width: 0;
	flex: 0 0 clamp(300px, 29vw, 557px);
	scroll-snap-align: start;
	overflow: clip;
}

.elementor .ac-card--service .ac-card__img {
	aspect-ratio: 491 / 337;
	border-radius: 12.573px;
	object-position: center bottom;
}

.elementor .ac-card--service .ac-card__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0 0 0 5px;
}

.elementor .ac-card--service .ac-card__text {
	line-height: 1.21;
}

/* Title row: the title and a hover-reveal arrow; the arrow sets the row height (37.27px in Figma). */
.elementor .ac-card__title-row {
	display: flex;
	align-items: center;
	gap: 16px;
	/* No overflow clip: a title that fills the row (Financial training and consulting) pushes its hover arrow into the card's
	   right padding, and the old clip cut the arrow off (QA 2026-11-13). The card itself still clips. */
}

/* The whole service card is the link: the title link stretches over the card. */
.elementor .ac-card--service {
	position: relative;
}

.elementor .ac-card--service .ac-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.elementor .ac-card--service:has(.ac-card__title a:focus-visible) {
	outline: 2px solid var(--c-sky);
	outline-offset: -4px;
}

.elementor .ac-card__arrow {
	display: block;
	flex: 0 0 auto;
	width: 63.7px;
	height: 37.27px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.elementor .ac-card--service:hover .ac-card__arrow {
	opacity: 1;
}

/* Home desktop frame 702:654 (1440): card 541.85 x 585.85 (37.63vw, still 557 at 1920), padding 29.33 / 32.6 / 28 / 31.78,
   image 477.48 x 327.56 radius 12.22, title 26/34 and body 16/26. The gaps include the title row's extra height
   (the 37.27px arrow row holds the 34px title line): image to title text 47.3, title to body 49.7. Desktop only; the phone rules below are unchanged.
   Not designed: cards 4 and 5. "Financial training and consulting" (about 440px) would wrap beside the reserved hover arrow and make that card, and
   with it the whole track, 31px taller than the frame; the title stays on one line instead and the title row clips the hover arrow on that one card. */
@media (min-width: 768px) {
	.elementor .ac-card--service {
		flex-basis: clamp(300px, 37.63vw, 557px);
		aspect-ratio: 541.85 / 585.85;
		gap: 45.66px;
		padding: 29.33px 32.6px 28px 31.78px;
	}

	.elementor .ac-card--service .ac-card__img {
		aspect-ratio: 477.48 / 327.56;
		border-radius: 12.22px;
	}

	.elementor .ac-card--service .ac-card__body {
		gap: 14.03px;
		padding: 0 28.6px 0 4px;
	}

	.elementor .ac-card--service .ac-card__title {
		/* Capped at the 1440 frame's 26px (the global class grows to 32px at 1920). At 32px the 490px title of card 5 plus its
		   hover arrow (16 + 64) ended 49px past the card and the arrow was cut off (QA 2026-11-13); at 26px it ends inside the card padding. */
		font-size: clamp(18px, 8px + 1.25vw, 26px);
		line-height: 34px;
		white-space: nowrap;
	}

	.elementor .ac-card--service .ac-card__text {
		line-height: 26px;
	}
}

/* ---------- Insights ---------- */

.elementor .ac-card--insight {
	padding-bottom: 40px; /* Figma: 30px top, 40px bottom */
	min-width: 0;
	flex: 0 0 clamp(300px, 30.1vw, 433px);
	scroll-snap-align: start;
	overflow: clip;
}

.elementor .ac-card__imglink {
	display: block;
}

.elementor .ac-card--insight .ac-card__img {
	aspect-ratio: 383 / 252;
	border-radius: var(--radius-sm);
}

.elementor .ac-card__body--insight {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	padding: 0 9px;
}

.elementor .ac-card--insight .ac-card__title {
	max-width: 271px;
	color: var(--c-slate);
}

.elementor .ac-card__more {
	margin: 0; /* Hello Elementor adds a bottom margin to every p */
	margin-block-start: auto;
}

/* ---------- Testimonials ----------
   The active card is the light, wide one; the others are dark and narrow (class ac-card--dark).
   Swapping that class swaps the width, colours and quote icon, so the carousel script only toggles it. */

.elementor .ac-card--testimonial {
	position: relative;
	width: auto;
	min-width: 0;
	gap: 24px;
	flex: 0 0 clamp(340px, 46.67vw, 896px);
	transition: flex-basis 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.elementor .ac-card--testimonial.ac-card--dark {
	flex-basis: clamp(300px, 28.75vw, 552px);
}

.elementor .ac-card--testimonial:not(.ac-card--dark) {
	color: var(--c-navy);
}

.elementor .ac-card--testimonial:not(.ac-card--dark) .ac-card__headline {
	color: var(--c-slate);
}

.elementor .ac-quote {
	display: block;
	width: 55px;
	height: auto;
	flex: 0 0 auto;
}

.elementor .ac-quote--dark, .elementor .ac-card--dark .ac-quote--light {
	display: none;
}

.elementor .ac-card--dark .ac-quote--dark {
	display: block;
	width: 59px;
}

.elementor .ac-card__spacer {
	min-width: 0;
	min-height: 1px;
	flex: 1 0 0;
}

.elementor .ac-card__quote {
	line-height: 1.444;
}

.elementor .ac-card__foot {
	display: flex;
	flex-direction: row;
	gap: 16px;
	justify-content: space-between;
	align-items: flex-end;
	width: 100%;
}

.elementor .ac-card__author {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: auto;
}

.elementor .ac-card__role {
	font-size: 16px;
	line-height: 22px;
}

/* Cards that are not showing while the desktop carousel centres the active one. */
@media (min-width: 768px) {
	.elementor .ac-card--off {
		display: none;
	}
}

@media (max-width: 767px) {
	.elementor .ac-card--service {
		flex-basis: 330px; /* Home phone frame 719:1252: card 330 wide, 16px gap, the next card peeks 40px */
	}

	.elementor .ac-card--service .ac-card__img {
		aspect-ratio: 292.6 / 200.7;
	}

	.elementor .ac-card--service .ac-card__body {
		gap: 12px;
	}

	.elementor .ac-card--service .ac-card__text {
		line-height: 1.35;
	}

	.elementor .ac-card--insight {
		flex-basis: 347px;
	}

	.elementor .ac-card--insight .ac-card__img {
		aspect-ratio: 313 / 198;
	}

	/* One card per screen, swiped; the light (active) card goes first. */
	.elementor .ac-card--testimonial, .elementor .ac-card--testimonial.ac-card--dark {
		min-height: 0;
		padding: 32px 24px;
		gap: 16px; /* Home phone frame 719:1252: card 370 wide, padding 32 / 24, 16 between icon, title, quote and name */
		flex: 0 0 calc(100vw - 32px);
		scroll-snap-align: start;
	}

	.elementor .ac-card--testimonial:not(.ac-card--dark) {
		order: -1;
	}

	.elementor .ac-quote, .elementor .ac-card--dark .ac-quote--dark {
		width: 48.4px;
	}

	.elementor .ac-card--testimonial .ac-card__spacer {
		display: none;
	}

	.elementor .ac-card__foot {
		flex-direction: column;
		gap: 21px;
		align-items: flex-start;
	}

	/* Home phone frame 719:1252 (402): card 330 x 507 (white, radius 20), padding 16 / 16 / 28, image 298 x 220 radius 14,
	   22px to the title (22/29 Medium), 10px to the body (16/26). Height follows the content; the track stretches the cards to one height.
	   Cards 4 and 5 are not designed. */
	.elementor .ac-card--service {
		aspect-ratio: auto;
		padding: 16px 16px 28px;
		gap: 22px;
		border-radius: var(--radius-card);
	}

	.elementor .ac-card--service .ac-card__img {
		width: 100%;
		aspect-ratio: 298 / 220;
		border-radius: 14px;
	}

	.elementor .ac-card--service .ac-card__body {
		padding: 0 8px;
		gap: 10px;
	}

	.elementor .ac-card--service .ac-card__title {
		font-size: 22px;
		font-weight: 500;
		line-height: 29px;
	}

	.elementor .ac-card--service .ac-card__text {
		font-size: 16px;
		line-height: 26px;
	}

	.elementor .ac-card__arrow {
		width: 37.9px;
		height: 22.2px;
	}

	/* Home phone frame 719:1252: card 330 x 496 (white, radius 20, padding 16 / 16 / 24), image 298 x 200 radius 12, 12 + 4 to the title
	   (22/32 Medium), 10 to the text (16/26), 10 to "Learn More" (16/26 Bold). Same numbers as the Insights archive card. */
	.elementor .ac-card--insight {
		flex-basis: 330px;
		aspect-ratio: auto;
		padding: 16px 16px 24px;
		gap: 12px;
	}

	.elementor .ac-card--insight .ac-card__img {
		aspect-ratio: 298 / 200;
	}

	.elementor .ac-card__body--insight {
		gap: 10px;
		padding: 4px 4px 0;
	}

	.elementor .ac-card--insight .ac-card__title {
		max-width: none;
		font-size: 22px;
		line-height: 32px;
	}

	.elementor .ac-card--insight .ac-card__text {
		font-size: 16px;
		line-height: 26px;
	}

	.elementor .ac-card--insight .ac-card__more {
		font-size: 16px;
		line-height: 26px;
		margin-block-start: 0;
		padding-block-start: 0;
	}

	/* Home phone frame 719:1252: title 22/32 Medium, quote 16/25, name 22/27 Semibold, role 14/22 */
	.elementor .ac-card--testimonial .ac-author-name {
		font-size: 22px;
		line-height: 27px;
		font-weight: 600;
	}

	.elementor .ac-card--testimonial .ac-card__role {
		font-size: 14px;
		line-height: 22px;
	}

	.elementor .ac-card--testimonial .ac-card__headline,
	.elementor .ac-card--testimonial.ac-card--dark .ac-card__headline {
		font-size: 22px;
		line-height: 32px;
		font-weight: 500;
	}

	.elementor .ac-card--testimonial .ac-card__quote,
	.elementor .ac-card--testimonial.ac-card--dark .ac-card__quote {
		font-size: 16px;
		line-height: 25px;
	}

	/* the Home phone frame 719:1252 has Medium insight titles (the old frame 383:1111 had Regular) */
	.elementor .ac-card--insight .ac-card__title {
		font-weight: 500;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor .ac-card--testimonial {
		transition: none;
	}
}

/* ---------- Home testimonials, desktop (Home frame 702:654 at 1440, realigned 2026-11-09) ----------
   Centre card 785.03 x 509.92 (light), the dark neighbours 483.63 wide, gap 27.16 (sizes in vw so they follow the
   viewport up to the old caps of 896 / 552). Padding, icon, type and offsets are the frame's: icon at 35.92,
   headline +219.04, quote +290.01, name +407.41, role +441.58, 46.3 below the role; left padding 42.93 (light) and
   47.31 (dark). The dark cards' text boxes (quote 561.6, headline 467.86) are wider than the card in the frame, so
   up to 1699 px they run past the card edge and are clipped by it, as drawn (the neighbours show 276 and 325 px
   of themselves at 1440); above that they wrap inside the card. */
@media (min-width: 768px) {
	.elementor .ac-card--testimonial {
		box-sizing: border-box;
		min-height: 509.92px;
		padding: 35.92px 0 46.3px 42.93px;
		gap: 0;
		border-radius: var(--radius-card-lg);
		flex: 0 0 clamp(340px, 54.52vw, 896px);
	}

	.elementor .ac-card--testimonial.ac-card--dark {
		padding-inline-start: 47.31px;
		flex-basis: clamp(300px, 33.59vw, 552px);
	}

	.elementor .ac-quote, .elementor .ac-card--dark .ac-quote--dark {
		width: 48.375px;
	}

	.elementor .ac-card--testimonial .ac-card__headline {
		max-width: 404.78px;
		margin-inline-start: 0.88px;
		font-size: 18px;
		line-height: 26px;
	}

	.elementor .ac-card--testimonial .ac-card__quote {
		max-width: 651.85px;
		margin-block-start: 18.97px;
		font-size: 16px;
		line-height: 26px;
	}

	.elementor .ac-card--testimonial .ac-card__foot {
		margin-block-start: 13.4px;
	}

	.elementor .ac-card--testimonial .ac-card__author {
		gap: 2.17px;
	}

	.elementor .ac-card--testimonial .ac-author-name {
		margin-inline-start: -2.63px;
		font-family: var(--f-primary);
		font-weight: 600;
		font-size: 26px;
		line-height: 32px;
	}

	.elementor .ac-card--testimonial .ac-card__role {
		font-size: 14px;
		line-height: 22px;
	}
}

/* QA 2026-11-23 (task "Testimonial Cards"): the frame draws the dark cards' text running past the card edge; on the
   site it read as text bleeding off the card. Every card now keeps a right padding equal to its left one and the text
   wraps inside it, at every desktop width. The dark cards are taller than the frame when the quote is long. */
@media (min-width: 768px) {
	.elementor .ac-card--testimonial {
		padding-inline-end: 42.93px;
	}

	.elementor .ac-card--testimonial.ac-card--dark {
		padding-inline-end: 47.31px;
	}

	.elementor .ac-card--testimonial.ac-card--dark .ac-card__headline,
	.elementor .ac-card--testimonial.ac-card--dark .ac-card__quote {
		width: auto;
		max-width: 100%;
		margin-inline-start: 0;
	}
}

/* ---------- Home insights, desktop (Home frame 702:654 at 1440, realigned 2026-11-09) ----------
   Card 413 x 503 (28.68 vw, old cap 433), white, radius 20. Image 362 x 213 at +27 / +30 (radius 10), title 18/26
   at +269 (26 under the image), excerpt 16/26 12 under the title (373 wide), "Learn More" 16/26 pinned so it ends
   34 above the card bottom (6 under a 4-line excerpt). The frame's black 8 % overlay on the photos is not drawn. */
@media (min-width: 768px) {
	.elementor .ac-card--insight {
		box-sizing: border-box;
		min-height: 503px;
		padding: 30px 13px 34px 27px;
		gap: 26px;
		flex: 0 0 clamp(300px, 28.68vw, 433px);
	}

	.elementor .ac-card--insight .ac-card__imglink {
		width: 362px;
		max-width: 100%;
	}

	.elementor .ac-card--insight .ac-card__img {
		aspect-ratio: 362 / 213;
	}

	.elementor .ac-card__body--insight {
		flex: 1 1 auto;
		gap: 0;
		padding: 0;
	}

	.elementor .ac-card--insight .ac-card__title {
		font-size: 18px;
		line-height: 26px;
	}

	.elementor .ac-card--insight .ac-card__text {
		margin-block-start: 12px;
		font-size: 16px;
		line-height: 26px;
	}

	.elementor .ac-card--insight .ac-card__more {
		padding-block-start: 6px;
		font-size: 16px;
		line-height: 26px;
	}
}
