/* The footer, shared by every page.
   One file per section; each screen size has its block below. */

/* Laptop and desktop */
@media screen and (min-width: 1025px) {
	.site-footer {
		width: 100%;
		margin: 0 auto;
		padding: 2rem 3.5rem 1.25rem;
		position: relative;
		border: 1px solid rgba(255, 255, 255, 0.16);
		background: linear-gradient(
			135deg,
			rgba(62, 62, 62, 0.9),
			rgba(14, 14, 14, 1) 58%,
			rgba(0, 0, 0, 0.9)
		);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			0 1.75rem 4rem rgba(0, 0, 0, 0.18);
		overflow: hidden;
		color: #fff;

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.65;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
	}

	.footer-main,
	.footer-bottom {
		position: relative;
		z-index: 1;
	}

	.footer-main {
		display: grid;
		grid-template-columns: 1.4fr 0.7fr 0.7fr;
		gap: 3rem;
		padding-bottom: 2.5rem;
	}

	.footer-brand {
		.site-logo {
			color: #fff;
			font-size: 3rem;
			font-weight: 600;
			letter-spacing: 0.16em;
		}

		p {
			max-width: 18rem;
			margin-top: 1rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.8rem;
			line-height: 1.8;
			color: rgba(255, 255, 255, 0.58);
		}
	}

	.footer-heading {
		margin-bottom: 1rem;
		font-family: "Poppins", sans-serif;
		font-size: 0.62rem;
		letter-spacing: 0.22em;
		text-transform: uppercase;
		color: #fff;
	}

	.footer-links,
	.footer-socials {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;

		a {
			display: flex;
			align-items: end;
			gap: 0.2rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.82rem;
			color: rgba(255, 255, 255, 0.68);
			transition:
				color 0.2s ease,
				transform 0.2s ease;

			svg {
				margin-bottom: 0.1rem;
				width: 0.8rem;
				height: 0.8rem;
			}
			&:hover,
			&:focus-visible {
				color: #fff;
				transform: translateX(0.25rem);
			}
		}
	}

	.footer-bottom {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-top: 1.25rem;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		font-family: "Poppins", sans-serif;
		font-size: 0.62rem;
		letter-spacing: 0.08em;
		color: rgba(255, 255, 255, 0.4);

		p {
			margin: 0;
		}
	}
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.site-footer {
		width: 100%;
		margin: 0 auto;
		padding: 1.75rem 2.5rem 1.15rem;
		border: 1px solid rgba(255, 255, 255, 0.16);
		background: linear-gradient(
			135deg,
			rgba(62, 62, 62, 0.9),
			rgba(14, 14, 14, 1) 58%,
			rgba(0, 0, 0, 0.9)
		);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			0 1.5rem 3.5rem rgba(0, 0, 0, 0.18);
		position: relative;
		overflow: hidden;
		color: #fff;

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.65;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
	}

	.footer-main,
	.footer-bottom {
		position: relative;
		z-index: 1;
	}

	.footer-main {
		display: grid;
		grid-template-columns: 1.4fr 0.8fr 0.8fr;
		gap: 2rem;
		padding-bottom: 1.75rem;
	}

	.footer-brand {
		.site-logo {
			color: #fff;
			font-size: 2.5rem;
			font-weight: 600;
			letter-spacing: 0.14em;
		}
		p {
			max-width: 15rem;
			margin-top: 0.75rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.72rem;
			line-height: 1.8;
			color: rgba(255, 255, 255, 0.58);
		}
	}

	.footer-heading {
		margin-bottom: 0.9rem;
		font-family: "Poppins", sans-serif;
		font-size: 0.58rem;
		letter-spacing: 0.2em;
		text-transform: uppercase;
		color: #fff;
	}

	.footer-links,
	.footer-socials {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;

		a {
			display: flex;
			align-items: end;
			gap: 0.1rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.75rem;
			color: rgba(255, 255, 255, 0.68);
			transition:
				color 0.2s ease,
				transform 0.2s ease;

			svg {
				margin-bottom: 0.1rem;
				width: 0.8rem;
				height: 0.8rem;
			}
			&:hover,
			&:focus-visible {
				color: #fff;
				transform: translateX(0.2rem);
			}
		}
	}

	.footer-bottom {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-top: 1.1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		font-family: "Poppins", sans-serif;
		font-size: 0.58rem;
		letter-spacing: 0.06em;
		color: rgba(255, 255, 255, 0.4);
	}
}

/* Mobile */
@media screen and (min-width: 320px) and (max-width: 767px) {
	.site-footer {
		width: 100%;
		margin: 0 auto;
		padding: 1.5rem 1.5rem 1rem;
		border: 1px solid rgba(255, 255, 255, 0.16);
		background: linear-gradient(
			135deg,
			rgba(62, 62, 62, 0.9),
			rgba(14, 14, 14, 1) 58%,
			rgba(0, 0, 0, 0.9)
		);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			0 1.25rem 3rem rgba(0, 0, 0, 0.18);
		position: relative;
		overflow: hidden;
		color: #fff;

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.65;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
	}

	.footer-main,
	.footer-bottom {
		position: relative;
		z-index: 1;
	}

	.footer-main {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1.25rem;
		padding-bottom: 1.5rem;
	}

	.footer-brand {
		grid-column: 1 / -1;
		.site-logo {
			color: #fff;
			font-size: 1.75rem;
			font-weight: 600;
			letter-spacing: 0.12em;
		}
		p {
			max-width: 15rem;
			margin-top: 0.5rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.68rem;
			line-height: 1.75;
			color: rgba(255, 255, 255, 0.58);
		}
	}

	.footer-heading {
		margin-bottom: 0.8rem;
		font-family: "Poppins", sans-serif;
		font-size: 0.55rem;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: #fff;
	}

	.footer-links,
	.footer-socials {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;

		a {
			display: flex;
			align-items: end;
			gap: 0.1rem;
			font-family: "Poppins", sans-serif;
			font-size: 0.7rem;
			color: rgba(255, 255, 255, 0.68);
			transition:
				color 0.2s ease,
				transform 0.2s ease;

			svg {
				margin-bottom: 0.1rem;
				width: 0.75rem;
				height: 0.75rem;
			}
			&:hover,
			&:focus-visible {
				color: #fff;
				transform: translateX(0.2rem);
			}
		}
	}

	.footer-bottom {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.7rem;
		padding-top: 1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		font-family: "Poppins", sans-serif;
		font-size: 0.54rem;
		letter-spacing: 0.05em;
		color: rgba(255, 255, 255, 0.4);
	}
}
