/* Header and footer copied from apexdmit.com (apexdmit-v2).
   Everything is prefixed with ax- so the old theme CSS can't reach it. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
	--ax-ink: #1a194f;
	--ax-ink-800: #272663;
	--ax-ink-500: #4a4a72;
	--ax-ink-300: #a9a9c4;
	--ax-line: #e5e5ee;
	--ax-line-dark: #2a2960;
	--ax-accent: #66bb72;
	--ax-accent-300: #8fd199;
	--ax-accent-700: #35803f;
	--ax-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ax-header,
.ax-footer {
	font-family: var(--ax-font);
	-webkit-font-smoothing: antialiased;
}

.ax-header *,
.ax-footer * {
	box-sizing: border-box;
}

.ax-header a,
.ax-footer a,
.ax-header a:hover,
.ax-footer a:hover,
.ax-header a:focus,
.ax-footer a:focus {
	text-decoration: none;
}

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

.ax-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.ax-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.ax-logo {
	display: inline-block;
	flex-shrink: 0;
	line-height: 0;
}

.ax-logo img {
	max-width: none;
	height: auto;
}

/* ---------- Header ---------- */
.ax-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ax-line);
}

/* the old theme header floated over the page and every page leaves 60px of
   room for it; pull content up so it sits under this header the same way */
#page_wrapper {
	margin-top: -60px;
}

.ax-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.ax-nav {
	display: none;
	align-items: center;
	gap: 32px;
}

.ax-nav__services {
	display: flex;
	align-items: center;
	height: 80px;
}

.ax-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font: 500 14px/20px var(--ax-font);
	color: var(--ax-ink-500);
	cursor: pointer;
	transition: color .2s;
}

.ax-nav__link:hover,
.ax-nav__link:focus,
.ax-header.is-services-open [data-services-toggle] {
	color: var(--ax-ink);
}

.ax-nav__chevron {
	width: 12px;
	height: 12px;
	transition: transform .2s;
}

.ax-header.is-services-open .ax-nav__chevron {
	transform: rotate(180deg);
}

.ax-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 9999px;
	background: var(--ax-ink);
	font: 500 14px/20px var(--ax-font);
	color: #fff;
	white-space: nowrap;
	transition: background-color .2s;
}

.ax-btn:hover,
.ax-btn:focus {
	background: var(--ax-ink-800);
	color: #fff;
}

.ax-btn .ax-icon,
.ax-mega__all .ax-icon {
	transition: transform .2s;
}

.ax-btn:hover .ax-icon,
.ax-mega__all:hover .ax-icon {
	transform: translateX(4px);
}

.ax-btn--lg {
	padding: 14px 28px;
	font-size: 16px;
	line-height: 24px;
}

.ax-burger {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ax-ink);
	cursor: pointer;
}

.ax-burger svg {
	display: block;
	width: 28px;
	height: 28px;
}

.ax-burger__close,
.ax-header.is-menu-open .ax-burger__open {
	display: none !important;
}

.ax-header.is-menu-open .ax-burger__close {
	display: block !important;
}

/* services dropdown */
.ax-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	background: #fff;
	border-top: 1px solid var(--ax-line);
	box-shadow: 0 24px 48px -24px rgba(26, 25, 79, .35);
}

.ax-mega__inner {
	padding-top: 40px;
	padding-bottom: 40px;
}

.ax-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.ax-mega__top {
	grid-column: span 2;
}

.ax-mega__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.ax-mega__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	font: 600 14px/20px var(--ax-font);
	color: var(--ax-ink);
}

.ax-mega__title:before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--ax-accent);
}

.ax-mega__list li + li {
	margin-top: 14px;
}

.ax-mega__list a {
	font: 400 14px/20px var(--ax-font);
	color: var(--ax-ink-500);
	transition: color .2s;
}

.ax-mega__list a:hover,
.ax-mega__list a:focus {
	color: var(--ax-accent-700);
}

.ax-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	font: 600 14px/20px var(--ax-font);
	color: var(--ax-ink);
}

.ax-mega__all:hover,
.ax-mega__all:focus {
	color: var(--ax-ink);
}

/* mobile menu */
.ax-mobile {
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	padding: 16px 24px 32px;
	background: #fff;
	border-top: 1px solid var(--ax-line);
}

.ax-mobile[hidden],
.ax-mega[hidden] {
	display: none !important;
}

.ax-mobile li a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--ax-line);
	font: 500 16px/24px var(--ax-font);
	color: var(--ax-ink);
}

.ax-mobile .ax-btn {
	width: 100%;
	margin-top: 24px;
}

@media (min-width: 1024px) {
	.ax-container {
		padding-left: 40px;
		padding-right: 40px;
	}

	.ax-nav {
		display: flex;
	}

	.ax-mega {
		display: block;
	}

	.ax-burger,
	.ax-mobile {
		display: none !important;
	}
}

/* ---------- Footer ---------- */
.ax-footer {
	background: var(--ax-ink);
	color: var(--ax-ink-300);
	font-size: 14px;
	line-height: 20px;
}

.ax-footer__inner {
	padding-top: 64px;
	padding-bottom: 64px;
}

.ax-footer__grid {
	display: grid;
	gap: 48px;
}

.ax-footer__about {
	max-width: 384px;
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--ax-ink-300);
}

.ax-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 24px;
}

.ax-footer a {
	color: var(--ax-ink-300);
	transition: color .2s;
}

.ax-footer a:hover,
.ax-footer a:focus {
	color: #fff;
}

.ax-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ax-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px !important;
}

.ax-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #fff;
	color: var(--ax-ink);
	transition: background-color .2s, border-color .2s, transform .2s;
}

.ax-footer__social a:hover,
.ax-footer__social a:focus {
	transform: translateY(-2px);
	border-color: var(--ax-accent);
	background: var(--ax-accent);
	color: var(--ax-ink);
}

.ax-footer__social svg {
	width: 18px;
	height: 18px;
}

.ax-footer__heading {
	margin: 0;
	font: 600 14px/20px var(--ax-font);
	letter-spacing: .025em;
	text-transform: uppercase;
	color: #fff;
}

.ax-footer__links {
	margin-top: 20px !important;
}

.ax-footer__links li + li {
	margin-top: 12px;
}

.ax-footer__bottom {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--ax-line-dark);
}

.ax-footer__bottom p {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--ax-ink-300);
}

@media (min-width: 1024px) {
	.ax-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}
