/* Top bar, header (with mega panels and the phone menu) and footer.
   Values measured from the WordPress build's GenerateBlocks elements. */

/* ---------- top bar (desktop/tablet) ---------- */
.topbar {
	background-color: var(--contrast);
}
.topbar__grid {
	display: grid;
	grid-template-columns: 1fr 4fr 1.5fr;
	justify-self: center;
	max-width: 1264px;
	width: 100%;
	margin: 0 auto;
	padding: 0.5rem 0;
}
.topbar__cell {
	display: flex;
	align-items: center;
	margin-inline: auto;
	max-width: var(--gb-container-width);
}
.topbar a {
	color: var(--base-3);
}
.topbar a:hover {
	color: var(--accent-3);
}
.topbar__social {
	display: flex;
	align-items: center;
	column-gap: 1.25rem;
}
.topbar__social a {
	display: flex;
	align-items: center;
	font-size: 1.1rem;
	padding-top: 2px;
	transition: all 0.35s ease-in-out;
}
.topbar__social a:hover {
	color: var(--accent-2);
}
.topbar__tag {
	margin: 0;
	color: var(--base-3);
	font-size: 1rem;
	font-weight: 600;
	line-height: 27px;
}
.topbar__phone {
	display: flex;
	align-items: center;
	column-gap: 0.5em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 27px;
	transition: all 0.35s ease-in-out;
}
.topbar__phone .shape {
	font-size: 1.1em;
}
.topbar__phone:hover {
	color: var(--accent-2) !important;
}
@media (max-width: 1024px) {
	.topbar__grid {
		padding-inline: 1rem;
	}
}
@media (max-width: 767px) {
	.topbar {
		display: none;
	}
}

/* phone-only emergency strip */
.mobile-bar {
	display: none;
	background-color: var(--contrast);
}
.mobile-bar p {
	margin: 0;
	padding: 0.5rem 1.5rem;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2em;
}
.mobile-bar a {
	color: var(--base-3);
}
@media (max-width: 767px) {
	.mobile-bar {
		display: block;
	}
}

/* ---------- header ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 90;
	background-color: var(--base-3);
	padding-inline: 20px;
	transition: box-shadow 0.2s ease;
}
.header.is-stuck {
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}
.header__nav {
	display: flex;
	align-items: center;
	column-gap: 1rem;
	max-width: calc(var(--gb-container-width) + 40px);
	margin-inline: auto;
	padding-inline: 20px;
}
.header__logo {
	align-self: stretch;
	display: flex;
	align-items: center;
	background-color: var(--accent-2);
	padding: 1rem;
}
.header__logo img {
	display: block;
	width: 109px;
	height: 30px;
}
.header__menus {
	display: flex;
	flex-grow: 1;
	align-items: center;
	justify-content: flex-end;
}
.menu {
	display: flex;
	flex-grow: 1;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1rem;
}
.menu__item {
	position: relative;
	color: var(--contrast);
	font-weight: 500;
	list-style: none;
	transition: all 0.35s ease-in-out;
}
.menu__item:is(:hover, :focus-within) {
	color: rgba(0, 0, 0, 0.7);
}
.menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	column-gap: 10px;
	padding: 1em 20px;
	color: inherit;
	background: none;
	border: 0;
	font: inherit;
	line-height: 27px;
	cursor: pointer;
	text-decoration: none;
}
.menu__link:hover,
.menu__link:focus {
	color: inherit;
}
.menu__link .shape {
	font-size: 16px;
	transition: transform 0.2s ease;
}
.menu__item[data-open] > .menu__link .shape {
	transform: rotate(180deg);
}
.header__cta {
	display: flex;
	align-items: center;
	padding-left: 15px;
}
.header__cta .gbp-button--primary {
	align-items: center;
	column-gap: 0.25em;
}
.header__cta .gbp-button--primary .shape {
	font-size: 1.35em;
	margin-right: 0.4rem;
}
.header__cta .gbp-button--primary:is(:hover, :focus) {
	color: #fff;
}

/* mega panels */
.mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99;
	width: max-content;
	max-width: min(900px, 100vw - 2rem);
	padding-top: 1rem;
	font-weight: 400;
	color: var(--contrast);
}
.menu__item[data-open] > .mega {
	display: block;
}
.mega__panel {
	display: grid;
	grid-template-columns: 2fr 3fr;
	position: relative;
	z-index: 89;
	overflow: hidden;
	background-color: var(--base-3);
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 10px;
	width: 900px;
	max-width: 100%;
}
.mega__panel--three {
	grid-template-columns: 1fr 1fr 1.25fr;
	column-gap: 1em;
	border-radius: 7px;
}
.mega__links {
	background-color: var(--base-3);
	max-width: 400px;
	width: 100%;
	padding: 2rem 2.5rem;
}
.mega__panel--three .mega__links {
	padding: 2rem 1rem 2rem 2rem;
}
.mega__panel--three .mega__links + .mega__links {
	padding: 2rem 0 2rem 1rem;
}
.mega__links .gbp-section__tagline {
	font-size: 0.8rem;
}
.mega__link {
	margin-bottom: 1rem;
	transition: all 0.35s ease-in-out;
}
.mega__link a:hover {
	color: var(--accent-2);
}
.mega__all {
	display: inline-flex;
	align-items: center;
	column-gap: 0.5em;
	margin-bottom: 1rem;
	color: var(--contrast);
}
.mega__all .shape {
	color: var(--accent);
	transition: transform 0.5s ease;
}
.mega__all:hover .shape {
	transform: translate3d(3px, 0, 0);
	color: var(--accent-2);
}
.mega__post {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 5px;
}
.mega__posts {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
	margin-bottom: 1.5rem;
}
.mega__post a {
	transition: all 0.35s ease-in-out;
}
.mega__post a:hover {
	color: var(--accent-2);
}
.mega__card {
	overflow: hidden;
	max-width: 500px;
	width: 100%;
	background-color: var(--base-2);
	border-left: 1px solid rgba(0, 0, 0, 0.25);
}
.mega__card--dark {
	background-color: var(--contrast);
	border-left: 0;
}
.mega__card img {
	display: flex;
	justify-self: end;
	width: 100%;
	height: 250px;
	margin: -10px 0 1rem;
	object-fit: cover;
	position: relative;
	z-index: 1;
}
.mega__card--dark img {
	height: 200px;
	object-position: top center;
}
.mega__card--about img {
	height: 285px;
	object-position: center;
}
.mega__card-body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: -4rem 0 2rem;
	padding-top: 1rem;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--base-2) 15%);
}
.mega__card--dark .mega__card-body {
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 5%, var(--contrast) 10%);
}
.mega__card-body h3 {
	color: var(--contrast);
	margin: 2rem 0 1rem;
	text-align: center;
}
.mega__card--dark h3 {
	color: var(--base-3);
	width: 70%;
}
.mega__card-body .gbp-button--primary {
	align-items: center;
	color: #fff;
	padding: 1rem 2rem;
}

/* phone header */
.header__mobile {
	display: none;
}
.menu-toggle {
	display: flex;
	align-items: center;
	column-gap: 5px;
	background-color: transparent;
	border: 0;
	color: var(--contrast);
	padding: 10px 10px 10px 10px;
	cursor: pointer;
	position: relative;
	z-index: 2;
}
.menu-toggle .shape {
	font-size: 25px;
}
.header__mobile-cta {
	display: inline-flex;
	align-items: center;
	column-gap: 0.5em;
	margin: 0 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1;
	color: var(--contrast);
}
.header__mobile-cta .shape {
	font-size: 1.35em;
	color: var(--accent-2);
}
.mobile-menu {
	display: none;
}
@media (max-width: 767px) {
	.header {
		padding-inline: 0;
	}
	.header__nav {
		justify-content: space-between;
		padding-inline: 0;
		max-width: var(--gb-container-width);
	}
	.header__menus {
		display: none;
	}
	.header__mobile {
		display: flex;
		align-items: center;
	}
	.mobile-menu[data-open] {
		position: fixed;
		inset: 0;
		z-index: 100;
		display: flex;
		flex-direction: column;
		row-gap: 2rem;
		overflow-y: auto;
		padding: 20px 0 60px;
		background-color: var(--contrast-2);
		color: #fff;
	}
	.mobile-menu__top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 20px;
	}
	.mobile-menu__top img {
		height: 55px;
		width: auto;
	}
	.mobile-menu .menu-toggle {
		color: var(--base-3);
	}
	.mobile-menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
		width: 100%;
	}
	.mobile-menu .menu__link {
		width: 100%;
		color: #fff;
	}
	.mobile-menu .menu__item {
		color: #fff;
	}
	.mobile-menu .sub {
		display: none;
	}
	.mobile-menu .menu__item[data-open] > .sub {
		display: block;
	}
	.mobile-menu .sub a {
		display: flex;
		padding: 1em 20px;
		background-color: var(--base-2);
		color: var(--contrast);
	}
}

/* ---------- footer ---------- */
.footer {
	position: relative;
	background-color: #090909;
	color: var(--base-3);
	padding: 5rem 2rem 0;
}
.footer__divider {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	overflow: hidden;
	pointer-events: none;
	transform: scale(1, -1);
	color: var(--base-3);
	line-height: 0;
}
.footer__divider .shape {
	display: block;
}
.footer__divider svg {
	width: 100%;
	height: 2rem;
	fill: currentColor;
}
.footer__inner {
	max-width: var(--gb-container-width);
	margin-inline: auto;
}
.footer__cta {
	display: grid;
	grid-template-columns: 3fr 1fr;
	align-items: flex-start;
	column-gap: 2rem;
	justify-content: center;
	width: 96%;
	margin: 0 auto 4rem;
	text-align: center;
}
.footer__cta h2 {
	color: var(--base-3);
	margin-bottom: 0;
	text-align: left;
	width: 80%;
}
.footer__cta-buttons {
	display: grid;
}
.footer__cta .gbp-button--secondary {
	background-color: #c90000;
	color: var(--base-3);
	margin-bottom: 0.5rem;
}
.footer__cta-phone {
	display: block;
	color: var(--base-3);
	transition: all 0.35s ease-in-out;
}
.footer__cta-phone:hover {
	color: var(--global-color-10);
}
.footer__main {
	padding: 4rem 0 5rem;
	border-top: 1px solid var(--contrast-3);
	border-bottom: 1px solid var(--contrast-3);
}
.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.75fr 1fr;
	gap: 3em;
}
.footer__lead {
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.5em;
	margin-bottom: 1.5em;
}
.footer__lead a {
	color: var(--base-3);
	font-weight: 700;
}
.footer__contact a {
	display: inline-flex;
	align-items: center;
	column-gap: 0.5em;
	margin-bottom: 1rem;
	color: var(--base-3);
	font-weight: 600;
	transition: all 0.35s ease-in-out;
}
.footer__contact a:hover {
	color: var(--global-color-10);
}
.footer__contact .shape svg {
	width: 30px;
	height: 30px;
	padding: 0.3rem;
	border-radius: 100%;
	background-color: var(--accent-2);
	color: var(--base-3);
}
.footer__follow {
	margin: 25px 0 1.5em;
	line-height: 28.8px;
	font-size: 1.2rem;
	font-weight: 500;
}
.footer__social {
	display: flex;
	align-items: center;
	column-gap: 0.75rem;
	margin-bottom: 2rem;
}
.footer__social a {
	display: inline-flex;
	font-size: 1.5rem;
	padding-top: 2px;
	color: var(--base-3);
	transition: all 0.35s ease-in-out;
}
.footer__social a:hover {
	color: var(--accent-2);
}
.footer__heading {
	margin: 0 0 1rem;
	font-weight: 600;
	color: var(--base-3);
}
.footer__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.footer__list:last-child {
	margin-bottom: 0;
}
.footer__list li {
	margin-bottom: 4px;
	font-size: 0.8em;
	line-height: 27px;
}
.footer__list a {
	color: rgba(255, 255, 255, 0.8);
	transition: all 0.35s ease-in-out;
}
.footer__list a:hover {
	color: var(--accent-2);
}
.footer__list--icons li {
	display: flex;
	align-items: center;
	column-gap: 0.5em;
}
.footer__hours {
	margin-bottom: 24px;
	font-size: 1rem;
}
.footer__office {
	margin-bottom: 16px;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.2em;
}
.footer__office a {
	color: rgba(255, 255, 255, 0.8);
}
.footer__office a:hover {
	color: var(--accent-2);
}
.footer__badge img {
	display: inline-block;
	width: auto;
	height: auto;
	padding: 2.5rem 0 0.5rem;
	filter: opacity(50%);
	transition: all 1s ease-in-out 0.15s;
}
.footer__badge img:hover {
	filter: opacity(100%);
}
.footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--gb-container-width);
	margin-inline: auto;
	padding: 2rem 0 1rem;
}
.footer__bottom p {
	margin: 0;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.2em;
	color: rgba(255, 255, 255, 0.9);
}
.footer__legal {
	display: flex;
	align-items: center;
	column-gap: 1.5rem;
}
.footer__legal a {
	color: rgba(255, 255, 255, 0.9);
}
.footer__legal a:hover {
	color: var(--accent-2);
}
@media (max-width: 1024px) {
	.footer__cta {
		display: flex;
		flex-direction: column;
		row-gap: 2rem;
		width: 100%;
	}
	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.footer {
		padding: 6rem 1.5rem 0;
	}
	.footer__cta {
		align-items: stretch;
	}
	.footer__cta h2 {
		font-size: 1.35rem;
		text-align: center;
		width: 100%;
	}
	.footer__main {
		padding: 1rem 0 3rem;
	}
	.footer__grid {
		grid-template-columns: 1fr;
	}
	.footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		padding-top: 1.5rem;
	}
	.footer__bottom > p {
		align-self: center;
		margin-top: 1.5rem;
	}
	.footer__legal {
		align-self: center;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 0.75rem;
	}
}
