/* ---------------------------------------------------------------
   Nimblemindz — merged "Our Products" section (page 7534)
   Replaces the old "What We Offer" + "Products" sections.
   --------------------------------------------------------------- */

.nm-products-section {
	width: 100%;
	scroll-margin-top: 110px;
}

.nm-products-inner {
	width: min(1140px, calc(100% - 48px));
	margin-inline: auto;
}

#professional-services {
	scroll-margin-top: 110px;
}

/* Header -------------------------------------------------------- */
.nm-products-head .elementor-heading-title {
	margin: 0;
}

.nm-products-title .elementor-heading-title {
	text-wrap: balance;
}

.nm-products-intro {
	max-width: 680px;
}

.nm-products-intro .elementor-heading-title {
	margin: 0;
	text-wrap: pretty;
}

/* Group heading ------------------------------------------------- */
.nm-group-title {
	border-bottom: 1px solid #e6ebf2;
	padding-bottom: 12px;
}

.nm-group-title .elementor-heading-title {
	margin: 0;
	padding-left: 13px;
	border-left: 4px solid #fa6a06;
	line-height: 1.25;
}

/* Parent (umbrella) card --------------------------------------- */
.nm-parent {
	background-image: linear-gradient(135deg, #0e2b8b 0%, #1d79ae 100%);
	border-radius: 16px;
}

.nm-parent .elementor-heading-title,
.nm-parent-desc,
.nm-parent-desc p {
	color: #ffffff;
}

.nm-parent-desc p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}

.nm-parent-title .elementor-heading-title {
	text-wrap: balance;
}

.nm-products-section .nm-parent-btn .elementor-button {
	background-color: #ffffff;
	color: #0e2b8b;
	padding: 14px 26px;
	border-radius: 10px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.nm-products-section .nm-parent-btn .elementor-button:hover {
	background-color: #e8f1f8;
	color: #0e2b8b;
	transform: translateY(-2px);
}

.nm-products-section .nm-parent-btn .elementor-button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* Product cards ------------------------------------------------- */
.nm-card {
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.nm-card-media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: #eef5fb;
}

.nm-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Decorative panel for products that have no mockup yet. */
.nm-card-media--empty {
	background-color: #edf4fa;
	background-image: radial-gradient(rgba(29, 121, 174, 0.12) 1.5px, transparent 1.6px);
	background-size: 18px 18px;
}

/* Specificity bump: Elementor's `.e-con.e-flex` (0,2,0) sets `flex` and
   margins on containers, so scope these under `.nm-card`. */
.nm-card .nm-card-body {
	flex: 1 1 auto;
}

.nm-card-title .elementor-heading-title {
	margin: 0;
	text-wrap: balance;
}

.nm-card-tagline .elementor-heading-title {
	margin: 0;
}

.nm-card-desc,
.nm-card-desc p {
	margin: 0;
	color: #475569;
	font-size: 15px;
	line-height: 1.6;
}

.nm-card--soon .nm-card-tagline .elementor-heading-title {
	display: inline-block;
	background-color: #fff3e6;
	color: #9a3412;
	border: 1px solid #fbd5ae;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nm-products-section .nm-card .nm-card-btn {
	margin-top: auto;
}

.nm-products-section .nm-card-btn .elementor-button {
	background-color: #c2410c;
	color: #ffffff;
	padding: 11px 20px;
	border-radius: 9px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.nm-products-section .nm-card-btn .elementor-button:hover {
	background-color: #1d79ae;
	color: #ffffff;
}

.nm-products-section .nm-card-btn .elementor-button:focus-visible {
	outline: 3px solid #0b1b3a;
	outline-offset: 2px;
}

/* Strip under the products -------------------------------------- */
.nm-products-strip {
	text-align: center;
}

.nm-products-strip-text,
.nm-products-strip-text p {
	margin: 0;
	color: #334155;
	font-size: 16px;
	line-height: 1.6;
}

.nm-products-strip-text a {
	color: #1d79ae;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.nm-products-strip-text a:hover {
	border-bottom-color: #1d79ae;
}

.nm-products-strip-text a:focus-visible {
	outline: 3px solid #0b1b3a;
	outline-offset: 2px;
	border-radius: 3px;
}

/* Groups that don't fill a full row (1 or 2 products) are centred on
   desktop so they read as deliberate rather than left-stranded.
   Elementor's responsive grid columns take over below 1025px. */
@media (min-width: 1025px) {
	.nm-cards-grid:has(> .nm-card:only-child) {
		grid-template-columns: minmax(0, 380px);
		justify-content: center;
	}

	.nm-cards-grid:has(> .nm-card:last-child:nth-child(2)) {
		grid-template-columns: repeat(2, minmax(0, 380px));
		justify-content: center;
	}
}

/* Responsive ----------------------------------------------------- */
@media (max-width: 767px) {
	.nm-parent {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	/* The button widget is a flex item, so stretch the wrapper too. */
	.nm-products-section .nm-parent-btn,
	.nm-products-section .nm-card .nm-card-btn {
		width: 100%;
		align-self: stretch;
	}

	.nm-products-section .nm-parent-btn .elementor-button,
	.nm-products-section .nm-card .nm-card-btn .elementor-button {
		width: 100%;
		text-align: center;
	}

	.nm-card-media {
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nm-card,
	.nm-products-section .nm-parent-btn .elementor-button,
	.nm-products-section .nm-card-btn .elementor-button,
	.nm-products-strip-text a {
		transition: none;
	}

	.nm-card:hover,
	.nm-products-section .nm-parent-btn .elementor-button:hover {
		transform: none;
	}
}
