/**
 * Twentytrue Compact Luxury eCommerce Footer Stylesheet
 * 2-Column Desktop/Tablet Layout | Mobile-First Compact Architecture
 * Author: Mahendra_K
 */

/* ==========================================================================
   1. Main Site Footer
   ========================================================================== */
.tt-site-footer {
	background: #FAF6F7;
	border-top: 1px solid var(--tt-color-border, #ECDDE0);
	padding: 24px 0 calc(var(--tt-bottom-nav-height, 58px) + 14px);
	box-sizing: border-box;
	width: 100%;
}

@media (min-width: 768px) {
	.tt-site-footer {
		padding: 32px 0 28px;
	}
}

.tt-footer-container {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: clamp(16px, 3.5vw, 48px) !important;
	padding-right: clamp(16px, 3.5vw, 48px) !important;
	box-sizing: border-box !important;
}

/* 2-Column Grid for Desktop & Tablet */
.tt-footer-grid {
	display: block;
	width: 100%;
}

@media (min-width: 768px) {
	.tt-footer-grid {
		display: grid;
		grid-template-columns: 1fr 1.6fr;
		gap: clamp(24px, 4vw, 56px);
		align-items: flex-start;
	}
}

@media (min-width: 1200px) {
	.tt-footer-grid {
		grid-template-columns: 1fr 1.8fr;
		gap: 64px;
	}
}

/* ==========================================================================
   2. Column 1: Brand (Logo + Inline Socials + Subtext)
   ========================================================================== */
.tt-footer-col--brand {
	display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
	.tt-footer-col--brand {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
}

.tt-footer-brand-header {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.tt-footer-logo {
	display: flex;
	align-items: center;
}

.tt-footer-logo img,
.tt-footer-logo-img {
	max-height: 30px;
	width: auto;
	object-fit: contain;
}

.tt-footer-bio {
	font-size: 12px;
	line-height: 1.55;
	color: var(--tt-color-text-muted, #725D64);
	margin: 0;
	max-width: 380px;
}

/* Social Icon Buttons */
.tt-footer-socials {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tt-social-icon-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(29, 17, 21, 0.12);
	background: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tt-color-ink, #1D1115);
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tt-social-icon-btn svg {
	width: 14px;
	height: 14px;
	display: block;
	stroke: currentColor;
	pointer-events: none;
}

.tt-social-icon-btn:hover,
.tt-social-icon-btn:active {
	background: var(--tt-color-ink, #1D1115);
	color: #FFFFFF;
	border-color: var(--tt-color-ink, #1D1115);
	transform: translateY(-1px);
}

/* ==========================================================================
   3. Column 2: Navigation Rows & Dividers
   ========================================================================== */
.tt-footer-col--links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (min-width: 768px) {
	.tt-footer-col--links {
		gap: 10px;
	}
}

.tt-footer-links-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.tt-footer-links-row {
		justify-content: flex-start;
		gap: 3px 6px;
	}
}

@media (min-width: 768px) {
	.tt-footer-links-row {
		gap: 6px 10px;
	}
}

.tt-footer-link {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--tt-color-ink, #1D1115);
	text-decoration: none;
	transition: color 0.18s ease;
	line-height: 1.4;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.tt-footer-link {
		font-size: 12.5px;
		color: var(--tt-color-ink-light, #44373B);
	}
}

.tt-footer-link:hover {
	color: var(--tt-color-rose, #C97A8E);
}

.tt-footer-divider {
	color: rgba(29, 17, 21, 0.22);
	font-size: 10px;
	user-select: none;
	line-height: 1;
}

@media (min-width: 768px) {
	.tt-footer-divider {
		font-size: 11px;
	}
}

/* Desktop Copyright */
.tt-footer-copyright--desktop {
	display: none;
	margin-top: 10px;
	padding-top: 8px;
}

@media (min-width: 768px) {
	.tt-footer-copyright--desktop {
		display: block;
	}
}

.tt-footer-copyright p {
	margin: 0;
	font-size: 11px;
	color: var(--tt-color-text-muted, #725D64);
	letter-spacing: 0.02em;
}

/* ==========================================================================
   4. Mobile Bottom Bar: Left Copyright, Right Social Icons
   ========================================================================== */
.tt-footer-mobile-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	margin-top: 12px;
	border-top: 1px solid var(--tt-color-border-subtle, #ECDDE0);
}

@media (min-width: 768px) {
	.tt-footer-mobile-bottom {
		display: none;
	}
}

.tt-footer-copyright--mobile p {
	font-size: 10px;
	color: var(--tt-color-text-muted, #725D64);
	margin: 0;
}

.tt-footer-socials--mobile .tt-social-icon-btn {
	width: 28px;
	height: 28px;
}

.tt-footer-socials--mobile .tt-social-icon-btn svg {
	width: 13px;
	height: 13px;
}

/* ==========================================================================
   5. Mobile App-Style Bottom Navigation Dock (Preserved)
   ========================================================================== */
.tt-mobile-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	height: var(--tt-bottom-nav-height, 58px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: rgba(250, 246, 247, 0.98);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-top: 1px solid var(--tt-color-border, #ECDDE0);
	display: flex;
	align-items: center;
	justify-content: space-around;
	z-index: var(--tt-z-sticky, 300);
	box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
	overflow: hidden;
}

/* Force hide mobile bottom nav on checkout to prevent collision with place order dock */
.woocommerce-checkout .tt-mobile-bottom-nav,
body.woocommerce-checkout .tt-mobile-bottom-nav,
.tt-checkout-page-wrapper ~ .tt-mobile-bottom-nav {
	display: none !important;
}

@media (min-width: 992px) {
	.tt-mobile-bottom-nav {
		display: none;
	}
}

.tt-bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	max-width: 20%;
	min-width: 0;
	color: var(--tt-color-ink-light, #44373B);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	background: none;
	border: none;
	padding: 4px 2px;
	position: relative;
	transition: color var(--tt-transition-fast, 0.2s ease);
	cursor: pointer;
	box-sizing: border-box;
	text-align: center;
}

.tt-bottom-nav-item span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	display: block;
}

.tt-bottom-nav-item svg {
	width: 19px;
	height: 19px;
	margin-bottom: 2px;
	flex-shrink: 0;
	transition: transform var(--tt-transition-fast, 0.2s ease);
}

.tt-bottom-nav-item.is-active,
.tt-bottom-nav-item:hover {
	color: var(--tt-color-rose, #C97A8E);
}

.tt-bottom-nav-item.is-active svg {
	transform: scale(1.1);
}
