/* No animations for people with vision impairment */
@media (prefers-reduced-motion: no-preference) {
	:root {
		interpolate-size: allow-keywords;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/*** GLOBAL ***/
a {
	color: var(--color-accent);
	text-decoration: underline;
	outline-offset: 2px;
	transition: color 0.2s;
}

p {
	margin: 0 0 1.5em;
	overflow-wrap: break-word;

	&:last-child {
		margin: 0;
	}
}

[hidden] {
	display: none !important;
}

table {
	width: 100%;
}

img, picture, video, canvas, svg {
	max-width: 100%;
	display: block;
	height: auto;
}

ol, ul {
	padding: 0 0 0 1.5em;
	margin-bottom: 1.5em;
}

input, button, textarea, select {
	font: inherit;
}

.alignleft {
	float: left;
	margin-right: 1rem;
}

.alignright {
	float: right;
	margin-left: 1rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.menu {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	overflow-wrap: break-word;
	line-height: 1em;
	margin: 0 0 0.5em;
	letter-spacing: -0.03em;
	font-weight: 400;
	font-family: var(--font-heading);
}

h1, .h1 {
	font-size: 5rem;
}

h2, .h2 {
	font-size: 4rem;
}

h3, .h3 {
	font-size: 3rem;
}

h4, .h4 {
	font-size: 2.5rem;
}

h5, .h5 {
	font-size: 2rem;
}

.ratio-container--placeholder {
	background: var(--color-gray);
	position: relative;

	img {
		width: 5rem;
		height: auto;
		position: absolute;
		opacity: 0.6;
		top: 50%;
		left: 50%;
		translate: -50% -50%;
	}
}

/*** END GLOBAL ***/

/**** HEADER ****/
.container--site-header {
	display: flex;
	justify-content: space-between;
}

.main-menu {
	list-style-type: none;
	display: flex;
}

.main-menu a {
	padding: 0.5rem 1rem;
	display: block;
}
/**** END HEADER ****/

/**** SLIDER ****/
.slider {
	--slides-per-page: 3;
	--gap: 10px;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	gap: var(--gap);
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-snap-stop: always;
}

.slider--full {
	.slider__slide {
		scroll-margin-left: var(--side-offset);

		&:first-child {
			margin-left: var(--side-offset);
		}

		&:last-child {
			margin-right: var(--side-offset);
			scroll-margin-right: var(--side-offset);
		}
	}
}

.slider {
	display: flex;
	--slides-per-page: 3;
	--gap: 0px;
	overflow-x: auto;
}

.slider__slide {
	--gap_per_item: var(--gap) * ( var(--slides-per-page) - 1 ) / var(--slides-per-page);
	flex: 0 0 calc(100% / var(--slides-per-page) - var(--gap_per_item));
}

.slider__control {
	opacity: 0;
}

/**** END SLIDER ****/

/**** FORMS ****/
input
button,
textarea,
select,
button {
	font: inherit;
	accent-color: var(--color-red);
	outline-offset: 2px;
	font-size: 1.6rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	color: var(--color-dark);
	display: block;
	background: transparent;
	border: 1px solid currentColor;
	height: 5rem;
	border-radius: 0;
	padding: 0 2.5rem;
}

input[type="checkbox"] {
	margin: 0 0.4rem 0 0;
	width: 1.6rem;
	height: 1.6rem;
}

.select-wrapper {
	color: #000;
	display: block;
}

select {
	appearance: none;
	color: inherit;
}

button {
	color: inherit;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	width: auto;
}

.button {
	--button-color: var(--color-red);
	display: inline-flex;
	height: 7rem;
	font-size: 2.4rem;
	padding: 0 2.4rem;
	font-family: var(--font-heading);
	justify-content: center;
	align-items: center;
	border-radius: 1.2rem;
	background: var(--button-color);
	color: #fff;
	border: 0;
	outline-offset: 2px;
	text-decoration: none;
	transition: background 0.2s;
}

.button--outline {
	border: 2px solid var(--button-color);
	color: var(--button-color);
	background: transparent;
}

.button--small {
	height: 4.5rem;
	font-size: 1.8rem;
	padding: 0 1.2rem;
}
/**** END FORMS ****/


/**** FAQ ****/
.accordion summary {
	list-style-type: none;
	line-height: 1.5em;
	padding: 1rem 0 1rem 5.5rem;
}

.accordion-content {
	padding: 1rem 0 2rem;
}
/**** END FAQ ****/


/**** BLOG ****/
.blog-grid {
	display: grid;
	gap: 4rem;
	grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
}

.blog-grid--loading {
	opacity: 0.6;
	pointer-events: none;
}

.blog-grid__pagination {
	margin-top: 3rem;
	text-align: center;
}

.article-card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
/**** END BLOG ****/

/**** FOOTER ****/
.main-footer {
	padding: 5rem 0;
}
/**** END FOOTER ****/