/* ==========================================================================
   GF Services Slider widget
   ========================================================================== */

/* Header */
.gf-services__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 60px;
	text-align: center;
}

.gf-services__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -1.28px;
	color: var(--gf-navy);
}

.gf-services__subtitle {
	max-width: 889px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -.36px;
	color: #808080;
}

.gf-services__empty {
	padding: 40px;
	border: 1px dashed #ccc;
	text-align: center;
}

/* Slider */
.gf-services__slider {
	position: relative;
}

.gf-services__slider .swiper-slide {
	height: auto;
}

.gf-services__dots.swiper-pagination {
	position: static;
	margin-top: 24px;
}

.gf-services__dots .swiper-pagination-bullet-active {
	background: var(--gf-red);
}

/* Card (shape = Figma mask, scales with the card) */
.gf-service-card {
	--gf-card-shade: #000;
	position: relative;
	display: block;
	aspect-ratio: 317.12 / 443.438;
	container-type: inline-size;
	color: var(--gf-white);
	text-decoration: none;
}

.gf-service-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #e9e9e9;
	-webkit-mask: url("../../img/services/card-mask.svg") no-repeat 0 0 / 100% 100%;
	mask: url("../../img/services/card-mask.svg") no-repeat 0 0 / 100% 100%;
}

.gf-service-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.gf-service-card__media::after {
	content: "";
	position: absolute;
	top: 60.76%;
	right: 0;
	bottom: -4.18%;
	left: -1.39%;
	background: linear-gradient(to bottom, transparent 0%, var(--gf-card-shade) 100%);
	pointer-events: none;
}

.gf-service-card__title {
	position: absolute;
	right: 32.03%;
	bottom: 4.83%;
	left: 8.64%;
	z-index: 1;
	font-family: var(--gf-font-alt);
	font-size: 24px;
	font-size: 7.57cqw;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -.48px;
	color: var(--gf-white);
}

.gf-service-card__arrow {
	position: absolute;
	top: 81.08%;
	left: 76.6%;
	width: 23.4%;
	max-width: none;
	height: auto;
	transition: transform .3s ease;
}

.gf-service-card:hover .gf-service-card__img,
.gf-service-card:focus-visible .gf-service-card__img {
	transform: scale(1.06);
}

.gf-service-card:hover .gf-service-card__arrow,
.gf-service-card:focus-visible .gf-service-card__arrow {
	transform: rotate(-45deg);
}

/* Buttons */
.gf-services__buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 42px;
}

.gf-services__buttons .gf-btn-arrow {
	min-width: 209px;
	padding-left: 15px;
}

.gf-services__btn-outline.gf-btn {
	min-width: 0;
	height: 62px;
	min-height: 62px;
	padding: 0 23.4px;
	background: transparent;
	border: 1px solid var(--gf-black);
	border-radius: 4.394px;
	font-family: var(--gf-font-alt);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.24;
	letter-spacing: -.32px;
	color: #2a2a2a;
}

.gf-services__btn-outline.gf-btn:hover,
.gf-services__btn-outline.gf-btn:focus {
	background: var(--gf-black);
	color: var(--gf-white);
}

/* Responsive */
@media (max-width: 1440px) {
	.gf-services__title {
		font-size: 56px;
	}
}

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

	.gf-services__title {
		font-size: 40px;
		letter-spacing: -.8px;
	}

	.gf-services__subtitle {
		font-size: 15px;
	}

	.gf-services__subtitle br {
		display: none;
	}

	.gf-services__buttons {
		margin-top: 32px;
	}

	.gf-services__buttons > a {
		flex: 1 1 100%;
		justify-content: center;
	}

	.gf-services__buttons .gf-btn-arrow {
		justify-content: space-between;
	}
}
