/* wp-content/plugins/ceca-widgets/widgets/ceca-footer/ceca-footer.css */

/* Figma 152:2217: 4 link columns on the 1296px grid, full-bleed top border,
   copyright + legal links left / social circles right. Mobile: columns (and
   a Legal group) collapse to CSS-only checkbox accordions; socials centered
   with the copyright beneath. */

.ceca-footer {
	--ceca-f-bg: #ffffff;
	--ceca-f-border: #e3e3e3;
	--ceca-f-title: #1a1a1a;
	--ceca-f-link: #545454;
	--ceca-f-link-hover: #411024;
	--ceca-f-link-gap: 10px;
	--ceca-f-bottom: #1a1a1a;
	--ceca-f-social-bg: #1a1a1a;
	--ceca-f-social-color: #ffffff;
	--ceca-f-social-size: 36px;
	--ceca-f-pad: max(var(--ceca-gutter, 72px), calc(50vw - var(--ceca-site-width, 1440px) / 2 + var(--ceca-gutter, 72px)));

	/* Full-bleed breakout: border + background span the viewport, content
	   stays on the site grid. */
	margin-inline: calc(50% - 50vw);
	padding: 56px var(--ceca-f-pad) 40px;
	background: var(--ceca-f-bg);
	border-top: 1px solid var(--ceca-f-border);
}

.ceca-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

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

.ceca-footer__col-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Figma footer nodes: titles and links share 18/23; titles Bold. */
.ceca-footer .ceca-footer__col-title {
	display: block;
	margin: 0 0 16px;
	color: var(--ceca-f-title);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.ceca-footer__col-title svg {
	display: none;
	width: 11px;
	height: 7px;
	transition: transform 0.25s ease;
}

.ceca-footer__links {
	display: flex;
	flex-direction: column;
	gap: var(--ceca-f-link-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceca-footer .ceca-footer__links a,
.ceca-footer .ceca-footer__links a:visited {
	color: var(--ceca-f-link);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ceca-footer .ceca-footer__links a:hover,
.ceca-footer .ceca-footer__links a:focus {
	color: var(--ceca-f-link-hover);
}

/* The Legal group only exists as a mobile accordion. */
.ceca-footer__col--legal {
	display: none;
}

/* --- Bottom row ----------------------------------------------------------- */

.ceca-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 56px;
}

.ceca-footer__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 32px;
	color: var(--ceca-f-bottom);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
}

.ceca-footer__legal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceca-footer .ceca-footer__meta a,
.ceca-footer .ceca-footer__meta a:visited {
	color: var(--ceca-f-bottom);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ceca-footer .ceca-footer__meta a:hover,
.ceca-footer .ceca-footer__meta a:focus {
	color: var(--ceca-f-link-hover);
}

.ceca-footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceca-footer .ceca-footer__social a.ceca-footer__social-link,
.ceca-footer .ceca-footer__social a.ceca-footer__social-link:visited,
.ceca-footer .ceca-footer__social a.ceca-footer__social-link:hover,
.ceca-footer .ceca-footer__social a.ceca-footer__social-link:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ceca-f-social-size, 36px);
	height: var(--ceca-f-social-size, 36px);
	border-radius: 50%;
	background: var(--ceca-f-social-bg, #1a1a1a);
	color: var(--ceca-f-social-color, #ffffff);
	transition: opacity 0.2s ease;
}

.ceca-footer__social-link svg {
	color: var(--ceca-f-social-color, #ffffff);
}

.ceca-footer .ceca-footer__social-link:hover {
	opacity: 0.8;
}

.ceca-footer__social-link svg {
	width: calc(var(--ceca-f-social-size) * 0.5);
	height: calc(var(--ceca-f-social-size) * 0.5);
}

/* --- Tablet ---------------------------------------------------------------- */

@media (max-width: 1024px) and (min-width: 768px) {
	.ceca-footer__cols {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Mobile: accordions ---------------------------------------------------- */

@media (max-width: 767px) {
	.ceca-footer {
		padding-top: 8px;
		padding-bottom: 32px;
	}

	.ceca-footer__cols {
		display: block;
	}

	.ceca-footer__col {
		position: relative;
		border-bottom: 1px solid var(--ceca-f-border);
	}

	.ceca-footer .ceca-footer__col-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 16px 0;
		cursor: pointer;
	}

	.ceca-footer__col-title svg {
		display: block;
	}

	.ceca-footer__col-toggle:checked ~ .ceca-footer__col-title svg {
		transform: rotate(180deg);
	}

	.ceca-footer__links {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease;
	}

	.ceca-footer__col-toggle:checked ~ .ceca-footer__links {
		max-height: 420px;
		padding-bottom: 16px;
	}

	/* Legal joins the accordion list. */
	.ceca-footer__col--legal {
		display: block;
	}

	.ceca-footer__legal {
		display: none;
	}

	/* Socials centered, copyright beneath. */
	.ceca-footer__bottom {
		flex-direction: column-reverse;
		gap: 16px;
		margin-top: 28px;
	}

	.ceca-footer__meta {
		justify-content: center;
	}
}

/* Mobile design pass (Figma 2372:7357): four accordions only — Legal is a
   flat left-aligned stack (© then the legal links) beneath LEFT-aligned
   social icons. Overrides the earlier centred-mobile treatment. */
@media (max-width: 767px) {
	.ceca-footer__col--legal {
		display: none;
	}

	.ceca-footer__legal {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin: 0;
		padding: 0;
	}

	.ceca-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 28px;
		margin-top: 32px;
	}

	.ceca-footer__meta {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 10px;
	}

	.ceca-footer__social {
		margin: 0;
	}

	.ceca-footer .ceca-footer__col-title {
		padding: 10px 0;
		font-size: 20px;
		line-height: 28px;
	}
}

/* --- Bottom row: copyright + legal | socials | "Made by" credit -----------
   Three columns on desktop/tablet, socials centred (user, 2026-10-06).
   Explicit grid columns keep each group in its slot even when one is
   switched off. */
@media (min-width: 768px) {
	.ceca-footer__bottom {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 20px 32px;
	}

	.ceca-footer__meta {
		grid-column: 1;
		justify-self: start;
	}

	.ceca-footer__social {
		grid-column: 2;
		justify-self: center;
	}

	.ceca-footer__credit {
		grid-column: 3;
		justify-self: end;
	}
}

.ceca-footer .ceca-footer__credit,
.ceca-footer .ceca-footer__credit:visited,
.ceca-footer .ceca-footer__credit:hover,
.ceca-footer .ceca-footer__credit:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ceca-f-bottom);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.ceca-footer .ceca-footer__credit:hover,
.ceca-footer .ceca-footer__credit:focus-visible {
	opacity: 0.75;
}

.ceca-footer__credit-logo {
	display: block;
	width: auto;
	height: 21px; /* 25% smaller than the first 28px (user, 2026-10-06) */
}

/* Phones: socials, then © + legal, then the credit last. */
@media (max-width: 767px) {
	.ceca-footer__bottom {
		flex-direction: column;
	}

	.ceca-footer__social {
		order: 0;
	}

	.ceca-footer__meta {
		order: 1;
	}

	.ceca-footer__credit {
		order: 2;
	}
}
