/**
 * Coffee Lab — footer.
 */

.cl-footer {
	--cl-footer-link: rgba(255, 255, 255, .7);
	--cl-footer-link-hover: #FFFFFF;
	--cl-footer-divider: rgba(255, 255, 255, .12);

	background-color: var(--cl-black);
	color: rgba(255, 255, 255, .6);
}

.cl-footer__inner {
	width: 100%;
	max-width: 1300px;
	margin-inline: auto;
	padding: 72px 24px 32px;
}

.cl-footer__grid {
	--cl-footer-brand: 1.6fr;
	--cl-footer-cols: 3;

	display: grid;
	grid-template-columns: repeat(var(--cl-footer-cols), minmax(0, 1fr));
	gap: 48px;
}

.cl-footer__grid.has-brand {
	grid-template-columns: var(--cl-footer-brand) repeat(var(--cl-footer-cols), minmax(0, 1fr));
}

/* ---------------------------------------------------------------------------
 * Brand column
 * ------------------------------------------------------------------------ */

.cl-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 360px;
}

.cl-footer__logo img {
	display: block;
	width: 110px;
	height: auto;
}

.cl-footer__about {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: inherit;
}

.cl-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cl-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cl-footer-link);
	text-decoration: none;
	transition: color var(--cl-dur) var(--cl-ease), background-color var(--cl-dur) var(--cl-ease), transform var(--cl-dur) var(--cl-ease);
}

.cl-footer__social:hover {
	color: var(--cl-footer-link-hover);
}

.cl-footer__socials--text .cl-footer__social {
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.cl-footer__socials--text .cl-footer__social + .cl-footer__social {
	margin-inline-start: 10px;
}

.cl-footer__socials--circle .cl-footer__social {
	width: 40px;
	height: 40px;
	border: 1px solid var(--cl-footer-divider);
	border-radius: 50%;
}

.cl-footer__socials--circle .cl-footer__social:hover {
	background-color: var(--cl-white);
	color: var(--cl-black);
	transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
 * Link columns
 * ------------------------------------------------------------------------ */

.cl-footer__col-title {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .4px;
	color: var(--cl-white);
}

.cl-footer__links,
.cl-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-footer__links a {
	color: var(--cl-footer-link);
	font-size: 15px;
	text-decoration: none;
	transition: color var(--cl-dur) var(--cl-ease), padding-inline-start var(--cl-dur) var(--cl-ease);
}

.cl-footer__links a:hover {
	color: var(--cl-footer-link-hover);
	padding-inline-start: 5px;
}

/* The walker adds its own classes inside footer menus — neutralise them. */
.cl-footer__links .cl-nav__item {
	list-style: none;
}

.cl-footer__links .cl-nav__link {
	padding: 0;
	color: var(--cl-footer-link);
	font-weight: 400;
	white-space: normal;
}

.cl-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cl-footer-link);
}

.cl-footer__contact li svg {
	margin-top: 2px;
	flex-shrink: 0;
	opacity: .7;
}

.cl-footer__contact a {
	color: inherit;
	text-decoration: none;
	transition: color var(--cl-dur) var(--cl-ease);
}

.cl-footer__contact a:hover {
	color: var(--cl-footer-link-hover);
}

/* ---------------------------------------------------------------------------
 * Newsletter
 * ------------------------------------------------------------------------ */

.cl-footer__newsletter {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 6px 6px 6px 18px;
	border: 1px solid var(--cl-footer-divider);
	border-radius: var(--cl-radius-pill);
	background-color: rgba(255, 255, 255, .04);
	transition: border-color var(--cl-dur) var(--cl-ease);
}

.cl-footer__newsletter:focus-within {
	border-color: rgba(255, 255, 255, .4);
}

.cl-footer__newsletter input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--cl-white);
	font-family: inherit;
	font-size: 15px;
}

.cl-footer__newsletter input::placeholder {
	color: rgba(255, 255, 255, .45);
}

.cl-footer__newsletter input:focus {
	outline: none;
}

.cl-footer__newsletter button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background-color: var(--cl-white);
	color: var(--cl-black);
	cursor: pointer;
	flex-shrink: 0;
	transition: transform var(--cl-dur) var(--cl-ease);
}

.cl-footer__newsletter button:hover {
	transform: translateX(2px);
}

/* ---------------------------------------------------------------------------
 * Bottom bar
 * ------------------------------------------------------------------------ */

.cl-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--cl-footer-divider);
	font-size: 14px;
}

.cl-footer__copyright,
.cl-footer__credit {
	margin: 0;
}

.cl-footer__credit a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cl-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cl-footer__payment {
	padding: 6px 12px;
	border: 1px solid var(--cl-footer-divider);
	border-radius: var(--cl-radius-xs);
	font-size: 12px;
	letter-spacing: .3px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.cl-footer__grid,
	.cl-footer__grid.has-brand {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px;
	}

	.cl-footer__grid.has-brand .cl-footer__brand {
		grid-column: 1 / -1;
		max-width: 520px;
	}

	.cl-footer__inner {
		padding: 56px 20px 28px;
	}
}

@media (max-width: 600px) {
	.cl-footer__grid,
	.cl-footer__grid.has-brand {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.cl-footer__inner {
		padding: 48px 16px 24px;
	}

	.cl-footer__col-title {
		margin-bottom: 12px;
	}

	.cl-footer__bottom {
		margin-top: 36px;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-footer__social,
	.cl-footer__links a,
	.cl-footer__newsletter button {
		transition: none;
	}
}
