/**
 * ServLoom footer — same-to-same Narsun spacing/structure, ServLoom data.
 */

.sl-footer.site-footer,
footer.sl-footer {
	--sl-ft-dark: #050a14;
	--sl-ft-bg: #eaf0fb;
	--sl-ft-ink: #1a1f2c;
	--sl-ft-muted: #7a8496;
	--sl-ft-link: #5c6578;
	--sl-ft-line: rgb(26 31 44 / 0.1);
	--sl-ft-blue: #1e6bfa;
	--sl-ft-radius: 28px;
	--sl-ft-max: 1180px;
	position: relative;
	background: var(--sl-ft-dark) !important;
	color: var(--sl-ft-ink);
	margin: 0;
	border: 0;
	box-shadow: none;
	padding: clamp(0.5rem, 1.2vw, 0.75rem) 0;
	overflow: visible;
}

.sl-footer .site-footer__glow { display: none !important; }

.sl-footer__shell {
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: var(--sl-ft-bg);
	border-radius: var(--sl-ft-radius);
	overflow: hidden;
	position: relative;
	box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.55);
}

.sl-footer__shell-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	box-sizing: border-box;
	padding: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 6vw, 5rem) clamp(1.35rem, 2.5vw, 1.75rem);
}

/* ===== TOP ===== */
.sl-footer__top {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

@media (min-width: 900px) {
	.sl-footer__top {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 3rem;
		width: 100%;
	}

	.sl-footer__contact-block {
		margin-inline-start: auto;
		flex-shrink: 0;
	}

	.sl-footer__contact-lines {
		align-items: flex-end;
		text-align: right;
	}
}

.sl-footer__logo {
	display: block;
	height: 42px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
}

.sl-footer__slogan {
	margin: 1.15rem 0 0;
	max-width: 28ch;
	font-family: "Poppins", Inter, sans-serif;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	font-weight: 500;
	line-height: 1.32;
	letter-spacing: -0.025em;
	color: #7e8691;
	text-wrap: balance;
}

@media (min-width: 900px) {
	.sl-footer__slogan {
		max-width: 30ch;
	}
}

.sl-footer__contact-block {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.sl-footer__globe {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.sl-footer__globe svg {
	width: 58px;
	height: 58px;
}

.sl-footer__contact-lines {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sl-footer__contact-lines a {
	font-family: "Poppins", Inter, sans-serif;
	font-size: 1.02rem;
	font-weight: 500;
	color: #7e8691;
	text-decoration: none;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.sl-footer__contact-lines a:hover {
	color: var(--sl-ft-blue);
}

/* ===== NAV ===== */
.sl-footer__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem 1.5rem;
	align-items: start;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sl-footer__col--featured {
	grid-column: 1 / -1;
}

@media (min-width: 760px) {
	.sl-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25rem 2rem;
	}
}

@media (min-width: 1100px) {
	.sl-footer__nav {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 1.4fr) minmax(0, 1fr);
		gap: 2.5rem 2.5rem;
		width: 100%;
	}
	.sl-footer__col--featured {
		grid-column: auto;
	}
	.sl-footer__nav > .sl-footer__col:last-child {
		justify-self: end;
		text-align: right;
		width: 100%;
		max-width: 11rem;
	}
	.sl-footer__nav > .sl-footer__col:last-child .sl-footer__links {
		justify-items: end;
	}
}

.sl-footer__heading {
	margin: 0 0 1.5rem;
	font-family: "Poppins", Inter, sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2a3142;
	letter-spacing: -0.01em;
}

.sl-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.15rem;
}

.sl-footer__links a {
	display: inline-block;
	padding: 0.15rem 0;
	color: var(--sl-ft-link);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 450;
	line-height: 1.85;
	transition: color 0.18s ease;
}

.sl-footer__links a:hover {
	color: var(--sl-ft-blue);
}

/* Featured card */
.sl-footer__feature-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 20px;
	height: 220px;
	text-decoration: none;
	isolation: isolate;
}

@media (min-width: 1100px) {
	.sl-footer__feature-card {
		height: 240px;
	}
}

.sl-footer__feature-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.sl-footer__feature-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 28%, rgb(10 16 28 / 0.82) 100%);
	z-index: 1;
}

.sl-footer__feature-card:hover .sl-footer__feature-img {
	transform: scale(1.06);
}

.sl-footer__feature-arrow {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #111;
}

.sl-footer__feature-body {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.sl-footer__feature-icon {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sl-ft-blue);
	color: #fff;
	flex: 0 0 auto;
}

.sl-footer__feature-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	color: #fff;
}

.sl-footer__feature-title {
	font-family: "Poppins", Inter, sans-serif;
	font-weight: 700;
	font-size: 1rem;
}

.sl-footer__feature-desc {
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgb(255 255 255 / 0.88);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Newsletter — compact, same card language */
.sl-footer__newsletter {
	display: grid;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
	border-radius: 18px;
	background: rgb(255 255 255 / 0.55);
	border: 1px solid var(--sl-ft-line);
}

@media (min-width: 900px) {
	.sl-footer__newsletter {
		grid-template-columns: 1.1fr 1fr;
		align-items: center;
		gap: 2rem;
		padding: 1.35rem 1.6rem;
	}
}

.sl-footer__newsletter-eyebrow {
	display: inline-block;
	margin-bottom: 0.25rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sl-ft-blue);
}

.sl-footer__newsletter-title {
	margin: 0 0 0.25rem;
	font-family: "Poppins", Inter, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sl-ft-ink);
}

.sl-footer__newsletter-lede {
	margin: 0;
	color: var(--sl-ft-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.sl-footer__newsletter-form {
	display: flex;
	gap: 0.55rem;
}

.sl-footer__newsletter-form input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 1rem;
	border: 1px solid var(--sl-ft-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.92rem;
	color: var(--sl-ft-ink);
}

.sl-footer__newsletter-form input:focus {
	outline: none;
	border-color: var(--sl-ft-blue);
	box-shadow: 0 0 0 3px rgb(30 107 250 / 0.14);
}

.sl-footer__newsletter-form button {
	height: 46px;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--sl-ft-blue);
	color: #fff;
	font-family: "Poppins", Inter, sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
}

.sl-footer__newsletter-form button:hover {
	background: #0b57e6;
}

@media (max-width: 520px) {
	.sl-footer__newsletter-form {
		flex-direction: column;
	}
	.sl-footer__newsletter-form button {
		width: 100%;
	}
}

/* ===== OFFICES ===== */
.sl-footer__offices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	padding-top: 0.5rem;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	position: relative;
	z-index: 2;
}

@media (min-width: 700px) {
	.sl-footer__offices {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.5rem;
		width: 100%;
	}
	.sl-footer__office:last-child {
		text-align: right;
		justify-self: end;
	}
	.sl-footer__office:last-child .sl-footer__office-head {
		justify-content: flex-end;
	}
}

.sl-footer__office-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.55rem;
}

.sl-footer__office-flag {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--sl-ft-line);
	font-size: 0.9rem;
	overflow: hidden;
	flex: 0 0 auto;
}

.sl-footer__office-flag--icon {
	color: var(--sl-ft-blue);
	background: rgb(30 107 250 / 0.1);
	border-color: transparent;
}

.sl-footer__office-name {
	margin: 0;
	font-family: "Poppins", Inter, sans-serif;
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--sl-ft-ink);
}

.sl-footer__office-phone {
	display: inline-block;
	margin: 0 0 0.45rem;
	color: var(--sl-ft-ink);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
}

.sl-footer__office-phone:hover {
	color: var(--sl-ft-blue);
}

.sl-footer__office-addr {
	margin: 0;
	color: var(--sl-ft-muted);
	font-size: 0.86rem;
	line-height: 1.55;
	max-width: 24ch;
}

/* Watermark */
.sl-footer__watermark {
	position: relative;
	z-index: 0;
	text-align: center;
	font-family: "Poppins", Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(3rem, 11.5vw, 7.5rem);
	line-height: 0.9;
	letter-spacing: 0.06em;
	color: rgb(30 107 250 / 0.09);
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
	margin: 0.25rem 0 0.75rem;
	overflow: hidden;
}

/* ===== BOTTOM BAR ===== */
.sl-footer__bar {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: center;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sl-ft-line);
}

@media (min-width: 900px) {
	.sl-footer__bar {
		grid-template-columns: 1.1fr auto 1fr;
		gap: 1.5rem;
	}
	.sl-footer__socials {
		justify-self: end;
	}
	.sl-footer__legal {
		justify-self: center;
	}
}

.sl-footer__copy {
	margin: 0;
	color: var(--sl-ft-muted);
	font-size: 0.82rem;
}

.sl-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.35rem;
}

.sl-footer__legal a {
	color: var(--sl-ft-muted);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
}

.sl-footer__legal a:hover {
	color: var(--sl-ft-blue);
}

.sl-footer__socials {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.sl-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #3d4559;
	text-decoration: none;
	transition: color 0.18s ease;
}

.sl-footer__social:hover {
	color: var(--sl-ft-blue);
}

.mountsol-demo-onboarding-page .sl-footer {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.sl-footer__feature-img { transition: none; }
}
