/**
 * Custom Footer Styles
 * Replaces Elementor footer (post-1520).
 */

/* ========== FOOTER TOKENS ========== */
.site-footer {
	--ftr-bg: #DFDAD4;
	--ftr-color: #161413;
	--ftr-color-hover: #92673F;
	--ftr-font: 'Filosofia', serif;
}

/* ========== Override Hello Elementor theme constraints ========== */
.site-footer#site-footer,
.site-footer#site-footer .footer-inner {
	max-width: none !important;
}

.site-footer#site-footer {
	padding-block-start: 0;
	padding-block-end: 0;
	padding: 0;
}

/* ========== FOOTER LAYOUT ========== */
.site-footer {
	background-color: var(--ftr-bg);
	padding: 0 5vw;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 60px 0 55px;
}

/* ========== THREE COLUMN GRID ========== */
.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
	max-width: 1600px;
	padding: 0 30px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.footer-col h4 {
	font-family: var(--ftr-font);
	font-size: 26px;
	font-weight: 400;
	text-transform: capitalize;
	line-height: 18px;
	letter-spacing: 0;
	color: var(--ftr-color);
	text-align: center;
	margin: 0;
}

/* ========== ICON LINK LISTS ========== */
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.footer-links li {
	padding: 7.5px 0;
}

.footer-links li:first-child {
	padding-top: 0;
}

.footer-links li:last-child {
	padding-bottom: 0;
}

/* High specificity to override global a color from Elementor kit */
.site-footer .footer-links a,
.site-footer .footer-links a:visited {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--ftr-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1em;
	letter-spacing: 0.5px;
	color: var(--ftr-color) !important;
	text-decoration: none;
	transition: color 0.3s;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
	color: var(--ftr-color-hover) !important;
}

.site-footer .footer-links svg {
	fill: var(--ftr-color);
	flex-shrink: 0;
	transition: fill 0.3s;
}

.site-footer .footer-links a:hover svg {
	fill: var(--ftr-color-hover);
}

/* ========== DONATE SECTION ========== */
.footer-donate {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin-top: 55px;
	text-align: center;
}

.footer-donate p {
	font-family: var(--ftr-font);
	color: var(--ftr-color);
	margin: 0;
}

/* Donate button — self-contained, no dependency on home.css */
.site-footer a#btn-donate,
.site-footer a#btn-donate:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ftr-font);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 2.5px;
	line-height: 1em;
	color: var(--ftr-color) !important;
	background: transparent;
	border: 1px solid #8A7F7F;
	border-radius: 100px;
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.5s ease;
	text-decoration: none;
}

.site-footer a#btn-donate:hover,
.site-footer a#btn-donate:focus {
	background-color: #C3ABA1;
	color: var(--ftr-color) !important;
}

.site-footer #btn-donate svg {
	fill: var(--ftr-color);
}

/* ========== COPYRIGHT ========== */
.footer-copyright {
	padding-top: 25px;
	text-align: center;
}

.site-footer .footer-copyright a,
.site-footer .footer-copyright a:visited {
	font-family: var(--ftr-font);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5em;
	color: var(--ftr-color) !important;
	text-decoration: none;
}

.site-footer .footer-copyright a:hover {
	color: var(--ftr-color-hover) !important;
}

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 1024px) {
	.site-footer {
		padding: 0 4vw;
	}

	.footer-col h4 {
		font-size: 24px;
	}

	.site-footer .footer-links a {
		font-size: 16px;
	}

	.footer-links li {
		padding: 5px 0;
	}

	.footer-donate p {
		font-size: 14px;
	}

	.site-footer .footer-copyright a {
		font-size: 14px;
	}
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 767px) {
	.site-footer {
		padding: 0 3vw;
	}

	.footer-inner {
		padding: 30px 0;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.site-footer .footer-links a {
		font-size: 16px;
	}

	.site-footer .footer-links svg {
		width: 16px;
		height: 16px;
	}

	.footer-donate {
		margin-top: 30px;
	}

	.footer-copyright {
		padding-top: 30px;
	}

	.site-footer .footer-copyright a {
		font-size: 16px;
		line-height: 0.7em;
	}
}
