/* @media screen and (width > 320px) {}
    @media screen and (width > 576px) {}
    @media screen and (width > 768px) {}
    @media screen and (width > 992px) {}
    @media screen and (width > 1280px) {}
     */

/* Variable */
:root {
	--font-roboto: 'Roboto', serif;
}

/* Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	min-width: 0;
}

html,
body {
	font-family: var(--font--poppins);
}

body {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
	margin: 0;
}

p {
	text-wrap: pretty;
	margin: 0;
}

/* Headers */
.header {
	--header-height: 58px;
	--image-height: 40px;

	display: flex;
	justify-content: center;
	align-items: center;
	padding: 5px;
	height: var(--header-height);

	img {
		display: inline-block;
		height: var(--image-height);
	}

	@media screen and (width > 992px) {
		--header-height: 108px;
		--image-height: 60px;
	}
}

/* body,
main,
section,
p,
h1,
h2,
header,
img {
	margin: 0;
	padding: 0;
} */

/* Main */
main {
	margin-left: auto;
	margin-right: auto;

	div.principal-header {
		background: url('../images/white-background-one.svg') no-repeat 40px 166px,
			url('../images/white-background-two.svg') no-repeat 0 234px;
		background-color: #c21b17;
		width: 100%;

		section.north {
			display: flex;
			flex-direction: column;

			div.text {
				padding: 1rem;
				h1 {
					margin-left: 10px;
					font-family: var(--font-roboto);
					font-size: 32px;
					font-weight: 300;
					line-height: 44px;
					text-align: left;
					color: white;
				}
				h2 {
					margin-left: 10px;
					font-family: var(--font-roboto);
					font-size: 20px;
					font-weight: 300;
					line-height: 28px;
					text-align: left;
					color: white;
				}
				button#download-desktop {
					visibility: hidden;
				}
			}
			div.image-container {
				display: flex;
				justify-content: end;
				img {
					max-width: 350px;
					margin-right: 2.5em;
				}
			}
		}
		section.south {
			display: flex;
			justify-content: center;
			align-items: flex-end;
			background-color: white;
			padding-top: 7em;
			margin-top: -5em;
			button {
				background-color: #c21b17;
				border-radius: 4px;
				color: white;
				border: none;
				padding: 1.2em;
				width: 296px;
				margin: 1em;
				font-family: var(--font-roboto);
				font-size: 16px;
				font-weight: 700;
				line-height: 20px;
				letter-spacing: 1px;
				text-align: center;
				padding-bottom: 16px;
				width: 100%;
			}
		}
	}
}

/* Main */

/* Tiles */
.tiles {
	max-width: 1080px;
	margin: 0 auto;
	margin-bottom: 4rem;
	padding: 0 1rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;

	@media screen and (width > 768px) {
		grid-template-columns: 40% 1fr;
		gap: 1rem;
	}

	@media screen and (width > 992px) {
		gap: 1rem 5rem;
	}
}

.tile {
	h3 {
		font-family: var(--font-roboto);
		font-weight: 300;
		font-size: 32px;
		line-height: 40px;
		margin-top: 1em;
		margin-bottom: 0.4em;
		color: #20252b;
	}

	p {
		font-family: var(--font-roboto);
		font-weight: 300;
		font-size: 20px;
		line-height: 28px;
		color: #20252b;
	}
	ul {
		padding: 1em;
		margin-left: 1em;
	}
	ul li {
		text-decoration: dotted;
		margin-top: 0.3em;
	}

	a {
		font-family: var(--font-roboto);
		font-size: 16px;
		color: #c21b17;
		font-weight: 500;
		line-height: 24px;
		text-decoration: underline;
	}
}

.call-us {
	border: solid 1px #ccc;
	border-radius: 4px;
	margin-bottom: 2rem;
	display: flex;
	padding: 0.5em;
	display: flex;

	div.left {
		padding: 0.5em;
		margin-right: 1em;
	}
	a.right {
		text-decoration: none;
		p.text {
			margin-top: 0.6em;
			font-family: Roboto;
			font-size: 12px;
			color: #20252b;
			font-weight: 700;
			line-height: 20px;
		}
		p.phone {
			font-family: Roboto;
			font-size: 16px;
			color: #c21b17;
			font-weight: 500;
			line-height: 24px;
			text-decoration: underline;
		}
	}

	@media screen and (width > 992px) {
		max-width: 300px;
	}
}

.tile--span-2--responsive {
	grid-column: span 1;

	@media screen and (width > 768px) {
		grid-column: span 2;
	}
}

/* Banner Mobile */
section.app-download-mobile {
	visibility: visible;
	background-image: linear-gradient(#af2219, #c21b17);
	border-radius: 4px;
	h1 {
		font-family: Roboto;
		font-size: 24px;
		font-weight: 300;
		line-height: 28px;
		color: white;
		padding-top: 1.5em;
		padding-left: 1em;
		margin-bottom: 1em;
	}
	div.button-container {
		display: flex;
		padding-left: 1em;
		justify-content: start;
		width: 100%;
		margin-top: 2.5em;
		margin-bottom: 2em;
		button {
			color: #c21b17;
			font-family: var(--font-roboto);
			font-size: 16px;
			font-weight: 700;
			line-height: 20px;
			height: 48px;
			border-radius: 4px;
			border: none;
			background: #ffffff;
			cursor: pointer;
			width: 235px;
			height: 48px;
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}
	div.image-container {
		width: 100%;
		display: flex;
		justify-content: end;

		img {
			display: inline-block;
			max-width: 400px;
		}
	}

	@media screen and (width > 992px) {
		display: none;
	}
}

/* Banner Desktop */
.app-download-desktop {
	display: none;
	margin: 0 auto 4rem;
	justify-content: space-between;
	max-width: 1080px;
	padding: 1rem;

	section.column-one {
		padding-top: 2.5em;

		button {
			color: #c21b17;
			font-family: Roboto;
			font-size: 16px;
			font-weight: 700;
			line-height: 20px;
			border-radius: 4px;
			border: none;
			background: #ffffff;
			cursor: pointer;
			width: 235px;
			height: 48px;
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}
	section.column-two {
		padding-top: 4em;
	}
	h1 {
		font-family: Roboto;
		font-size: 24px;
		font-weight: 300;
		line-height: 28px;
		color: white;
		padding-top: 1.5em;
		margin-bottom: 2rem;
	}

	div.image-container {
		width: 100%;
		display: flex;
		justify-content: end;
		img {
			max-width: 462px;
		}
	}

	@media screen and (width > 992px) {
		display: flex;
	}
}
.app-download-desktop-container {
	background: linear-gradient(#af2219, #c21b17);
}

/* Footer */
.footer {
	--color: #f9fafb;
	--background: linear-gradient(90deg, #525152 3.18%, #242426 95.09%);
	--line-color: #8a8a8a;
	--width-logo: 88px;

	background: var(--background);
	padding-top: 24px;
}

.footer__header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 44px 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;

	.logo {
		display: inline-flex;
		width: var(--width-logo);
		margin: auto;
	}

	.icons {
		margin-top: 1rem;
		display: grid;
		grid-template-columns: repeat(4, 60px);
		gap: 4px;
		justify-content: center;
		align-items: center;
	}

	.icon {
		width: 42px;
	}

	.paragraph--tablet {
		display: none;
	}

	ul {
		list-style-type: none;

		li {
			position: relative;
			padding-left: 16px;
		}
		li::before {
			content: '';
			position: absolute;
			left: 4px;
			top: 6px;
			width: 4px;
			height: 4px;
			border-radius: 50%;
			background-color: var(--color);
		}
	}
}

.footer__header__container {
	background: linear-gradient(90deg, #69696c 0.36%, rgba(105, 105, 108, 0) 115.42%);
}

.footer__header__paragraphs {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	margin-bottom: 2rem;
}

.footer__header__social {
	display: block;
	text-align: center;

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

	.paragraph {
		margin-bottom: 12px;
	}
}

.footer__tiles {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
}

.footer__tiles__container {
	background: linear-gradient(90deg, #69696c 0.36%, rgba(105, 105, 108, 0) 115.42%);
}

.footer__tiles__item {
	padding: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
	border-top: 1px solid var(--color);

	.logo {
		width: 100%;
		max-width: 264px;
		height: 36px;
	}
}

.footer__infos {
	max-width: 1280px;
	margin: 0 auto;
	padding: 44px 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;

	.info {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}
}

.footer__infos__item {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.footer__logos {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px;
	padding-bottom: 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;

	.logo {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 108px;
		height: 32px;
	}

	.logo--tablet {
		display: none;
	}

	.logo--store {
		width: 96px;
		height: 32px;
	}
}

.footer__logos__item {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	justify-items: center;
	align-items: center;
	gap: 3rem;
}

@media screen and (width > 576px) {
	.footer__line {
		display: none;
	}

	.footer__tiles {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer__tiles__container {
		border-top: 1px solid var(--color);
	}

	.footer__tiles__item {
		border-top: none;
	}
}

@media screen and (width > 768px) {
	.footer__header__paragraphs {
		text-align: left;
		margin-bottom: 0;
	}

	.footer__header__social {
		text-align: left;
	}

	.footer__header {
		grid-template-columns: var(--width-logo) 1fr 250px;

		.paragraph--mobile {
			display: none;
		}

		.paragraph--tablet {
			display: initial;
		}
	}

	.footer__header__paragraphs {
		gap: 0;
	}

	.footer__infos {
		padding: 44px 16px 16px;
		grid-template-columns: 2fr 1fr;

		.info {
			align-items: flex-start;
			text-align: left;
		}

		.paragraph--hidden {
			display: none;
		}
	}

	.footer__logos {
		grid-template-columns: 2fr 1fr;

		.logo--tablet {
			display: flex;
		}
	}

	.footer__logos__item {
		display: flex;
		justify-content: flex-start;
		gap: 32px;
	}
}

@media screen and (width > 992px) {
	.footer__header {
		gap: 32px;
	}

	.footer__tiles {
		grid-template-columns: repeat(4, 1fr);
		padding: 24px 0;
	}

	.footer__tiles__item {
		padding: 0 24px;
		border-right: 1px solid var(--line-color);
	}

	.footer__tiles__item:last-child {
		border-right: none;
	}

	.footer__logos__item {
		gap: 64px;
	}
}

.paragraph {
	margin: 0;
	color: var(--color);
	font: 400 14px var(--font-roboto);
	line-height: 18px;
	letter-spacing: 0.4px;
	text-wrap: pretty;

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

.paragraph--bold {
	font-weight: 700;
}

.paragraph--margin {
	margin-bottom: 12px;
}

.paragraph:last-of-type {
	margin-bottom: 0;
}

@media (min-width: 992px) {
	main {
		div.principal-header {
			background-image: url('../images/white-background-one.svg'),
				url('../images/white-background-one.svg'), url('../images/white-background-one.svg');
			background-repeat: no-repeat, no-repeat, no-repeat;
			background-position: -132px -23px, top 187px right -68px, top 132px right -199px;
			background-color: #c21b17;

			section.north {
				flex-direction: row !important;
				justify-content: center;
				max-width: 1080px;
				margin: 0 auto;
				padding: 3rem 1rem;
				position: relative;
				display: flex;
				justify-content: space-between;

				div.text {
					/* width: 450px; */
					padding: 0;

					h1 {
						margin-left: 0;
						font-family: var(--font-roboto);
						font-size: 48px;
						font-weight: 300;
						line-height: 44px;
						margin-bottom: 1rem;
						text-align: left;
						color: white;
						padding-top: 2rem;
					}
					h2 {
						margin-left: 0;
						font-family: var(--font-roboto);
						font-size: 32px;
						font-weight: 300;
						line-height: 36px;
						text-align: left;
						color: white;
					}

					button#download-desktop {
						visibility: visible;
						border-radius: 4px;
						color: #c21b17;
						border: none;
						padding: 1.2em;
						font-family: var(--font-roboto);
						font-size: 16px;
						font-weight: 700;
						line-height: 20px;
						letter-spacing: 1px;
						text-align: center;
						margin-top: 2em;
						background: #ffffff;
						cursor: pointer;
						width: 235px;
						height: 48px;
						display: flex;
						justify-content: center;
						align-items: center;
					}
				}
				div.image-container {
					/* height: 481px; */
					/* position: relative; */
					/* right: 0; */
				}
			}
			section.south {
				padding-top: 0;
				#download-mobile {
					visibility: hidden;
				}
			}
		}
	}
}

