/*
 * Footer — Astra's footer builder restyled with the app's surfaces.
 * Layout (set in Customizer → Footer Builder): above row = pitch widget | contact + social; below row = legal menu | copyright.
 * Texts live in Appearance → Widgets (pitch, per language), Menus (legal links, per language) and the footer builder (e-mail).
 */
footer.site-footer {
	--sc-footer-pad: clamp(1.5rem, 5vw, 2.5rem);   /* a little roomier than the page gutter */
	background: var(--sc-surface);
	border-top: 1px solid var(--sc-hairline);
	color: var(--sc-text-muted);
	font-size: 0.9rem;
}

footer.site-footer .site-above-footer-wrap[data-section],
footer.site-footer .site-primary-footer-wrap[data-section],
footer.site-footer .site-below-footer-wrap[data-section] {
	background: transparent;
	border: 0;
}

/* Side padding like the page content: the 1200px content column keeps side padding on both sides, so on narrow screens
   the footer text no longer touches the screen edge and on wide ones it lines up with the sections above. */
footer.site-footer .site-above-footer-inner-wrap,
footer.site-footer .site-below-footer-inner-wrap,
footer.site-footer .site-above-footer-wrap .ast-builder-grid-row,
footer.site-footer .site-below-footer-wrap .ast-builder-grid-row {   /* Astra's own `max-width: 1200px` sits on the grid row */
	box-sizing: border-box;
	max-width: calc(var(--sc-wide) + 2 * var(--sc-footer-pad));
	padding-inline: var(--sc-footer-pad);
}

footer.site-footer .site-above-footer-wrap[data-section] {
	padding: 3rem 0 2rem;
}

footer.site-footer .site-above-footer-inner-wrap {
	gap: 2rem 4rem;
	align-items: start;
}

footer.site-footer .site-above-footer-wrap .ast-builder-grid-row {
	grid-template-columns: 1.4fr 1fr;
}

/* ---- pitch widget: heading + line + button */
footer.site-footer .footer-widget-area[data-section] .widget-title {
	text-align: left;
	margin: 0 0 0.6rem;
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	color: var(--sc-text);
}

footer.site-footer .footer-widget-area[data-section] .textwidget,
footer.site-footer .footer-widget-area[data-section] .uabb-subheading {
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--sc-text-muted);
}

footer.site-footer .widget { margin-bottom: 1rem; }

footer.site-footer .site-below-footer-inner-wrap { align-items: center; }
/* Legal links: one left-aligned block of 3 columns (2 on tablets, 1 on phones), copyright underneath. */
footer.site-footer .site-below-footer-wrap .ast-builder-grid-row {
	grid-template-columns: 1fr;
	row-gap: 1rem;
}

footer.site-footer .site-footer-below-section-1,
footer.site-footer .site-footer-below-section-2 {
	justify-content: flex-start;
	text-align: left;
}

footer.site-footer #astra-footer-menu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem 2rem;
	justify-content: start;
	text-align: left;
}

footer.site-footer #astra-footer-menu .menu-item { display: block; }

/* the "Join today" widget is a <button><a>: the <a> is the primary button (buttons.css); the <button> is only a wrapper */
footer.site-footer .widget_custom_html button {
	padding: 0;
	border: 0;
	border-radius: var(--sc-radius-pill);
	background: none;
	box-shadow: none;
}

footer.site-footer .widget_custom_html button a {
	color: var(--sc-text) !important;   /* the widget carries an inline style="color:white" */
}

/* ---- contact + social */
footer.site-footer .ast-footer-html-1 .ast-builder-html-element,
footer.site-footer .ast-footer-html-1 p {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 600;
}

footer.site-footer a {
	color: var(--sc-accent);
	text-decoration: none;
}

footer.site-footer a:hover { color: var(--sc-text); }

footer.site-footer .footer-social-inner-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

footer.site-footer .ast-builder-social-element {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--sc-hairline);
	border-radius: var(--sc-radius-pill);
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: var(--sc-text-muted);
	transition: border-color 0.15s, color 0.15s;
}

footer.site-footer .ast-builder-social-element:hover {
	border-color: rgba(238, 238, 238, 0.28);
	color: var(--sc-text);
}

footer.site-footer .ast-builder-social-element svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ---- legal menu + copyright */
footer.site-footer .site-below-footer-wrap[data-section] {
	padding: 1rem 0;
	border-top: 1px solid var(--sc-hairline);
}

footer.site-footer .footer-nav-wrap .menu-link {
	padding: 4px 0;
	font-size: 13px;
	color: var(--sc-text-muted);
}

/* Astra writes `#astra-footer-menu .menu-item > a { color: #fff }` inline from the Customizer. */
footer.site-footer #astra-footer-menu .menu-item > a { color: var(--sc-text-muted); }
footer.site-footer .footer-nav-wrap .menu-link:hover,
footer.site-footer #astra-footer-menu .menu-item > a:hover { color: var(--sc-text); }

footer.site-footer .ast-footer-copyright {
	font-size: 13px;
	color: var(--sc-text-muted);
}

@media (max-width: 921px) {
	footer.site-footer .ast-builder-grid-row-container-inner {
		padding-inline: 1.25rem;
	}

	footer.site-footer .footer-nav-wrap ul,
	footer.site-footer .site-footer-section { justify-content: flex-start; text-align: left; }

	footer.site-footer .site-above-footer-wrap .ast-builder-grid-row {
		grid-template-columns: 1fr;
	}

	footer.site-footer .site-above-footer-wrap[data-section] { padding: 2rem 0 1rem; }
}

@media (max-width: 921px) {
	footer.site-footer #astra-footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 544px) {
	footer.site-footer #astra-footer-menu { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	footer.site-footer .ast-builder-social-element { transition: none; }
}

/* Social buttons: Astra tints their label light blue (#e7f6ff); the app's near-white instead. */
footer.site-footer .ast-builder-social-element,
footer.site-footer .ast-builder-social-element * {
	color: var(--sc-text);
}

/* Astra adds its own 20px side padding on this wrapper; the gutter above replaces it. */
footer.site-footer .ast-builder-grid-row-container-inner {
	padding-inline: 0;
}
