/* =========================================================
   Stock Pathshala — site footer (black + gold)
   Matches the Next.js site footer. All classes prefixed .spf
   ========================================================= */

.spf {
	--spf-bg: #030712;
	--spf-accent: #f5b729;
	--spf-text: #cbd5e1;
	--spf-muted: #94a3b8;
	--spf-divider: rgba(255, 255, 255, 0.10);
	background: var(--spf-bg);
	color: var(--spf-text);
	font-size: 15px;
	line-height: 1.6;
	width: 100%;
}
.spf *, .spf *::before, .spf *::after { box-sizing: border-box; }
.spf a { color: inherit; text-decoration: none; }
.spf ul { list-style: none; margin: 0; padding: 0; }
.spf p { margin: 0; }

.spf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Disclaimer marquee */
.spf-disclaimer { background: #1a2332; overflow: hidden; padding: 10px 0; }
.spf-disclaimer__track {
	display: flex;
	width: max-content;
	white-space: nowrap;
	animation: spf-marquee 30s linear infinite;
}
.spf-disclaimer__track:hover { animation-play-state: paused; }
.spf-disclaimer__track span { color: #fff; font-size: 16px; font-weight: 500; padding: 0 32px; }
@keyframes spf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .spf-disclaimer__track { animation: none; } }

/* App banner */
.spf-app { position: relative; }
.spf-app--has-image { margin-top: 90px; } /* room for the phones to stick up above the footer */
.spf-app__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 28px;
	padding-bottom: 28px;
}
.spf-app__image { width: 300px; height: auto; margin-top: -120px; margin-bottom: 0; flex-shrink: 0; position: relative; z-index: 1; }
.spf-app__title { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; flex: 1; }
.spf-app__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.spf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	background: var(--spf-accent);
	color: var(--spf-bg) !important;
	transition: filter .2s ease;
}
.spf-btn:hover { filter: brightness(1.08); }
.spf-btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}
.spf-btn--ghost:hover { border-color: var(--spf-accent); color: var(--spf-accent) !important; }

/* Main grid */
.spf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.spf-col { padding-left: 28px; border-left: 1px solid var(--spf-divider); }

.spf-logo img { height: 40px; width: auto; display: block; }
.spf-tagline { margin-top: 18px !important; line-height: 1.7; }

.spf-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.spf-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	transition: background .2s ease, color .2s ease;
}
.spf-social a:hover { background: var(--spf-accent); color: var(--spf-bg); }

.spf-heading {
	color: var(--spf-accent) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.4 !important;
	margin: 0 0 18px !important;
}

.spf-links { display: flex; flex-direction: column; gap: 12px; }
.spf-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--spf-text); transition: color .2s ease; }
.spf-links a:hover { color: #fff; }
.spf-links a span { transition: transform .2s ease; }
.spf-links a:hover span { transform: translateX(2px); }
.spf-chev { color: var(--spf-accent); flex-shrink: 0; }

.spf-sep { border-top: 1px dashed var(--spf-divider); margin: 22px 0; }
.spf-contact li { padding: 10px 0; border-bottom: 1px dashed var(--spf-divider); }
.spf-contact a:hover { color: #fff; }

/* Bottom bar */
.spf-bar { border-top: 1px solid var(--spf-divider); }
.spf-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 13px;
	color: var(--spf-muted);
}
.spf-bar__inner ul { display: flex; gap: 12px; }
.spf-bar__inner li + li::before { content: "|"; margin-right: 12px; opacity: .6; }
.spf-bar__inner a:hover { color: #fff; }

/* Tablet */
@media (max-width: 1024px) {
	.spf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.spf-col { padding-left: 0; border-left: 0; }
	.spf-app__image { width: 220px; margin-top: -90px; }
}

/* Mobile */
@media (max-width: 640px) {
	.spf-grid { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
	.spf-app__inner { flex-direction: column; text-align: center; }
	.spf-app__image { width: 240px; margin-top: -100px; margin-bottom: 0; }
	.spf-app__title { font-size: 19px; }
	.spf-app__buttons { justify-content: center; }
	.spf-bar__inner { flex-direction: column; text-align: center; }
	.spf-disclaimer__track span { font-size: 14px; }
}
