/* ============================================================
   CSA Footer widget
   ============================================================ */

.csa-footer {
	--csa-footer-max-width: 1280px;
	--csa-footer-side-padding: 32px;
	--csa-footer-accent: #0E2A56;
	--csa-footer-divider: #0E2A56;
	width: 100%;
	background-color: #fff;
	font-family: inherit;
}

.csa-footer__inner {
	max-width: var(--csa-footer-max-width);
	margin: 0 auto;
	padding: 64px var(--csa-footer-side-padding);
	display: grid;
	grid-template-columns: 1.4fr 1px 1fr 1.2fr;
	grid-template-areas: "brand divider nav contact";
	gap: 48px;
	align-items: start;
}

/* ---------- Brand (logo + tagline + social) ---------- */

.csa-footer__brand {
	grid-area: brand;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.csa-footer__logo {
	display: inline-block;
	text-decoration: none;
}

.csa-footer__logo img {
	display: block;
	width: var(--csa-footer-logo-width, 160px);
	height: auto;
}

.csa-footer__logo-text {
	margin: 0;
	color: var(--csa-footer-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 56px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 2px;
}

.csa-footer__tagline {
	margin: 0;
	max-width: 360px;
	color: var(--csa-footer-accent);
	font-size: 16px;
	line-height: 1.5;
}

.csa-footer__social {
	display: flex;
	gap: 14px;
}

.csa-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--csa-footer-accent);
	border-radius: 50%;
	color: var(--csa-footer-accent);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.csa-footer__social-link:hover {
	background-color: var(--csa-footer-accent);
	color: #fff;
}

.csa-footer__social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.csa-footer__social-link i {
	font-size: 18px;
}

/* ---------- Vertical divider ---------- */

.csa-footer__divider {
	grid-area: divider;
	width: 1px;
	align-self: stretch;
	background-color: var(--csa-footer-divider);
}

/* ---------- Navigation column ---------- */

.csa-footer__nav {
	grid-area: nav;
}

.csa-footer__nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.csa-footer__nav-list a {
	color: var(--csa-footer-accent);
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.csa-footer__nav-list a:hover {
	opacity: 0.7;
}

/* ---------- Contact column ---------- */

.csa-footer__contact {
	grid-area: contact;
}

.csa-footer__contact-title {
	margin: 0 0 24px;
	color: var(--csa-footer-accent);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.csa-footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.csa-footer__contact-item {
	color: var(--csa-footer-accent);
	font-size: 16px;
	line-height: 1.4;
}

.csa-footer__contact-item a {
	color: inherit;
	text-decoration: none;
}

.csa-footer__contact-item a:hover {
	text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: brand on top, nav + contact side by side below. */
@media (max-width: 1024px) {
	.csa-footer__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"brand brand"
			"divider divider"
			"nav contact";
		padding: 56px var(--csa-footer-side-padding);
	}

	.csa-footer__divider {
		width: 100%;
		height: 1px;
		align-self: auto;
	}
}

/* Mobile: single-column stack. */
@media (max-width: 600px) {
	.csa-footer__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"divider"
			"nav"
			"contact";
		padding: 40px var(--csa-footer-side-padding);
	}

	.csa-footer__logo-text {
		font-size: 44px;
	}

	.csa-footer__tagline {
		max-width: none;
	}

	.csa-footer__contact-title {
		margin-bottom: 16px;
	}
}
