/* nav, footer, shared section spacing */

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background-color: var(--primary-black);
	font-family: var(--ff-heading);
}

.logo {
	height: 2rem;
	width: auto;
}

.menu-link {
	text-transform: uppercase;
	color: var(--primary-white);
	margin-left: 1.5rem;
}

.header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

footer {
	background-color: var(--dark-grey);
	padding: 2.5rem;
}

.footer-form {
	display: flex;
	gap: 1rem;
}

.email-input {
	padding: 0.75rem 1rem;
	width: 100%;
	background-color: transparent;
	border: 1px solid var(--light-grey);
	color: var(--primary-white);
}

.divider {
	height: 0.5px;
	width: 100%;
	background-color: var(--light-grey);
	margin: 1.5rem 0;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.slogan {
	text-transform: uppercase;
	font-size: 0.5rem;
}

.footer-nav {
	display: flex;
	justify-content: space-between;
}

.footer-nav-left {
	display: flex;
	gap: 5rem;
}

.footer-nav-links {
	display: flex;
	flex-direction: column;

	> h5 {
		margin-bottom: 0.75rem;
	}

	> a {
		margin-bottom: 0.5rem;
		color: var(--light-grey);
	}
}

.footer-nav-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5rem;
	max-width: 480px;
	margin-left: 2.5rem;
}

.social-links {
	display: flex;
	flex-direction: column;
	width: fit-content;

	> h5 {
		margin-bottom: 0.5rem;
		width: fit-content;
	}

	> div {
		width: fit-content;

		> a > img {
			height: 1.5rem;
			width: auto;
			margin-left: 0.25rem;
		}
	}
}

.footer-company-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-end;

	> img {
		height: 2rem;
		width: auto;
		filter: grayscale(100%);
	}

	> img:hover {
		filter: grayscale(0%);
	}
}

.footer-bottom {
	> p {
		font-size: 0.75rem;
	}
}

@media (max-width: 1000px) {
	nav {
		padding: 0.75rem 1rem;
	}

	.logo {
		height: 1.75rem;
	}

	.menu-link {
		margin-left: 1rem;
	}

	footer {
		padding: 1.5rem;
	}
}

@media (max-width: 720px) {
	.footer-nav {
		flex-direction: column;
		gap: 2rem;
	}

	.footer-nav-right {
		width: 100%;
	}
}

@media (max-width: 500px) {
	nav {
		padding: 0.5rem 0.75rem;
	}

	.logo {
		height: 1.4rem;
	}

	.menu-link {
		margin-left: 0.5rem;
		font-size: 0.75rem;
	}

	.footer-top {
		flex-direction: column;
		gap: 1rem;
	}

	.footer-nav-right {
		width: 100%;
		margin: 0;
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-company-logos {
		justify-content: flex-start;
	}

	.footer-logo-wrapper,
	.footer-email-wrapper {
		width: 100%;
	}
}