:root {
	--font-primary: 'Montserrat', sans-serif;
	--font-secondary: 'Heebo', sans-serif;
	--font-third: 'Teachers', sans-serif;
	--font-fourth: 'Questrial', sans-serif;

	--primary-color: #e6a31f;
	--dark-gray: #585a5c;
}

/* ==========================================================================
   CAROUSEL
========================================================================== */

.carousel {
	position: relative;
	width: 100%;
	min-height: 650px;
	height: 75vh;
	max-height: 900px;
	overflow: hidden;
}

.carousel .swiper-wrapper,
.carousel .swiper-slide {
	height: 100%;
}

.carousel .swiper-slide {
	position: relative;
	display: flex;
	align-items: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.carousel .swiper-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
}

/* ==========================================================================
   CONTENT
========================================================================== */

.carousel-slider-item {
	position: relative;
	z-index: 2;
	width: 100%;
	margin-inline: auto;
}

.carousel-content {
	position: relative;
	width: 100%;
	max-width: 100%;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.carousel-content_item {
	position: relative;
	padding-left: 22px;
}

.carousel-content_item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;

	width: 3px;
	background: var(--primary-color);
}

/* ==========================================================================
   TYPOGRAPHY
========================================================================== */

.carousel-content h3 {
	margin: 0 0 18px;

	font-family: var(--font-primary);

	font-size: clamp(2.2rem, 7vw, 4.5rem);

	line-height: 1.08;

	text-wrap: balance;
}

.carousel-subtitle {
	margin-bottom: 18px;
}

.carousel-subtitle p {
	margin: 0;

	font-family: var(--font-primary);

	font-weight: 400;

	font-size: clamp(1.55rem, 5vw, 2.25rem);

	line-height: 1.25;
}

.carousel-description p {
	margin: 0;
	font-family: var(--font-fourth);
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.8;
}

/* ==========================================================================
   BUTTONS
========================================================================== */

.carousel-btn {
	display: flex;
	flex-direction: row;
	gap: 16px;
	margin-top: 10px;
	margin-bottom: -35px;
}

.carousel-btn a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 18px 24px;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	font-family: var(--font-fourth);
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	transition: 0.25s;
	color: #fff;
}

.btn_primary_carosello {
	background: var(--primary-color);
	color: #fff;
}

.btn_secondary_carosello {
	background: var(--dark-gray);
	color: #fff;
}

.btn_primary_carosello:hover {
	filter: brightness(0.95);
}

.btn_secondary_carosello:hover {
	background: #444;
}

/* ==========================================================================
   PAGINATION
========================================================================== */

.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #fff;
	opacity: 0.45;
	border: 1px solid var(--primary-color);
	transition: 0.3s;
}

.swiper-pagination-bullet-active {
	background: var(--primary-color);

	opacity: 1;

	transform: scale(1.15);
}

/* ==========================================================================
   NAVIGATION
========================================================================== */

.swiper-button-prev,
.swiper-button-next {
	opacity: 1;
	display: none;
}

/* ==========================================================================
   ≥ 480px
========================================================================== */

@media (min-width: 480px) {
	.carousel {
		min-height: 680px;
	}

	.carousel-content_item {
		padding-left: 26px;
	}

	.carousel-btn a {
		font-size: 1rem;
	}
}

/* ==========================================================================
   ≥ 768px
========================================================================== */

@media (min-width: 768px) {
	.carousel {
		min-height: 760px;
		height: 78vh;
	}

	.carousel-content {
		max-width: 620px;
	}

	.carousel-content_item {
		padding-left: 30px;
	}

	.carousel-content h3 {
		margin-bottom: 22px;
	}

	.carousel-subtitle {
		margin-bottom: 22px;
	}

	.carousel-btn {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px;
	}

	.carousel-btn a {
		width: auto;
		min-width: 230px;
		padding: 20px 42px;
		font-size: 1rem;
	}

	.swiper-pagination {
		bottom: 28px !important;
	}
}

/* ==========================================================================
   ≥ 1024px
========================================================================== */

@media (min-width: 1024px) {
	.carousel {
		min-height: 800px;
		height: 800px;
	}

	.carousel-content {
		max-width: 590px;
	}

	.swiper-pagination {
		display: none;
	}

	.swiper-button-prev,
	.swiper-button-next {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: calc(100% - 55px);
		opacity: 1;
		width: 60px;
		height: 60px;
		margin: 0;
		z-index: 20;
		transition: 0.25s;
	}

	.swiper-button-prev {
		left: 0;
		opacity: 1 !important;
		background: var(--primary-color);
		color: #fff;
	}

	.swiper-button-next {
		left: 60px;
		background: #fff;
		color: #000;
	}

	.swiper-button-prev:hover {
		filter: brightness(0.95);
	}

	.swiper-button-next:hover {
		background: #f2f2f2;
	}

	.swiper-button-prev::after,
	.swiper-button-next::after {
		font-size: 22px;
		font-weight: 700;
	}
}

/* ==========================================================================
   ≥ 1440px
========================================================================== */

@media (min-width: 1440px) {
	.carousel-content {
		max-width: 640px;
	}

	.carousel-content h3 {
		max-width: 12ch;
	}

	.carousel-description {
		max-width: 560px;
	}
}

/* ==========================================================================
   ACCESSIBILITY
========================================================================== */

.btn_primary_carosello:focus-visible,
.btn_secondary_carosello:focus-visible,
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
	outline: 3px solid var(--primary-color);
	outline-offset: 4px;
}

/* ==========================================================================
   HOVER
========================================================================== */

@media (hover: hover) {
	.btn_primary_carosello,
	.btn_secondary_carosello,
	.swiper-button-prev,
	.swiper-button-next {
		transition:
			background-color 0.25s ease,
			color 0.25s ease,
			transform 0.25s ease,
			filter 0.25s ease;
	}

	.btn_primary_carosello:hover {
		filter: brightness(0.92);
	}

	.btn_secondary_carosello:hover {
		background: #444;
	}

	.swiper-button-prev:hover,
	.swiper-button-next:hover {
		transform: translateY(-2px);
	}
}

/* ==========================================================================
   SWIPER NAVIGATION
========================================================================== */

.swiper-button-prev,
.swiper-button-next {
	border: 0;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.swiper-button-prev {
	border-radius: 0;
	opacity: 1 !important;
}

.swiper-button-next {
	border-radius: 0;
	opacity: 1 !important;
}

/* ==========================================================================
   IMAGES
========================================================================== */

.carousel img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   PERFORMANCE
========================================================================== */

.carousel,
.carousel *,
.carousel *::before,
.carousel *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.carousel *,
	.carousel *::before,
	.carousel *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
