/* Concepta Management – header/menu polish, consultation popup, motion */

/* ---------- Desktop navigation ---------- */
@media (min-width: 1024px) {
	nav.navbar.validnavs ul.nav > li > a {
		font-weight: 500;
		letter-spacing: .01em;
		transition: color .2s ease;
	}
	nav.navbar.validnavs ul.nav > li > a:hover,
	nav.navbar.validnavs ul.nav > li.current-menu-item > a,
	nav.navbar.validnavs ul.nav > li.current-menu-ancestor > a {
		color: #246BFD !important;
	}
	nav.navbar.validnavs ul.nav ul.dropdown-menu {
		min-width: 310px;
		padding: 10px 0 !important;
		background: #fff !important;
		border: 1px solid #D8E7EF !important;
		border-top: 3px solid #246BFD !important;
		border-radius: 0 0 12px 12px !important;
		box-shadow: 0 22px 48px rgba(2, 43, 109, .14) !important;
	}
	nav.navbar.validnavs ul.nav ul.dropdown-menu li a {
		display: block;
		padding: 10px 24px !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.45 !important;
		color: #1F2B38 !important;
		border: 0 !important;
		white-space: nowrap;
		transition: background .2s ease, color .2s ease, padding-left .2s ease;
	}
	nav.navbar.validnavs ul.nav ul.dropdown-menu li a:hover,
	nav.navbar.validnavs ul.nav ul.dropdown-menu li.current-menu-item > a {
		background: #F4F7FB !important;
		color: #246BFD !important;
		padding-left: 30px !important;
	}
	/* divider between the six core services and the supporting services */
	nav.navbar.validnavs ul.nav > li > ul.dropdown-menu > li:nth-child(7) {
		border-top: 1px solid #E6EDF5;
		margin-top: 8px;
		padding-top: 8px;
	}
}

/* Header button */
.attr-nav li.button a {
	background: #246BFD !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 13px 24px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	box-shadow: 0 8px 20px rgba(36, 107, 253, .25);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.attr-nav li.button a:hover {
	background: #022B6D !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(2, 43, 109, .28);
}
.attr-nav li.button a::before,
.attr-nav li.button a::after { display: none !important; }

/* Mobile side menu */
@media (max-width: 1023px) {
	nav.navbar.validnavs .navbar-collapse ul.nav > li > a {
		font-weight: 600;
		border-bottom: 1px solid #EEF2F7;
	}
	nav.navbar.validnavs .navbar-collapse ul.dropdown-menu li a {
		font-size: 15px !important;
		font-weight: 500 !important;
		color: #4A5563 !important;
	}
	.attr-nav li.button a { padding: 10px 16px !important; font-size: 14px !important; }
}

/* ---------- Consultation popup ---------- */
.cm-modal[hidden] { display: none !important; }
.cm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 20, 52, .62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .3s ease;
}
.cm-modal__panel {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(2, 20, 52, .35);
	opacity: 0;
	transform: translateY(24px) scale(.98);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.cm-modal.is-open .cm-modal__overlay { opacity: 1; }
.cm-modal.is-open .cm-modal__panel { opacity: 1; transform: none; }
.cm-modal__head {
	background: linear-gradient(135deg, #022B6D 0%, #0846C6 100%);
	color: #fff;
	padding: 32px 36px 26px;
	border-radius: 18px 18px 0 0;
}
.cm-modal__eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9FC0FF;
}
.cm-modal__title { margin: 0 0 8px; font-size: 28px; line-height: 1.25; color: #fff; }
.cm-modal__lead { margin: 0; font-size: 16px; line-height: 1.6; color: #E3ECFF; }
.cm-modal__lead a { color: #fff; text-decoration: underline; }
.cm-modal__body { padding: 28px 36px 30px; }
.cm-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	transition: background .2s ease;
}
.cm-modal__close:hover, .cm-modal__close:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.cm-modal .wpcf7 .form-control,
.cm-modal .wpcf7 select,
.cm-modal .wpcf7 textarea {
	width: 100%;
	border: 1px solid #D8E7EF;
	border-radius: 8px;
	padding: 12px 14px;
	background: #fff;
	font-size: 16px;
}
.cm-modal .wpcf7 textarea { min-height: 120px; }
.cm-modal .wpcf7 .form-control:focus { border-color: #246BFD; box-shadow: 0 0 0 3px rgba(36, 107, 253, .15); outline: none; }
.cm-modal .wpcf7 .form-group { margin-bottom: 14px; }
.cm-modal .wpcf7 label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: #1F2B38; }
.cm-modal .wpcf7 input[type=submit],
.cm-modal .wpcf7 button {
	background: #246BFD;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 15px 30px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.cm-modal .wpcf7 input[type=submit]:hover { background: #022B6D; }
.cm-modal__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #E6EDF5;
	font-size: 13px;
	color: #4A5563;
	list-style: none;
}
.cm-modal__trust li { margin: 0; }
.cm-modal__trust li::before { content: "\2713"; color: #246BFD; font-weight: 700; margin-right: 6px; }
body.cm-modal-open { overflow: hidden; }

@media (max-width: 767px) {
	.cm-modal { padding: 0; align-items: flex-end; }
	.cm-modal__panel { max-height: 94vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
	.cm-modal__head { padding: 26px 20px 20px; }
	.cm-modal__title { font-size: 22px; padding-right: 36px; }
	.cm-modal__body { padding: 20px 20px 28px; }
	.cm-modal .col-lg-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* gentle float on the home hero illustration */
	.banner-one-thumb .thumb { animation: cmFloat 7s ease-in-out infinite; }
	@keyframes cmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

	/* page banners slide in */
	.cm-banner .e-con-inner > * { animation: cmUp .8s cubic-bezier(.2, .7, .2, 1) both; }
	.cm-banner .e-con-inner > *:nth-child(2) { animation-delay: .08s; }
	.cm-banner .e-con-inner > *:nth-child(3) { animation-delay: .16s; }
	.cm-banner .e-con-inner > *:nth-child(4) { animation-delay: .24s; }
	@keyframes cmUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

	/* sections reveal on scroll (only when JS is running) */
	.cm-js .cm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
	.cm-js .cm-reveal.is-visible { opacity: 1; transform: none; }
	.cm-js .cm-grid > .cm-reveal:nth-child(2) { transition-delay: .08s; }
	.cm-js .cm-grid > .cm-reveal:nth-child(3) { transition-delay: .16s; }
	.cm-js .cm-grid > .cm-reveal:nth-child(4) { transition-delay: .24s; }
	.cm-js .cm-grid > .cm-reveal:nth-child(5) { transition-delay: .32s; }
	.cm-js .cm-grid > .cm-reveal:nth-child(6) { transition-delay: .40s; }
}
