/* ═══════════════════════════════════════════════════════════
   FORM DEKHO — Footer Styles
   Uses the same --fd- color/font variables defined in header.css.
   header.css is enqueued as a dependency before this file, so the
   variables are always available.
   ═══════════════════════════════════════════════════════════ */

.fd-footer {
	background: var(--fd-surface);
	border-top: 1px solid var(--fd-border);
	padding: 64px 0 0;
	position: relative;
	overflow: hidden;
	transition: background 0.4s ease, border-color 0.4s ease;
}

.fd-footer::before {
	content: '';
	position: absolute;
	top: -180px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 320px;
	background: var(--fd-grad-soft);
	filter: blur(70px);
	opacity: 0.55;
	pointer-events: none;
}

html[data-fd-theme="dark"] .fd-footer::before { opacity: 0.14; }

.fd-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 2rem;
	position: relative;
	z-index: 1;
}

.fd-footer-top {
	display: grid;
	grid-template-columns: 1.1fr 2fr;
	gap: 3rem 4rem;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--fd-border);
}

.fd-brand-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.fd-footer-logo {
	height: 34px;
	width: auto;
}

.fd-footer-logo img {
	height: 100%;
	width: auto;
	display: block;
	object-fit: contain;
}

.fd-brand-name {
	font-family: var(--fd-font-head);
	font-size: 20px;
	font-weight: 700;
	color: var(--fd-text);
	letter-spacing: -0.01em;
}

.fd-footer-tagline {
	font-size: 14px;
	line-height: 1.75;
	color: var(--fd-text-muted);
	max-width: 280px;
	margin-bottom: 24px;
}

.fd-trust-badges {
	display: flex;
	gap: 10px;
	margin-bottom: 26px;
	flex-wrap: wrap;
}

.fd-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--fd-blue);
	background: var(--fd-blue-soft);
	padding: 6px 12px;
	border-radius: 999px;
}

.fd-trust-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.fd-social-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.fd-social-btn {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--fd-border);
	background: var(--fd-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.fd-social-btn svg {
	width: 17px;
	height: 17px;
	fill: var(--fd-text-muted);
	transition: fill 0.22s ease;
}

.fd-social-btn:hover {
	transform: translateY(-3px);
	background: var(--fd-grad-brand);
	border-color: transparent;
	box-shadow: var(--fd-shadow-md);
}

.fd-social-btn:hover svg { fill: #fff; }

.fd-footer-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.fd-nav-col h4 {
	font-family: var(--fd-font-head);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--fd-text);
	margin: 0 0 18px;
	position: relative;
	display: inline-block;
}

.fd-nav-col h4::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 22px;
	height: 3px;
	border-radius: 3px;
	background: var(--fd-grad-brand);
}

.fd-nav-col ul {
	display: flex;
	flex-direction: column;
	gap: 13px;
	margin-top: 22px;
}

.fd-nav-col a {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--fd-text-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s ease, transform 0.2s ease;
	line-height: 1.4;
	width: fit-content;
}

.fd-nav-col a svg {
	width: 14px;
	height: 14px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
	stroke: var(--fd-blue);
}

.fd-nav-col a:hover { color: var(--fd-text); transform: translateX(2px); }
.fd-nav-col a:hover svg { opacity: 1; transform: translateX(0); }

.fd-footer-newsletter {
	margin-top: 44px;
	padding: 32px 36px;
	background: var(--fd-grad-soft);
	border: 1px solid var(--fd-border);
	border-radius: var(--fd-radius-lg);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

html[data-fd-theme="dark"] .fd-footer-newsletter { background: var(--fd-surface-2); }

.fd-newsletter-text h3 {
	font-family: var(--fd-font-head);
	font-size: 18px;
	font-weight: 700;
	color: var(--fd-text);
	margin: 0 0 5px;
	letter-spacing: -0.01em;
}

.fd-newsletter-text p { font-size: 13.5px; color: var(--fd-text-muted); margin: 0; }

.fd-newsletter-form { display: flex; gap: 10px; flex-shrink: 0; min-width: 0; }

.fd-newsletter-form input {
	font-family: var(--fd-font-body);
	font-size: 13.5px;
	padding: 0 16px;
	height: 44px;
	border-radius: var(--fd-radius-sm);
	border: 1px solid var(--fd-border);
	background: var(--fd-surface);
	color: var(--fd-text);
	outline: none;
	width: 240px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fd-newsletter-form input::placeholder { color: var(--fd-text-faint); }
.fd-newsletter-form input:focus { border-color: var(--fd-blue); box-shadow: 0 0 0 4px var(--fd-blue-soft); }

.fd-newsletter-form button {
	font-family: var(--fd-font-head);
	font-size: 13.5px;
	font-weight: 700;
	padding: 0 24px;
	height: 44px;
	border-radius: var(--fd-radius-sm);
	border: none;
	background: var(--fd-grad-brand);
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: var(--fd-shadow-sm);
}

.fd-newsletter-form button:hover { transform: translateY(-2px); box-shadow: var(--fd-shadow-md); }
.fd-newsletter-form button:active { transform: translateY(0); }

.fd-footer-bottom {
	margin-top: 40px;
	padding: 22px 0 28px;
	border-top: 1px solid var(--fd-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.fd-footer-bottom p { font-size: 12.5px; color: var(--fd-text-faint); margin: 0; }

.fd-bottom-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fd-bottom-links { display: flex; gap: 22px; }
.fd-bottom-links a { font-size: 12.5px; color: var(--fd-text-faint); transition: color 0.2s ease; }
.fd-bottom-links a:hover { color: var(--fd-blue); }

.fd-theme-toggle {
	display: flex;
	align-items: center;
	width: 56px;
	height: 30px;
	border-radius: 999px;
	background: var(--fd-surface-2);
	border: 1px solid var(--fd-border);
	padding: 3px;
	cursor: pointer;
	position: relative;
	transition: background 0.3s ease, border-color 0.3s ease;
	flex-shrink: 0;
}

.fd-theme-toggle .fd-knob {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fd-grad-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 2px 6px rgba(90,110,180,0.35);
}

html[data-fd-theme="dark"] .fd-theme-toggle .fd-knob { transform: translateX(26px); }

.fd-theme-toggle .fd-knob svg { width: 12px; height: 12px; stroke: #fff; fill: none; }

@media (max-width: 860px) {
	.fd-footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
	.fd-footer-nav { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
	.fd-footer-inner { padding: 0 1.25rem; }
	.fd-footer-nav { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
	.fd-footer-newsletter { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
	.fd-newsletter-form { width: 100%; }
	.fd-newsletter-form input { flex: 1; width: auto; }
	.fd-footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
	.fd-bottom-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
	.fd-newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}
	.fd-newsletter-form input,
	.fd-newsletter-form button {
		width: 100%;
	}
}

@media (max-width: 400px) {
	.fd-footer-nav { grid-template-columns: 1fr 1fr; }
}