/**
 * Smart Gear Select — Premium Dark Footer v3.2.0
 * Sophisticated dark with gradients, depth, glows & luxury design.
 * Design tokens, layout, fonts, and emojis preserved exactly from v3.0.
 */

:root {
	--sgs-bg-primary:    #0a0e16;
	--sgs-bg-secondary:  #141b28;
	--sgs-bg-tertiary:   #1a2538;
	--sgs-border:        #2a3a52;
	--sgs-text-primary:  #f5f7fb;
	--sgs-text-secondary:#a8b5c7;
	--sgs-text-muted:    #6b7a8f;
	--sgs-accent:        #5b9cff;
	--sgs-accent-light:  #7bb5ff;
	--sgs-accent-dark:   #4a7fd9;
	--sgs-glow:          rgba(91, 156, 255, 0.3);
	--sgs-radius:        12px;
}

/* ═════════════════════════════════════════════════════════════ */
/* UTILITIES                                                     */
/* ═════════════════════════════════════════════════════════════ */

.sgs-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Honeypot - hidden from sighted users and screen readers, but bots fill it. */
.sgs-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Skip-link anchor target */
.sgs-anchor {
	display: block;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 80px;
}

/* ═════════════════════════════════════════════════════════════ */
/* BASE FOOTER                                                   */
/* ═════════════════════════════════════════════════════════════ */

.sgs-footer {
	background: linear-gradient(135deg, #0a0e16 0%, #0f1621 50%, #0a0e16 100%);
	color: var(--sgs-text-primary);
	padding: 4rem 0 2rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	border-top: 2px solid;
	border-image: linear-gradient(90deg, #5b9cff, #2a6b9e, transparent) 1;
	position: relative;
	overflow: hidden;
}

/* Animated background glow effect */
.sgs-footer::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(91, 156, 255, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	animation: sgs-float 15s ease-in-out infinite;
	pointer-events: none;
}

.sgs-footer::after {
	content: '';
	position: absolute;
	bottom: -30%;
	right: -5%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(61, 107, 168, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	animation: sgs-float 20s ease-in-out infinite reverse;
	pointer-events: none;
}

@keyframes sgs-float {
	0%, 100% { transform: translateY(0px) translateX(0px); }
	50%      { transform: translateY(30px) translateX(20px); }
}

.sgs-footer__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.5rem;
	position: relative;
	z-index: 2;
}

/* ═════════════════════════════════════════════════════════════ */
/* NEWSLETTER SECTION - PREMIUM GLASS MORPHISM                   */
/* ═════════════════════════════════════════════════════════════ */

.sgs-footer__newsletter {
	background: linear-gradient(135deg, rgba(20, 27, 40, 0.8) 0%, rgba(26, 37, 56, 0.9) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(91, 156, 255, 0.2);
	border-radius: 16px;
	padding: 3rem;
	margin-bottom: 3.5rem;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 2.5rem;
	align-items: center;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 1px rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.sgs-footer__newsletter::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, rgba(91, 156, 255, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* Backdrop-filter fallback */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
	.sgs-footer__newsletter { background: rgba(20, 27, 40, 0.96); }
	.sgs-form__input        { background: rgba(10, 14, 22, 0.9); }
}

.sgs-newsletter__content { position: relative; z-index: 1; }

.sgs-newsletter__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--sgs-text-primary);
	margin: 0 0 0.75rem;
	background: linear-gradient(135deg, #f5f7fb 0%, #a8b5c7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.sgs-newsletter__desc {
	color: var(--sgs-text-secondary);
	margin: 0;
	line-height: 1.7;
	font-size: 0.95rem;
}

.sgs-newsletter__form { position: relative; z-index: 1; }

.sgs-form__row {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.sgs-form__input {
	flex: 1;
	padding: 0.95rem 1.25rem;
	background: linear-gradient(135deg, rgba(10, 14, 22, 0.6) 0%, rgba(15, 22, 33, 0.6) 100%);
	border: 1.5px solid rgba(91, 156, 255, 0.2);
	border-radius: 10px;
	color: var(--sgs-text-primary);
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.sgs-form__input::placeholder { color: var(--sgs-text-muted); }

.sgs-form__input:hover {
	border-color: rgba(91, 156, 255, 0.4);
	background: linear-gradient(135deg, rgba(10, 14, 22, 0.8) 0%, rgba(15, 22, 33, 0.8) 100%);
}

.sgs-form__input:focus,
.sgs-form__input:focus-visible {
	outline: none;
	border-color: var(--sgs-accent);
	box-shadow:
		0 0 0 3px rgba(91, 156, 255, 0.2),
		inset 0 0 20px rgba(91, 156, 255, 0.08);
	background: linear-gradient(135deg, rgba(10, 14, 22, 0.95) 0%, rgba(15, 22, 33, 0.95) 100%);
}

.sgs-form__input[aria-invalid="true"] {
	border-color: #ff6b6b;
	box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.sgs-form__btn {
	padding: 0.95rem 2rem;
	background: linear-gradient(135deg, var(--sgs-accent) 0%, var(--sgs-accent-dark) 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow:
		0 4px 15px rgba(91, 156, 255, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.sgs-form__btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.sgs-form__btn:hover::before { left: 100%; }

.sgs-form__btn:hover,
.sgs-form__btn:focus-visible {
	background: linear-gradient(135deg, var(--sgs-accent-light) 0%, var(--sgs-accent) 100%);
	transform: translateY(-2px);
	box-shadow:
		0 6px 20px rgba(91, 156, 255, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	outline: none;
}

.sgs-form__btn:focus-visible {
	box-shadow:
		0 0 0 3px rgba(91, 156, 255, 0.4),
		0 6px 20px rgba(91, 156, 255, 0.5);
}

.sgs-form__btn[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.sgs-form__privacy {
	font-size: 0.8rem;
	color: var(--sgs-text-muted);
	margin: 0;
	position: relative;
	z-index: 1;
}

.sgs-form__privacy a {
	color: var(--sgs-accent-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sgs-form__privacy a:hover,
.sgs-form__privacy a:focus-visible {
	color: var(--sgs-text-primary);
	text-decoration: underline;
	outline: none;
}

/* ═════════════════════════════════════════════════════════════ */
/* FOOTER GRID                                                   */
/* ═════════════════════════════════════════════════════════════ */

.sgs-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(91, 156, 255, 0.1);
}

/* BRAND */
.sgs-footer__brand { position: relative; }

.sgs-footer__logo {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	margin-bottom: 1.25rem;
	transition: transform 0.3s ease;
}

.sgs-footer__logo:hover,
.sgs-footer__logo:focus-visible {
	transform: translateY(-2px);
	outline: none;
}

.sgs-logo__icon {
	font-size: 2rem;
	line-height: 1;
	filter: drop-shadow(0 0 8px rgba(91, 156, 255, 0.3));
}

.sgs-logo__text strong {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--sgs-text-primary);
	letter-spacing: -0.5px;
}

.sgs-logo__text span {
	font-size: 0.75rem;
	color: var(--sgs-accent-light);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.sgs-footer__desc {
	color: var(--sgs-text-secondary);
	line-height: 1.8;
	margin: 0 0 1.5rem;
	font-size: 0.94rem;
}

/* BADGES */
.sgs-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1.5rem;
}

.sgs-badge {
	background: linear-gradient(135deg, rgba(91, 156, 255, 0.15) 0%, rgba(91, 156, 255, 0.08) 100%);
	color: var(--sgs-accent-light);
	padding: 0.4rem 0.95rem;
	border-radius: 99px;
	font-size: 0.78rem;
	font-weight: 600;
	border: 1px solid rgba(91, 156, 255, 0.25);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: default;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.sgs-badge:hover {
	background: linear-gradient(135deg, rgba(91, 156, 255, 0.25) 0%, rgba(91, 156, 255, 0.15) 100%);
	border-color: rgba(91, 156, 255, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(91, 156, 255, 0.2);
}

/* SOCIAL ICONS */
.sgs-footer__social {
	display: flex;
	gap: 0.65rem;
}

.sgs-social {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(26, 37, 56, 0.8) 0%, rgba(20, 27, 40, 0.8) 100%);
	border: 1px solid rgba(91, 156, 255, 0.2);
	border-radius: 50%;
	color: var(--sgs-text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 1rem;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.sgs-social:hover,
.sgs-social:focus-visible {
	background: linear-gradient(135deg, var(--sgs-accent) 0%, var(--sgs-accent-dark) 100%);
	color: #ffffff;
	border-color: var(--sgs-accent-light);
	transform: translateY(-4px) scale(1.1);
	box-shadow: 0 8px 20px rgba(91, 156, 255, 0.4);
	outline: none;
}

.sgs-social:focus-visible {
	box-shadow:
		0 0 0 3px rgba(91, 156, 255, 0.4),
		0 8px 20px rgba(91, 156, 255, 0.4);
}

/* NAV COLUMNS */
.sgs-footer__nav h3 {
	color: var(--sgs-text-primary);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin: 0 0 1.25rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid transparent;
	border-image: linear-gradient(90deg, var(--sgs-accent), transparent) 1;
	position: relative;
}

.sgs-footer__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sgs-footer__nav li { margin-bottom: 0.65rem; }

.sgs-footer__nav a {
	color: var(--sgs-text-secondary);
	text-decoration: none;
	font-size: 0.92rem;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.15rem 0;
	position: relative;
}

.sgs-footer__nav a::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--sgs-accent-light);
	transition: width 0.3s ease;
}

.sgs-footer__nav a:hover,
.sgs-footer__nav a:focus-visible {
	color: var(--sgs-accent-light);
	transform: translateX(4px);
	outline: none;
}

.sgs-footer__nav a:hover::before,
.sgs-footer__nav a:focus-visible::before {
	width: 100%;
}

/* ═════════════════════════════════════════════════════════════ */
/* BOTTOM BAR                                                    */
/* ═════════════════════════════════════════════════════════════ */

.sgs-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 2rem;
	color: var(--sgs-text-muted);
	font-size: 0.85rem;
}

.sgs-footer__bottom p { margin: 0; }

.sgs-footer__brandlink {
	color: var(--sgs-accent-light);
	text-decoration: none;
	font-weight: 600;
}

.sgs-footer__brandlink:hover,
.sgs-footer__brandlink:focus-visible {
	color: var(--sgs-text-primary);
	text-decoration: underline;
	outline: none;
}

.sgs-footer__credit { color: var(--sgs-text-muted); }

.sgs-heart {
	color: #ff6b9d;
	display: inline-block;
	animation: sgs-heartbeat 1.5s ease-in-out infinite;
}

@keyframes sgs-heartbeat {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.15); }
}

/* ═════════════════════════════════════════════════════════════ */
/* SCROLL TO TOP                                                 */
/* ═════════════════════════════════════════════════════════════ */

.sgs-scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--sgs-accent) 0%, var(--sgs-accent-dark) 100%);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: 700;
	box-shadow:
		0 6px 20px rgba(91, 156, 255, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	z-index: 999;
}

.sgs-scroll-top[hidden] { display: none; }

.sgs-scroll-top:hover,
.sgs-scroll-top:focus-visible {
	transform: translateY(-4px) scale(1.05);
	box-shadow:
		0 10px 28px rgba(91, 156, 255, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	outline: none;
}

.sgs-scroll-top:focus-visible {
	box-shadow:
		0 0 0 3px rgba(91, 156, 255, 0.4),
		0 10px 28px rgba(91, 156, 255, 0.55);
}

/* ═════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                    */
/* ═════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.sgs-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
	.sgs-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	.sgs-footer { padding: 3rem 0 1.5rem; }
	.sgs-footer__newsletter {
		grid-template-columns: 1fr;
		padding: 2rem;
		gap: 1.5rem;
	}
	.sgs-form__row { flex-direction: column; }
	.sgs-form__btn { width: 100%; }
	.sgs-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.sgs-footer__bottom {
		flex-direction: column;
		text-align: center;
	}
	.sgs-scroll-top {
		bottom: 1rem;
		right: 1rem;
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 480px) {
	.sgs-newsletter__title { font-size: 1.35rem; }
	.sgs-footer__inner { padding: 0 1rem; }
}

/* ═════════════════════════════════════════════════════════════ */
/* MOTION & CONTRAST PREFERENCES                                 */
/* ═════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
	.sgs-footer::before,
	.sgs-footer::after,
	.sgs-heart,
	.sgs-form__btn::before,
	.sgs-footer__logo,
	.sgs-footer__nav a,
	.sgs-badge,
	.sgs-social,
	.sgs-scroll-top {
		animation: none !important;
		transition: none !important;
	}
	.sgs-footer__logo:hover,
	.sgs-social:hover,
	.sgs-scroll-top:hover,
	.sgs-footer__nav a:hover {
		transform: none !important;
	}
}

@media (prefers-contrast: more) {
	.sgs-footer { background: #000; }
	.sgs-footer__nav a,
	.sgs-form__privacy { color: #fff; }
	.sgs-form__input { border-width: 2px; }
	.sgs-badge { border-width: 2px; }
}

/* Print: hide footer chrome */
@media print {
	.sgs-footer__newsletter,
	.sgs-scroll-top,
	.sgs-footer__social { display: none !important; }
	.sgs-footer {
		background: none !important;
		color: #000;
		border-top: 1px solid #000;
	}
}
