/* =========================================================
   Starline Shop Customizable Footer
========================================================= */

.site-footer {
	--footer-background: #214c96;
	--footer-text: #ffffff;
	--footer-heading: #ff3030;
	--footer-link: #ffffff;
	--footer-link-hover: #ffd166;
	--footer-border: rgba(255, 255, 255, 0.2);

	position: relative;
	width: 100%;
	overflow: hidden;
	color: var(--footer-text);
	background: var(--footer-background);
}

.site-footer,
.site-footer * {
	box-sizing: border-box;
}

/* =========================================================
   Main Footer Layout
========================================================= */

.starline-footer-main {
	display: grid;
	grid-template-columns:
		minmax(220px, 1.3fr)
		minmax(150px, 1fr)
		minmax(150px, 1fr)
		minmax(190px, 1.1fr);
	gap: 50px;
	padding-top: 55px;
	padding-bottom: 48px;
}

.starline-footer-column {
	min-width: 0;
}

.starline-footer-column p:last-child {
	margin-bottom: 0;
}

.starline-footer-column:empty {
	display: none;
}

/* =========================================================
   Brand and Contact Column
========================================================= */

.footer-brand-column {
	text-align: left;
}

.footer-brand-logo {
	display: flex;
	align-items: center;
	margin-bottom: 18px;
}

.footer-brand-logo a {
	display: inline-flex;
	align-items: center;
}

.footer-brand-logo img,
.footer-brand-logo .footer-logo-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 90px;
	object-fit: contain;
}

.footer-site-title {
	display: inline-block;
	color: var(--footer-text);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.footer-site-title:hover {
	color: var(--footer-link-hover);
}

.footer-contact-address {
	margin: 0 0 12px;
	color: var(--footer-text);
	font-size: 14px;
	line-height: 1.65;
	opacity: 0.95;
}

.footer-contact-item {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
}

.footer-contact-item a {
	color: var(--footer-link);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}

.footer-contact-item a:hover {
	color: var(--footer-link-hover);
}

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

.starline-footer-heading {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 10px;
	color: var(--footer-heading);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.starline-footer-heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 38px;
	height: 2px;
	background: currentColor;
	content: "";
}

/* =========================================================
   Footer Menu Alignment
========================================================= */

.footer-menu-align-left {
	text-align: left;
}

.footer-menu-align-center {
	text-align: center;
}

.footer-menu-align-right {
	text-align: right;
}

.footer-menu-align-left .starline-footer-heading::after {
	right: auto;
	left: 0;
	transform: none;
}

.footer-menu-align-center .starline-footer-heading::after {
	right: auto;
	left: 50%;
	transform: translateX(-50%);
}

.footer-menu-align-right .starline-footer-heading::after {
	right: 0;
	left: auto;
	transform: none;
}

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

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

.starline-footer-menu li,
.starline-footer-menu ul li {
	margin: 0 0 9px;
	padding: 0;
	list-style: none;
}

.starline-footer-menu li:last-child,
.starline-footer-menu ul li:last-child {
	margin-bottom: 0;
}

.starline-footer-menu a,
.starline-footer-menu ul a {
	position: relative;
	display: inline-block;
	padding: 1px 0;
	color: var(--footer-link);
	font-size: 14px;
	line-height: 1.55;
	text-decoration: none;
	word-break: break-word;
}

.starline-footer-menu a::before,
.starline-footer-menu ul a::before {
	display: inline-block;
	margin-right: 7px;
	color: var(--footer-link-hover);
	content: "›";
	transition: transform 0.25s ease;
}

.starline-footer-menu a:hover,
.starline-footer-menu ul a:hover {
	color: var(--footer-link-hover);
}

.starline-footer-menu a:hover::before,
.starline-footer-menu ul a:hover::before {
	transform: translateX(3px);
}

.footer-no-menu {
	margin: 0;
	color: var(--footer-text);
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.8;
}

/* =========================================================
   Social Links
========================================================= */

.footer-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--footer-link);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	text-decoration: none;
	transition:
		color 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.footer-social-link svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.footer-social-link:hover {
	color: var(--footer-background);
	background: var(--footer-link-hover);
	border-color: var(--footer-link-hover);
	transform: translateY(-3px);
}

/* =========================================================
   App Download
========================================================= */

.footer-app-title {
	margin: 10px 0 11px;
	color: var(--footer-text);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

.footer-app-link {
	display: inline-flex;
	max-width: 190px;
	color: #ffffff;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.footer-app-link:hover {
	color: #ffffff;
	transform: translateY(-2px);
}

.footer-app-link img {
	display: block;
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: 65px;
	object-fit: contain;
}

.footer-app-placeholder {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-width: 178px;
	min-height: 55px;
	padding: 7px 17px;
	color: #ffffff;
	background: #050505;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 8px;
	line-height: 1.05;
}

.footer-app-placeholder small {
	margin-bottom: 3px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.footer-app-placeholder strong {
	font-size: 20px;
	font-weight: 600;
}

/* =========================================================
   Footer Bottom
========================================================= */

.footer-bottom {
	padding: 18px 0;
	background: rgba(0, 0, 0, 0.08);
	border-top: 1px solid var(--footer-border);
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	color: var(--footer-text);
	font-size: 13px;
	line-height: 1.5;
}

.footer-bottom-inner p {
	margin: 0;
}

.footer-bottom-inner a {
	color: var(--footer-link);
	font-weight: 600;
	text-decoration: none;
}

.footer-bottom-inner a:hover {
	color: var(--footer-link-hover);
}

/* =========================================================
   Accessibility
========================================================= */

.site-footer a:focus-visible {
	outline: 2px solid var(--footer-link-hover);
	outline-offset: 3px;
}

/* =========================================================
   Large Tablet
========================================================= */

@media (max-width: 1100px) {
	.starline-footer-main {
		grid-template-columns:
			minmax(210px, 1.2fr)
			minmax(140px, 1fr)
			minmax(140px, 1fr)
			minmax(180px, 1fr);
		gap: 35px;
	}
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991px) {
	.starline-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 38px 45px;
		padding-top: 48px;
		padding-bottom: 42px;
	}
}

/* =========================================================
   Mobile Footer
   Brand: full width
   Menu 1 + Menu 2: two columns
   Social/App: full width
========================================================= */

@media (max-width: 767px) {
	.starline-footer-main {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 18px;
		padding-top: 42px;
		padding-bottom: 38px;
	}

	/* Brand and contact section */

	.footer-brand-column {
		grid-column: 1 / -1;
		text-align: center;
	}

	.footer-brand-logo {
		justify-content: center;
	}

	/* First menu */

	.footer-useful-column {
		grid-column: 1;
		min-width: 0;
	}

	/* Second menu */

	.footer-second-column {
		grid-column: 2;
		min-width: 0;
	}

	/* Only one menu enabled */

	.starline-footer-main.footer-menu-count-1
	.footer-menu-column {
		grid-column: 1 / -1;
	}

	/* Social and app section */

	.footer-social-column {
		grid-column: 1 / -1;
		text-align: center;
	}

	.footer-social-column .starline-footer-heading::after {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}

	.footer-social-links {
		justify-content: center;
	}

	.footer-app-link {
		justify-content: center;
	}

	/* Mobile menu appearance */

	.footer-menu-column .starline-footer-heading {
		margin-bottom: 16px;
		font-size: 14px;
	}

	.footer-menu-column .starline-footer-menu a,
	.footer-menu-column .starline-footer-menu ul a {
		font-size: 13px;
		line-height: 1.5;
	}

	.footer-menu-column .starline-footer-menu a::before,
	.footer-menu-column .starline-footer-menu ul a::before {
		display: none;
	}

	/* Footer bottom */

	.footer-bottom {
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.footer-bottom-inner {
		display: block;
		text-align: center;
	}

	.footer-bottom-inner p + p {
		margin-top: 7px;
	}
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 420px) {
	.starline-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 12px;
		padding: 35px 14px 32px;
	}

	.footer-brand-logo img,
	.footer-brand-logo .footer-logo-image {
		max-width: 135px;
	}

	.footer-site-title {
		font-size: 23px;
	}

	.footer-contact-address,
	.footer-contact-item {
		font-size: 13px;
	}

	.footer-menu-column .starline-footer-heading {
		margin-bottom: 14px;
		padding-bottom: 8px;
		font-size: 13px;
	}

	.footer-menu-column .starline-footer-menu li,
	.footer-menu-column .starline-footer-menu ul li {
		margin-bottom: 8px;
	}

	.footer-menu-column .starline-footer-menu a,
	.footer-menu-column .starline-footer-menu ul a {
		font-size: 12.5px;
		line-height: 1.45;
	}

	.footer-social-link {
		width: 36px;
		height: 36px;
	}

	.footer-app-link img {
		max-width: 170px;
	}

	.footer-app-placeholder {
		min-width: 165px;
	}

	.footer-bottom-inner {
		font-size: 12px;
	}
}