/*
Theme Name: Vitral Astra Child
Theme URI: https://vitraladvisory.com/
Description: Astra child theme with the custom Vitral global footer.
Author: Vitral Financial & Insurance Advisory Group
Author URI: https://vitraladvisory.com/
Template: astra
Version: 1.0.0
Text Domain: vitral-astra-child
*/

:root {
	--vitral-footer-navy: #002449;
	--vitral-footer-navy-deep: #001a35;
	--vitral-footer-gold: #d99a28;
	--vitral-footer-white: #ffffff;
	--vitral-footer-muted: #d7e0ea;
	--vitral-footer-line: rgba(255, 255, 255, 0.22);
}

/* Astra's generated footer remains available if this child theme is disabled. */
#colophon.site-footer {
	display: none !important;
}

.vitral-site-footer,
.vitral-site-footer * {
	box-sizing: border-box;
}

.vitral-site-footer {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0;
	color: var(--vitral-footer-white);
	background:
		radial-gradient(circle at 88% 10%, rgba(28, 91, 145, 0.25), transparent 34%),
		linear-gradient(135deg, var(--vitral-footer-navy-deep), var(--vitral-footer-navy));
	border-top: 1px solid rgba(217, 154, 40, 0.45);
}

.vitral-site-footer a {
	color: var(--vitral-footer-white);
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.vitral-site-footer a:hover,
.vitral-site-footer a:focus-visible {
	color: var(--vitral-footer-gold);
}

.vitral-footer__container {
	width: min(100% - 48px, 1240px);
	margin-inline: auto;
}

.vitral-footer__main {
	padding: 48px 0 38px;
}

.vitral-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.05fr);
	gap: 42px;
	align-items: start;
}

.vitral-footer__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	margin-bottom: 18px;
}

.vitral-footer__brand .custom-logo {
	display: block;
	width: auto;
	max-width: 230px;
	max-height: 82px;
	object-fit: contain;
}

.vitral-footer__site-name {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.vitral-footer__description {
	max-width: 285px;
	margin: 0 0 22px;
	color: var(--vitral-footer-muted);
	font-size: 14px;
	line-height: 1.65;
}

.vitral-footer__heading {
	margin: 3px 0 17px;
	color: var(--vitral-footer-white);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.vitral-footer__menu,
.vitral-footer__legal-menu,
.vitral-footer__contact-list,
.vitral-footer__social-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vitral-footer__menu li + li {
	margin-top: 7px;
}

.vitral-footer__menu a {
	display: inline-block;
	color: var(--vitral-footer-muted);
	font-size: 14px;
	line-height: 1.45;
}

.vitral-footer__contact-list {
	display: grid;
	gap: 16px;
}

.vitral-footer__contact-item {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	color: var(--vitral-footer-muted);
	font-size: 14px;
	line-height: 1.45;
}

.vitral-footer__contact-item a {
	overflow-wrap: anywhere;
}

.vitral-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--vitral-footer-gold);
	flex: 0 0 auto;
}

.vitral-footer__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.vitral-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vitral-footer__social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--vitral-footer-gold);
	border: 1px solid var(--vitral-footer-gold);
	border-radius: 50%;
}

.vitral-footer__social-list a:hover,
.vitral-footer__social-list a:focus-visible {
	color: var(--vitral-footer-navy-deep);
	background: var(--vitral-footer-gold);
}

.vitral-footer__social-list svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.vitral-footer__bottom {
	border-top: 1px solid var(--vitral-footer-line);
}

.vitral-footer__bottom-inner {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	padding: 13px 0;
}

.vitral-footer__copyright {
	margin: 0;
	color: var(--vitral-footer-muted);
	font-size: 12px;
	line-height: 1.5;
}

.vitral-footer__legal-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
}

.vitral-footer__legal-menu li {
	display: flex;
	align-items: center;
}

.vitral-footer__legal-menu li + li::before {
	content: "";
	width: 1px;
	height: 13px;
	margin: 0 12px;
	background: var(--vitral-footer-line);
}

.vitral-footer__legal-menu a {
	color: var(--vitral-footer-muted);
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 980px) {
	.vitral-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 38px 54px;
	}
}

@media (max-width: 640px) {
	.vitral-footer__container {
		width: min(100% - 36px, 1240px);
	}

	.vitral-footer__main {
		padding: 40px 0 30px;
	}

	.vitral-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.vitral-footer__description {
		max-width: 100%;
	}

	.vitral-footer__bottom-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 17px 0;
	}

	.vitral-footer__legal-menu {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vitral-site-footer a {
		transition: none;
	}
}

