/**
 * Vesta Theme — Footer Styles
 * Premium multi-column footer with brand area, menu columns, social icons, and bottom bar.
 *
 * File: assets/css/footer.css
 */

/* ============================================================
   PRE-FOOTER CTA BANNER
   ============================================================ */
.pre-footer-cta {
	background: linear-gradient(135deg, var(--cta-bg-start, #1e40af) 0%, var(--cta-bg-end, #1d4ed8) 100%);
	padding: 60px 0;
	position: relative;
	overflow: hidden;
}

.pre-footer-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.cta-inner-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 1;
}

.cta-text-area h2 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.cta-text-area p {
	font-size: 1rem;
	color: rgba(255,255,255,0.82);
	margin: 0;
	max-width: 560px;
	line-height: 1.6;
}

.cta-button-area {
	flex-shrink: 0;
}

.cta-massive-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--cta-btn-color, #ffffff);
	color: var(--cta-bg-start, #1e40af);
	padding: 16px 32px;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.01em;
	box-shadow: 0 8px 30px rgba(0,0,0,0.2);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	white-space: nowrap;
}

.cta-massive-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 40px rgba(0,0,0,0.28);
	background: #fff;
}

.cta-massive-button i {
	transition: transform 0.25s ease;
}

.cta-massive-button:hover i {
	transform: translateX(4px);
}

@media (max-width: 768px) {
	.cta-inner-content {
		flex-direction: column;
		text-align: center;
		gap: 24px;
	}
	.cta-text-area p {
		max-width: 100%;
	}
}

/* ============================================================
   MAIN FOOTER SHELL
   ============================================================ */
.site-footer {
	background-color: var(--footer-bg, #111827);
	color: var(--footer-widget-text, #9ca3af);
	font-size: 0.9rem;
	line-height: 1.7;
}

/* ============================================================
   FOOTER UPPER (Brand + Columns)
   ============================================================ */
.footer-upper {
	padding: 72px 0 48px;
	border-bottom: 1px solid var(--footer-divider, rgba(255,255,255,0.08));
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr 1fr;
	gap: 48px;
	align-items: start;
}

/* ============================================================
   FOOTER BRAND COLUMN
   ============================================================ */
.footer-brand-col {}

.footer-brand-logo img {
	max-width: 160px;
	height: auto;
	margin-bottom: 18px;
	display: block;
}

.footer-brand-name {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--footer-widget-title, #fff);
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.footer-brand-tagline {
	font-size: 0.875rem;
	color: var(--footer-widget-text, #9ca3af);
	line-height: 1.7;
	margin: 0 0 24px;
	max-width: 300px;
}

/* Footer Social Icons */
.footer-social-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--footer-social-bg, rgba(255,255,255,0.07));
	color: var(--footer-widget-text, #9ca3af);
	font-size: 0.85rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	border: 1px solid var(--footer-divider, rgba(255,255,255,0.08));
}

.footer-social-link:hover {
	background: var(--primary-color, #1e40af);
	color: #fff;
	border-color: var(--primary-color, #1e40af);
	transform: translateY(-3px);
}

/* ============================================================
   FOOTER MENU COLUMNS
   ============================================================ */
.footer-menu-col {}

.footer-col-title {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--footer-widget-title, #fff);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-color, #1e40af);
	display: inline-block;
}

.footer-col-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-col-menu li a {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--footer-widget-link, #9ca3af);
	text-decoration: none;
	font-size: 0.9rem;
	padding: 5px 0;
	transition: color 0.2s ease, padding-left 0.2s ease;
	position: relative;
}

.footer-col-menu li a::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--primary-color, #1e40af);
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.footer-col-menu li a:hover {
	color: var(--footer-widget-title, #fff);
	padding-left: 8px;
}

.footer-col-menu li a:hover::before {
	opacity: 1;
}

/* Widget fallback (if no menu, show WordPress widgets) */
.footer-widget-col .widget-title {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--footer-widget-title, #fff);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--primary-color, #1e40af);
	display: inline-block;
}

.footer-widget-col .widget {
	color: var(--footer-widget-text, #9ca3af);
}

.footer-widget-col .widget a {
	color: var(--footer-widget-link, #9ca3af);
	transition: color 0.2s ease;
}

.footer-widget-col .widget a:hover {
	color: var(--footer-widget-title, #fff);
}

.footer-widget-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-widget-col ul li a {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 5px 0;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-widget-col ul li a:hover {
	padding-left: 8px;
}

/* ============================================================
   FOOTER BOTTOM BAR
   ============================================================ */
.footer-bottom {
	background-color: var(--footer-bottom-bg, #0d1117);
	border-top: 1px solid var(--footer-divider, rgba(255,255,255,0.06));
	padding: 20px 0;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-copyright,
.footer-credits {
	font-size: 0.84rem;
	color: var(--footer-bottom-text, #6b7280);
}

.footer-copyright p,
.footer-credits p {
	margin: 0;
}

.footer-copyright a,
.footer-credits a {
	color: var(--footer-bottom-link, #9ca3af);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-copyright a:hover,
.footer-credits a:hover {
	color: var(--footer-bottom-link-hover, #fff);
}

/* Footer Bottom Nav */
.footer-bottom-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.footer-bottom-nav .footer-menu-items {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom-nav .footer-menu-items li a {
	display: block;
	padding: 4px 10px;
	font-size: 0.84rem;
	color: var(--footer-bottom-text, #6b7280);
	text-decoration: none;
	border-radius: 4px;
	transition: color 0.2s ease, background 0.2s ease;
}

.footer-bottom-nav .footer-menu-items li a:hover {
	color: var(--footer-bottom-link-hover, #fff);
	background: rgba(255,255,255,0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	.footer-brand-col {
		grid-column: span 2;
	}
	.footer-brand-tagline {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.footer-upper {
		padding: 48px 0 32px;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.footer-brand-col {
		grid-column: span 1;
	}
	.footer-bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
	.footer-bottom-nav .footer-menu-items {
		flex-wrap: wrap;
		justify-content: center;
	}
}
