/**
 * Serviços — frontend
 * PageMax — https://pagemax.com.br
 */

.servicos {
	--sv-container: 1350px;
	--sv-gutter: 15px;
	--sv-accent: #6c323a;
	--sv-accent-hover: #802a36;
	--sv-title: #1a2332;
	--sv-text: #5c6778;
	--sv-card: #ffffff;
	--sv-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sv-sans: "Source Sans 3", "Segoe UI", sans-serif;

	position: relative;
	width: 100%;
	max-width: var(--sv-container);
	margin-inline: auto;
	padding: 0 var(--sv-gutter);
	box-sizing: border-box;
}

.servicos__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.servicos__track {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.servicos__page {
	display: none;
	width: 100%;
}

.servicos__page.is-active {
	display: block;
	animation: svSlideInRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.servicos__page.is-active.is-from-left {
	animation-name: svSlideInLeft;
}

.servicos__page[hidden] {
	display: none !important;
}

.servicos__page.is-active[hidden] {
	display: block !important;
}

.servicos__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.servicos__mobile-track {
	display: none;
}

.servicos-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding: 28px 28px 40px;
	background: var(--sv-card);
	box-shadow: 0 10px 30px rgba(15, 30, 55, 0.08);
	overflow: hidden;
	box-sizing: border-box;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.servicos-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(15, 30, 55, 0.14);
}

.servicos-card:hover .servicos-card__icon {
	transform: scale(1.08);
	color: var(--sv-accent-hover);
}

.servicos-card:hover .servicos-card__btn {
	background: var(--sv-accent-hover);
}

.servicos-card:hover .servicos-card__btn svg {
	transform: translateX(3px);
}

.servicos-card__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}

.servicos-card__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	color: var(--sv-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s ease, color 0.35s ease;
}

.servicos-card__icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	display: block;
}

.servicos-card__title {
	margin: 0;
	font-family: var(--sv-serif);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sv-title);
}

.servicos-card__desc {
	margin: 0;
	flex: 1;
	font-family: var(--sv-sans);
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--sv-text);
	padding-right: 2.5rem;
}

.servicos-card__btn {
	position: absolute;
	right: 0;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: var(--sv-accent);
	color: #fff !important;
	text-decoration: none !important;
	border: none;
	border-radius: 52px 0 0 0;
	transition: background 0.3s ease, transform 0.3s ease;
}

.servicos-card__btn svg {
	transition: transform 0.3s ease;
}

.servicos-card__btn:hover,
.servicos-card__btn:focus {
	background: var(--sv-accent-hover);
	color: #fff !important;
	transform: translate(-2px, -2px);
}

.servicos-card__btn:hover svg,
.servicos-card__btn:focus svg {
	transform: translateX(3px);
}

.servicos__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.servicos__nav--mobile {
	display: none;
}

.servicos__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(108, 50, 58, 0.35);
	background: #fff;
	color: var(--sv-accent);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.servicos__arrow:hover,
.servicos__arrow:focus {
	background: var(--sv-accent);
	border-color: var(--sv-accent);
	color: #fff;
	outline: none;
}

.servicos__dots,
.servicos__dots--desktop,
.servicos__dots--mobile {
	display: none !important;
}

.servicos .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@keyframes svSlideInRight {
	from {
		opacity: 0.35;
		transform: translateX(56px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes svSlideInLeft {
	from {
		opacity: 0.35;
		transform: translateX(-56px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 767px) {
	.servicos__track,
	.servicos__nav--desktop,
	.servicos__dots--desktop {
		display: none !important;
	}

	.servicos__mobile-track {
		display: block;
		position: relative;
		min-height: 240px;
		overflow: hidden;
	}

	.servicos__mobile-slide {
		display: none;
	}

	.servicos__mobile-slide.is-active {
		display: block;
		animation: svSlideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.servicos__mobile-slide.is-active.is-from-left {
		animation-name: svSlideInLeft;
	}

	.servicos__mobile-slide[hidden] {
		display: none !important;
	}

	.servicos__mobile-slide.is-active[hidden] {
		display: block !important;
	}

	.servicos__nav--mobile {
		display: flex;
		justify-content: center;
		margin-top: 18px;
	}

	.servicos-card {
		min-height: 240px;
	}

	.servicos-card__desc {
		padding-right: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.servicos__page.is-active,
	.servicos__mobile-slide.is-active,
	.servicos-card,
	.servicos-card__icon,
	.servicos-card__btn,
	.servicos-card__btn svg,
	.servicos__arrow,
	.servicos__dot {
		animation: none;
		transition: none;
	}

	.servicos-card:hover {
		transform: none;
	}
}
