/* TSL Agency — mega menu (Services + Locations)
   Loaded by mu-plugin tsl-mega-menu.php */

.tslmm-panel {
	--tslmm-teal: #6ccbd0;
	--tslmm-pink: #ee2d5a;
	--tslmm-panel-bg: #131313;
	--tslmm-card-bg: #171717;
	--tslmm-card-hover: #1e1e1e;
	--tslmm-tile-bg: #1d1d1d;
	--tslmm-line: #272727;
	--tslmm-text: #ffffff;
	--tslmm-muted: #9a9a9a;
	--tslmm-label: #8b8b8b;
	font-family: 'Poppins', sans-serif;
}

.tslmm-panel,
.tslmm-panel *,
.tslmm-panel *::before,
.tslmm-panel *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- top level */

.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item:not(.btn_talk) > .menu-link {
	position: relative;
	z-index: 1;
}

/* every top-level item sits on a pill */
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item:not(.btn_talk) > .menu-link::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 4px;
	right: 4px;
	height: 42px;
	transform: translateY(-50%);
	border-radius: 999px;
	/*background: #1f1f1f; */
	background: #c06082;
	transition: background .2s ease;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item:not(.btn_talk):hover > .menu-link::before,
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item:not(.btn_talk):focus-within > .menu-link::before,
.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link::before,
.ast-desktop .ast-builder-menu-1 .main-header-menu > .tslmm-parent.tslmm-open > .menu-link::before {
	background: #2e2e2e;
}

/* chevron flips while the panel is open */
.ast-desktop .tslmm-parent > .menu-link .ast-arrow-svg {
	transition: transform .2s ease;
}

.ast-desktop .tslmm-parent:hover > .menu-link .ast-arrow-svg,
.ast-desktop .tslmm-parent:focus-within > .menu-link .ast-arrow-svg,
.ast-desktop .tslmm-parent.tslmm-open > .menu-link .ast-arrow-svg {
	transform: rotate(180deg);
}

/* ------------------------------------------------------------- panel shell */

.ast-desktop .ast-primary-header-bar,
.ast-desktop .main-header-bar {
	position: relative;
}

/* Astra makes the menu <ul> relative, which would trap the panel inside it. */
.ast-desktop .ast-builder-menu-1 .main-header-menu,
.ast-desktop .main-header-menu > .tslmm-parent {
	position: static;
}
.main-header-menu .menu-link, .main-header-menu>a {
    padding: 0 1.5em;
	font-weight: bold;
}
.ast-desktop .ast-builder-menu-1 .main-header-menu > .tslmm-parent > .tslmm-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	width: min(1000px, calc(100% - 15px));
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--tslmm-panel-bg);
	border: 1px solid var(--tslmm-line);
	border-radius: 20px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

/* Invisible bridge over the gap, so moving the mouse down doesn't close the panel. */
.ast-desktop .ast-builder-menu-1 .main-header-menu > .tslmm-parent > .tslmm-panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -30px;
	height: 30px;
}

/* JS keeps this on for a moment after the mouse leaves, so a diagonal
   move from the nav item to the panel never closes it. */
.ast-desktop .ast-builder-menu-1 .main-header-menu > .tslmm-parent.tslmm-open > .tslmm-panel {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu > .tslmm-parent > .tslmm-panel--locations {
	width: min(780px, calc(100% - 32px));
}

.tslmm-panel > .tslmm-panel__inner {
	display: block;
	width: 100%;
	padding: 15px 15px 0;
	border: 0;
	background: none;
	list-style: none;
}

.tslmm-panel > .tslmm-panel__inner::before,
.tslmm-panel > .tslmm-panel__inner::after {
	content: none;
}

/* --------------------------------------------------------------- services */

.tslmm-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.92fr);
	gap: 15px;
	align-items: flex-start;
}

.tslmm-col__label {
	margin: 4px 0 14px;
	padding: 0 12px;
	color: var(--tslmm-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.2;
}

.tslmm-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-auto-rows: minmax(92px, auto);
	gap: 2px;
	    align-items: flex-start;
}

.tslmm-list > li {
	margin: 0;
	padding: 0;
	border: 0 !important;
	list-style: none;
}

.tslmm-card {
	height: 100%;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 5px 5px !important;
	border-radius: 16px;
	background: transparent;
	text-decoration: none;
	transition: background .18s ease;
	line-height: 1.45;
}

.tslmm-card:hover,
.tslmm-card:focus-visible {
	background: #000;
	outline: none;
}

.tslmm-card:focus-visible {
	box-shadow: 0 0 0 2px var(--tslmm-teal);
}

.tslmm-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tslmm-tile-bg);
	border: 1px solid var(--tslmm-line);
	color: var(--tslmm-teal);
	flex: none;
}

.tslmm-card__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.tslmm-card__title {
	display: block;
	color: var(--tslmm-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.tslmm-card__desc {
	display: block;
	margin-top: 4px;
	color: var(--tslmm-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

/* ----------------------------------------------------------- feature card */

.tslmm-feature {
	display: flex;
	flex-direction: column;
	padding: 10px;
	border-radius: 18px;
	background: var(--tslmm-card-bg);
	border: 1px solid var(--tslmm-line);
}

.tslmm-feature__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #202020;
}

.tslmm-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.tslmm-feature__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 10px;
	color: var(--tslmm-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.tslmm-feature__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tslmm-pink);
	flex: none;
}

.tslmm-feature__title {
	margin: 0;
	color: var(--tslmm-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.tslmm-feature__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 0;
	padding-top: 15px;
}

.tslmm-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 22px !important;
	border-radius: 999px;
	background: #ffffff;
	color: #111111 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
	white-space: nowrap;
}

.tslmm-btn:hover,
.tslmm-btn:focus-visible {
	background: var(--tslmm-pink);
	color: #ffffff !important;
	outline: none;
}

.tslmm-btn:focus-visible {
	box-shadow: 0 0 0 2px var(--tslmm-teal);
}

.tslmm-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tslmm-text) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.tslmm-link:hover,
.tslmm-link:focus-visible {
	color: var(--tslmm-teal) !important;
	outline: none;
}

.tslmm-link svg {
	width: 15px;
	height: 15px;
	transition: transform .18s ease;
}

.tslmm-link:hover svg {
	transform: translateX(3px);
}

/* --------------------------------------------------------------- locations */

.tslmm-loc-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	padding: 0 2px;
}

.tslmm-loc-head__label {
	margin: 0;
	color: var(--tslmm-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.tslmm-loc-head__note {
	margin: 0;
	color: var(--tslmm-muted);
	font-size: 13px;
}

.tslmm-loc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tslmm-loc-grid > li {
	margin: 0;
	padding: 0;
	border: 0 !important;
	list-style: none;
}

.tslmm-loc {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 18px;
	gap: 14px;
	align-items: center;
	height: 100%;
	padding: 16px 18px !important;
	border-radius: 14px;
	border: 1px solid var(--tslmm-line);
	background: var(--tslmm-card-bg);
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease;
}

.tslmm-loc:hover,
.tslmm-loc:focus-visible {
	background: var(--tslmm-card-hover);
	border-color: #3a3a3a;
	outline: none;
}

.tslmm-loc:focus-visible {
	box-shadow: 0 0 0 2px var(--tslmm-teal);
}

.tslmm-loc__title {
	display: block;
	color: var(--tslmm-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.tslmm-loc__sub {
	display: block;
	margin-top: 2px;
	color: var(--tslmm-muted);
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tslmm-loc__arrow {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: var(--tslmm-muted);
}

.tslmm-loc__arrow svg {
	width: 16px;
	height: 16px;
	transition: transform .18s ease;
}

.tslmm-loc:hover .tslmm-loc__arrow svg {
	transform: translateX(3px);
	color: var(--tslmm-text);
}

/* ------------------------------------------------------------- footer bar */

.tslmm-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 0;
	padding: 18px 2px;
	border-top: 1px solid var(--tslmm-line);
}

.tslmm-foot__text {
	margin: 0;
	color: var(--tslmm-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tslmm-foot .tslmm-link {
	font-weight: 600;
}

/* ------------------------------------------------------- mobile / tablet */

/* The Astra mobile drawer is light, so the panel follows it there. */
.ast-header-break-point .tslmm-panel {
	--tslmm-card-bg: #f6f7f9;
	--tslmm-card-hover: #eef0f3;
	--tslmm-tile-bg: #f0f2f5;
	--tslmm-line: #e2e5e7;
	--tslmm-text: #1a1a1a;
	--tslmm-muted: #6e7180;
	--tslmm-label: #8b8b8b;
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.ast-header-break-point .tslmm-card__title,
.ast-header-break-point .tslmm-loc__title,
.ast-header-break-point .tslmm-feature__title,
.ast-header-break-point .tslmm-feature__label {
	color: var(--tslmm-text);
}

.ast-header-break-point .tslmm-link {
	color: var(--tslmm-text) !important;
}

.ast-header-break-point .tslmm-btn {
	background: #1a1a1a;
	color: #ffffff !important;
}

.ast-header-break-point .tslmm-list {
	grid-auto-rows: auto;
}

.ast-header-break-point .tslmm-panel > .tslmm-panel__inner {
	/* match the drawer's own 20px gutter */
	padding: 4px 20px 8px;
}

.ast-header-break-point .tslmm-cols {
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

.ast-header-break-point .tslmm-col__label,
.ast-header-break-point .tslmm-loc-head__label {
	margin: 12px 0 6px;
	padding: 0 4px;
	font-size: 11px;
}

.ast-header-break-point .tslmm-card {
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	padding: 10px 6px !important;
}

.ast-header-break-point .tslmm-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
}

.ast-header-break-point .tslmm-card__icon svg {
	width: 18px;
	height: 18px;
}

.ast-header-break-point .tslmm-card__title {
	font-size: 13px;
}

.ast-header-break-point .tslmm-card__desc {
	font-size: 12px;
}

.ast-header-break-point .tslmm-feature {
	margin-top: 10px;
	padding: 10px;
}

.ast-header-break-point .tslmm-feature__media {
	display: none;
}

.ast-header-break-point .tslmm-feature__label {
	margin-top: 0;
}

.ast-header-break-point .tslmm-feature__title {
	font-size: 15px;
}

.ast-header-break-point .tslmm-feature__actions {
	padding-top: 10px;
}

.ast-header-break-point .tslmm-loc-head {
	display: block;
}

.ast-header-break-point .tslmm-loc-head__note {
	display: none;
}

.ast-header-break-point .tslmm-loc-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

.ast-header-break-point .tslmm-loc {
	padding: 12px 10px !important;
}

.ast-header-break-point .tslmm-loc__sub {
	white-space: normal;
}

.ast-header-break-point .tslmm-foot {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	padding: 14px 4px 4px;
}

/* the mobile drawer uses its own link padding — keep our cards tidy */
.ast-header-break-point .main-header-menu .tslmm-panel .menu-link,
.ast-header-break-point .main-header-menu .tslmm-panel a {
	border: 0;
}

/* The panel makes the mobile drawer taller than the screen, so let the drawer
   scroll inside itself instead of running off the bottom of the page. */
.ast-header-break-point.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content,
.ast-header-break-point.ast-popup-nav-open .ast-mobile-popup-drawer.active .ast-mobile-popup-content {
	max-height: calc(100vh - 70px);
	max-height: calc(100dvh - 70px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
	.tslmm-card,
	.tslmm-loc,
	.tslmm-link svg,
	.tslmm-loc__arrow svg,
	.ast-desktop .tslmm-parent > .menu-link .ast-arrow-svg {
		transition: none;
	}
}
