/*
 * Footer — Naccarato Insurance
 *
 * Measured from the approved design (SUBPAGES auto -4.png, 1300px wide, so
 * measurements are 1:1 CSS px):
 *
 *   light band   #F4F4F4, 149px tall, holding the 280×117 logo centred
 *   footer band  #D1D1D3, starts below it
 *     CTA        227×47, 38px below the band's top edge
 *     links      789px wide
 *     seals      715px wide
 *     states     851px wide
 *     towns      845px wide  (wide — three lines, not a narrow column)
 *     offices    568px wide  (narrow and centred, not spread out)
 *
 * Depends on tokens.css.
 */

/* ===================================================================
 * Logo band — its own light strip above the footer proper
 * =================================================================== */

.site-footer__badge {
	display: flex;
	justify-content: center;
	padding-block: var(--space-4);
	background-color: var(--color-bg-alt);
}

.site-footer__badge img {
	/* Block, so the link wrapped around it adds no baseline gap below. */
	display: block;
	width: auto;
	max-height: 117px;
}

/* ===================================================================
 * Footer band
 * =================================================================== */

.site-footer {
	background-color: var(--color-bg-footer);
	color: var(--color-text);
	padding-block: var(--space-10) var(--space-16);
	text-align: center;
}

.site-footer__inner > * + * {
	margin-top: var(--space-10);
}

/* ===================================================================
 * CTA
 * =================================================================== */

.site-footer__cta {
	display: flex;
	justify-content: center;
}

/* ===================================================================
 * Link list
 *
 * Centred and wrapping. Each pipe is drawn inside the column gap, so it
 * takes no room of its own: main.js hides the one at the end of each row
 * (.is-row-end) without the rows reflowing. Without JS they just show.
 * =================================================================== */

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2) calc(var(--space-4) * 2);
	max-width: 800px;
	margin-inline: auto;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
}

.footer-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

/* Pipe separators between links, drawn rather than typed. */
.footer-nav__item:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: calc(var(--space-4) * -1);
	transform: translate(50%, -50%);
	color: var(--color-text-muted);
	content: "|";
}

.footer-nav__item.is-row-end::after {
	content: none;
}

.footer-nav__list a {
	color: var(--color-text);
	text-decoration: none;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus {
	color: var(--color-primary);
	text-decoration: underline;
}

/* ===================================================================
 * Affiliation seals
 * =================================================================== */

.site-footer__seals {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-6) var(--space-12);
	max-width: 715px;
	margin-inline: auto;
	padding: 0;
	list-style: none;
}

.site-footer__seals li {
	margin: 0;
}

/*
 * 95px lands the row at ~718px against the design's measured 715px. The
 * seals are not uniform height in the art — BIG I sits shorter than the
 * rest — so capping the height and letting width follow matches it closely.
 */
.site-footer__seals img {
	width: auto;
	max-height: 95px;
}

/* ===================================================================
 * Legal text
 * =================================================================== */

/*
 * Prominent in the design: this line runs to ~851px of the 1300px page, which
 * measures out at roughly 25px — noticeably larger than the legal copy below.
 */
.site-footer__states {
	font-size: var(--fs-h5);
	font-weight: var(--fw-medium);
}

/*
 * Deliberately wide: the design runs this to ~845px so it sits on three
 * lines. Constraining it to a reading measure would stretch it to five and
 * unbalance the block.
 */
.site-footer__towns {
	max-width: 845px;
	margin-inline: auto;
	color: var(--color-text-muted);
	font-size: var(--fs-xs);
	line-height: var(--lh-body);
}

.site-footer__legal {
	max-width: 620px;
	margin-inline: auto;
	color: var(--color-text-muted);
	font-size: var(--fs-xs);
	line-height: var(--lh-body);
}

.site-footer__legal a {
	color: var(--color-text-muted);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus {
	color: var(--color-primary);
}

/* ===================================================================
 * Office list
 *
 * Narrow and centred in the design — the three columns sit together in the
 * middle rather than spreading across the full width.
 * =================================================================== */

.office-list {
	display: grid;
	gap: var(--space-4) var(--space-8);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	max-width: 620px;
	margin-inline: auto;
	padding: 0;
	list-style: none;
}

.office-list__item {
	margin: 0;
}

.office-list__address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: var(--fs-xs);
	font-style: normal;
	line-height: 1.5;
}

.office-list__street,
.office-list__locality {
	font-weight: var(--fw-medium);
}

.office-list__address a {
	color: var(--color-text);
	text-decoration: none;
}

.office-list__address a:hover,
.office-list__address a:focus {
	color: var(--color-primary);
}

/* ===================================================================
 * Social icons — very bottom of the footer, centred under the offices
 * (client, 2026-12-01). Same brand-red rings as the header; 44px touch
 * target around a 28px ring.
 * =================================================================== */

.footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin: var(--space-6) 0 0;
	padding: 0;
	list-style: none;
}

.footer-social li {
	margin: 0;
}

.footer-social__link {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	transition: color var(--transition-fast);
}

.footer-social__link:hover,
.footer-social__link:focus {
	color: var(--color-accent);
}

.footer-social .social-icon {
	width: 28px;
	height: 28px;
}

.footer-social .social-icon circle {
	stroke-width: 2.2;
}
