@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*::before,
*::after {
	box-sizing: border-box;
}

*:not(dialog) {
	margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		interpolate-size: allow-keywords;
	}
}
:root {
	--bg: #000;
	--primary: #fff;
	--secondary: #000;
}

body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-family: 'Poppins', sans-serif;
	color: var(--primary);
}

html {
	scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

#root,
#__next {
	isolation: isolate;
}
body {
	background-color: var(--bg);
}
header {
	position: relative;
}
.upper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	display: flex;
	z-index: 1;
	justify-content: space-between;
	align-items: start;
	padding: 1.5rem 2rem;

	h1 img {
		width: 100%;
		height: 30px;
	}
	nav ul {
		display: flex;
		gap: 1.5rem;
		list-style: none;

		li a {
			text-decoration: none;
			color: var(--primary);
			text-transform: uppercase;
			font-size: 0.85rem;
			letter-spacing: 0.1em;
			font-weight: 600;
			&:hover {
				color: var(--primary);
				opacity: 0.8;
			}
		}
	}
	@media (max-width: 768px) {
		display: none;
	}
}
.upper-mobile {
	display: none;
	@media (max-width: 768px) {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		justify-content: space-between;
		align-items: start;

		.visible {
			display: flex;
			justify-content: space-between;
			width: 100%;
			height: auto;
			align-items: center;
			padding: 1.5rem 2rem;
			background-color: var(--bg);
			z-index: 10;

			h1 {
				height: auto;
			}
			h1 img {
				width: auto;
				height: 30px;
			}
			svg {
				width: 35px;
				height: 35px;
			}
		}
		nav {
			width: 100%;
			position: absolute;
			z-index: 9;
			top: -200px;
			background-color: var(--bg);
			transition: all 0.3s ease;

			&.active {
				top: 80px;
			}

			ul {
				display: flex;
				flex-direction: column;
				gap: 1.5rem;
				list-style: none;
				width: 100%;
				padding: 0;
				padding-block: 1.5rem;
				align-items: center;

				li a {
					text-decoration: none;
					color: var(--primary);
					text-transform: uppercase;
					font-size: 0.85rem;
					letter-spacing: 0.1em;
					font-weight: 600;
					&:hover {
						color: var(--primary);
						opacity: 0.8;
					}
					&.active {
						color: var(--primary);
						opacity: 0.8;
					}
					&.active:hover {
						color: var(--primary);
						opacity: 0.8;
					}
				}
			}
		}
	}
}
.glide__slides {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
}
.glide__slide {
	width: 100%;
	height: 929px;
	display: grid;
	place-items: center;
	grid-template-areas: 'pile';

	> * {
		grid-area: pile;
	}
}
.glide__slide img {
	width: 100%;
	height: 929px;
	object-fit: cover;
	object-position: center;
}
.glide__slide .text {
	display: flex;
	flex-direction: column;
	place-items: center;
	gap: 1.2rem;

	h3 {
		font-size: 3.2rem;
		font-weight: 700;
		text-align: center;

		@media (max-width: 768px) {
			font-size: 2.2rem;
		}
	}

	a {
		padding: 0.75rem 1.85rem;
		background-color: var(--primary);
		border: 2px solid var(--primary);
		color: var(--secondary);
		font-weight: 600;
		text-decoration: none;
		text-transform: uppercase;
		font-size: 0.75rem;
		letter-spacing: 0.1em;

		&:hover {
			background-color: transparent;
			color: var(--primary);
		}
	}
}
#content {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	padding-inline: 2rem;
	max-width: 1200px;

	> * {
		padding-block-start: 8rem !important;

		@media (max-width: 768px) {
			padding-block-start: 4rem !important;
		}
	}

	.infos {
		display: flex;
		flex-direction: row;
		gap: 1.5rem;
		padding: 2rem;
		justify-content: space-between;
		width: 100%;

		.info {
			display: flex;
			flex-direction: column;
			place-items: center;
			h3 {
				font-size: 2.2rem;
				font-weight: 700;
			}
			p {
				font-size: 0.85rem;
				line-height: 1.6;
				text-wrap: pretty;
			}
		}
		@media (max-width: 768px) {
			flex-direction: column;
			.info {
				width: 100%;
			}
		}
	}
	.brands {
		display: flex;
		flex-direction: column;
		gap: 2rem;

		h3 {
			font-size: 2.2rem;
			font-weight: 700;
			text-align: center;
		}

		.brands-container {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 3.6rem;

			.brand {
				display: flex;
				flex-direction: column;
				gap: 1.5rem;
				align-items: center;
				overflow: hidden;

				.brand-picture {
					width: 100%;
					border-radius: 0.85rem;
					overflow: hidden;

					img {
						width: 100%;
						height: auto;
						object-fit: contain;
						transition: transform 0.3s ease;

						&:hover {
							transform: scale(1.05);
							overflow: hidden;
						}
					}
				}
				p {
					font-size: 0.85rem;
					line-height: 1.6;
					text-wrap: pretty;
					text-align: center;
					max-width: 70%;
				}
			}
			@media (max-width: 768px) {
				grid-template-columns: 1fr;
			}
		}
	}
}

section,
footer {
	scroll-margin-top: 96px;
}

footer {
	gap: 2rem;
	display: flex;
	flex-direction: column;
	background-color: var(--secondary);
	color: var(--primary);
	text-align: center;
	padding: 2rem;
	padding-block-start: 5rem !important;
	margin-block-start: 6rem !important;
	margin-inline: auto;
	border-top: 1px solid var(--primary);
	max-width: 1200px;

	h3 {
		font-size: 2.2rem;
		font-weight: 700;
		text-align: center;
	}
	.infos {
		display: grid;
		grid-template-columns: repeat(3, auto);
		gap: 1.5rem;
		justify-content: space-between;

		.info {
			display: flex;
			flex-direction: column;
			align-items: flex-start;
			gap: 1rem;

			> div {
				display: flex;
				flex-direction: column;
				text-align: left;

				span {
					font-size: 0.85rem;
					line-height: 1.6;
					text-wrap: pretty;
				}
			}
		}
		@media (max-width: 768px) {
			grid-template-columns: 1fr;
		}
	}

	.copyright {
		padding-block-start: 4rem;
		text-align: left;
		font-size: 0.85rem;
		@media (max-width: 768px) {
			padding-block: 4rem;
		}
	}

	@media (max-width: 768px) {
		padding-block-start: 3rem !important;
		margin-block-start: 4rem !important;
	}
}
