/* FONTS */

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-Light.woff2') format('woff2');
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-Medium.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Rubik';
	src: url('/assets/fonts/rubik/Rubik-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-display: swap;
}

/* VARIABLES */

:root {
	/* colors */
	--color-primary: #f8d57e;
	--color-foreground: #2d2d2d;
	--color-muted: #636363;
	--color-white: #ffffff;
	--color-blue: #3366ff;
	--color-light-purple: #f7f5fd;
	--color-green: #009379;
	--color-light-green: #f2faf8;
	--color-light-yellow: #fcfaf5;
	--color-border: #0000000d;

	/* spacings */
	--spacing-section-horizontal-padding: 2rem;
	--spacing-section-vertical-padding: 5rem;

	--spacing-header-height: 6rem;

	--thumb-width: 150px;
	--thumb-height: 100px;
	--thumb-gap: 15px;

	/* text */
	--text-h1: 2.5rem;
	--text-h2: 2rem;
	--text-h3: 1.25rem;
}

/* GLOBALS */

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Rubik', sans-serif;
	color: var(--color-foreground);
	line-height: 2;
}

section {
	padding: var(--spacing-section-vertical-padding)
		var(--spacing-section-horizontal-padding);
}

h1 {
	font-size: var(--text-h1);
	font-weight: 600;
	line-height: 1.25;
}

h2 {
	font-size: var(--text-h2);
	font-weight: 600;
	line-height: 1.5;
}

h3 {
	font-size: var(--text-h3);
	font-weight: 500;
}

strong {
	font-weight: 500;
}

button {
	cursor: pointer;
}

.button {
	display: inline-block;
	padding: 1rem 3rem;
	color: var(--color-foreground);
	border-radius: 0.75rem;
	font-size: 1rem;
	border: none;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.button--primary {
	background-color: #f8d57e;
}

section[id] {
	scroll-margin-top: var(--spacing-header-height);
}

/* HEADER */

.header {
	position: sticky;
	top: 0;
	z-index: 10;
	height: var(--spacing-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--spacing-section-horizontal-padding);
	background-color: var(--color-white);
}

.header__brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--color-foreground);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1.25rem;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.lang-switcher {
	display: flex;
	gap: 0.75rem;
}

.lang-switcher__link {
	text-decoration: none;
	color: var(--color-muted);
	padding: 0.5rem;
	font-weight: 600;
}

.lang-switcher__link--active {
	color: var(--color-foreground);
}

.header__link {
	display: none;
	font-size: 0.8rem;
	padding: 0.75rem 2rem;
}

/* HERO */
.hero {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	background-color: var(--color-light-purple);
}

.hero__content {
	text-align: center;
}

.hero__description {
	margin-top: 2rem;
	margin-bottom: 4rem;
	font-size: 1.2rem;
	color: var(--color-muted);
}

.hero__button {
	font-size: 1.2rem;
}

.hero__image {
	border-radius: 0.75rem;
	object-fit: cover;
}

/* ABOUT */

.about {
	background-color: var(--color-white);
}

.about__grid {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	margin-top: 4rem;
}

.about__subtitle {
	margin-bottom: 1rem;
}

.about__list {
	padding-left: 1rem;
}

.about__fact {
	line-height: 2.5;
}

.about__fact-label {
	font-weight: 500;
}

/* BENEFITS */

.benefits {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	text-align: center;
}

.benefits__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.benefits__icon {
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.5rem;
}

.benefits__text {
	opacity: 0.8;
}

/* PRICES */
.prices {
	background-color: var(--color-light-green);
}

.prices__title {
	margin-bottom: 2rem;
}

.prices__container {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	justify-content: space-around;
}

.price-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border-radius: 0.75rem;
	padding: 3rem 2rem;
	border: 1px solid var(--color-border);
	box-shadow:
		0 4px 6px -1px rgba(45, 45, 45, 0.05),
		0 10px 15px -3px rgba(45, 45, 45, 0.1);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.price-card:hover {
	transform: translateY(-5px);
	box-shadow:
		0 20px 25px -5px rgba(45, 45, 45, 0.1),
		0 10px 10px -5px rgba(45, 45, 45, 0.04);
}

.price-card__title {
	font-size: 1.25rem;
	font-weight: 600;
}

.price-card__price {
	text-align: center;
}

.price-card__amount {
	font-size: 2.5rem;
	font-weight: 800;
}

.price-card__period {
	color: var(--color-muted);
}

.price-card__features {
	list-style: none;
	line-height: 2.5;
}

.price-card__feature {
	position: relative;
	padding-left: 1.5rem;
}

.price-card__feature::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--color-primary);
	font-weight: 800;
}

.price-card__button {
	margin-top: 3rem;
	text-align: center;
	padding: 0.5rem 2rem;
}

/* GALLERY */

.gallery {
	background-color: var(--color-light-purple);
}

.gallery__large-view {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.gallery__viewport {
	max-width: 700px;
	overflow: hidden;
	border-radius: 0.75rem;
}

.gallery__track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.gallery__item {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.gallery__arrow {
	position: absolute;
	z-index: 2;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0.5rem;
	background-color: #ffffffb3;
	transition:
		transform 0.2s ease-out,
		background-color 0.2s;

	> img {
		width: 100%;
	}
}

.gallery__arrow--prev {
	left: 1rem;
}

.gallery__arrow--next {
	right: 1rem;
}

.gallery__arrow--prev:hover {
	transform: translateX(-5px);
}

.gallery__arrow--next:hover {
	transform: translateX(5px);
}

.gallery__thumb-wrapper {
	max-width: 700px;
	margin: auto;
}

.gallery__thumb-list {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	overflow: auto;
	border-radius: 0.5rem;
	scroll-snap-type: x mandatory;
}

.gallery__thumb-button {
	height: 4rem;
	aspect-ratio: 3 / 2;
	flex-shrink: 0;
	padding: 0;
	scroll-snap-align: center;
	background: none;
	border: 2px solid transparent;
	border-radius: 0.5rem;
	overflow: hidden;
	opacity: 0.6;
	transition: opacity 0.3s ease;

	> img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.gallery__thumb--active {
	opacity: 1;
	border-color: var(--color-foreground);
}

/* BOOKING */

.booking {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	background-color: var(--color-light-yellow);
}

.booking__content {
	text-align: center;
}

.booking__contacts {
	margin: 2rem 0;
	color: var(--color-muted);
}

.booking__image {
	object-fit: cover;
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

/* FOOTER */

.footer {
	background-color: var(--color-white);
	padding: var(--spacing-section-vertical-padding)
		var(--spacing-section-horizontal-padding);
}

.footer__container {
	display: grid;
	gap: 3rem;
}

.footer__map-image {
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
	border: 2px solid var(--color-muted);
	transition: transform 0.3s ease;
}

.footer__map-image:hover {
	transform: scale(1.02);
}

.footer__nav {
	display: grid;
	gap: 2rem;
}

.footer__title {
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.footer__list {
	list-style: none;
	padding: 0;
}

.footer__list li {
	margin-bottom: 1rem;
}

.footer__link {
	color: var(--color-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.footer__link:hover {
	color: var(--color-foreground);
	text-decoration: underline;
}

.footer__bottom {
	margin-top: 6rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--color-muted);
}

/* LEGAL */

.legal-content {
	padding: var(--spacing-section-vertical-padding)
		var(--spacing-section-horizontal-padding);

	section {
		padding: 0;
		margin-bottom: 3rem;
	}
}

.legal-content h1 {
	font-size: var(--text-h2);
	margin: 1.5rem 0;
}

.last-updated {
	margin-bottom: 3rem;
	color: var(--color-muted);
}

.legal-content h2 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	color: var(--color-primary);
}

.legal-content section p,
.legal-content li {
	line-height: 1.7;
	margin-bottom: 1rem;
}

.legal-content ul {
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
}

/* MEDIA QUERIES */

/* md */
@media (min-width: 768px) {
	:root {
		--spacing-section-horizontal-padding: 4rem;
		--spacing-section-vertical-padding: 3rem;

		--text-h1: 3rem;
		--text-h2: 2rem;
	}

	.footer__nav {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* lg */
@media (min-width: 1024px) {
	:root {
		--spacing-section-horizontal-padding: 6rem;
		--spacing-section-vertical-padding: 4rem;

		--text-h1: 4rem;
		--text-h2: 3rem;
	}
	/* HEADER */

	.header__actions {
		gap: 3rem;
	}

	.header__link {
		display: block;
	}

	.lang-switcher__link {
		padding: 0;
	}

	/* HERO */

	.hero {
		flex-direction: row;
		gap: var(--spacing-section-horizontal-padding);
	}

	.hero__content {
		flex: 3;
		text-align: left;
	}

	.hero__image {
		flex: 2;
		width: 0;
	}

	/* ABOUT */

	.about__grid {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}

	.about__info-block {
		flex: 1;
	}

	/* BENEFITS */

	.benefits {
		flex-direction: row;
		justify-content: space-around;
		align-items: flex-start;
	}

	/* PRICES */

	.prices__container {
		flex-direction: row;
	}

	/* GALLERY */

	.gallery__arrow {
		position: static;
		background-color: transparent;
		width: 7rem;
		height: 7rem;
	}

	.gallery__thumb-button {
		height: 5rem;
	}

	/* BOOKING */

	.booking {
		flex-direction: row;
		gap: var(--spacing-section-horizontal-padding);
	}

	.booking__content {
		flex: 3;
		text-align: left;
	}

	.booking__image {
		flex: 2;
		width: 0;
	}

	/* FOOTER */
	.footer__container {
		grid-template-columns: 1fr 2fr;
		gap: 8rem;
	}
}
