/**
 * Native site footer.
 * Cream background: links use --emt-text-strong to keep AA contrast.
 */

.emt-site-footer {
	color: var(--emt-text-strong);
	background-color: var(--emt-cream);
	border-top: 1px solid var(--emt-gold-soft);
}

.emt-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

/* Brand column */
.emt-site-footer__brand .custom-logo {
	display: block;
	width: clamp(180px, 40vw, 230px);
	max-width: 100%;
	height: auto;
	max-height: 56px;
	object-fit: contain;
	object-position: left center;
}

.emt-site-footer__description {
	max-width: 34ch;
	margin: 1.1rem 0 0;
	font-size: var(--emt-fs-ui);
	line-height: 1.7;
}

.emt-site-footer__tagline {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 1rem 0 0;
	font-family: var(--emt-font-heading);
	font-size: var(--emt-fs-ui);
	font-weight: var(--emt-fw-semibold);
	color: var(--emt-primary);
}

.emt-site-footer__tagline::before {
	flex-shrink: 0;
	width: 20px;
	height: 1px;
	content: "";
	background: var(--emt-gold-border);
}

/* Column headings */
.emt-site-footer__title {
	margin: 0 0 0.8rem;
	font-family: var(--emt-font-ui);
	font-size: var(--emt-fs-sm);
	font-weight: var(--emt-fw-semibold);
	line-height: 1.4;
	letter-spacing: var(--emt-tracking-caps);
	color: var(--emt-heading);
	text-transform: uppercase;
}

/* Link lists */
.emt-footer-menu {
	display: grid;
	gap: 0.15rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.emt-footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	font-size: var(--emt-fs-ui);
	line-height: 1.4;
	color: var(--emt-text-strong);
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color var(--emt-duration) var(--emt-ease);
}

.emt-footer-menu a:hover {
	color: var(--emt-primary);
	text-decoration: underline;
	text-decoration-color: var(--emt-gold-soft);
}

.emt-footer-menu .current-menu-item > a,
.emt-footer-menu .current_page_item > a,
.emt-footer-menu a[aria-current="page"] {
	color: var(--emt-primary);
}

/* The plugin's membership badge is header-only; neutralise it in footer menus. */
.emt-theme .emt-footer-menu .em-has-membership-badge > a {
	display: inline-flex !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.emt-theme .emt-footer-menu .em-membership-badge {
	display: none;
}

.emt-footer-contact {
	margin-top: 1.25rem;
	font-size: var(--emt-fs-ui);
}

.emt-footer-contact__label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: var(--emt-fs-sm);
	color: var(--emt-text-strong);
}

.emt-footer-contact a {
	font-weight: var(--emt-fw-medium);
	color: var(--emt-primary);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.emt-footer-contact a:hover {
	text-decoration: underline;
}

/* Social links (rendered only when real URLs are supplied) */
.emt-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 1.25rem 0 0;
	list-style: none;
}

.emt-social a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.8rem;
	font-family: var(--emt-font-ui);
	font-size: var(--emt-fs-xs);
	font-weight: var(--emt-fw-medium);
	color: var(--emt-primary);
	text-decoration: none;
	background: var(--emt-white);
	border: 1px solid var(--emt-border);
	border-radius: var(--emt-radius-pill);
	transition: border-color var(--emt-duration) var(--emt-ease), background-color var(--emt-duration) var(--emt-ease);
}

.emt-social a:hover {
	background: var(--emt-warm-white);
	border-color: var(--emt-gold-soft);
}

/* Bottom bar */
.emt-site-footer__bottom {
	padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--emt-divider);
}

.emt-site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: center;
}

.emt-site-footer__copyright {
	margin: 0;
	font-size: var(--emt-fs-sm);
	color: var(--emt-text-strong);
	text-align: center;
}
