/**
 * Footer Styles - Premium Design for Tabcom Group
 * 
 * Modern footer matching the design specification
 * 
 * @package TabcomGroup
 */

/* ============================================
   FOOTER CONTAINER
   ============================================ */

.site-footer {
	position: relative;
	background: linear-gradient(180deg, #0FDEC9 0%, #001BE6 100%);
	color: #fff;
	overflow: hidden;
	margin-top: 0;
	display: block !important;
	visibility: visible !important;
	font-family: 'SF Pro Display', 'Be Vietnam Pro', -apple-system, sans-serif;
}

/* Background overlay with radial gradient */
.site-footer .footer-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

/* Decorative elements */
.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #6b75ff, #4fc3f7, #6b75ff);
	z-index: 2;
}

.site-footer::after {
	content: '';
	position: absolute;
	top: 100px;
	right: -100px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(107, 117, 255, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/* Container spacing */
.site-footer .container {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10 20px;
}

/* ============================================
   FOOTER MAIN - GRID 4 COLUMNS
   ============================================ */

.footer-main {
	padding: 100px 20px 60px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
	gap: 64px;
}

.footer-col {
	position: relative;
}

/* Cột thông tin công ty */
.footer-col--company {
	display: flex;
	flex-direction: column;
}

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

.footer-logo-link {
	display: inline-block;
	text-decoration: none;
}

.footer-logo {
	max-height: 80px;
	width: auto;
	display: block;
	margin-bottom: 8px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-logo-text {
	display: inline-block;
	text-decoration: none;
}

.footer-logo-name {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.5px;
}

.footer-logo-accent {
	color: #fff;
	-webkit-text-fill-color: #fff;
}

.footer-company-name {
	font-size: 20px;
	color: #fff;
	margin: 0 0 24px 0;
	line-height: 1.4;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	padding-left: 0;
}

.footer-contact-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Inline contact layout */
.footer-contact-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-size: 15px;
	color: #fff;
	line-height: 1.5;
}

.footer-contact-item-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.footer-contact-item-inline .footer-icon {
	width: 14px;
	height: 14px;
	color: #fff;
	flex-shrink: 0;
}

.footer-contact-item-inline a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact-item-inline a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Separator between items */
.footer-contact-item-inline:not(:last-child)::after {
	content: '|';
	margin-left: 12px;
	color: #fff;
}

.footer-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	color: #fff;
	line-height: 1.5;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.footer-contact-item:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateX(4px);
}

.footer-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #fff;
}

.footer-contact-item a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact-item a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Cột tiêu đề */
.footer-col h4 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 28px;
	color: #fff;
	position: relative;
	padding-bottom: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-col h4::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
}

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

.footer-col ul li {
	margin-bottom: 16px;
	font-size: 17px;
	line-height: 1.6;
}

.footer-col ul li::before {
	content: '›';
	margin-right: 10px;
	color: #fff;
	font-weight: bold;
	font-size: 18px;
}

.footer-col a {
	color: #fff;
	text-decoration: none;
	position: relative;
	display: inline;
	transition: all 0.3s ease;
}

.footer-col a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Cột địa chỉ */
.footer-col--address {
	display: flex;
	flex-direction: column;
}

.footer-address-text {
	font-size: 17px;
	line-height: 1.7;
	color: #fff;
	margin: 0 0 24px 0;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	border-left: 3px solid #fff;
}

.footer-map {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
	width: 100%;
	height: 220px;
	border: 0;
	display: block;
}

/* ============================================
   FOOTER SOCIAL MEDIA
   ============================================ */

.footer-social {
	padding: 30px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(0, 0, 0, 0.15);
}

.footer-social-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-icon:hover {
	background: linear-gradient(135deg, #6b75ff, #4fc3f7);
	transform: translateY(-4px);
	color: #fff;
	box-shadow: 0 8px 20px rgba(107, 117, 255, 0.4);
}

.footer-social-icon svg {
	width: 24px;
	height: 24px;
}

/* ============================================
   FOOTER BOTTOM - COPYRIGHT
   ============================================ */

.footer-bottom {
	text-align: center;
	padding: 24px;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #c8d0ff;
	position: relative;
	z-index: 1;
	font-weight: 500;
}

.footer-bottom::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}
	
	.footer-col--address {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.footer-main {
		padding: 50px 20px 40px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	
	.footer-col--address {
		grid-column: 1;
	}

	.footer-col h4 {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.footer-col ul li {
		font-size: 16px;
		margin-bottom: 14px;
	}

	.footer-address-text {
		font-size: 16px;
	}
	
	.footer-company-name {
		font-size: 18px;
	}
	
	.footer-contact-item {
		font-size: 16px;
		padding: 8px 12px;
	}
	
	.footer-contact-inline {
		font-size: 14px;
		gap: 6px 16px;
	}
	
	.footer-contact-item-inline:not(:last-child)::after {
		margin-left: 8px;
	}

	.footer-map iframe {
		height: 180px;
	}

	.footer-social {
		padding: 24px 0;
	}

	.footer-social-wrapper {
		gap: 16px;
	}

	.footer-social-icon {
		width: 44px;
		height: 44px;
	}

	.footer-social-icon svg {
		width: 22px;
		height: 22px;
	}

	.footer-bottom {
		padding: 20px;
		font-size: 15px;
	}
	
	.site-footer::after {
		display: none;
	}
}

@media (max-width: 480px) {
	.footer-main {
		padding: 40px 15px 30px;
	}

	.footer-grid {
		gap: 28px;
	}

	.footer-logo-name {
		font-size: 28px;
	}

	.footer-company-name {
		font-size: 16px;
	}

	.footer-contact-item {
		font-size: 15px;
	}
	
	.footer-col h4 {
		font-size: 18px;
	}
	
	.footer-col ul li {
		font-size: 15px;
	}

	.footer-map iframe {
		height: 160px;
	}
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.footer-col a,
	.footer-social-icon,
	.footer-contact-item a {
		transition: none;
	}
}

/* Focus states for keyboard navigation */
.footer-col a:focus,
.footer-social-icon:focus,
.footer-contact-item a:focus {
	outline: 2px solid #6b75ff;
	outline-offset: 4px;
	border-radius: 4px;
}
