/**
 * Mega Menu panel styles — Figma desktop dropdown.
 *
 * @package Fundamento
 */

.mega-menu {
	display: none;
	overflow: hidden;
	background-color: var(--color-surface-default);
	border: 1px solid #efefef;
	border-radius: var(--radius-xs);
	box-shadow: 3px 15px 64px rgb(0 0 0 / 9%);
}

.mega-menu[hidden] {
	display: none !important;
}

.mega-menu.is-active {
	display: flex;
	align-items: stretch;
}

.mega-menu__main {
	display: flex;
	flex: 1 1 auto;
	gap: var(--space-24);
	min-width: 0;
	padding: var(--space-32);
}

.mega-menu__intro {
	flex: 1 1 0;
	min-width: 0;
}

.mega-menu__title {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--text-display-h3-size);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-brand-default);
}

.mega-menu__subtitle {
	margin: var(--space-8) 0 0;
	font-family: var(--font-family-body);
	font-size: var(--text-body-md-size);
	font-weight: 400;
	line-height: var(--text-body-md-lh);
	letter-spacing: 0;
	color: var(--color-text-subtle);
}

.mega-menu__columns {
	display: flex;
	flex: 1 1 0;
	gap: var(--space-4);
	min-width: 0;
}

.mega-menu__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-menu__item {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	width: 208px;
	max-width: 100%;
	min-height: 30px;
	padding: 4px 8px 4px 4px;
	border-radius: var(--radius-xs);
	font-family: var(--font-family-body);
	font-size: var(--text-body-md-size);
	font-weight: 400;
	line-height: var(--text-body-md-lh);
	letter-spacing: 0;
	color: var(--color-text-brand);
	text-decoration: none;
}

.mega-menu__item:hover,
.mega-menu__item:focus-visible {
	background-color: var(--color-neutral-100);
	color: var(--color-text-brand);
	text-decoration: none;
}

.mega-menu__bullet {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	background-color: var(--color-text-brand);
}

.mega-menu__rail {
	position: relative;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 380px;
	padding: var(--space-32);
	overflow: hidden;
}

.mega-menu__card-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mega-menu__card {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	padding: var(--space-16);
	overflow: hidden;
	border-radius: var(--radius-xs);
}

.mega-menu__card--testimonial .mega-menu__card-bg {
	border-radius: var(--radius-xs);
}

.mega-menu__card-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-32);
	color: var(--color-text-inverse);
}

.mega-menu__quote {
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

.mega-menu__quote--h6 {
	font-size: var(--text-display-h6-size);
}

.mega-menu__quote--h5 {
	font-size: var(--text-display-h5-size);
}

.mega-menu__author {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.mega-menu__author-name {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: var(--text-body-md-size);
	font-weight: 500;
	line-height: var(--text-body-md-lh);
}

.mega-menu__author-title {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: var(--text-body-sm-size);
	font-weight: 400;
	line-height: var(--text-body-sm-lh);
}

.mega-menu__rail--promo {
	justify-content: flex-end;
}

.mega-menu__card-body--promo {
	justify-content: flex-end;
	gap: var(--space-32);
}

.mega-menu__promo-cta.btn {
	width: 100%;
	height: 44px;
	justify-content: center;
}

.mega-menu__rail--featured {
	gap: var(--space-32);
	background-color: var(--color-bg-default);
}

.mega-menu__kicker {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--color-text-subtle);
}

.mega-menu__featured {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-20);
	min-height: 0;
}

.mega-menu__featured-copy {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.mega-menu__company {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--color-brand-default);
}

.mega-menu__featured-title {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--text-display-h5-size);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--color-text-default);
}

.mega-menu__read-more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-4);
	font-family: var(--font-family-body);
	font-size: var(--text-body-sm-size);
	font-weight: 500;
	line-height: var(--text-body-sm-lh);
	color: var(--color-brand-default);
	text-decoration: none;
}

.mega-menu__read-more:hover,
.mega-menu__read-more:focus-visible {
	color: var(--color-brand-default);
	text-decoration: none;
}

.mega-menu__featured-image {
	display: block;
	width: 100%;
	height: 60px;
	object-fit: cover;
}

body:not(.has-hero-header):not(.has-platform-hero):not(.solution-page) {
	padding-top: 64px;
}

@media (min-width: 62rem) {
	body:not(.has-hero-header):not(.has-platform-hero):not(.solution-page) {
		padding-top: 69px;
	}
}
