/**
 * TTPixel Child Theme - Professional Footer Styles
 *
 * Scope: Dark theme, 1400px container width, responsive 4-column layout.
 * High-contrast white headings and crisp typography.
 * @package TTPixel_Child_Theme
 */

/* =============================================================================
   1. Footer Container & Background
   ============================================================================= */

.ttp-footer {
	background-color: #0f172a !important;
	color: #94a3b8 !important;
	padding-top: 48px;
	padding-bottom: 24px;
	border-top: 1px solid #1e293b;
	font-size: 14px;
	line-height: 1.6;
	width: 100%;
}

.ttp-footer a {
	color: #cbd5e1;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ttp-footer a:hover {
	color: #3b82f6;
}

/* =============================================================================
   2. Main Footer 4-Column Grid
   ============================================================================= */

.ttp-footer__top {
	padding-bottom: 40px;
	border-bottom: 1px solid #1e293b;
}

.ttp-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

/* Column Headings - Strict High Contrast Override */
.ttp-footer h1,
.ttp-footer h2,
.ttp-footer h3,
.ttp-footer h4,
.ttp-footer h5,
.ttp-footer h6,
.ttp-footer .ttp-footer-widget-title,
.ttp-footer .ttp-footer__title,
.ttp-footer .widget-title,
.ttp-footer .widgettitle {
	color: #ffffff !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	margin-bottom: 20px !important;
	letter-spacing: -0.01em;
}

/* Brand Column */
.ttp-footer__brand-col {
	display: flex;
	flex-direction: column;
}

.ttp-footer__logo img {
	max-height: 44px;
	width: auto;
	margin-bottom: 16px;
}

.ttp-footer__desc {
	color: #94a3b8 !important;
	margin-bottom: 24px;
	max-width: 320px;
	font-size: 14px;
}

/* Navigation & Widget Link Lists */
.ttp-footer-links,
.ttp-footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttp-footer-links li,
.ttp-footer-widget li {
	margin-bottom: 12px;
}

.ttp-footer-links a,
.ttp-footer-widget a {
	color: #94a3b8 !important;
	font-size: 14px;
	display: inline-block;
	transition: all 0.15s ease;
}

.ttp-footer-links a:hover,
.ttp-footer-widget a:hover {
	color: #ffffff !important;
	transform: translateX(4px);
}

/* Contact List */
.ttp-footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttp-footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	color: #cbd5e1 !important;
	font-size: 14px;
}

.ttp-footer-contact-list svg {
	color: #3b82f6 !important;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Social Media Links */
.ttp-social-links {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.ttp-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ttp-social-icon:hover {
	background-color: #2563eb !important;
	border-color: #2563eb !important;
	color: #ffffff !important;
	transform: translateY(-3px);
}

/* =============================================================================
   3. Bottom Bar (Copyright & Payments)
   ============================================================================= */

.ttp-footer__bottom {
	padding-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.ttp-footer__copyright {
	color: #94a3b8 !important;
	font-size: 13px;
}

.ttp-footer-payments {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ttp-payment-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.15s ease;
}

.ttp-payment-badge:hover {
	opacity: 0.9;
	transform: scale(1.05);
}

/* =============================================================================
   4. Responsive Breakpoints
   ============================================================================= */

@media (max-width: 991.98px) {
	.ttp-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}
}

@media (max-width: 575.98px) {
	.ttp-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ttp-footer__bottom {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}

	.ttp-footer__desc {
		max-width: 100%;
	}
}


/* =============================================================================
   5. Mobile Bottom Sticky Navigation Bar (Hide on Scroll Down / Show on Scroll Up)
   ============================================================================= */

.ttp-mobile-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #ffffff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	border-top: 1px solid #e2e8f0;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	transform: translateY(0);
	opacity: 1;
	will-change: transform, opacity;
}

.ttp-mobile-bottom-nav.is-hidden {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

.ttp-mobile-bottom-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 64px;
	max-width: 600px;
	margin: 0 auto;
	padding: 0 4px;
}

.ttp-mobile-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	flex: 1;
	height: 100%;
	color: #64748b !important;
	text-decoration: none !important;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	position: relative;
	transition: color 0.15s ease;
}

.ttp-mobile-bottom-nav__item svg {
	stroke: #64748b;
	transition: stroke 0.15s ease, transform 0.15s ease;
}

.ttp-mobile-bottom-nav__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
}

.ttp-mobile-bottom-nav__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ttp-mobile-bottom-nav__icon-wrap .ttp-badge-count {
	position: absolute;
	top: -6px;
	right: -8px;
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	line-height: 16px;
	background-color: #ef4444;
	color: #ffffff;
	border-radius: 50px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #ffffff;
}

.ttp-mobile-bottom-nav__item.is-active,
.ttp-mobile-bottom-nav__item:hover {
	color: #2563eb !important;
}

.ttp-mobile-bottom-nav__item.is-active svg,
.ttp-mobile-bottom-nav__item:hover svg {
	stroke: #2563eb;
	transform: translateY(-2px);
}

@media (max-width: 991.98px) {
	.ttp-mobile-bottom-nav {
		display: block;
	}

	body {
		padding-bottom: 64px;
	}
}

