/* =========================================================================
 * AX Careers – Footer
 * Matches Figma node 1549:2843 (desktop) and 1564:2991 (mobile).
 * ====================================================================== */

.ax-footer {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #4f4189;
    background-image: /* soft diagonal sheen mimicking the Figma decorative shape */ linear-gradient(56deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%), /* base purple gradient */ linear-gradient(56deg, #6d4e9c 0%, #4f4189 48%, #3a3566 100%);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    float: left;
    width: 100%;
}

.ax-footer__inner {
    max-width: 1448px;
    margin: 0 auto;
    padding: 56px 50px 32px;
    box-sizing: border-box;
}

#top.page-id-539 .ax-footer__inner {
    padding: 56px 50px 92px;
}

/* base — groups vanish on desktop, cols flow in the flex row by `order` */
.ax-footer__colgroup { display: contents; }

/* ---- Top: brand + columns ------------------------------------------- */
.ax-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 48px;
	padding: 0px 20px;
}

.ax-footer__brand {
	flex: 0 1 300px;
	min-width: 240px;
}

.ax-footer__logo img,
.ax-footer__logo-svg {
	display: block;
	width: auto;
	max-width: 182px;
	height: auto;
}

.ax-footer__tagline {
	margin: 40px 0 0;
	max-width: 280px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.41;
	color: #ffffff;
}

/* ---- Menu columns --------------------------------------------------- */
.ax-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 56px;
}

.ax-footer__col {
	min-width: 110px;
}

.ax-footer__heading {
	margin: 0 0 18px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: #ffffff;
}

.ax-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.ax-footer__menu li {
	margin: 0;
	padding: 0;
	line-height: 1.1;
}

.ax-footer__menu a {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.28px;
	line-height: 1.1;
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.18s ease;
}

.ax-footer__menu a:hover,
.ax-footer__menu a:focus-visible {
	opacity: 0.72;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ax-footer__menu .current-menu-item > a {
	opacity: 0.85;
}

/* ---- Divider + bottom ----------------------------------------------- */
.ax-footer__divider {
	height: 1px;
	border: 0;
	margin: 44px 0 0;
	background: rgba(255, 255, 255);
}

.ax-footer__bottom {
	margin-top: 12px;
}

.ax-footer__copyright {
	margin: 0;
	font-size: 15.5px;
	font-weight: 500;
	letter-spacing: 0.31px;
	line-height: 1.2;
	color: #ffffff;
}

/* =========================================================================
 * Responsive
 * ====================================================================== */

/* Tablet: let the brand sit above the columns */
@media (max-width: 1024px) {
	#top.page-id-539 .ax-footer__inner {
		padding: 48px 40px 94px;
	}
	
	.ax-footer__inner {
		padding: 48px 40px 94px;
	}
	
	.ax-footer__top {
		gap: 40px;
	}
	.ax-footer__brand {
		flex-basis: 100%;
	}
	.ax-footer__cols {
		gap: 32px 48px;
	}
}

/* Mobile: stack brand, 2-up menu grid (Figma 1564:2991, 427px frame) */
@media (max-width: 640px) {
	#top.page-id-539 .ax-footer__inner {
		padding: 40px 20px 90px;
	}
	
	.ax-footer__inner {
        padding: 40px 20px 120px;
    }
	
	.ax-footer__top {
		flex-direction: column;
		gap: 36px;
		padding: 0px 14px;
	}
	
	.ax-footer__brand {
		min-width: 0;
	}
	
	.ax-footer__tagline {
		margin-top: 28px;
		font-size: 18px;
	}
	
	.ax-footer__cols {
		width: 100%;
		display: flex;          /* was grid */
		gap: 24px;
	}
	
	.ax-footer__colgroup {
		display: flex;
		flex-direction: column;
		gap: 32px;
		flex: 1 1 0;
		min-width: 0;
	}
	
	.ax-footer__col {
		min-width: 0;
	}
	
	.ax-footer__heading {
		margin-bottom: 14px;
	}
	
	.ax-footer__divider {
		margin-top: 36px;
	}
	
	.ax-footer__copyright {
		font-size: 14px;
	}
}

/* Very small phones: single column of menus */
@media (max-width: 380px) {
	.ax-footer__cols { flex-direction: column; } 
}
