/* Site footer (partials/site-footer.php). Figma: Event & Commercial Home › Footer 7343:27668 (desktop),
   Headers & Footers 7343:32549 (mobile: link columns collapse into accordions, awards side by side).
   Type: style-guide sizes only (Figma 18px → text-10, 16px → text-11, 14px → text-12; the fluid scale handles mobile).
   Spacing checked against the Figma node positions (2026-10-06, 1920 and 360 wide). */

.fews-footer {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--text-11);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}

/* no browser list / paragraph spacing; the footer's own classes below set theirs */
.fews-footer :where(p, ul, li) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fews-footer a {
	color: inherit;
}

/* text links: the underline grows in on hover (same as the Arrow link button) */
.fews-footer :is(.fews-footer__links, .fews-footer__legal, .fews-footer__bottom) a {
	background: linear-gradient(currentcolor, currentcolor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.3s;
}

.fews-footer :is(.fews-footer__links, .fews-footer__legal, .fews-footer__bottom) a:is(:hover, :focus-visible) {
	color: inherit;
	background-size: 100% 1px;
}

.fews-footer :is(a, summary):focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 2px;
}

/* Accreditations ticker. The logo row is 100px (Figma), taller than the client logos' 77px cap. */
/* Divider lines are inset shadows, not borders: Figma's lines take no space (160px block = 30 + 100 + 30). */
.fews-footer__logos {
	padding-block: 1.875rem;
	box-shadow: inset 0 1px var(--wp--preset--color--border), inset 0 -1px var(--wp--preset--color--border);
}

.fews-footer .wp-block-gallery.has-nested-images.is-style-marquee figure.wp-block-image img {
	max-block-size: 100%;
}

.fews-footer__main {
	display: grid;
	gap: 1.5625rem;
	box-sizing: content-box;
	max-inline-size: 80.9375rem;
	margin-inline: auto;
	padding: 1.875rem 1.25rem;
}

/* Figma: columns 350 / 172 / 162 / 162 / 141 wide, spread over 1283.7px (74px apart) */
.fews-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 2.5rem;
	max-inline-size: 80.23rem;
}

.fews-footer__brand {
	display: flex;
	flex: 0 1 21.875rem;
	flex-direction: column;
	gap: 0.9375rem;
}

.fews-footer__logo {
	inline-size: 9.375rem;
}

.fews-footer__logo img,
.fews-footer__awards img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.fews-footer__address {
	font-size: var(--wp--preset--font-size--text-10);
	line-height: 1.6; /* Figma 30px at 18px */
}

.fews-footer__company {
	max-inline-size: 21.875rem;
}

.fews-footer__social {
	display: flex;
	gap: 1.25rem;
	margin-block-start: 0.9375rem; /* 30px below the company line */
}

.fews-footer__social a {
	display: block;
}

.fews-footer__social a:hover {
	color: var(--wp--preset--color--primary);
}

.fews-footer__social svg {
	display: block;
}

.fews-footer__menus {
	display: contents;
}

.fews-footer__menu {
	min-inline-size: 10.125rem;
}

.fews-footer__menu > summary {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--text-11);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1875em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	list-style: none;
}

.fews-footer__menu > summary::-webkit-details-marker {
	display: none;
}

/* 18/27 links, 34px apart */
.fews-footer__links {
	display: grid;
	justify-items: start;
	gap: 0.4375rem;
	font-size: var(--wp--preset--font-size--text-10);
	line-height: 1.5;
}

.fews-footer__awards {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 1rem;
	inline-size: 8.8125rem;
}

.fews-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.625rem 2.5rem;
	padding-block-start: 1.5625rem;
	box-shadow: inset 0 1px var(--wp--preset--color--border);
}

.fews-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3125rem 0.625rem;
}

/* trailing bullet, so a wrapped line ends with it (Figma mobile) */
.fews-footer__legal li:not(:last-child)::after {
	content: "•";
	margin-inline-start: 0.625rem;
	font-size: var(--wp--preset--font-size--text-12);
}

.fews-footer__credit strong {
	font-weight: 600;
}

/* Desktop and tablet: link columns always open, the summary is just the column heading.
   ponytail: ::details-content (Chrome 131, Safari 18.4, Firefox 143); older browsers show the columns closed but
   clickable. */
@media (width > 782px) {
	.fews-footer__menu > summary {
		margin-block-end: 1.25rem;
		cursor: default;
	}

	.fews-footer__menu::details-content {
		content-visibility: visible;
		block-size: auto;
	}
}

/* Narrow desktop and tablet: the brand down the left over two rows, the three menus beside it, the awards side by side
   under the menus (no empty space next to the brand) */
@media (782px < width < 1100px) {
	.fews-footer__top {
		display: grid;
		grid-template-columns: minmax(14rem, 21.875rem) repeat(3, minmax(9.5rem, 1fr));
		gap: 2.5rem 1.25rem;
	}

	.fews-footer__brand {
		grid-row: span 2;
	}

	.fews-footer__menu {
		min-inline-size: 0;
	}

	.fews-footer__awards {
		grid-column: 2 / -1;
		flex-direction: row;
		inline-size: auto;
	}

	.fews-footer__awards img {
		inline-size: 8.8125rem;
	}
}

/* Mobile and tablet portrait: accordions with a + / − marker, divider lines between them */
@media (width <= 782px) {
	/* Figma mobile: logos 0.86× the desktop size in a 76–86px row, ~46px apart. ponytail: zoom scales the whole
	   strip (inline logo widths included) instead of a second set of widths. */
	.fews-footer .wp-block-gallery.is-style-marquee {
		--fews-marquee-gap: 3.35rem;
		zoom: 0.86;
	}

	/* 25px sides, 20px between blocks */
	.fews-footer__main {
		gap: 1.25rem;
		padding-inline: 1.5625rem;
	}

	.fews-footer__top {
		flex-direction: column;
		gap: 1.25rem;
	}

	.fews-footer__brand {
		flex-basis: auto;
	}

	.fews-footer__address {
		font-size: var(--wp--preset--font-size--text-11);
		line-height: 1.5;
	}

	.fews-footer__company {
		font-size: var(--wp--preset--font-size--text-12);
		line-height: 1.5;
	}

	.fews-footer__social {
		margin-block-start: 0.3125rem; /* 20px below the company line */
	}

	/* not in Figma (accordions are closed there): one step down from desktop, like the address */
	.fews-footer__links {
		font-size: var(--wp--preset--font-size--text-11);
	}

	.fews-footer__menus {
		display: block;
		box-shadow: inset 0 -1px var(--wp--preset--color--border);
	}

	.fews-footer__menu {
		padding-block: 0.9375rem;
		box-shadow: inset 0 1px var(--wp--preset--color--border);
	}

	.fews-footer__menu > summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		min-block-size: 1.875rem;
		cursor: pointer;
	}

	.fews-footer__menu > summary::after {
		content: "";
		flex: none;
		inline-size: 1.4375rem;
		block-size: 1.4375rem;
		background:
			linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast)) center / 100% 1px no-repeat,
			linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast)) center / 1px 100% no-repeat;
	}

	.fews-footer__menu[open] > summary::after {
		background-size: 100% 1px, 0 0;
	}

	.fews-footer__links {
		padding-block: 0.9375rem 0.3125rem;
	}

	/* the two awards side by side in 141px cells */
	.fews-footer__awards {
		display: grid;
		grid-template-columns: repeat(2, 8.8125rem);
		justify-content: space-between;
		align-items: start;
		inline-size: auto;
	}

	.fews-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		padding-block-start: 1.25rem;
		font-size: var(--wp--preset--font-size--text-12);
	}

	.fews-footer__legal {
		gap: 0.3125rem;
	}

	.fews-footer__legal li:not(:last-child)::after {
		margin-inline-start: 0.3125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fews-footer a {
		transition: none;
	}
}
