/*
Global header + footer (/includes/header.php, /includes/footer.php, /includes/social-links.php).
Self-contained: uses its own class names so the theme's #header/#footer styles don't apply.
*/

:root {
	--site-brand: #005332;
	--site-ink: #1d2127;
	--site-muted: #777;
	--site-footer-bg: #0e0e0e;
	--site-footer-bottom-bg: #060606;
	/* Height of the logo row. The header sticks with only the green bar showing, so this must match. */
	--site-header-top-h: 88px;
}

/* Matches Bootstrap's .container widths so the header/footer line up with page content */
.site-container {
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width: 768px) { .site-container { width: 750px; } }
@media (min-width: 992px) { .site-container { width: 970px; } }
@media (min-width: 1200px) { .site-container { width: 1170px; } }

.site-header ul,
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: calc(-1 * var(--site-header-top-h));
	z-index: 1030;
	background: #fff;
}

.site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--site-header-top-h);
}

.site-header__logo {
	display: block;
	flex: none;
	line-height: 0;
}

.site-header__logo img {
	display: block;
	width: auto;
	height: 64px;
}

.site-header__contact {
	display: flex;
	gap: 32px;
}

.site-header__contact a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--site-ink);
	text-decoration: none;
}

.site-header__contact strong {
	display: block;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.site-header__contact small {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: var(--site-muted);
}

.site-header__contact a:hover strong {
	color: var(--site-brand);
}

.site-icon-circle {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--site-brand);
	border-radius: 50%;
	color: var(--site-brand);
}

.site-icon-circle .fa {
	font-size: 15px;
}

.site-header__bar {
	background: var(--site-brand);
}

.site-header__bar-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 60px;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.site-nav a {
	display: block;
	padding: 10px 12px;
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.site-header__phone {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.site-header__phone:hover,
.site-header__phone:focus {
	color: #fff;
	text-decoration: underline;
}

.site-header__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------- Social icons (header + footer) ---------- */

.site-social {
	display: flex;
	gap: 8px;
}

.site-social a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

.site-social a:hover,
.site-social a:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.site-footer .site-social a {
	width: 36px;
	height: 36px;
	background: #fff;
	color: #333;
}

.site-footer .site-social a:hover,
.site-footer .site-social a:focus-visible {
	background: var(--site-brand);
	color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: 50px;
	background: var(--site-footer-bg);
	color: var(--site-muted);
	font-size: 13px;
	line-height: 1.6;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
	text-decoration: underline;
}

.site-footer__ribbon-wrap {
	height: 0;
}

.site-footer__ribbon {
	display: inline-block;
	padding: 6px 20px;
	background: var(--site-brand);
	color: #fff;
	font-family: "Shadows Into Light", cursive;
	font-size: 20px;
	line-height: 1.4;
	transform: translateY(-50%);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr 1.3fr 0.8fr;
	gap: 32px 40px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.site-footer__brand {
	display: inline-block;
	margin-bottom: 24px;
	padding: 8px 12px; /* white backing: the logo's black lettering needs a light background */
	border-radius: 6px;
	background: #fff;
	line-height: 0;
}

.site-footer__brand:hover {
	text-decoration: none;
}

.site-footer__brand img {
	display: block;
	width: 200px;
	height: auto;
}

.site-footer__heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.3px;
	text-transform: none;
}

.site-footer__list {
	display: grid;
	gap: 8px;
}

.site-footer__contact li {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.site-footer__contact .fa {
	flex: none;
	width: 14px;
	text-align: center;
}

.site-footer__contact strong {
	color: #fff;
	font-weight: 400;
}

.site-footer__badge {
	display: block;
}

.site-footer__bottom {
	background: var(--site-footer-bottom-bg);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.site-footer__bottom p {
	margin: 0;
	color: #555;
	font-size: 12px;
}

/* Phone numbers linked inside page title bars keep the heading's look */
.page-header h1 a[href^="tel:"],
.tp-caption a[href^="tel:"] {
	color: inherit;
	text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
	.site-header__contact { gap: 24px; }
	.site-header__contact strong { font-size: 17px; }
	.site-nav a { padding: 10px 9px; }
}

@media (max-width: 991px) {
	.site-header__bar-inner {
		flex-wrap: wrap;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.site-header__toggle { display: inline-flex; }

	.site-nav {
		display: none;
		order: 3;
		width: 100%;
	}

	.site-nav.is-open { display: block; }

	.site-nav ul {
		flex-direction: column;
		gap: 0;
		padding-top: 6px;
	}

	.site-nav a {
		padding: 12px 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 0;
	}

	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	:root { --site-header-top-h: 64px; }

	.site-header__logo img { height: 48px; }
	.site-header__contact { display: none; }

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}
