/* ==== Fonts ==== */

@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");

@font-face {
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/SourceCodePro-Regular.woff2") format("woff2"),
		url("../fonts/SourceCodePro-Regular.woff") format("woff"),
		url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
	font-family: "Source Code Pro";
	font-display: swap;
}

/* ==== General ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	position: relative;
	background-color: white;
	width: 100%;
	height: 100%;
	overflow: hidden;
	color: #242529;
	font-size: 10px;
	line-height: 1.5;
	font-family: "Source Code Pro", Consolas, Arial, Helvetica, sans-serif;
}

a {
	transition: color 0.3s ease;
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus {
	outline: none;
	color: #1340c1;
}
a:focus-visible {
	outline: 2px dashed #1340c1;
}

p {
	margin: 0;
	padding: 3px;
	line-height: 1.5;
}

strong {
	margin-left: 3px;
	font-weight: 900;
	font-family: Arial, Helvetica, sans-serif;
}

.visually-hidden {
	position: absolute;
	clip: rect(0 0 0 0);
	margin: -1px;
	border: 0;
	padding: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

/* ==== Layout ==== */
.layout {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 4.17% 15.6% 3.65%;
	width: 100%;
	height: 100%;
	font-size: 1.6rem;
}

/* ==== Header ==== */
.header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 11%;
	width: 100%;
}

.logo__img {
	width: auto;
	height: 6rem;
}

/* ==== Main ==== */
.main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10%;
	width: 100%;
}

.main__card,
.main__contact {
	margin-bottom: 6.82%;
	width: 37rem;
}

/* ==== Banner ==== */
.banner {
	position: relative;
	left: -15%;
	margin-bottom: 3.05%;
	background: #000 url("../img/banner-1920.png") center 35% / cover no-repeat;
	width: 138%;
	height: 52.8%;
	min-height: 40%;
}

/* ==== Footer ==== */
.footer {
	display: flex;
	/* 	flex-wrap: wrap; */
	justify-content: space-between;
}

.footer__social {
	display: flex;
	gap: 2.5rem;
}

.footer__copy {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	font-size: 1.4rem;
}

/* =====================
Responsive Design
========================*/

/* ==== < 1600px ==== */
@media (max-width: 1600px) {
	.layout {
		padding: 4.17% 7.6% 3.65%;
	}
	.logo__img {
		height: 4.5rem;
	}
	.banner {
		background: #000 url("../img/banner-1600.png") center 35% / cover no-repeat;
		height: 80%;
	}
}

/* ==== < 960x ==== */
@media (max-width: 960px) {
	p::after {
		display: inline;
		content: " ";
	}
	.header {
		margin-bottom: 4%;
	}
	.logo__img {
		height: 4.75rem;
	}
	.layout {
		flex-direction: column;
		align-items: center;
		padding: 6% 7.6% 1.5%;
		font-size: 120%;
	}
	.header,
	.main,
	.banner,
	.footer {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	.main__card,
	.main__contact {
		margin-bottom: 3%;
		width: 85%;
	}
	.banner {
		left: 0;
		background: #000 url("../img/banner-960.png") center 35% / cover no-repeat;
		height: 20vh;
	}
	.footer {
		flex-direction: column;
		justify-content: space-between;
		height: 15%;
	}
	.footer__social {
		margin-bottom: 3%;
	}
	.footer__copy {
		font-size: smaller;
	}
	.footer__copy p {
		flex-wrap: wrap;
		align-items: center;
	}
}

/* ==== < 400px ==== */
@media (max-width: 400px) {
	p {
		width: 100%;
	}
	.layout {
		padding-top: 15%;
	}
	.logo__img {
		height: 4.2rem;
	}
	.main__card,
	.main__contact {
		width: 100%;
	}
	.banner {
		background: #000 url("../img/banner-400.png") center 35% / cover no-repeat;
	}
	.footer__social {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
		margin-bottom: 2rem;
		width: 85%;
	}
	.footer__copy {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer__copy p {
		justify-content: center;
	}
}

/* ==== < 320px ==== */
@media (max-width: 320px) {
	html,
	body {
		overflow-y: scroll;
		font-size: xx-small;
	}
	.header,
	.main,
	.banner,
	.footer,
	.footer__social {
		margin-bottom: 5rem;
	}
	.layout {
		height: 100%;
	}
	.logo__img {
		height: 3.5rem;
	}
	.banner {
		background: #000 url("../img/banner-320.png") center 35% / cover no-repeat;
	}
	.footer {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
	}
}

/* ==== < 200px ==== */
@media (max-width: 200px) {
	html,
	body {
		overflow-y: auto;
		font-size: 8px;
	}
	.layout {
		padding: 5%;
	}
	.logo__img {
		height: 3rem;
	}
	.main__card,
	.main__contact {
		margin-bottom: 5%;
		width: 95%;
	}
	.footer__copy {
		flex-direction: column;
		font-size: 0.9rem;
		text-align: center;
	}
	.footer__copy p {
		margin-bottom: 1rem;
	}
}

/* ==== < 600px ==== */
@media (max-height: 600px) {
	html,
	body {
		overflow-y: auto;
		font-size: 8px;
	}
	.header {
		margin-bottom: 5%;
	}
	.main__card,
	.main__contact {
		margin-bottom: 5%;
	}
}
