/* ==========================================================================
   Site Footer — dark multi-column footer + get-started + sub-bar.
   Ported from the documentation (block-footer). Tokens from common.css;
   inner content uses .wrap (follows the site width system). Column count is
   selectable (3 / 4 / 5) from Site Settings → Footer.
   ========================================================================== */

.site-footer {
	background: var(--dark);
	color: #aeb8cc;
	padding: 64px 0 30px;
}

.foot-grid {
	display: grid;
	gap: 32px;
	/* Full template is injected inline (--foot-grid-cols) so the Get-Started column
	   can be wider (1.5fr) like the reference; the media queries below still collapse
	   it on tablet/mobile. */
	grid-template-columns: var(--foot-grid-cols, repeat(4, minmax(0, 1fr)));
}

/* Widget titles (before_title) + any h4 = the column heading. */
.foot-col h4,
.foot-col .foot-col-title,
.foot-col .widget-title,
.foot-col .widgettitle {
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .6px;
	margin: 0 0 16px;
	font-weight: 700;
}
/* Navigation Menu widget lists inside a footer column. */
.foot-col .menu,
.foot-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.foot-col a {
	display: block;
	font-size: 14.5px;
	margin-bottom: 11px;
	color: #aeb8cc;
	transition: color .14s;
}
.foot-col a:hover { color: #fff; }
.foot-col p { font-size: 14.5px; color: #aeb8cc; margin: 0 0 11px; }
.foot-widget + .foot-widget { margin-top: 16px; }

/* A CTA button inside a footer column stays an inline-flex button (the
   .foot-col a display:block rule would otherwise stack the arrow below). */
.foot-col .btn {
	display: inline-flex;
	margin-bottom: 18px;
}
.foot-contact {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 14px;
	font-size: 14px;
	color: #aeb8cc;
	line-height: 1.5;
}
.foot-contact svg { flex: 0 0 18px; margin-top: 2px; color: #6f9bf0; }
.foot-contact a { display: inline; margin: 0; }

/* Sub-bar */
.foot-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	margin-top: 44px;
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13.5px;
	color: #7f8aa3;
}
/* Sub-bar layout exactly like the reference: copyright | socials | legal, all as
   direct flex children of .foot-bottom (space-between + centred). display:contents
   promotes the two left widgets (copyright, socials) to be siblings of the legal
   widget, so the socials sit in the CENTRE and align vertically with the text —
   no absolute positioning needed. */
.foot-bottom-left {
	display: contents;
}
/* Legal links = a Nav Menu widget in footer-bottom-right — render inline. */
.foot-bottom-right .foot-widget { margin: 0; }
.foot-bottom-right .menu,
.foot-bottom-right ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}
.foot-bottom-right a {
	display: inline;
	margin: 0;
	font-size: 13.5px;
	color: #7f8aa3;
	transition: color .14s;
}
.foot-bottom-right a:hover { color: #fff; }
/* Copyright text widget sits inline in the left group. */
.foot-bottom-left .foot-widget { margin: 0; }
.foot-bottom-left p { margin: 0; }

.socials-f { display: flex; gap: 10px; }
.socials-f a {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: rgba(255, 255, 255, .06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cdd6e8;
	transition: .16s;
}
.socials-f a:hover { background: var(--brand); color: #fff; }

/* Long strings (e.g. the contact email) must wrap, never widen the column. */
.foot-col,
.foot-contact { min-width: 0; overflow-wrap: anywhere; }

/* Responsive — same breakpoints as the reference footer: 3 columns on tablet,
   1 column on mobile. */
@media (max-width: 900px) {
	.foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.foot-grid { grid-template-columns: 1fr; }
	/* Stack the sub-bar left-aligned (not centred). */
	.foot-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}
