/* inria-serif-regular - latin_latin-ext */
@font-face
{
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Inria Serif';
	font-style: normal;
	font-weight: 400;
	src: url('./fonts/inria-serif-v18-latin_latin-ext-regular.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inria-serif-700 - latin_latin-ext */
@font-face
{
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Inria Serif';
	font-style: normal;
	font-weight: 700;
	src: url('./fonts/inria-serif-v18-latin_latin-ext-700.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.glass
{
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

@supports not ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px)))
{
	.glass
	{
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}

:root
{
	--color-primary: #C5A34E;
	--color-primary-light: #D0AB5C;
	--color-primary-dark: #A98326;
	--color-secondary: #E5C8B2;
	--color-foreground: #FFF0E6;
	--font-regular: 400;
	--font-bold: 700;

	--text-shadow: 0px 4px 9px rgba(0, 0, 0, 0.6);

	--x-padding: 15px;

	--screen-base: 1158px;
}

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

html
{
	scroll-behavior: smooth;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

body
{
	font-family: 'Inria Serif';
	font-optical-sizing: auto;
	font-style: normal;
	font-size: 16px;
	font-weight: var(--font-regular);
	color: var(--color-primary-light);

	margin: 0;
	display: flex;
	flex-flow: column;
	overflow-x: hidden;
	background: linear-gradient(0deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.54)), url("/assets/img/bg.jpg");
}

h1,
h2,
h3,
h4,
h5,
h6,
p
{
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
}

a
{
	color: inherit;
	text-decoration: none;
}

b,
strong
{
	font-weight: var(--font-bold);
}

.container
{
	max-width: var(--screen-base);
	margin: auto;
}


header
{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 15px var(--x-padding);
}

header img
{
	width: 188px;
	height: auto;
}

main
{
	flex-grow: 1;
	overflow: hidden;
	padding-bottom: 42px;
}

main .hero
{
	position: relative;
	height: 500px;
	max-width: var(--screen-base);
	margin: auto;
}

main .hero-texts
{
	position: relative;
	padding: 55px;
	display: flex;
	flex-direction: column;
	z-index: 1;
	color: var(--color-secondary);
	text-align: center;
	text-shadow: var(--text-shadow);
	line-height: 1;
	gap: 0.5rem;
}

main .hero-texts h1
{
	font-size: 2.75rem;
}

main .hero-texts h2
{
	font-size: 1.25rem;
}

main .hero-texts h3
{
	font-size: 1rem;
}


main .hero img
{
	position: absolute;
	object-fit: cover;
	height: 100%;
	width: 100%;
	z-index: -1;
}

main .hero::before
{
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.3);
}

main .separator
{
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 4rem;
	padding: 2rem 0;
	font-size: 1.875rem;
}

main .separator svg:last-of-type
{
	transform: rotate(180deg);
}

main .offer
{
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

main .offer-card
{
	display: block;
	position: relative;
	width: 342px;
	height: 550px;
	box-shadow: 0px 5px 19px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

main .offer-card h3
{
	margin-top: 52px;
	position: relative;
	font-size: 2rem;
	color: var(--color-secondary);
	z-index: 1;
	text-align: center;
	text-shadow: var(--text-shadow);
	line-height: 1.2;
}


main .offer-card::before
{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 27%, rgba(0, 0, 0, 0) 60%);

}

main .card-footer
{
	position: absolute;
	bottom: 0;
	display: flex;
	flex-direction: column;
	z-index: 1;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 1.25rem;
	background-color: rgba(19, 0, 0, 0.4);
	padding: 1.125rem 2.5rem 1.875rem;
	width: 100%;
	max-height: 30%;
	height: 100%;
}

main .card-footer p
{
	color: var(--color-secondary);
	text-shadow: var(--text-shadow);
}

main .card-cta
{
	color: var(--color-foreground);
	padding: 0.375em 1.25em;
	background-color: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--color-foreground);
	transition: background-color 0.3s ease, color 0.3s ease;
	white-space: nowrap;
}

main .card-cta:hover
{
	color: black;
	background-color: var(--color-foreground);
}

main .offer-card:hover img
{
	transform: scale(1.1);
}


main .offer-card img
{
	position: absolute;
	object-fit: cover;
	height: 100%;
	width: 100%;
	inset: 0;
	z-index: -1;
	transition: transform 0.3s ease;
}

footer
{
	background-color: white;
	color: var(--color-primary-dark);
}

footer .footer-top
{
	border-top: 1px solid var(--color-primary);
	border-bottom: 1px solid var(--color-primary);
	padding: 1.75rem 0 1.25rem;
	text-align: center;
}

footer .footer-top .container
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

footer .footer-top img
{
	width: 224px;
	height: auto;
}

footer .footer-bottom
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 1.875rem 0 4rem;
}

footer .footer-flexbox
{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 1.25rem;
	line-height: 1.25;
	text-align: center;
}

footer .footer-flexbox:first-of-type
{
	text-align: left;
}

footer .footer-flexbox:last-of-type
{
	text-align: right;
}


footer .footer-socials
{
	display: flex;
	gap: 1.25rem;
	align-items: center;
	justify-content: end;
}

footer .footer-socials a
{
	display: flex;
	transition: transform 0.3s ease;
}

footer .footer-socials a:hover
{
	transform: scale(1.1);
}



footer .footer-copyright
{
	padding: 0.75rem 0;
	text-align: center;
}



/* MARK: screen xl */
/* calc(var(--screen-base) + 2 * var(--x-padding)) */
@media (max-width: 1218px)
{
	.container
	{
		padding: 0 var(--x-padding);
	}

	main .offer
	{
		margin-left: -5px;
		margin-right: -5px;
	}
}

/* MARK: screen lg */
@media (max-width: 64rem)
{
	main .hero
	{
		height: 400px;
	}

	main .hero-texts
	{
		padding: 35px var(--x-padding);
		gap: 0.25rem;
	}

	main .offer
	{
		gap: 0.5rem;
	}

	main .offer-card
	{
		width: 292px;
		height: 500px;
	}

	main .offer-card h3
	{
		font-size: 1.75rem;
	}

	main .card-footer
	{
		padding: 1rem 0.75rem 1.5rem;
		font-size: 1rem;
	}

	footer .footer-bottom
	{
		gap: 2.5rem 5rem;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	footer .footer-flexbox:first-of-type
	{
		text-align: center;
	}

	footer .footer-flexbox:last-of-type
	{
		text-align: center;
	}
}

/* MARK: screen md */
@media (max-width: 48rem)
{
	.container
	{
		padding: 0 7px;
	}

	main .hero
	{
		height: 300px;
	}

	main .hero-texts
	{
		padding: 30px var(--x-padding);
	}

	main .hero-texts h1
	{
		font-size: 2rem;
	}

	main .hero-texts h2
	{
		font-size: 1rem;
	}

	main .hero-texts h3
	{
		font-size: 0.75rem;
	}

	main .offer-card
	{
		height: 425px;
		box-shadow: none;
	}

	main .offer-card h3
	{
		margin-top: 26px;
		font-size: 1.5rem;
	}

	main .card-footer
	{
		max-height: 20%;
		padding: 1.125rem 0.25rem 1.75rem;
	}

	main .card-cta
	{
		display: none;
	}

	main .separator
	{
		font-size: 1.5rem;
	}

	main .separator svg
	{
		max-width: 10vw;
	}
}

/* MARK: screen sm */
@media (max-width: 40rem)
{
	header
	{
		padding: 7px var(--x-padding);
	}

	main
	{
		padding-bottom: 21px;
	}

	main .hero
	{
		height: 250px;
	}

	main .hero-texts
	{
		padding: 20px var(--x-padding);
	}

	main .hero-texts h1
	{
		font-size: 1.25rem;
	}

	main .hero-texts h2
	{
		font-size: 0.8rem;
	}

	main .hero-texts h3
	{
		font-size: 0.625rem;
	}

	main .separator
	{
		padding: 1rem 0;
	}

	main .offer-card
	{
		height: 275px;
	}

	main .offer-card h3
	{
		margin-top: 20px;
		line-height: 1;
		font-size: clamp(1rem, 4vw, 1.5rem)
	}

	main .card-footer
	{
		line-height: 1;
		font-size: 0.75rem;
		padding: 0.875rem 0.25rem 1rem;
	}

	main .separator svg
	{
		display: none;
	}

	footer .footer-top
	{
		padding: 0.75rem 0 0.5rem;
	}

	footer .footer-bottom
	{
		gap: 1.5rem 1.75rem;
		padding: 0.75rem 0 1.25rem;
	}

	footer .footer-flexbox
	{
		font-size: 1rem;
		gap: 0.75rem;
		line-height: 1;
	}

	footer .footer-flexbox:last-of-type
	{
		flex-direction: row;
		align-items: center;
	}

	footer .footer-socials
	{
		gap: 0.75rem;
	}
}
