/**
 * Footer Styles
 * Theme: Parto v2.3.7
 * Description: Footer layout, widgets, copyright, and social links
 * 
 * @package Parto
 * @since 1.0.0
 * @updated 2026-01-01
 */

/* Prevent blank space below footer */
html {
	height: 100%;
	overflow-x: hidden;
}

body {
	min-height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden;
}

#page {
	overflow-x: hidden;
	width: 100%;
	min-height: 100vh;
}

/* Site Footer */
.site-footer {
	background: #050505;
	color: rgba(255, 255, 255, 0.82);
	border-top: 3px solid #d32f2f;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	width: 100%;
	margin: 0 !important;
	padding: 0;
}

/* Social Bar */
.footer-social-bar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0.85rem 0;
}

.footer-social-bar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	justify-content: center;
}

.social-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #e5e7eb;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	transition: all 0.2s ease;
}

.social-chip:hover,
.social-chip:focus-visible {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
}

.social-chip--facebook:hover,
.social-chip--facebook:focus-visible {
	background: #1877f2;
	border-color: #1877f2;
	color: #ffffff;
}

.social-chip--twitter:hover,
.social-chip--twitter:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: #0a0c10;
}

.social-chip--instagram:hover,
.social-chip--instagram:focus-visible {
	background: #e1306c;
	border-color: #e1306c;
	color: #ffffff;
}

.social-chip--youtube:hover,
.social-chip--youtube:focus-visible {
	background: #ff0000;
	border-color: #ff0000;
	color: #ffffff;
}

.social-chip--tiktok:hover,
.social-chip--tiktok:focus-visible {
	background: #00f2ea;
	border-color: #00f2ea;
	color: #0a0c10;
}

.social-chip--linkedin:hover,
.social-chip--linkedin:focus-visible {
	background: #0a66c2;
	border-color: #0a66c2;
	color: #ffffff;
}

.social-chip__icon svg {
	width: 18px;
	height: 18px;
}

/* Footer Main */
.footer-main {
	padding: 2.5rem 0 2.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main__inner {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3.5rem;
}

/* 3 Column Footer Layout (40% - 30% - 30%) */
.footer-main__inner.footer-3cols {
	display: grid;
	grid-template-columns: 4fr 3fr 3fr;
	gap: 3rem;
	align-items: start;
}

/* Footer Badges Column */
.footer-badges-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.footer-badges-col .footer-logo {
	margin-bottom: 8px;
}

.footer-badges-col .footer-logo img,
.footer-badges-col .footer-logo .custom-logo {
	height: 48px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.footer-badges {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.footer-badge-link {
	display: inline-flex;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-badge-link:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

.footer-badge {
	height: 64px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	border-radius: 6px;
}

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

.footer-menu-col nav {
	display: block;
}

.footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu-list > li,
.footer-menu-list .menu-item {
	margin: 0 0 0.65rem 0;
	padding: 0;
}

.footer-menu-list > li:last-child,
.footer-menu-list .menu-item:last-child {
	margin-bottom: 0;
}

.footer-menu-list > li > a,
.footer-menu-list .menu-item > a,
.footer-menu-list .menu-item > span {
	display: inline-block;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.6;
	transition: color 0.2s ease, transform 0.2s ease;
}

.footer-menu-list > li > a:hover,
.footer-menu-list .menu-item > a:hover {
	color: #ffffff;
	transform: translateX(3px);
}

.footer-contact {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	line-height: 1.7;
}

.footer-contact .footer-logo img,
.footer-contact .footer-logo .custom-logo {
	height: 36px;
	width: auto;
	display: block;
	margin-bottom: 0.75rem;
}

.company-name {
	font-weight: 700;
	margin: 0 0 0.5rem 0;
}

.company-address {
	margin: 0 0 0.75rem 0;
	color: rgba(255, 255, 255, 0.7);
	max-width: 420px;
}

.company-email,
.company-phone {
	margin: 0 0 0.35rem 0;
}

.company-email a,
.company-phone a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color 0.2s ease;
}

.company-email a:hover,
.company-phone a:hover {
	color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
	background: #0b0b0b;
	padding: 1.5rem 0;
	margin-bottom: 0;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.tagline-bottom {
	margin: 0 0 0.35rem 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.95rem;
}

.copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.88rem;
}

.footer-backtop .back-to-top {
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.footer-backtop .back-to-top:hover {
	color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
	.footer-main__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	
	.footer-main__inner.footer-3cols {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	
	.footer-badges-col {
		grid-column: span 2;
		align-items: center;
		text-align: center;
	}
	
	.footer-badges {
		justify-content: center;
	}

	.footer-menus {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.footer-social-bar__inner {
		gap: 0.75rem;
	}

	.footer-main {
		padding: 2rem 0 1.5rem;
	}
	
	.footer-main__inner.footer-3cols {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.footer-badges-col {
		grid-column: span 1;
		justify-content: flex-start;
	}
	
	.footer-badges {
		gap: 12px;
	}
	
	.footer-badge {
		height: 60px;
	}

	.footer-menus {
		grid-template-columns: 1fr;
		gap: 1.1rem;
	}

	.footer-bottom {
		padding: 1.25rem 0;
	}
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
	.footer-social-bar__inner {
		gap: 0.5rem;
	}
	
	.social-chip {
		padding: 0.35rem 0.6rem;
		font-size: 0.85rem;
	}
	
	.social-chip__icon svg {
		width: 16px;
		height: 16px;
	}
	
	.footer-main {
		padding: 1.5rem 0 1.25rem;
	}
	
	.footer-main__inner.footer-3cols {
		gap: 1.25rem;
	}
	
	.footer-badge {
		height: 52px;
		max-width: 120px;
	}
	
	.footer-menu-list > li > a,
	.footer-menu-list .menu-item > a,
	.footer-menu-list .menu-item > span {
		font-size: 0.875rem;
	}
	
	.footer-bottom {
		padding: 1rem 0;
	}
	
	.footer-bottom__inner {
		gap: 1rem;
	}
	
	.tagline-bottom {
		font-size: 0.875rem;
	}
	
	.copyright {
		font-size: 0.8125rem;
	}
}

/* Extra Small Mobile (359px and below) */
@media (max-width: 359px) {
	.footer-social-bar {
		padding: 0.65rem 0;
	}
	
	.footer-social-bar__inner {
		gap: 0.4rem;
	}
	
	.social-chip {
		padding: 0.3rem 0.5rem;
		font-size: 0.75rem;
	}
	
	.social-chip__icon svg {
		width: 14px;
		height: 14px;
	}
	
	.social-chip__label {
		display: none;
	}
	
	.footer-main {
		padding: 1.25rem 0 1rem;
	}
	
	.footer-main__inner.footer-3cols {
		gap: 1rem;
	}
	
	.footer-badges {
		gap: 8px;
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	
	.footer-badge {
		height: 44px;
		max-width: 100px;
	}
	
	.footer-menu-list > li > a,
	.footer-menu-list .menu-item > a,
	.footer-menu-list .menu-item > span {
		font-size: 0.8125rem;
	}
	
	.footer-menu-list > li,
	.footer-menu-list .menu-item {
		margin-bottom: 0.5rem;
	}
	
	.footer-bottom {
		padding: 0.875rem 0;
	}
	
	.tagline-bottom {
		font-size: 0.8125rem;
	}
	
	.copyright {
		font-size: 0.75rem;
	}
	
	.footer-backtop .back-to-top {
		font-size: 0.8rem;
	}
}

/* Ensure no blank space after footer */
.site-footer {
	margin-bottom: 0 !important;
}

.site-footer:last-child {
	margin-bottom: 0 !important;
}

.footer-bottom {
	margin-bottom: 0 !important;
	padding-bottom: 1.5rem;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#page > main,
#page > .site-main {
	flex: 1;
}

#page > .site-footer {
	margin-top: auto;
	flex-shrink: 0;
}

/* Override any WordPress defaults */
#colophon {
	margin: 0 !important;
	padding-bottom: 0 !important;
}
