/* ==========================================================================
   GF Clients - Slider widget
   ========================================================================== */

/* Navy background + photo at low opacity (Figma: 6%) */
.gf-clients {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--gf-navy);
	color: var(--gf-white);
}

.gf-clients::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--gf-cli-bg, none);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	opacity: var(--gf-cli-bg-opacity, .06);
	pointer-events: none;
}

/* Desktop: same crop as the design, but always covers the full section height */
@media (min-width: 1200px) {
	.gf-clients::before {
		background-position: center 71.6%;
	}
}

/* Content follows Elementor Site Settings → Layout width */
.gf-clients__inner {
	max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
	margin: 0 auto;
	padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

/* Header */
.gf-clients__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	max-width: 780px;
	margin: 0 auto 50px;
}

.gf-clients__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h2);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--gf-white);
}

.gf-clients__subtitle {
	max-width: 1472px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: #e2e2e2;
}

/* Slider — slides run past the right edge (section clips them) */
.gf-clients__slider.swiper {
	overflow: visible;
}

.gf-clients__slider .swiper-slide {
	width: 69.71%;
	height: auto;
}

/* Card */
.gf-client-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 360px;
	margin: 0;
	padding: 45px 122px 40px 71px;
	background-color: var(--gf-navy);
	border: 1px solid #3e35af;
	border-radius: 14px;
}

.gf-client-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	min-height: 52px;
}

.gf-client-card__quote {
	display: block;
	flex-shrink: 0;
	transform: rotate(180deg);
}

.gf-client-card__stars {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	margin-top: -14px;
	margin-left: auto;
	line-height: 0;
}

.gf-client-card__stars img {
	display: block;
	max-width: none;
}

.gf-client-card__stars-base {
	opacity: .25;
}

.gf-client-card__stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--gf-rating, 100%);
	height: 100%;
	overflow: hidden;
}

.gf-client-card__text {
	max-width: 934px;
	margin: 33px 0 0;
	padding: 0;
	border: 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	font-style: normal;
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: #e2e2e2;
}

.gf-client-card__author {
	display: flex;
	align-items: flex-end;
	gap: 13px;
	margin-top: auto;
	padding-top: 41px;
	font-style: normal; /* theme styles figcaption as italic */
}

.gf-client-card__avatar {
	position: relative;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 51px;
	height: 51px;
	overflow: hidden;
	background-color: #e02828;
	border-radius: 50%;
	box-shadow: -5.658px 1.414px 4.809px rgba(0, 0, 0, .05);
}

.gf-client-card__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.gf-client-card__initials {
	font-family: var(--gf-font-alt);
	font-size: 18px;
	font-weight: 600;
	color: var(--gf-white);
}

.gf-client-card__meta {
	display: flex;
	flex-direction: column;
}

.gf-client-card__name {
	margin-bottom: -5px;
	font-family: var(--gf-font-body);
	font-size: var(--gf-h4);
	font-weight: 700;
	line-height: 31px;
	letter-spacing: -.02em;
	color: var(--gf-white);
}

.gf-client-card__role {
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	font-weight: 400;
	line-height: 27px;
	letter-spacing: -.02em;
	color: #8881d5;
}

/* Arrows */
.gf-clients__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

.gf-clients__arrow {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	padding: 0;
	border: 1px solid;
	border-radius: 50%;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.gf-clients__arrow img {
	display: block;
	pointer-events: none;
}

.gf-clients__arrow--prev,
.gf-clients__arrow--prev:hover,
.gf-clients__arrow--prev:focus {
	background-color: var(--gf-white);
	border-color: var(--gf-white);
}

.gf-clients__arrow--prev img {
	transform: rotate(180deg);
}

.gf-clients__arrow--next,
.gf-clients__arrow--next:hover,
.gf-clients__arrow--next:focus {
	background-color: #2a2282;
	border-color: #433ba1;
}

.gf-clients__arrow:hover {
	transform: scale(1.06);
}

.gf-clients__arrow:focus-visible {
	outline: 2px solid var(--gf-white);
	outline-offset: 3px;
}

.gf-clients__arrow.swiper-button-disabled {
	cursor: default;
	opacity: .45;
	transform: none;
}

/* Responsive */
@media (max-width: 1440px) {
	.gf-client-card {
		padding: 40px 60px 36px 52px;
	}
}

@media (max-width: 1024px) {
	.gf-client-card {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.gf-clients__head {
		margin-bottom: 36px;
	}

	.gf-client-card {
		padding: 28px 22px;
	}

	.gf-client-card__quote {
		width: 36px;
		height: auto;
	}

	.gf-client-card__stars img {
		width: 100px;
		height: auto;
	}

	.gf-client-card__stars {
		margin-top: 0;
	}

	.gf-client-card__text {
		margin-top: 20px;
	}

	.gf-client-card__author {
		padding-top: 24px;
	}

	.gf-client-card__name {
		font-size: 20px;
		line-height: 28px;
	}

	.gf-clients__arrow {
		width: 56px;
		height: 56px;
	}
}

/* ==========================================================================
   Minimal style — small light review cards on the navy section
   ========================================================================== */
.gf-clients--minimal .gf-clients__head {
	margin-bottom: 40px;
}

/* Cards may slide right to the section edges; the section clips them */
.gf-clients--minimal .gf-clients__slider.swiper {
	overflow: visible;
}

.gf-clients--minimal .swiper-slide {
	width: 360px;
	height: auto;
}

/* Continuous scroll: constant speed, no easing between cards */
.gf-clients--marquee .swiper-wrapper {
	transition-timing-function: linear !important;
}

/* Soft fade at both edges */
.gf-clients--marquee .gf-clients__inner {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.gf-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	margin: 0;
	padding: 22px 24px 24px;
	background-color: rgb(255 255 255 / 96%);
	border: 1px solid rgb(255 255 255 / 60%);
	border-radius: 18px;
	box-shadow: 0 14px 40px rgb(5 2 47 / 28%);
	transition: transform .3s ease, box-shadow .3s ease;
}

.gf-review:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 48px rgb(5 2 47 / 36%);
}

.gf-review__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gf-review__avatar {
	position: relative;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	overflow: hidden;
	background-color: var(--gf-navy);
	border-radius: 50%;
	font-family: var(--gf-font-alt);
	font-size: 14px;
	font-weight: 600;
	color: var(--gf-white);
}

/* Two classes deep to beat Elementor's ".elementor img { height: auto }" */
.gf-review .gf-review__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gf-review__who {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.gf-review__name {
	overflow: hidden;
	font-family: var(--gf-font-alt);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #15132e;
}

.gf-review__role {
	font-family: var(--gf-font-body);
	font-size: 13px;
	line-height: 1.4;
	color: #7a7894;
}

.gf-review__g {
	flex-shrink: 0;
}

.gf-review__stars,
.gf-clients__summary-stars {
	display: inline-flex;
	gap: 2px;
}

.gf-review__stars svg,
.gf-clients__summary-stars svg {
	fill: #dcdbe6;
}

.gf-review__stars svg.is-on,
.gf-clients__summary-stars svg.is-on {
	fill: #fbbc04;
}

.gf-review__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--gf-font-body);
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: -.01em;
	color: #3d3b55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
}

/* Google rating summary under the subtitle */
.gf-clients__summary {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
	padding: 8px 18px;
	background-color: rgb(255 255 255 / 10%);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 999px;
	font-family: var(--gf-font-body);
	font-size: 14px;
	color: #e2e2e2;
	text-decoration: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color .2s ease;
}

a.gf-clients__summary:hover,
a.gf-clients__summary:focus {
	background-color: rgb(255 255 255 / 18%);
	color: var(--gf-white);
}

.gf-clients__summary strong {
	font-family: var(--gf-font-alt);
	font-size: 18px;
	font-weight: 600;
	color: var(--gf-white);
}

@media (max-width: 767px) {
	.gf-clients--minimal .swiper-slide {
		width: 290px;
	}

	.gf-review {
		padding: 18px 20px 20px;
	}

	.gf-review__text {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gf-review,
	.gf-review:hover {
		transform: none;
		transition: none;
	}
}
