/* Products mega-menu — adapted from TEC-2838 techsacare-marketing-header.css */
.site-header {
	--tch-green: #77B624;
	--tch-green-dark: #5f9419;
	--tch-green-soft: #f1f8e7;
	--tch-ink: #1f2a37;
	--tch-muted: #5b6775;
	--tch-border: rgba(15, 23, 42, 0.08);
}

.site-header .products-mega.dropdown-menu {
	padding: 0.6rem;
	border-radius: 1rem;
	border: 1px solid var(--tch-border);
	box-shadow: 0 24px 60px rgba(7, 16, 24, 0.14), 0 2px 6px rgba(7, 16, 24, 0.04);
	animation: tch-drop-in 0.18s ease-out;
}

@keyframes tch-drop-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.tch-dd-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 0.7rem;
	background: var(--tch-green-soft);
	color: var(--tch-green-dark);
	margin-right: 0.8rem;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tch-dd-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.tch-dd-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tch-dd-text strong {
	font-family: "Poppins", "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tch-ink);
	line-height: 1.3;
}

.tch-dd-text small {
	font-size: 0.76rem;
	color: var(--tch-muted);
	line-height: 1.35;
	margin-top: 0.1rem;
}

.site-header a.tch-dd-link,
.site-header button.tch-dd-link {
	display: flex !important;
	align-items: center;
	width: 100%;
	text-align: left;
	text-decoration: none !important;
	border: 0;
	background: transparent;
	border-radius: 0.75rem;
	padding: 0.55rem 0.65rem !important;
	transition: background 0.18s ease;
	white-space: normal;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.site-header a.tch-dd-link:hover,
.site-header button.tch-dd-link:hover {
	background: var(--tch-green-soft) !important;
}

.site-header a.tch-dd-link:hover .tch-dd-icon,
.site-header button.tch-dd-link:hover .tch-dd-icon {
	background: var(--tch-green);
	color: #fff;
	transform: scale(1.05);
}

.site-header a.tch-dd-link:hover strong,
.site-header button.tch-dd-link:hover strong {
	color: var(--tch-green-dark);
}

.tch-mega {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	width: 100%;
	padding: 0.35rem;
	min-width: 0;
}

.tch-mega[data-active="ehr"],
.tch-mega[data-active="apps"] {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.tch-mega__nav {
	min-width: 0;
}

.tch-mega__flyout {
	min-width: 0;
	border-left: 1px solid var(--tch-border);
	padding-left: 0.75rem;
	margin-left: 0.35rem;
}

.tch-mega__flyout[hidden],
.tch-mega__flyout-panel[hidden] {
	display: none !important;
}

.tch-mega__drill-arrow {
	margin-left: auto;
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	color: var(--tch-muted);
}

.site-header .tch-dd-link--cat:hover .tch-mega__drill-arrow,
.site-header .tch-dd-link--cat.is-active .tch-mega__drill-arrow {
	color: var(--tch-green-dark);
}

.site-header .tch-dd-link--cat.is-active {
	background: var(--tch-green-soft) !important;
}

.site-header .tch-dd-link--cat.is-active .tch-dd-icon {
	background: var(--tch-green);
	color: #fff;
}

.site-header .tch-dd-link--cat.is-active strong {
	color: var(--tch-green-dark);
}

.tch-mega__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tch-muted);
	padding: 0.35rem 0.65rem 0.5rem;
}

.tch-mega__feature {
	display: flex !important;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 0.95rem !important;
	margin-bottom: 0.4rem;
	border-radius: 0.9rem;
	text-decoration: none !important;
	background: linear-gradient(135deg, #77B624, #5f9419);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(119, 182, 36, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tch-mega__feature:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(119, 182, 36, 0.4);
	color: #fff !important;
}

.tch-mega__feature .tch-dd-icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	margin-right: 0;
}

.tch-mega__feature .tch-dd-text strong,
.tch-mega__feature .tch-dd-text small {
	color: #fff !important;
}

.tch-mega__feature .tch-dd-text small {
	opacity: 0.9;
}

.tch-mega__feature-arrow {
	margin-left: auto;
	width: 1.1rem;
	height: 1.1rem;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.tch-mega__feature:hover .tch-mega__feature-arrow {
	transform: translateX(3px);
}

.tch-mega__list {
	display: grid;
	gap: 0.1rem;
}

@media (min-width: 992px) {
	.site-header .products-mega.dropdown-menu {
		width: min(420px, calc(100vw - 2rem));
		max-width: min(420px, calc(100vw - 2rem));
	}

	.site-header .products-mega.dropdown-menu:has(.tch-mega[data-active="ehr"]),
	.site-header .products-mega.dropdown-menu:has(.tch-mega[data-active="apps"]) {
		width: min(780px, calc(100vw - 2rem));
		max-width: min(780px, calc(100vw - 2rem));
	}
}

@media (max-width: 991.98px) {
	.site-header .products-mega.dropdown-menu {
		width: 100%;
		max-width: none;
		box-shadow: none;
		border: 0;
		padding: 0.35rem 0;
		background: transparent;
	}

	.tch-mega[data-active="ehr"],
	.tch-mega[data-active="apps"] {
		grid-template-columns: 1fr;
	}

	.tch-mega__flyout {
		border-left: 0;
		border-top: 1px solid var(--tch-border);
		padding-left: 0;
		margin-left: 0;
		padding-top: 0.55rem;
		margin-top: 0.35rem;
	}

	.site-header .tch-dd-text small {
		display: none;
	}

	.site-header .tch-dd-icon {
		width: 2rem;
		height: 2rem;
		border-radius: 0.55rem;
	}
}

/* Solutions compact menu — same tch-dd item chrome as Products */
.site-header .solutions-menu.dropdown-menu {
	padding: 0.6rem;
	border-radius: 1rem;
	border: 1px solid var(--tch-border);
	box-shadow: 0 24px 60px rgba(7, 16, 24, 0.14), 0 2px 6px rgba(7, 16, 24, 0.04);
	animation: tch-drop-in 0.18s ease-out;
	min-width: 18rem;
}

@media (min-width: 992px) {
	.site-header .solutions-menu.dropdown-menu {
		width: min(320px, calc(100vw - 2rem));
	}
}

@media (max-width: 991.98px) {
	.site-header .solutions-menu.dropdown-menu {
		width: 100%;
		max-width: none;
		box-shadow: none;
		border: 0;
		padding: 0.35rem 0;
		background: transparent;
	}
}

/* Primary header CTA — solid accent, rounded to match Sign in */
.site-header .header-cta-group .btn-primary {
	background: #77B624 !important;
	border-color: #77B624 !important;
	border-width: 2px;
	border-radius: 0.5rem !important;
	font-weight: 600;
	padding: 0.45rem 0.95rem;
}

.site-header .header-cta-group .btn-primary:hover,
.site-header .header-cta-group .btn-primary:focus-visible {
	background: #5f9419 !important;
	border-color: #5f9419 !important;
}
