/*
 * Site footer. Values mirror the Elementor footer template (#71).
 * Layout: brand 28% | three link columns 14% | newsletter 28% (shrinking to fit the 20px gaps,
 * like Elementor's flex containers), four contact boxes at 24%, then the copyright bar.
 * Tablet: two columns (48%), newsletter full width. Mobile: everything stacks at 100%.
 */

.uof-footer {
	background-color: #030f19;
	padding: 100px 0 50px;
}

.uof-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--uof-gap);
	width: 100%;
	max-width: min(100%, var(--uof-container));
	margin-inline: auto;
}

/* ---------- Top row ---------- */

.uof-footer__top {
	display: flex;
	gap: 20px;
}

.uof-footer__brand,
.uof-footer__col,
.uof-footer__newsletter {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.uof-footer__brand {
	width: 28%;
	gap: 20px;
}

.uof-footer__col {
	width: 14%;
	gap: 10px;
}

.uof-footer__newsletter {
	width: 28%;
	gap: 20px;
}

.uof-footer__logo {
	display: inline-block;
	align-self: flex-start;
	line-height: 0;
}

.uof-footer__logo img {
	display: block;
	width: 300px;
	max-width: 100%;
	height: auto;
}

.uof-footer__tagline {
	margin: 0;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--uof-color-text);
}

.uof-footer__heading {
	font-family: var(--uof-font-heading), sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 40px;
	text-transform: uppercase;
	color: var(--uof-color-primary);
}

.uof-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uof-footer__links li {
	display: flex;
	align-items: center;
}

.uof-footer__links li:not(:last-child) {
	padding-bottom: 2.5px;
}

.uof-footer__links li:not(:first-child) {
	margin-top: 2.5px;
}

.uof-footer__links a {
	display: flex;
	align-items: center;
	width: 100%;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--uof-color-primary);
	transition: color 0.3s;
}

.uof-footer__links a:hover {
	color: var(--uof-color-text);
}

/* ---------- Newsletter ---------- */

.newsletter-form {
	display: flex;
	align-items: center;
}

.newsletter-form .newsletter-form__input {
	flex: 0 0 80%;
	width: 80%;
	height: 48px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #ffffff26;
	border-radius: 0;
	background-color: #0a1824;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--uof-color-primary);
	transition: 0.3s;
}

.newsletter-form .newsletter-form__input:focus {
	border-color: #ffffff26;
	outline: 0;
}

.newsletter-form .newsletter-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20%;
	width: 20%;
	padding: 15px 10px;
	border: 0;
	border-radius: 0;
	background-color: var(--uof-color-accent);
	font-family: var(--uof-font-body), sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
	color: #fff;
	transition: 0.3s;
}

.newsletter-form .newsletter-form__submit:hover,
.newsletter-form .newsletter-form__submit:focus {
	background-color: var(--uof-color-accent);
	color: #fff;
}

.newsletter-form__submit svg {
	display: block;
	width: 1em;
	height: auto;
}

/* ---------- Contact boxes ---------- */

.uof-footer__contact {
	display: flex;
	gap: 20px;
	margin-top: 30px;
	padding-bottom: 40px;
	border-bottom: 1px solid #ffffff33;
}

.contact-box {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 24%;
	min-width: 0;
	padding: 20px;
	border: 1px solid #ffffff26;
}

.contact-box__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 75%;
	max-width: 75%;
}

.contact-box__icon {
	display: inline-block;
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 0;
	color: var(--uof-color-accent);
}

.contact-box__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.contact-box__content {
	flex-grow: 1;
}

.contact-box__title {
	margin-bottom: 10px;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--uof-color-primary);
}

.contact-box__title a {
	color: inherit;
}

.contact-box__text {
	margin: 0;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--uof-color-text);
}

/* ---------- Social icons ---------- */

.social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Elementor social icons: grey (#69727d) currentColor border, white glyph. */
.social-icons__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid currentColor;
	background-color: #020e18;
	font-size: 16px;
	line-height: 16px;
	text-align: center;
	color: #69727d;
	transition: 0.3s;
}

.social-icons__link:hover {
	color: #69727d;
	opacity: 0.9;
}

.social-icons__link svg {
	display: block;
	position: relative;
	width: 16px;
	height: 16px;
	fill: var(--uof-color-primary);
}

/* ---------- Bottom bar ---------- */

.uof-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 20px;
}

.uof-footer__copyright,
.uof-footer__legal {
	width: 100%;
	min-width: 0;
	font-family: var(--uof-font-body), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--uof-color-text);
}

.uof-footer__legal {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.uof-footer__copyright p,
.uof-footer__legal p {
	margin: 0;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.uof-footer {
		padding: 100px 20px 50px;
	}

	.uof-footer__top,
	.uof-footer__bottom {
		flex-wrap: wrap;
	}

	.uof-footer__contact {
		flex-wrap: wrap;
		justify-content: center;
	}

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

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

@media (min-width: 768px) and (max-width: 1024px) {
	.uof-footer__brand,
	.uof-footer__col,
	.contact-box {
		width: 48%;
	}

	.uof-footer__newsletter {
		width: 100%;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.uof-footer {
		padding: 100px 15px 50px;
	}

	.uof-footer__top {
		flex-wrap: wrap;
		gap: 30px;
	}

	.uof-footer__contact {
		flex-wrap: wrap;
	}

	.uof-footer__brand,
	.uof-footer__col,
	.uof-footer__newsletter,
	.contact-box {
		width: 100%;
	}

	.uof-footer__brand {
		text-align: center;
	}

	.uof-footer__logo {
		align-self: center;
	}

	/* Elementor form columns go 100% on mobile: field on one row, button below. */
	.newsletter-form {
		flex-wrap: wrap;
	}

	.newsletter-form .newsletter-form__input,
	.newsletter-form .newsletter-form__submit {
		flex-basis: 100%;
		width: 100%;
	}

	.contact-box__item {
		width: 100%;
		max-width: 100%;
	}

	.uof-footer__copyright,
	.uof-footer__legal {
		text-align: center;
	}
}
