/**
 * Layout Structures - Entry Point
 *
 * This file imports modular layout components and contains legacy styles
 * for backwards compatibility.
 *
 * Modular Components:
 * - hero.css: Hero section (.gbp-hero)
 * - footer.css: Footer section (.gbp-footer)
 * - utilities.css: Social icons, scroll-to-top, helper classes
 *
 * NOTE: Grid systems are in css/global-styles/grids.css
 *
 * @package ADV
 * @version 4.0.0
 * @since 2.0.0 Refactored to BEM naming convention
 * @since 3.0.0 Grid systems extracted to css/global-styles/grids.css
 * @since 4.0.0 Split into modular files (hero.css, footer.css, utilities.css)
 */

/* ========================================
   IMPORTS - Modular Components
   ======================================== */
@import url('hero.css');
@import url('footer.css');
@import url('utilities.css');

/* ========================================
   BACKWARDS COMPATIBILITY
   Legacy class names for existing HTML templates
   TODO: Remove in v2.0.0 - Use BEM classes (.gbp-footer__*)
   ======================================== */

/* Footer Content - Legacy */
.gbp-footer-content {
	display: grid;
	justify-content: space-between;
	gap: 2rem 3rem;
	width: fit-content;
	margin: 0 auto;
	grid-template-columns: minmax(auto, 400px) auto auto;
	max-width: var(--gb-container-width);
}

/* Footer Company - Legacy */
.gbp-footer-company {
	max-width: 400px;
}

/* Footer Logo - Legacy */
.gbp-footer-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	margin-bottom: 0.5rem;
	font-size: 1.75rem;
	font-weight: var(--font-bold);
	text-decoration: none;
}

/* Footer Description - Legacy */
.gbp-footer-description {
	color: var(--footer-text);
	opacity: 0.9;
	max-width: 400px;
	font-size: 0.95rem;
	line-height: 1.7;
}

/* Footer Links - Legacy */
.gbp-footer-links {
	text-align: center;
}

/* Footer Contacts - Legacy */
.gbp-footer-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

/* Footer Links Headers - Legacy */
.gbp-footer-links h3,
.gbp-footer-contacts h3 {
	color: var(--text-primary);
	font-size: 1.1rem;
	font-weight: var(--font-bold);
}

[data-theme='dark'] .gbp-footer-links h3,
[data-theme='dark'] .gbp-footer-contacts h3 {
	color: var(--color-white);
}

/* Footer Nav - Legacy */
.gbp-footer-nav {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Footer Link - Legacy */
.gbp-footer-link {
	position: relative;
	display: inline-block;
	color: var(--footer-text);
	transition: color var(--hover-transition);
	opacity: 0.9;
	font-size: 0.95rem;
	text-decoration: none;
}

.gbp-footer-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width var(--hover-transition);
}

.gbp-footer-link:hover::after,
.gbp-footer-link:focus::after {
	width: 100%;
}

.gbp-footer-link:hover,
.gbp-footer-link:focus {
	color: var(--accent);
	opacity: 1;
}

/* Footer Social - Legacy */
.gbp-footer-social {
	display: flex;
	align-items: center;
	column-gap: 1rem;
	margin-top: 0.5rem;
}

/* Footer Contact Item - Legacy */
.gbp-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--footer-text);
	margin-bottom: 1rem;
	font-size: 0.95rem;
	line-height: var(--leading-normal);
}

.gbp-footer-contact-item:last-child {
	margin-bottom: 0;
}

/* Footer Contact Icon - Legacy */
.gbp-footer-contact-icon {
	color: var(--accent-2);
	flex-shrink: 0;
	font-size: 1.25rem;
}

.gbp-footer-contact-icon img,
.gbp-footer-contacts img {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* Footer Contact Link - Legacy */
.gbp-footer-contact-link {
	color: var(--footer-text);
	transition: color var(--hover-transition);
	opacity: 0.9;
	text-decoration: none;
}

.gbp-footer-contact-link:hover,
.gbp-footer-contact-link:focus {
	color: var(--accent);
	opacity: 1;
}

/* Footer Bottom - Legacy */
.gbp-footer-bottom {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin: 0 auto;
	text-align: center;
	max-width: var(--gb-container-width);
	padding-top: 2rem;
}

/* Footer Copyright - Legacy */
.gbp-footer-copyright {
	color: var(--text-secondary);
	order: 3;
	font-size: 0.9rem;
}

/* Footer Legal - Legacy */
.gbp-footer-bottom .gbp-footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	order: 2;
}

/* Footer Legal Link - Legacy */
.gbp-footer-legal-link {
	color: var(--text-secondary);
	transition: color var(--hover-transition);
	font-size: 0.9rem;
	text-decoration: none;
}

.gbp-footer-legal-link:hover,
.gbp-footer-legal-link:focus {
	color: var(--accent);
}

/* Footer Badges - Legacy */
.gbp-footer-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	order: 1;
}

/* Footer Badge - Legacy */
.gbp-footer-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-md);
	color: var(--text-secondary);
	font-size: 0.85rem;
}

/* Footer Dark Theme - Legacy selectors */
[data-theme='dark'] .gbp-footer-content {
	border-bottom-color: var(--slate-700);
}

/* Footer Responsive - Legacy Tablet */
@media (width <= 1024px) {
	.gbp-footer-content {
		gap: 3rem;
		grid-template-columns: 1fr 1fr;
	}

	.gbp-footer-company {
		grid-column: 1 / -1;
	}
}

/* Footer Responsive - Legacy Mobile */
@media (width <= 767px) {
	.gbp-footer-content {
		gap: 2.5rem;
		text-align: center;
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.gbp-footer-company {
		text-align: center;
		grid-column: 1;
		justify-self: center;
	}

	.gbp-footer-links,
	.gbp-footer-contacts {
		text-align: center;
		justify-self: center;
	}

	.gbp-footer-nav {
		align-items: center;
	}

	.gbp-footer-bottom {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	.gbp-footer-legal {
		flex-direction: column;
		gap: 0.75rem;
	}
}

/* Scroll to Top - Legacy visible class */
.scroll-to-top.visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}
