/**
 * Footer NTM — shortcode [ntm_footer]
 */

.ntm-footer {
	--ntm-footer-bg: #0f1a1a;
	--ntm-footer-bg-soft: #152424;
	--ntm-footer-text: rgba(255, 255, 255, 0.82);
	--ntm-footer-muted: rgba(255, 255, 255, 0.58);
	--ntm-footer-border: rgba(255, 255, 255, 0.1);
	--ntm-footer-accent: var(--ntm-home-primary, var(--primary-color, #2d6a6a));
	--ntm-footer-accent-dark: var(--ntm-home-primary-dark, color-mix(in srgb, var(--primary-color, #2d6a6a) 82%, #000));
	color: var(--ntm-footer-text);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

.ntm-footer *,
.ntm-footer *::before,
.ntm-footer *::after {
	box-sizing: border-box;
}

.ntm-footer__wrap {
	width: min(1200px, calc(100% - 32px));
	margin-inline: auto;
}

.ntm-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ntm-footer a:hover {
	color: #fff;
}

/* CTA strip */
.ntm-footer__cta {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ntm-footer-accent) 92%, #000) 0%,
		var(--ntm-footer-accent) 55%,
		color-mix(in srgb, var(--ntm-footer-accent) 75%, #fff) 100%
	);
	padding: 28px 0;
}

.ntm-footer__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.ntm-footer__cta-title {
	margin: 0 0 4px;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
}

.ntm-footer__cta-sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.95rem;
}

.ntm-footer__cta-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.ntm-footer__cta-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff !important;
	font-weight: 600;
	backdrop-filter: blur(6px);
}

.ntm-footer__cta-phone:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}

.ntm-footer__cta-phone-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.ntm-footer__cta-phone-icon svg {
	width: 100%;
	height: 100%;
}

.ntm-footer__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: var(--ntm-footer-accent-dark) !important;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ntm-footer__cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* Main grid */
.ntm-footer__main {
	background:
		radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--ntm-footer-accent) 18%, transparent), transparent 42%),
		linear-gradient(180deg, var(--ntm-footer-bg-soft) 0%, var(--ntm-footer-bg) 100%);
	padding: 56px 0 48px;
}

.ntm-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(140px, 1fr)) minmax(220px, 1.1fr);
	gap: 36px 28px;
}

.ntm-footer__brand-name {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff !important;
}

.ntm-footer__logo {
	display: inline-block;
	margin-bottom: 14px;
}

.ntm-footer__logo img {
	display: block;
	max-width: 170px;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.ntm-footer__tagline {
	margin: 0 0 10px;
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.ntm-footer__desc {
	margin: 0 0 18px;
	color: var(--ntm-footer-muted);
	max-width: 36ch;
}

.ntm-footer__factory {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--ntm-footer-border);
	background: rgba(255, 255, 255, 0.04);
	max-width: 42ch;
}

.ntm-footer__factory-icon {
	display: inline-flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--ntm-footer-accent);
}

.ntm-footer__factory-icon svg {
	width: 100%;
	height: 100%;
}

.ntm-footer__factory-label {
	margin: 0 0 4px;
	font-size: 0.92rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.94);
}

.ntm-footer__factory-address {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ntm-footer-muted);
	line-height: 1.55;
}

.ntm-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntm-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--ntm-footer-border);
	background: rgba(255, 255, 255, 0.04);
	color: #fff !important;
}

.ntm-footer__social a:hover {
	background: var(--ntm-footer-accent);
	border-color: transparent;
	transform: translateY(-2px);
}

.ntm-footer__social svg {
	width: 18px;
	height: 18px;
}

.ntm-footer__col-title {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	position: relative;
	padding-bottom: 10px;
}

.ntm-footer__col-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 2px;
	border-radius: 999px;
	background: var(--ntm-footer-accent);
}

.ntm-footer__links,
.ntm-footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ntm-footer__links li + li,
.ntm-footer__contact-list li + li {
	margin-top: 10px;
}

.ntm-footer__links a {
	color: var(--ntm-footer-muted) !important;
}

.ntm-footer__links a:hover {
	color: #fff !important;
	padding-left: 4px;
}

.ntm-footer__contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ntm-footer-muted);
}

.ntm-footer__contact-list a {
	color: var(--ntm-footer-text) !important;
}

.ntm-footer__contact-list a:hover {
	color: #fff !important;
}

.ntm-footer__contact-icon {
	display: inline-flex;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--ntm-footer-accent);
}

.ntm-footer__contact-icon svg {
	width: 100%;
	height: 100%;
}

/* Bottom bar */
.ntm-footer__bottom {
	border-top: 1px solid var(--ntm-footer-border);
	background: #0b1414;
	padding: 18px 0;
}

.ntm-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.ntm-footer__copyright,
.ntm-footer__extra {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ntm-footer-muted);
}

/* Flatsome footer wrapper — full bleed */
.footer-wrapper .ntm-footer {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}

@media (max-width: 991px) {
	.ntm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ntm-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 639px) {
	.ntm-footer__cta-inner,
	.ntm-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.ntm-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ntm-footer__main {
		padding-top: 40px;
	}
}
