/*
 * Samanvi Technologies — Site Footer styles.
 * Loaded globally via functions.php
 */

:root {
	--sm-black: #091628;
	--sm-off-black: #0d2040;
	--sm-mid: #174060;
	--sm-light-bg: #edf5f8;
	--sm-white: #ffffff;
	--sm-muted: #6fa3c0;
	--sm-teal: #00a896;
	--sm-teal-dark: #028090;
	--sm-blue: #1f4e8a;
	--sm-border: rgba(255, 255, 255, 0.08);
}

.sm-footer * { box-sizing: border-box; }
.sm-footer a { color: inherit; text-decoration: none; }
.sm-footer img { display: block; max-width: 100%; }

/* ════════════════════════════════
   FOOTER — wrapper
════════════════════════════════ */
.sm-footer {
	position: relative;
	background: linear-gradient(180deg, #091628 0%, #0a1a30 100%);
	color: var(--sm-white);
	overflow: hidden;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sm-footer::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 12% 0%, rgba(0, 168, 150, 0.20), transparent 38%),
		radial-gradient(circle at 88% 100%, rgba(31, 78, 138, 0.30), transparent 40%);
	pointer-events: none;
}
.sm-footer::after {
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
	pointer-events: none;
}

.sm-footer-inner {
	position: relative;
	max-width: 1280px; margin: 0 auto;
	padding: 0 50px;
}

/* ════════════════════════════════
   CTA STRIP
════════════════════════════════ */
.sm-cta {
	position: relative;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--sm-border);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 60px;
	align-items: center;
}
.sm-cta-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.72rem; letter-spacing: 1.5px;
	text-transform: uppercase; color: var(--sm-teal);
	font-weight: 500;
}
.sm-cta-eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: var(--sm-teal); box-shadow: 0 0 10px var(--sm-teal);
	animation: smPulse 2.5s ease-in-out infinite;
}
@keyframes smPulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.5); opacity: 0.5; }
}

.sm-cta-headline {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	font-weight: 700; letter-spacing: -1.5px;
	line-height: 1.1;
	margin: 14px 0 0;
	max-width: 580px;
	color: var(--sm-white);
}
.sm-cta-headline .accent {
	color: transparent;
	background: linear-gradient(90deg, var(--sm-teal), #5ee0c4);
	-webkit-background-clip: text;
	background-clip: text;
}

.sm-cta-actions {
	display: flex; flex-direction: column; gap: 14px;
	align-items: flex-start;
}
.sm-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 28px;
	border-radius: 12px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.82rem; font-weight: 500;
	letter-spacing: 0.8px; text-transform: uppercase;
	transition: all 0.25s ease;
	/* <button> resets — prevents browser/theme default button styling */
	border: none; cursor: pointer; text-decoration: none;
	-webkit-appearance: none; appearance: none;
}
.sm-btn-primary {
	background: var(--sm-teal); color: #fff;
	box-shadow: 0 8px 24px rgba(0, 168, 150, 0.35);
}
.sm-btn-primary:hover {
	background: var(--sm-teal);
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 168, 150, 0.55);
	color: #fff;
}
.sm-btn-primary svg { transition: transform 0.25s ease; }
.sm-btn-primary:hover svg { transform: translateX(4px); }

.sm-cta-meta {
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.75rem; letter-spacing: 0.5px;
	color: var(--sm-muted);
}
.sm-cta-meta strong { color: var(--sm-white); font-weight: 600; }

/* ════════════════════════════════
   COLUMNS
════════════════════════════════ */
.sm-cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 48px;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--sm-border);
}

/* Brand column */
.sm-brand-logo {
	display: block;
	margin-bottom: 20px;
}
.sm-brand-logo img {
	display: block;
	height: 54px; width: auto;
	max-width: 240px;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}
.sm-brand-tagline {
	color: var(--sm-white);
	font-size: 0.92rem;
	line-height: 1.65;
	max-width: 340px;
	margin: 0 0 22px;
}

/* Status badge */
.sm-status {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 168, 150, 0.35);
	border-radius: 999px;
	background: rgba(0, 168, 150, 0.08);
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.7rem; font-weight: 500;
	letter-spacing: 1.2px; text-transform: uppercase;
	color: var(--sm-teal);
	margin-bottom: 22px;
}
.sm-status-dot {
	position: relative;
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--sm-teal);
}
.sm-status-dot::after {
	content: ""; position: absolute; inset: -4px;
	border-radius: 50%;
	background: var(--sm-teal); opacity: 0.35;
	animation: smRipple 2s ease-out infinite;
}
@keyframes smRipple {
	0%   { transform: scale(0.6); opacity: 0.5; }
	100% { transform: scale(1.8); opacity: 0; }
}

/* Socials */
.sm-socials { display: flex; gap: 10px; }
.sm-social {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: var(--sm-muted);
	transition: all 0.25s ease;
}
.sm-social:hover {
	background: var(--sm-teal);
	border-color: var(--sm-teal);
	color: var(--sm-white);
	transform: translateY(-3px);
}

/* Link columns */
.sm-col-title {
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.72rem; font-weight: 500;
	letter-spacing: 1.8px; text-transform: uppercase;
	color: var(--sm-white);
	margin: 0 0 22px;
	position: relative;
	padding-bottom: 14px;
}
.sm-col-title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 28px; height: 2px;
	background: var(--sm-teal);
	border-radius: 2px;
}

.sm-links { list-style: none; padding: 0; margin: 0; }
.sm-links li { margin-bottom: 11px; }
.sm-link {
	position: relative;
	display: inline-flex; align-items: center;
	color: var(--sm-muted);
	font-size: 0.88rem;
	font-weight: 400;
	transition: color 0.25s ease, padding-left 0.25s ease;
}
.sm-link::before {
	content: ""; position: absolute; left: 0;
	width: 0; height: 1px;
	background: var(--sm-teal);
	transition: width 0.3s ease;
}
.sm-link:hover {
	color: var(--sm-white);
	padding-left: 18px;
}
.sm-link:hover::before { width: 12px; }

/* Newsletter column */
.sm-newsletter-text {
	color: var(--sm-white);
	font-size: 0.88rem;
	line-height: 1.6;
	margin: 0 0 18px;
}
.sm-newsletter {
	position: relative;
	display: flex;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.25s ease, background 0.25s ease;
}
.sm-newsletter:focus-within {
	border-color: var(--sm-teal);
	background: rgba(0, 168, 150, 0.06);
}
.sm-newsletter input,
.sm-newsletter input[type="email"] {
	flex: 1; min-width: 0;
	background: transparent !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	padding: 14px 16px;
	color: var(--sm-white);
	font-family: inherit; font-size: 0.88rem;
	border-radius: 0;
	margin: 0;
	height: auto;
	line-height: 1.4;
}
.sm-newsletter input:focus,
.sm-newsletter input[type="email"]:focus {
	box-shadow: none !important;
	border: 0 !important;
	outline: 0 !important;
}
.sm-newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sm-newsletter button {
	background: var(--sm-teal);
	border: 0; cursor: pointer;
	padding: 0 18px;
	color: var(--sm-white);
	display: flex; align-items: center; justify-content: center;
	transition: background 0.25s ease;
}
.sm-newsletter button:hover { background: var(--sm-teal-dark); }
.sm-newsletter button svg { transition: transform 0.25s ease; }
.sm-newsletter button:hover svg { transform: translateX(3px); }

.sm-newsletter-note {
	display: block;
	margin-top: 12px;
	font-size: 0.72rem; color: rgba(255, 255, 255, 0.4);
	letter-spacing: 0.3px;
}

/* Contact mini */
.sm-contact-list {
	list-style: none; padding: 0; margin: 24px 0 0;
}
.sm-contact-list li {
	display: flex; align-items: center; gap: 10px;
	font-size: 0.85rem;
	color: var(--sm-white);
	margin-bottom: 10px;
}
.sm-contact-list a { color: var(--sm-white); transition: color 0.2s ease; }
.sm-contact-list a:hover { color: var(--sm-teal); }
.sm-contact-list svg { flex-shrink: 0; color: var(--sm-teal); }

/* ════════════════════════════════
   BIG WORDMARK
════════════════════════════════ */
.sm-wordmark {
	position: relative;
	padding: 48px 0 24px;
	text-align: center;
	border-bottom: 1px solid var(--sm-border);
	overflow: hidden;
}
.sm-wordmark-text {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(4rem, 16vw, 15rem);
	font-weight: 700;
	letter-spacing: -8px;
	line-height: 0.85;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
	white-space: nowrap;
}

/* ════════════════════════════════
   BOTTOM BAR
════════════════════════════════ */
.sm-bottom {
	padding: 22px 0 28px;
	display: flex; flex-wrap: wrap; gap: 16px;
	align-items: center; justify-content: center;
}
.sm-copy {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.45);
	letter-spacing: 0.2px;
}
.sm-copy a { color: var(--sm-muted); transition: color 0.2s ease; }
.sm-copy a:hover { color: var(--sm-white); }

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
.sm-totop {
	position: fixed;
	right: 28px; bottom: 28px;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--sm-teal);
	color: var(--sm-white);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; border: 0;
	box-shadow: 0 10px 28px rgba(0, 168, 150, 0.45);
	opacity: 0; transform: translateY(20px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
	z-index: 50;
	padding: 0;
}
.sm-totop.is-visible { opacity: 1; transform: translateY(0); }
.sm-totop:hover { background: var(--sm-teal-dark); transform: translateY(-4px); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 980px) {
	.sm-footer-inner { padding: 0 28px; }
	.sm-cta {
		grid-template-columns: 1fr; gap: 28px;
		padding: 48px 0 40px;
	}
	.sm-cols {
		grid-template-columns: 1fr 1fr;
		gap: 36px 32px;
		padding: 48px 0;
	}
	.sm-bottom { justify-content: flex-start; gap: 14px; }
	.sm-wordmark { padding: 36px 0 18px; }
	.sm-wordmark-text { letter-spacing: -4px; }
}
@media (max-width: 600px) {
	.sm-footer-inner { padding: 0 20px; }
	.sm-cols {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}
	/* Brand + Newsletter span full width; Services + Company side-by-side */
	.sm-cols > div:nth-child(1),
	.sm-cols > div:nth-child(4) {
		grid-column: 1 / -1;
	}
	.sm-cta { padding: 40px 0 32px; }
	.sm-totop { right: 18px; bottom: 18px; width: 42px; height: 42px; }
	.sm-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
