/* Hallmark · v2.0.0 · scope: component (site footer, in the site's own system, tokens from costa-estates --cse-*) · footer: sand band, statement, contact, weather tile, four link columns · signature: the Salobreña weather tile, gold line icon, Fraunces numerals */
/* critique: it must read as this site's own footer (sand, Fraunces, deep gold, teal links), never as a copy of a navy four-column agency footer with a glossy weather icon */
/* Hallmark · answered F1 · no reveal and no motion beyond a link colour change */

/*
 * Costa Tropical site footer. Source of truth: site/mu-plugins/costa-tropical-footer.css
 * in the mls-plugin repo. Markup: costa-tropical-footer.php. Weather: costa-tropical-footer.js.
 */

:root {
	--ctf-bg: var(--cse-surface-alt, #f4f0e8);
	--ctf-tile: #fffcf6;
	--ctf-ink: var(--cse-ink, #12201f);
	--ctf-text: var(--cse-text, #44504e);
	--ctf-muted: var(--cse-muted, #5e6967);
	--ctf-line: var(--cse-line, #ddd6ca);
	--ctf-accent: var(--cse-primary, #0f5563);
	--ctf-accent-hover: var(--cse-primary-hover, #0a4350);
	--ctf-icon: var(--cse-gold-deep, #b5832f);
	--ctf-serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--ctf-sans: inherit;
	--ctf-radius: var(--cse-radius-lg, 10px);
	--ctf-max: 75rem;
	--ctf-gutter: clamp(1.25rem, 4vw, 2.5rem);
}

.ct-footer {
	background: var(--ctf-bg);
	color: var(--ctf-text);
	font-family: var(--ctf-sans);
	padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem);
}

.ct-footer__inner {
	max-width: var(--ctf-max);
	margin-inline: auto;
	padding-inline: var(--ctf-gutter);
}

.ct-footer a {
	color: var(--ctf-ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ct-footer a:hover {
	color: var(--ctf-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ct-footer a:active {
	color: var(--ctf-accent-hover);
}

.ct-footer a:focus-visible {
	outline: 2px solid var(--ctf-accent);
	outline-offset: 3px;
	border-radius: 2px;
	transition: none;
}

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

/* ---------------------------------------------------------------- top row */

.ct-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 20rem);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
	padding-block-end: clamp(1.25rem, 3vw, 1.75rem);
	border-block-end: 1px solid var(--ctf-line);
}

.ct-footer__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ctf-ink);
	margin: 0 0 0.375rem;
}

.ct-footer__lead {
	font-family: var(--ctf-serif);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.4;
	font-weight: 400;
	color: var(--ctf-ink);
	max-width: 34ch;
	margin: 0;
	overflow-wrap: break-word;
	min-width: 0;
}

.ct-footer__reach {
	min-width: 0;
	padding-block-start: 0.25rem;
}

.ct-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin-block-end: 0.625rem !important;
}

.ct-footer__contact li {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.ct-footer__contact-label {
	font-size: 0.8125rem;
	color: var(--ctf-muted);
}

.ct-footer__contact a {
	font-size: 1rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ct-footer .ct-footer__whatsapp {
	color: var(--ctf-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ct-footer .ct-footer__whatsapp:hover {
	color: var(--ctf-accent-hover);
}

/* ---------------------------------------------------------------- weather tile */

.ct-weather {
	background: var(--ctf-tile);
	border: 1px solid var(--ctf-line);
	border-radius: var(--ctf-radius);
	padding: 0.75rem 1rem;
	min-width: 0;
}

.ct-weather[hidden] {
	display: none;
}

.ct-weather p {
	margin: 0;
}

.ct-weather__place {
	font-size: 0.8125rem;
	color: var(--ctf-muted);
}

.ct-weather__now {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	margin-block: 0.25rem;
}

.ct-weather__icon {
	display: inline-flex;
	color: var(--ctf-icon);
	flex: none;
}

.ct-weather__icon svg {
	width: 1.75rem;
	height: 1.75rem;
}

.ct-weather__icon .ctf-mask {
	fill: var(--ctf-tile);
}

.ct-weather__icon .ctf-dot {
	fill: currentColor;
	stroke: none;
}

.ct-weather__temp {
	font-family: var(--ctf-serif);
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 400;
	color: var(--ctf-ink);
	font-variant-numeric: lining-nums;
	white-space: nowrap;
}

.ct-weather__sky {
	font-size: 0.9375rem;
	color: var(--ctf-ink);
}

.ct-weather__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 0.75rem;
}

.ct-weather__sun {
	font-size: 0.875rem;
	color: var(--ctf-text);
}

.ct-footer .ct-weather__credit {
	display: inline-block;
	font-size: 0.75rem;
	color: var(--ctf-muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------- link columns */

.ct-footer__links {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
	padding-block-start: clamp(1.25rem, 3vw, 1.75rem);
}

.ct-footer__col {
	min-width: 0;
}

.ct-footer__col:first-child {
	grid-column: span 2;
}

.ct-footer__col:first-child ul {
	columns: 2;
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.ct-footer__heading {
	font-family: var(--ctf-serif);
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 500;
	color: var(--ctf-ink);
	margin: 0 0 0.5rem;
	overflow-wrap: break-word;
	min-width: 0;
}

.ct-footer__col li {
	break-inside: avoid;
	margin-block-end: 0.125rem;
	line-height: 1.4;
}

.ct-footer__col a {
	color: var(--ctf-text);
	font-size: 0.9375rem;
	display: inline-block;
	padding-block: 0.0625rem;
}

/* ---------------------------------------------------------------- Astra's copyright row on the same band */

.site-footer .site-below-footer-wrap[data-section="section-below-footer-builder"] {
	background: var(--ctf-bg);
	border-block-start: 1px solid var(--ctf-line);
}

.site-footer .site-below-footer-wrap .ast-footer-copyright,
.site-footer .site-below-footer-wrap .ast-footer-copyright p {
	color: var(--ctf-muted);
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 64rem) {
	.ct-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
	}

	.ct-footer__about {
		grid-column: 1 / -1;
	}

	.ct-footer__links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ct-footer__col:first-child {
		grid-column: 1 / -1;
	}

	.ct-footer__col:first-child ul {
		columns: 2;
	}
}

@media (max-width: 48rem) {
	.ct-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-footer__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ct-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.ct-footer__col:last-child ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1.75rem;
	}

	.ct-footer__contact {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem 1.5rem;
	}

	.ct-footer__col li {
		margin-block-end: 0;
	}

	.ct-footer__col a,
	.ct-footer .ct-footer__whatsapp,
	.ct-footer .ct-weather__credit {
		display: inline-block;
		padding-block: 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-footer a {
		transition: none;
	}
}
