/**
 * Footer Section Styles
 * Dealer-style footer with 3 columns
 *
 * @package MG
 */

/* ========================================
   Footer Container
   ======================================== */

.footer {
	background-color: #ffffff;
	padding: 80px 0; /* Mobile */
}

@media (min-width: 768px) {
	.footer {
		padding: 60px 0; /* Tablet+ */
	}
}

.footer__container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 30px 0 30px; /* Mobile: top padding for border spacing */
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
	.footer__container {
		padding: 50px 40px 0 40px; /* Tablet+: increased top padding for border spacing */
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
		gap: 60px;
	}
}

/* ========================================
   Footer Columns
   ======================================== */

.footer__col {
	/* Base column styles */
}

/* ========================================
   Footer Headings
   ======================================== */

.footer__heading {
	color: #505062;
	font-size: 12px;
	font-weight: 350;
	text-transform: uppercase;
	margin: 0 0 16px 0;
	line-height: 1.2;
}

/* ========================================
   Footer Menus
   ======================================== */

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

.footer__menu li {
	margin-bottom: 12px;
}

.footer__menu li:last-child {
	margin-bottom: 0;
}

.footer__menu a {
	position: relative;
	display: inline-block;
	color: #181818;
	font-size: 16px;
	font-weight: 350;
	line-height: 1.5;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

/* Hover underline animation */
.footer__menu a::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 3px;
	background-color: #181818;
	opacity: 0.6;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer__menu a:hover::before {
	transform: scaleX(1);
}

/* ========================================
   Brand Column (Logo + Social)
   ======================================== */

.footer__logo-wrapper {
	margin-bottom: 24px;
}

/* Style custom logo output */
.footer__logo-wrapper .custom-logo-link {
	display: block;
}

.footer__logo-wrapper .custom-logo {
	max-width: 120px;
	height: auto;
	display: block;
}

/* Logo placeholder fallback */
.footer__logo-placeholder {
	font-size: 24px;
	font-weight: 600;
	color: #181818;
}

/* ========================================
   Branch Locations (Oddziały)
   ======================================== */

.footer__locations {
	margin-top: 32px;
	margin-bottom: 32px;
}

.footer__location {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__location:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.footer__location-title {
	color: #505062;
	font-size: 12px;
	font-weight: 350;
	text-transform: uppercase;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.footer__location-line {
	color: #181818;
	font-size: 16px;
	font-weight: 350;
	line-height: 1.5;
	margin: 0 0 6px 0;
}

.footer__location-line:last-child {
	margin-bottom: 0;
}

.footer__location-link {
	position: relative;
	display: inline-block;
	color: #181818;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

/* Hover underline animation (same as footer menu links) */
.footer__location-link::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 3px;
	background-color: #181818;
	opacity: 0.6;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer__location-link:hover::before {
	transform: scaleX(1);
}

/* Social Icons */
.footer__social {
	display: flex;
	gap: 16px;
	align-items: center;
}

.footer__social-link {
	display: block;
	line-height: 0;
	color: #181818;
	transition: opacity 0.2s ease;
}

.footer__social-link:hover {
	opacity: 0.7;
}

.footer__social-link svg {
	display: block;
}