@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;700&display=swap');

:root {
	--white: hsl(0, 0%, 100%);
	--darkmagenta: hsl(300, 43%, 22%);
	--pink: hsl(333, 80%, 67%);
	--darkgrayishmagenta: hsl(303, 10%, 53%);
	--lightgrayishmagenta: hsl(300, 24%, 96%);
}

* {
	box-sizing: border-box;
}

body::before {
	content: '';
	background-image: url(./public/bg-pattern-top-desktop.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: -14rem -14rem;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
}

body {
	background-color: var(--white);
	font-family: 'League Spartan', 'sans-serif';
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	overflow-x: hidden;
	margin: 0;
	padding: 4rem 1.5rem 0 1.5rem;
}

body::after {
	content: '';
	background-image: url(./public/bg-pattern-bottom-desktop.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 20rem 2rem;
	height: 100%;
	width: 100%;
	position: absolute;
}

.container {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 1100px;
	z-index: 1;
}

p {
	font-size: 15px;
}

.top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.left	{
	display: flex;
	flex-direction: column;
	justify-content: start;
	width: 40%;
}

.left h1 {
	margin: 0;
	margin-bottom: 1.5rem;
	font-size: 3.4rem;
	color: var(--darkmagenta);
}

.left p {
	margin: 0;
	color: var(--darkgrayishmagenta);
	line-height: 1.5rem;
	font-size: 1.2rem;
}

.right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: end;
	width: 60%;
}

.review-box {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: start;
	background-color: var(--lightgrayishmagenta);
	width: 435px;
	padding: 0.2rem 1.75rem;
	border-radius: 8px;
	margin: 0.5rem 0;
}

.review-box span {
	margin-right: 1.5rem;
}

.review-box span img {
	margin: 0 0.05rem;
}

.review-box p {
	font-weight: bold;
	font-size: 1.1rem;
}

#review1 {
	margin-right: 6rem;
}

#review2 {
	margin-right: 3rem;
}

.bottom {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin: 5rem 0;
	width: 100%;
}

.card {
	background-color: var(--darkmagenta);
	padding: 2.1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: space-between;
	width: 350px;
	border-radius: 8px;
}

.card-header {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	margin: 0.5rem 0;
}

.card-header img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 1.2rem;
}

.card-header-details h3 {
	margin: 0;
	color: var(--white);
	margin-bottom: 0.2rem;
	font-size: 1rem;
}

.card-header-details h4 {
	margin: 0;
	color: var(--pink);
	margin-top: 0.2rem;
	font-weight: 400;
	font-size: 1rem;
}

.card p {
	margin-bottom: 0;
	color: var(--white);
	line-height: 1.4rem;
	font-size: 1.035rem;
}

#card1 {
	margin-bottom: 4rem;
}

#card2 {
	margin-bottom: 2rem;
}

#card3 {
	margin-bottom: 0;
}

footer {
	flex-shrink: 0;
	height: fit-content;
	padding: 0.5rem;
	text-align: center;
	color: var(--white);
	font-size: 0.8rem;
	border-top: 5px;
	background-color: var(--darkmagenta);
	width: 100vw;
	z-index: 1;
}

footer a {
	text-decoration: none;
	color: var(--pink);
}

footer a:hover {
	color: var(--lightgrayishmagenta);
}

@media(max-width: 1150px) {
	body::before {
		background-image: url(./public/bg-pattern-top-mobile.svg);
		background-position: 0 0;
	}
	
	body {
		padding: 4rem 1.3rem 0 1.3rem;
	}
	
	body::after {
		background-image: url(./public/bg-pattern-bottom-mobile.svg);
		background-position: 35rem 0;
	}

	.container {
		width: 100%;
	}

	.top {
		flex-direction: column;
		justify-content: center;
	}

	.left {
		width: 100%;
		text-align: center;
	}

	.left h1 {
		margin: 0;
		margin-bottom: 1.5rem;
		font-size: 2.5rem;
	}
	
	.left p {
		margin: 0;
		line-height: 1.5rem;
		font-size: 1.1rem;
	}

	.right {
		width: 100%;
		margin: 1.5rem 0;
	}

	.review-box {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: fit-content;
		padding: 1rem;
		text-align: center;
	}

	.review-box span {
		margin-right: 0;
		margin-bottom: 0.7rem;
	}

	.review-box p {
		margin: 0;
		font-size: 1rem;
	}

	#review1 {
		margin-right: 0;
	}
	
	#review2 {
		margin-right: 0;
	}

	.bottom {
		flex-direction: column;
		margin: 0 0 4rem 0;
	}

	.card {
		width: 100%;
		margin: 1rem 0;
	}

	.card p {
		line-height: 1.2rem;
		font-size: 0.98rem;
	}

	#card1 {
		margin-bottom: 0;
	}
	
	#card2 {
		margin-bottom: 0;
	}
	
	#card3 {
		margin-bottom: 0;
	}
}