/**
 * AZZ Careers — custom header & footer styles.
 * Header: light grey-blue glass + navy text + blue buttons.
 * Fonts: Figtree / Montserrat / Poppins.
 */

/* Clearance so fixed header never covers page content. */
body {
	padding-top: 104px;
}

.azz-hf-header {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 1440px;
	z-index: 9999;
	color: #0a2456;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: linear-gradient(180deg, rgba(250, 252, 255, 0.82), rgba(238, 243, 250, 0.72));
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	box-shadow: 0 10px 34px rgba(31, 52, 94, 0.1);
	transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease, border-color 0.3s ease, width 0.3s ease;
}

.azz-hf-header.is-scrolled {
	top: 12px;
	background: linear-gradient(180deg, rgba(248, 251, 255, 0.97), rgba(241, 246, 252, 0.96));
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 18px 46px rgba(31, 52, 94, 0.16);
}

/* Squeeze the header when scrolling (desktop only). */
@media (min-width: 821px) {
	.azz-hf-header.is-scrolled {
		width: calc(100% - 88px);
	}

	.azz-hf-header.is-scrolled .azz-hf-container {
		min-height: 52px;
	}

	.azz-hf-header.is-scrolled .azz-hf-logo {
		max-height: 30px;
	}

	.azz-hf-header.is-scrolled .azz-hf-link {
		font-size: 14px;
		padding: 4px 2px;
	}

	.azz-hf-header.is-scrolled .azz-hf-btn {
		padding: 8px 18px;
		font-size: 13px;
	}

	.azz-hf-header.is-scrolled .azz-hf-sitename {
		font-size: 1.1rem;
	}
}

.azz-hf-header.is-rounded {
	border-radius: 999px;
}

.azz-hf-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 22px;
}

.azz-hf-header .azz-hf-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 66px;
}

.azz-hf-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #0a2456;
	flex: none;
}

.azz-hf-sitename {
	font-family: 'Poppins', 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	color: #0a2456;
}

.azz-hf-logo {
	max-height: 40px;
	width: auto;
	display: block;
	object-fit: contain;
}

.azz-hf-footer-logo {
	max-height: 52px;
	border-radius: 14px;
	background: #ffffff;
	padding: 6px 10px;
}

.azz-hf-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.azz-hf-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
}

.azz-hf-links.cols-2,
.azz-hf-links.cols-3,
.azz-hf-links.cols-4 {
	display: grid;
	gap: 8px 28px;
}

.azz-hf-links.cols-2 { grid-template-columns: repeat(2, auto); }
.azz-hf-links.cols-3 { grid-template-columns: repeat(3, auto); }
.azz-hf-links.cols-4 { grid-template-columns: repeat(4, auto); }

/* ---- Header menu alignment ---- */
.azz-hf-header.align-left .azz-hf-nav {
	margin-left: 0;
}

.azz-hf-header.align-center .azz-hf-nav {
	margin-left: auto;
	margin-right: auto;
}

.azz-hf-header.align-right .azz-hf-nav {
	margin-left: auto;
}

.azz-hf-link {
	position: relative;
	color: #0a2456;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 2px;
	transition: color 0.15s ease;
}

.azz-hf-link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: #0e3277;
	transition: right 0.25s ease;
}

.azz-hf-link:hover {
	color: #0e3277;
}

.azz-hf-link:hover::after {
	right: 0;
}

.azz-hf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0e3277;
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	padding: 11px 24px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(14, 50, 119, 0.3);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.azz-hf-btn:hover {
	background: #1d4fa3;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(14, 50, 119, 0.36);
}

.azz-hf-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(14, 50, 119, 0.28);
}

.azz-hf-toggle {
	display: none;
	background: rgba(14, 50, 119, 0.06);
	border: 1px solid rgba(14, 50, 119, 0.16);
	border-radius: 10px;
	color: #0a2456;
	cursor: pointer;
	padding: 8px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.azz-hf-toggle:hover {
	background: rgba(14, 50, 119, 0.12);
	transform: translateY(-1px);
}

/* ---- Footer ---- */
.azz-hf-footer {
	background: linear-gradient(180deg, rgba(238, 243, 250, 0.6), rgba(244, 248, 253, 0.9));
	color: #0a2456;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin-top: 48px;
	border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.azz-hf-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.3fr;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 40px;
}

.azz-hf-footer-brand .azz-hf-sitename {
	color: #0a2456;
}

.azz-hf-footer-text {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.7;
	max-width: 420px;
	color: #3d4c66;
}

.azz-hf-footer-heading {
	margin: 0 0 14px;
	font-family: 'Montserrat', 'Figtree', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a2456;
}

/* Quick links — one column. */
.azz-hf-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.azz-hf-footer-link {
	position: relative;
	color: #1d4fa3;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.15s ease;
}

.azz-hf-footer-link:hover {
	color: #0a2456;
}

/* Contact column. */
.azz-hf-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.azz-hf-contact-list,
.azz-hf-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.azz-hf-contact-link {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	color: #3d4c66;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	transition: color 0.15s ease;
}

.azz-hf-contact-link svg {
	flex: none;
	margin-top: 2px;
	color: #0e3277;
}

a.azz-hf-contact-link:hover {
	color: #0a2456;
}

.azz-hf-social {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.azz-hf-social-link {
	display: inline-flex;
	align-items: center;
	background: rgba(14, 50, 119, 0.06);
	color: #0a2456;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid rgba(14, 50, 119, 0.12);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.azz-hf-social-link:hover {
	background: #0e3277;
	color: #ffffff;
	transform: translateY(-1px);
}

.azz-hf-footer-bottom {
	border-top: 1px solid rgba(14, 50, 119, 0.12);
	padding: 18px 0;
}

.azz-hf-footer-bottom p {
	margin: 0;
	font-size: 13px;
	color: #5a6b8c;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
	body {
		padding-top: 88px;
	}

	.azz-hf-header {
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		width: calc(100% - 20px);
	}

	.azz-hf-header .azz-hf-container {
		min-height: 58px;
		gap: 12px;
		padding: 0 12px;
	}

	.azz-hf-logo {
		max-height: 34px;
	}

	.azz-hf-nav {
		margin-left: 0;
	}

	.azz-hf-toggle {
		display: inline-flex;
	}

	.azz-hf-nav {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(248, 251, 255, 0.98);
		backdrop-filter: blur(18px) saturate(160%);
		-webkit-backdrop-filter: blur(18px) saturate(160%);
		border: 1px solid rgba(14, 50, 119, 0.14);
		border-radius: 14px;
		overflow: hidden;
		box-shadow: 0 18px 30px rgba(31, 52, 94, 0.18);
	}

	.azz-hf-nav.is-open {
		display: flex;
	}

	.azz-hf-link,
	.azz-hf-btn {
		padding: 16px 20px;
		border-radius: 0;
		border-bottom: 1px solid rgba(14, 50, 119, 0.1);
	}

	.azz-hf-btn {
		box-shadow: none;
		border-radius: 0;
	}

	.azz-hf-link::after {
		display: none;
	}

	.azz-hf-links,
	.azz-hf-links.cols-2,
	.azz-hf-links.cols-3,
	.azz-hf-links.cols-4 {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0;
	}

	.azz-hf-link:last-child,
	.azz-hf-btn:last-child {
		border-bottom: none;
	}

	.azz-hf-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}