/* ==================================================
   CALPE LOCAL — SITE FOOTER
   ================================================== */

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

.cl-site-footer {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	border-top: 4px solid #d8764a;
	background: #102a2e;
	color: rgba(255, 255, 255, 0.7);
	font-family: Arial, Helvetica, sans-serif;
}

.cl-footer-shell {
	width: min(calc(100% - 48px), 1380px);
	margin-inline: auto;
}

.cl-footer-main {
	padding: 72px 0 58px;
	display: grid;
	grid-template-columns: minmax(320px, 1.5fr) repeat(3, minmax(145px, 0.65fr));
	align-items: start;
	gap: clamp(42px, 5vw, 82px);
}

/* Brand column */

.cl-footer-brand {
	max-width: 460px;
}

.cl-footer-logo {
	display: block;
	width: min(100%, 300px);
	aspect-ratio: 1855 / 475;
	background-image: url("../images/calpe-local-logo-footer.webp");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
	color: #fffdf8;
	text-decoration: none;
}

.cl-footer-logo:hover,
.cl-footer-logo:focus,
.cl-footer-logo:visited {
	color: #fffdf8;
}

/* The footer Hook still contains the old text logo spans.
 * Keep them available to screen readers while the image logo is shown visually.
 */
.cl-footer-logo__calpe,
.cl-footer-logo__dot,
.cl-footer-logo__local {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cl-footer-brand__copy {
	max-width: 415px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.67);
	font-size: 15px;
	line-height: 1.72;
}

/* Compact newsletter link */

.cl-footer-newsletter {
	max-width: 430px;
	margin-top: 30px;
	padding: 19px 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label action"
		"copy action";
	align-items: center;
	column-gap: 22px;
	row-gap: 5px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.035);
	color: #fffdf8;
	text-decoration: none;
	transition:
		border-color 180ms ease,
		background 180ms ease;
}

.cl-footer-newsletter:hover,
.cl-footer-newsletter:focus-visible {
	border-color: rgba(237, 155, 118, 0.72);
	background: rgba(255, 255, 255, 0.06);
	color: #fffdf8;
}

.cl-footer-newsletter__label {
	grid-area: label;
	color: #ed9b76;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cl-footer-newsletter__copy {
	grid-area: copy;
	color: rgba(255, 255, 255, 0.67);
	font-size: 12px;
	line-height: 1.45;
}

.cl-footer-newsletter__action {
	grid-area: action;
	color: #fffdf8;
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
}

/* Navigation columns */

.cl-footer-nav {
	min-width: 0;
}

.cl-footer-nav__title {
	margin: 2px 0 22px;
	color: #ed9b76;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cl-footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-footer-nav li {
	margin: 0;
	padding: 0;
}

.cl-footer-nav li + li {
	margin-top: 13px;
}

.cl-footer-nav a {
	display: inline-block;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	font-weight: 550;
	line-height: 1.4;
	text-decoration: none;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.cl-footer-nav a:hover,
.cl-footer-nav a:focus-visible {
	color: #ffffff;
	transform: translateX(2px);
}

.cl-footer-nav a.cl-footer-nav__accent {
	color: #ed9b76;
	font-weight: 750;
}

.cl-footer-nav a.cl-footer-nav__accent:hover,
.cl-footer-nav a.cl-footer-nav__accent:focus-visible {
	color: #ffffff;
}

/* Bottom legal row */

.cl-footer-bottom {
	min-height: 82px;
	padding: 24px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.cl-footer-bottom__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.52);
	font-size: 11px;
	font-weight: 550;
	line-height: 1.5;
}

.cl-footer-legal {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 9px 22px;
	list-style: none;
}

.cl-footer-legal li {
	margin: 0;
	padding: 0;
}

.cl-footer-legal a {
	color: rgba(255, 255, 255, 0.62);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.cl-footer-legal a:hover,
.cl-footer-legal a:focus-visible {
	color: #ffffff;
}

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

@media (max-width: 1050px) {

	.cl-footer-main {
		grid-template-columns: minmax(300px, 1.25fr) repeat(3, minmax(125px, 0.62fr));
		gap: 40px;
	}

}

@media (max-width: 900px) {

	.cl-footer-shell {
		width: min(calc(100% - 32px), 1380px);
	}

	.cl-footer-main {
		padding: 60px 0 48px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 36px;
	}

	.cl-footer-brand {
		max-width: none;
		grid-column: 1 / -1;
	}

	.cl-footer-brand__copy,
	.cl-footer-newsletter {
		max-width: 620px;
	}

	.cl-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.cl-footer-legal {
		justify-content: flex-start;
	}

}

@media (max-width: 620px) {

	.cl-footer-shell {
		width: calc(100% - 24px);
	}

	.cl-footer-main {
		padding: 50px 0 40px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 42px 25px;
	}

	.cl-footer-brand,
	.cl-footer-nav:last-child {
		grid-column: 1 / -1;
	}

	.cl-footer-logo {
		width: min(100%, 270px);
	}

	.cl-footer-brand__copy {
		font-size: 14px;
	}

	.cl-footer-newsletter {
		padding: 17px;
		grid-template-columns: 1fr;
		grid-template-areas:
			"label"
			"copy"
			"action";
		row-gap: 5px;
	}

	.cl-footer-newsletter__action {
		margin-top: 7px;
	}

	.cl-footer-nav__title {
		margin-bottom: 18px;
	}

	.cl-footer-nav li + li {
		margin-top: 11px;
	}

	.cl-footer-nav a {
		font-size: 13px;
	}

	.cl-footer-bottom {
		min-height: 0;
		padding: 22px 0 27px;
	}

	.cl-footer-legal {
		gap: 8px 17px;
	}

}

/* Calpe Local uses its own footer. Remove GeneratePress's duplicate site-info strip. */
.site-info {
	display: none !important;
}
