/**
 * GPL UI – site footer. 2.31.0: design B3, compact (canvas "GPL Footer Ideas"). 2.31.1: white titles, empty logo frame. 2.31.2: G&M Health logo on a white plate.
 * Navy, 4 columns + one bottom line. Markup: inc/gpl-ui/site-footer.php. Child theme only.
 */

#colophon .gpl-footer {
	--gplf-navy: #0a0a70;
	--gplf-bar: #06064f;
	--gplf-pink: #c2185b;
	--gplf-soft: #f6a8c8;
	--gplf-text: #d7d8ef;
	--gplf-pad: 32px;
	/* Bottom line keeps the plugin's fixed "Translate" button spot free (left 20px, ~124px wide). */
	--gplf-left: max(var(--gplf-pad), calc(176px - max(0px, (100vw - 1240px) / 2)));
	background: var(--gplf-navy);
	border-top: 3px solid var(--gplf-pink);
	color: var(--gplf-text);
}

/* Memberlite / Customizer give p, nav, li and a their own sizes – set ours explicitly. */
#colophon .gpl-footer p,
#colophon .gpl-footer li,
#colophon .gpl-footer a {
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 400;
	letter-spacing: normal;
}
#colophon .gpl-footer p { margin: 0; }

#colophon .gpl-footer a {
	color: #ffffff;
	text-decoration: none;
	opacity: 1;
}
#colophon .gpl-footer a:hover,
#colophon .gpl-footer a:focus-visible {
	color: #f6c1d8;
	text-decoration: underline;
}
#colophon .gpl-footer a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	border-radius: 4px;
}

/* 4 columns */
#colophon .gpl-footer__main {
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px var(--gplf-pad) 22px;
	display: grid;
	grid-template-columns: 1.1fr 1.3fr 1fr 1.1fr;
	gap: 28px;
	align-items: start;
}
#colophon .gpl-footer__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

#colophon .gpl-footer__brand {
	display: inline-flex;
	flex-direction: column;
	align-self: flex-start;
	line-height: 1;
}
#colophon .gpl-footer__brand:hover { text-decoration: none; }
/* Logo: empty frame until the real logo file is added (2.31.1). */
#colophon .gpl-footer__logo-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 132px;
	height: 44px;
	border: 1px dashed rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.45);
}
/* Real logo: light version for the navy footer (white + light pink, 2.31.4) – no white plate. */
#colophon .gpl-footer__brand--logo {
	padding: 0;
	background: none;
}
#colophon .gpl-footer__logo-img {
	display: block;
	width: auto;
	height: 40px;
	max-width: 100%;
}
#colophon .gpl-footer p.gpl-footer__addr { font-size: 13px; color: var(--gplf-text); }
#colophon .gpl-footer a.gpl-footer__email { align-self: flex-start; font-size: 13px; font-weight: 700; text-decoration: underline; }

/* Column titles: pink small capitals, links white (2.31.0 look – owner, 2.31.2). */
#colophon .gpl-footer p.gpl-footer__h {
	font-size: 11.5px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gplf-soft);
}

#colophon .gpl-footer__links,
#colophon .gpl-footer__mini {
	margin: 0;
	padding: 0;
	list-style: none;
}
#colophon .gpl-footer__links {
	display: grid;
	gap: 5px 18px;
}
#colophon .gpl-footer__links--2 { grid-template-columns: repeat(2, minmax(0, max-content)); }
#colophon .gpl-footer__links li,
#colophon .gpl-footer__mini li { margin: 0; padding: 0; }
#colophon .gpl-footer__links a { display: inline-flex; align-items: center; gap: 4px; }

/* Need help? column – same top line as the other columns (no card box from 2.31.2; phone keeps a box). */
#colophon .gpl-footer__help {
	align-self: start;
}
#colophon .gpl-footer p.gpl-footer__help-text { color: #ffffff; }
#colophon .gpl-footer a.gpl-footer__contact {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--gplf-pink);
	color: #ffffff;
	font-size: 13.5px;
	line-height: 1;
	font-weight: 700;
	white-space: nowrap;
}
#colophon .gpl-footer a.gpl-footer__contact:hover,
#colophon .gpl-footer a.gpl-footer__contact:focus-visible {
	background: #a3134c;
	color: #ffffff;
	text-decoration: none;
}
#colophon .gpl-footer__mini { display: flex; flex-wrap: wrap; gap: 4px 14px; }
#colophon .gpl-footer__mini a { font-size: 13px; text-decoration: underline; }

/* Bottom line (full-width darker navy; content lines up with the columns) */
#colophon .gpl-footer__bar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 46px;
	padding: 0 max(var(--gplf-pad), calc((100vw - 1240px) / 2 + var(--gplf-pad))) 0 max(var(--gplf-left), calc((100vw - 1240px) / 2 + var(--gplf-pad)));
	background: var(--gplf-bar);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#colophon .gpl-footer__bar .gpl-footer__copy,
#colophon .gpl-footer__bar .gpl-footer__top { white-space: nowrap; }
#colophon .gpl-footer p.gpl-footer__copy { font-size: 12.5px; color: #c9cbe6; }
#colophon .gpl-footer a.gpl-footer__top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	font-size: 12.5px;
	font-weight: 700;
}
#colophon .gpl-footer a.gpl-footer__top:hover,
#colophon .gpl-footer a.gpl-footer__top:focus-visible { text-decoration: none; border-color: #ffffff; }

/* Tablet: 2 × 2 columns. */
@media (max-width: 1023px) {
	#colophon .gpl-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
}

/* Phone: compact single column (owner: keep it short). */
@media (max-width: 767px) {
	#colophon .gpl-footer { --gplf-pad: 16px; --gplf-left: 16px; }
	#colophon .gpl-footer__main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 16px 14px; }
	#colophon .gpl-footer p,
	#colophon .gpl-footer li,
	#colophon .gpl-footer a { font-size: 14px; }
	#colophon .gpl-footer__col { gap: 4px; }
	/* Brand: logo left, email right, address under both. */
	#colophon .gpl-footer__col--brand {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas: "logo email" "addr addr";
		align-items: center;
		column-gap: 12px;
	}
	#colophon .gpl-footer__brand { grid-area: logo; min-height: 40px; justify-content: center; }
	#colophon .gpl-footer a.gpl-footer__email { grid-area: email; justify-self: end; display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
	#colophon .gpl-footer p.gpl-footer__addr { grid-area: addr; font-size: 13.5px; }
	/* Lists: two columns / wrapping rows, 40px tall links. */
	#colophon .gpl-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
	#colophon .gpl-footer__links a { min-height: 40px; }
	/* Need help: one row, no card, no account links (they are in the phone menu). */
	#colophon .gpl-footer__help {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px 12px;
		padding: 12px 14px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.07);
		border: 1px solid rgba(255, 255, 255, 0.14);
	}
	#colophon .gpl-footer__help .gpl-footer__h,
	#colophon .gpl-footer__mini { display: none; }
	#colophon .gpl-footer p.gpl-footer__help-text { flex: 1 1 160px; }
	#colophon .gpl-footer a.gpl-footer__contact { height: 44px; padding: 0 20px; font-size: 14px; }
	/* Bottom line: © then Back to top on the right; the Translate button sits on the left. */
	#colophon .gpl-footer__bar {
		flex-wrap: wrap;
		padding: 8px 16px 6px;
		row-gap: 4px;
	}
	#colophon .gpl-footer__bar .gpl-footer__copy { white-space: normal; flex: 1 1 100%; }
	#colophon .gpl-footer a.gpl-footer__top { margin-left: auto; min-height: 44px; font-size: 14px; }
}
