/*
 * Footer styles.
 * Ported verbatim from Avada-Child-Theme/footer.php lines 221-791.
 */

		/* ========== FIXFACTOR FOOTER - DARK TEAL (Deep/Night) ========== */

		/* Footer Base with DARK TEAL Variables */
		.ffx-footer {
			--ffx-primary: #00aac4;
			--ffx-primary-light: rgba(0, 170, 196, 0.12);
			--ffx-primary-glow: rgba(0, 170, 196, 0.25);
			--ffx-primary-gradient: linear-gradient(135deg, #00aac4 0%, #00d4f0 100%);
			--ffx-accent: #fdd100;
			--ffx-accent-gradient: linear-gradient(135deg, #fdd100 0%, #ffe033 100%);
			--ffx-surface: #0a1f24;
			--ffx-surface-elevated: #132d33;
			--ffx-surface-card: #1a3a42;
			--ffx-border: rgba(0, 170, 196, 0.2);
			--ffx-border-hover: rgba(0, 170, 196, 0.4);
			--ffx-text-primary: #ffffff;
			--ffx-text-secondary: rgba(255, 255, 255, 0.8);
			--ffx-text-muted: rgba(255, 255, 255, 0.55);
			--ffx-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
			--ffx-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
			--ffx-shadow-glow: 0 0 20px rgba(0, 170, 196, 0.15);
			--ffx-radius: 10px;
			--ffx-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

			font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
			font-size: 14px;
			line-height: 1.6;
			color: var(--ffx-text-primary);
			background: var(--ffx-surface);
			position: relative;
			contain: layout style paint;
			margin: 0;
			padding: 0;
			border-top: 1px solid var(--ffx-border);
			box-sizing: border-box;
		}

		/* Reset for all footer children */
		.ffx-footer *,
		.ffx-footer *::before,
		.ffx-footer *::after {
			box-sizing: border-box;
			margin: 0;
			padding: 0;
		}

		/* Container */
		.ffx-footer .ffx-container {
			width: 100%;
			max-width: 1320px;
			margin: 0 auto;
			padding: 0 15px;
		}

		/* Icons */
		.ffx-footer .ffx-icon {
			display: inline-block;
			vertical-align: middle;
			flex-shrink: 0;
			pointer-events: none;
		}

		/* ========== MAIN FOOTER SECTION ========== */
		.ffx-footer .ffx-main {
			padding: 35px 0 25px;
			background: var(--ffx-surface);
		}

		.ffx-footer .ffx-grid {
			display: grid;
			grid-template-columns: 1.5fr 2fr;
			gap: 45px;
			margin-bottom: 15px;
			align-items: start;
			position: relative;
			top: 7px;
		}

		.ffx-footer .ffx-main .ffx-grid nav {
			position: relative;
			top: 10px;
		}

		/* Company Info Section */
		.ffx-footer .ffx-logo-container {
			margin-bottom: 14px;
		}

		.ffx-footer .ffx-logo-link {
			display: inline-block;
			line-height: 0;
			text-decoration: none;
		}

		.ffx-footer .ffx-logo {
			width: 55px;
			height: 55px;
			object-fit: contain;
			transition: transform var(--ffx-transition);
			border-radius: 8px;
		}

		.ffx-footer .ffx-logo-link:hover .ffx-logo {
			transform: scale(1.05);
		}

		.ffx-footer .ffx-tagline {
			font-size: 14px;
			color: var(--ffx-text-secondary);
			line-height: 1.6;
			margin-bottom: 12px;
			max-width: 320px;
		}

		.ffx-footer .ffx-contact-link {
			display: inline-flex;
			align-items: center;
			gap: 8px;
			color: var(--ffx-text-primary);
			text-decoration: none;
			font-size: 13px;
			font-weight: 500;
			transition: color var(--ffx-transition);
			min-height: 40px;
		}

		.ffx-footer .ffx-contact-link:hover {
			color: var(--ffx-primary);
		}

		.ffx-footer .ffx-contact-link .ffx-icon {
			color: var(--ffx-primary);
		}

		/* Navigation Section */
		.ffx-footer .ffx-nav {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 35px;
		}

		.ffx-footer .ffx-nav .ffx-nav-column h3 {
			font-size: 16px;
			font-weight: 700;
			color: var(--ffx-primary);
			margin-bottom: 10px;
			letter-spacing: 0.02em;
			padding-bottom: 6px;
			border-bottom: 1px solid var(--ffx-border);
			text-align: left;
			background: var(--ffx-primary-gradient);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			background-clip: text;
		}

		.ffx-footer .ffx-nav-column ul {
			list-style: none;
		}

		.ffx-footer .ffx-nav-column li {
			margin-bottom: 6px;
		}

		.ffx-footer .ffx-nav-column a {
			color: var(--ffx-text-secondary);
			text-decoration: none;
			font-size: 14px;
			font-weight: 400;
			transition: color var(--ffx-transition);
			display: block;
			padding: 2px 0;
			min-height: 24px;
			line-height: 20px;
		}

		.ffx-footer .ffx-nav-column a:hover {
			color: var(--ffx-primary);
		}

		/* ========== LOCATIONS SECTION ========== */
		.ffx-footer .ffx-locations {
			padding-top: 25px;
		}

		.ffx-footer .ffx-locations-grid {
			display: grid;
			grid-template-columns: 1fr auto 1fr;
			gap: 30px;
			align-items: center;
		}

		.ffx-footer .ffx-locations-title-container {
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: 220px;
		}

		.ffx-footer .ffx-locations-title {
			font-size: 16px;
			font-weight: 600;
			color: var(--ffx-primary);
			text-shadow: none;
			letter-spacing: 0.02em;
			writing-mode: vertical-rl;
			text-orientation: mixed;
			transform: rotate(180deg);
			white-space: nowrap;
		}

		.ffx-footer .ffx-location-card {
			background: var(--ffx-surface-elevated);
			border: 1px solid var(--ffx-border);
			border-radius: var(--ffx-radius);
			overflow: hidden;
			transition: var(--ffx-transition);
			box-shadow: var(--ffx-shadow-sm);
		}

		.ffx-footer .ffx-location-card:hover {
			border-color: var(--ffx-border-hover);
			box-shadow: var(--ffx-shadow-md), var(--ffx-shadow-glow);
			transform: translateY(-2px);
		}

		.ffx-footer .ffx-badge-closed {
			background: #f1f3f4;
			color: #5f6368;
			border: 1px solid #dadce0;
		}

		.ffx-footer .ffx-hours--closed span {
			color: rgba(255, 255, 255, 0.45);
			text-decoration: line-through;
		}

		.ffx-footer .ffx-location-header {
			padding: 10px 14px;
			background: var(--ffx-primary-light);
			border-bottom: 1px solid var(--ffx-border);
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.ffx-footer .ffx-location-header h4 {
			font-size: 15px;
			font-weight: 600;
			color: var(--ffx-text-primary);
		}

		.ffx-footer .ffx-badge {
			background: transparent;
			color: var(--ffx-primary);
			padding: 4px 12px;
			border-radius: 6px;
			font-size: 11px;
			font-weight: 600;
			letter-spacing: 0.02em;
			box-shadow: none;
			border: 1px solid var(--ffx-primary);
		}

		.ffx-footer .ffx-badge-alt {
			background: transparent;
			color: var(--ffx-accent);
			border-color: var(--ffx-accent);
			box-shadow: none;
		}


		.ffx-footer .ffx-location-content {
			padding: 14px;
		}

		.ffx-footer .ffx-info-row {
			display: flex;
			gap: 8px;
			margin-bottom: 8px;
			align-items: flex-start;
		}

		.ffx-footer .ffx-info-row .ffx-icon {
			color: var(--ffx-primary);
			margin-top: 2px;
			flex-shrink: 0;
		}

		.ffx-footer .ffx-info-row address {
			font-style: normal;
			color: var(--ffx-text-secondary);
			font-size: 14px;
		}

		.ffx-footer .ffx-info-row a {
			color: var(--ffx-text-primary);
			text-decoration: none;
			font-weight: 600;
			transition: color var(--ffx-transition);
			min-height: 22px;
		}

		.ffx-footer .ffx-info-row a:hover {
			color: var(--ffx-primary);
		}

		.ffx-footer .ffx-hours {
			display: flex;
			flex-direction: column;
			font-size: 14px;
			color: var(--ffx-text-secondary);
		}


		.ffx-footer .ffx-location-features {
			margin-top: 10px;
			padding-top: 10px;
			border-top: 1px solid var(--ffx-border);
			display: flex;
			gap: 12px;
			flex-wrap: wrap;
		}

		.ffx-footer .ffx-location-features span {
			display: flex;
			align-items: center;
			gap: 4px;
			font-size: 13px;
			color: var(--ffx-text-secondary);
		}

		.ffx-footer .ffx-location-features .ffx-icon {
			color: var(--ffx-accent);
			width: 14px;
			height: 14px;
		}

		/* ========== BOTTOM BAR ========== */
		.ffx-footer .ffx-bottom {
			background: var(--ffx-surface-elevated);
			padding: 12px 0;
			border-top: 1px solid var(--ffx-border);
		}

		.ffx-footer .ffx-bottom-content {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.ffx-footer .ffx-copyright {
			font-size: 13px;
			color: var(--ffx-text-muted);
		}

		.ffx-footer .ffx-legal {
			display: flex;
			align-items: center;
			gap: 6px;
		}

		.ffx-footer .ffx-legal a {
			color: var(--ffx-text-muted);
			text-decoration: none;
			font-size: 13px;
			padding: 2px 6px;
			transition: color var(--ffx-transition);
			min-height: 20px;
		}

		.ffx-footer .ffx-legal a:hover {
			color: var(--ffx-primary);
		}

		.ffx-footer .ffx-divider {
			color: var(--ffx-border);
			font-size: 12px;
		}

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

		/* Tablet (768px - 1023px) */
		@media (max-width: 1023px) {
			.ffx-footer .ffx-grid {
				grid-template-columns: 1fr;
				gap: 25px;
				margin-bottom: 15px;
			}

			.ffx-footer .ffx-nav {
				grid-template-columns: repeat(3, 1fr);
				gap: 25px;
			}

			.ffx-footer .ffx-locations-grid {
				grid-template-columns: 1fr;
				gap: 20px;
			}

			.ffx-footer .ffx-locations-title-container {
				min-height: auto;
				order: -1;
				justify-content: flex-start;
			}

			.ffx-footer .ffx-locations-title {
				writing-mode: horizontal-tb;
				text-orientation: initial;
				transform: none;
				text-align: left;
				font-size: 16px;
				margin-bottom: 10px;
				font-weight: 700;
				letter-spacing: 0.02em;
				padding-bottom: 6px;
				border-bottom: 1px solid var(--ffx-border);
				background: var(--ffx-primary-gradient);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
				background-clip: text;
			}

			.ffx-footer .ffx-main {
				padding: 30px 0 20px;
			}
		}

		/* Mobile (576px - 767px) */
		@media (max-width: 767px) {
			.ffx-footer .ffx-main {
				padding: 25px 0 15px;
			}

			.ffx-footer .ffx-nav {
				grid-template-columns: repeat(2, 1fr);
				gap: 20px;
			}

			.ffx-footer .ffx-bottom-content {
				flex-direction: column;
				gap: 8px;
				text-align: center;
			}

			.ffx-footer .ffx-logo {
				width: 45px;
				height: 45px;
			}

			.ffx-footer .ffx-nav .ffx-nav-column h3 {
				font-size: 15px;
			}

			.ffx-footer .ffx-locations .ffx-locations-title-container .ffx-locations-title {
				font-size: 15px;
			}
		}

		/* Mobile Portrait (< 576px) */
		@media (max-width: 575px) {
			.ffx-footer .ffx-container {
				padding: 0 12px;
			}

			.ffx-footer .ffx-tagline {
				font-size: 14px;
			}

			.ffx-footer .ffx-location-header h4 {
				font-size: 15px;
			}

			.ffx-footer .ffx-badge {
				font-size: 10px;
				padding: 3px 10px;
			}

			.ffx-footer .ffx-nav .ffx-nav-column h3 {
				font-size: 14px;
			}

			.ffx-footer .ffx-grid {
				gap: 20px;
				margin-bottom: 15px;
			}

			.ffx-footer .ffx-nav {
				gap: 18px;
			}

			.ffx-footer .ffx-locations .ffx-locations-title-container .ffx-locations-title {
				font-size: 14px;
			}
		}

		/* Special Mobile Cases */
		@media (max-width: 640px) {
			.ffx-footer .ffx-locations .ffx-locations-title-container .ffx-locations-title {
				text-align: left;
				text-shadow: none;
			}
		}

		/* Large Screens */
		@media (min-width: 1024px) {
			.ffx-footer .ffx-locations-title {
				font-size: 18px;
			}
		}

		/* ========== ACCESSIBILITY AND PERFORMANCE ========== */

		/* Reduced motion preferences */
		@media (prefers-reduced-motion: reduce) {
			.ffx-footer * {
				animation: none;
				transition: none;
			}
		}

		/* High contrast mode support */
		@media (prefers-contrast: high) {
			.ffx-footer {
				--ffx-border: #ffffff;
				--ffx-primary: #00d4f5;
				--ffx-accent: #ffc107;
			}

			.ffx-footer .ffx-location-card {
				border-width: 2px;
			}
		}

		/* Print optimization */
		@media print {
			.ffx-footer {
				background: white;
				color: black;
				border-top: 1px solid #ccc;
			}

			.ffx-footer .ffx-main,
			.ffx-footer .ffx-bottom {
				background: white;
			}

			.ffx-footer a {
				color: black;
				text-decoration: underline;
			}

			.ffx-footer .ffx-location-card {
				break-inside: avoid;
			}
		}

		/* Focus management for accessibility */
		.ffx-footer a:focus {
			outline: 2px solid var(--ffx-primary);
			outline-offset: 2px;
			border-radius: 2px;
		}
