/* =========================================================================
   OS Custom Footer — Optimal Solutions
   Dark panel, white logo, contact + two link columns, bubble decoration.
   Overrides Shoptimizer's default .site-footer. Responsive.
   ========================================================================= */

.site-footer.os-footer {
	position: relative;
	overflow: hidden;
	background: #172733 !important; /* brand DK Blue — beats Customizer footer bg */
	color: #ffffff;
	padding: 0;
	margin: 0;
}

.os-footer * {
	box-sizing: border-box;
}

/* --- Decorative bubbles (top-right, behind content) ---------------------- */
.os-footer .os-footer-bubbles {
	position: absolute;
	top: 0;
	right: 0;
	width: min(46%, 780px);
	height: 100%;
	background-repeat: no-repeat;
	background-position: right center;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
}

/* --- Layout -------------------------------------------------------------- */
.os-footer .os-footer-inner {
	position: relative;
	z-index: 1;
	width: calc(100% - 60px);
	max-width: 1544px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: flex-start;
	gap: 72px;
	padding: 64px 0 52px;
}

/* --- Brand / logo -------------------------------------------------------- */
.os-footer .os-footer-brand {
	flex: 0 0 auto;
}

.os-footer .os-footer-logo {
	display: inline-flex;
	line-height: 0;
}

.os-footer .os-footer-logo-img {
	display: block;
	width: auto;
	height: 132px;
	max-width: 100%;
	/* Render the dark brand logo solid white to match the design. */
	filter: brightness(0) invert(1);
}

/* --- Columns ------------------------------------------------------------- */
.os-footer .os-footer-heading {
	margin: 0 0 18px;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
	letter-spacing: 0.01em;
}

.os-footer .os-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.os-footer .os-footer-menu li {
	margin: 0 0 16px;
	padding: 0;
	line-height: 1.5;
	border: 0;
}

.os-footer .os-footer-menu li::before,
.os-footer .os-footer-menu li::marker {
	content: none;
}

.os-footer .os-footer-menu a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.os-footer .os-footer-menu a:hover,
.os-footer .os-footer-menu a:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.os-footer .os-footer-address {
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
}

/* The two link columns have no heading — align their first row with the
   Contact items (which sit under a heading). */
.os-footer .os-footer-links {
	padding-top: 8px;
}

.os-footer .os-footer-legal {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	gap: 32px;
	width: calc(100% - 60px);
	max-width: 1544px;
	margin: 0 auto;
	padding: 24px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.os-footer .os-footer-story {
	display: inline-flex;
	justify-self: start;
	line-height: 0;
}

.os-footer .os-footer-story img {
	display: block;
	width: 150px;
	height: auto;
}

.os-footer .os-footer-copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	text-align: left;
}

.os-footer .os-footer-privacy {
	justify-self: start;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	text-decoration: none;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
	.os-footer .os-footer-inner {
		width: calc(100% - 48px);
		grid-template-columns: 1fr 1fr 1fr;
		gap: 40px;
		padding: 48px 24px;
	}
	.os-footer .os-footer-bubble-space,
	.os-footer .os-footer-legal-space { display: none; }
	.os-footer .os-footer-legal {
		width: calc(100% - 48px);
		grid-template-columns: 1fr 1fr 1fr;
	}
	.os-footer .os-footer-logo-img {
		height: 104px;
	}
	.os-footer .os-footer-bubbles {
		width: 55%;
		opacity: 0.55;
	}
}

@media (max-width: 600px) {
	.os-footer .os-footer-inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.os-footer .os-footer-bubbles {
		width: 72%;
		opacity: 0.35;
	}
	.os-footer .os-footer-links { padding-top: 0; }
	.os-footer .os-footer-legal {
		grid-template-columns: 1fr;
		gap: 18px;
		width: calc(100% - 32px);
		text-align: left;
	}
	.os-footer .os-footer-story,
	.os-footer .os-footer-privacy { justify-self: start; }
	.os-footer .os-footer-copyright { text-align: left; }
}

@media (max-width: 400px) {
	.os-footer .os-footer-story img { width: 150px; }
}
