/* Section styles. Values via var(--token) only - see assets/css/tokens.css.
 *
 * Breakpoints follow the Elementor kit the site was built on: tablet at
 * 1024, mobile at 767. Media conditions are the only place raw sizes appear.
 */

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--color-navy);
	color: var(--color-navy);
	font: var(--sgp-weight-regular) var(--sgp-text-16) var(--sgp-font);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-blue);
	font-weight: var(--sgp-weight-medium);
	text-decoration: none;
}

/* No single word left alone on a paragraph's last line. */
p,
li {
	text-wrap: pretty;
}

p {
	margin: 0 0 var(--space-8);
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0;
}

button {
	font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: inherit;
	font-family: var(--sgp-font);
	font-weight: var(--sgp-weight-regular);
	text-wrap: balance; /* wrapped headings split into even lines */
}

.h1,
h1 {
	font: var(--sgp-weight-bold) var(--sgp-text-80) var(--sgp-font);
}

.h2,
h2 {
	font: var(--sgp-weight-regular) var(--sgp-text-45) var(--sgp-font);
}

.h3,
h3 {
	font: var(--sgp-weight-regular) var(--sgp-text-36) var(--sgp-font);
}

.h4,
h4 {
	font: var(--sgp-weight-regular) var(--sgp-text-24) var(--sgp-font);
}

.h5,
h5 {
	font: var(--sgp-weight-light) var(--sgp-text-20) var(--sgp-font);
}

.h6,
h6 {
	font: var(--sgp-weight-regular) var(--sgp-text-16) var(--sgp-font);
}

/* Eyebrow above a heading: "OUR SERVICES", "THE TOTAL PACKAGE". */
.eyebrow {
	font: var(--sgp-weight-semibold) var(--sgp-text-16) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}

.eyebrow--lg {
	font: var(--sgp-weight-medium) var(--sgp-text-20) var(--sgp-font);
}

/* Small caps label: card tags, list headings, footer headings. */
.label {
	font: var(--sgp-weight-semibold) var(--sgp-text-16) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}


.lead {
	font: var(--sgp-weight-light) var(--sgp-text-20) var(--sgp-font);
}

.text-18 {
	font: var(--sgp-weight-regular) var(--sgp-text-16) var(--sgp-font);
}

.text-22 {
	font: var(--sgp-weight-regular) var(--sgp-text-22) var(--sgp-font);
}

.weight-medium {
	font-weight: var(--sgp-weight-medium);
}

.weight-semibold {
	font-weight: var(--sgp-weight-semibold);
}

.weight-bold {
	font-weight: var(--sgp-weight-bold);
}

.rich > * + ul,
.rich > * + ol {
	margin-top: var(--space-8);
}

.rich ul,
.rich ol {
	padding-left: var(--space-40);
}

.rich a {
	color: inherit;
	text-decoration: underline;
}

.caps-exact {
	text-transform: none;
}

.screen-reader-text {
	position: absolute;
	width: var(--border-1);
	height: var(--border-1);
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: var(--space-8) var(--space-16);
	background: var(--color-white);
	color: var(--color-navy);
	transform: translateY(-100%);
}

.skip-link:focus {
	transform: none;
}

.icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
}

.icon svg {
	width: 100%;
	height: 100%;
}

/* ---------- Layout ---------- */

/* Elementor boxed container: gutter outside, 1400 column inside. */
.section {
	position: relative;
	padding-inline: var(--gutter);
	background-position: center;
	background-size: cover;
}

.wrap {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	gap: var(--space-24);
}

.on-white {
	background-color: var(--color-white);
	color: var(--color-navy);
}

.on-grey {
	background-color: var(--color-grey);
	color: var(--color-navy);
}

.on-navy {
	background-color: var(--color-navy);
	color: var(--color-white);
}

.on-dark {
	color: var(--color-white);
}

/* Section padding steps, top and bottom - the only values the site uses. */
.pt-0 { padding-top: 0; }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }
.pt-48 { padding-top: var(--space-48); }
.pt-72 { padding-top: var(--space-72); }
.pt-96 { padding-top: var(--space-96); }
.pt-200 { padding-top: var(--space-200); }
.pb-0 { padding-bottom: 0; }
.pb-20 { padding-bottom: var(--space-20); }
.pb-24 { padding-bottom: var(--space-24); }
.pb-48 { padding-bottom: var(--space-48); }
.pb-72 { padding-bottom: var(--space-72); }
.pb-96 { padding-bottom: var(--space-96); }
.pb-200 { padding-bottom: var(--space-200); }

.gap-8 { gap: var(--space-8); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }
.gap-24 { gap: var(--space-24); }
.gap-32 { gap: var(--space-32); }
.gap-48 { gap: var(--space-48); }
.gap-72 { gap: var(--space-72); }

.stack {
	display: flex;
	flex-direction: column;
}

.row {
	display: flex;
	flex-direction: row;
}

/* Equal columns that collapse to one at mobile. */
.grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: var(--space-24);
}

/* Buttons: SGP Button in components.css. */

/* ---------- Header ---------- */

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	padding-inline: var(--gutter);
	background-color: var(--color-blue);
	color: var(--color-white);
	transition: background-color var(--sgp-dur-medium) var(--sgp-ease);
}

/* Home: transparent over the hero, blue once the page scrolls past the
   header (main.js sets is-scrolled) or the mega menu opens. */
.site-header--overlay {
	background-color: transparent;
	/* Matches the Services panel, so on close the bar and panel fade as one. */
	transition-duration: var(--reveal-duration);
}

.site-header--overlay.is-open,
.site-header--overlay.is-scrolled {
	background-color: var(--color-blue);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

/* Reserves the fixed header's height on pages whose first section does not
   sit under it. */
.header-spacer {
	height: var(--header-h);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-24);
	max-width: var(--content-max);
	/* The bar is the height the spacer reserves, so content never slips
	   under the header or leaves a strip below it. */
	min-height: var(--header-h);
	margin-inline: auto;
}

.site-header__logo {
	flex: none;
	width: var(--logo-w);
}

.site-header__logo img {
	width: var(--logo-w);
	height: auto;
}

.nav {
	display: flex;
	flex: 1;
	justify-content: flex-end;
	max-width: var(--menu-w);
}

.nav__list {
	display: flex;
	/* Services carries an icon and is taller than the plain links. */
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__item {
	position: static;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	padding: var(--space-8) var(--space-16);
	border: 0;
	background: none;
	color: var(--color-white);
	font: var(--sgp-weight-medium) var(--sgp-text-14) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
	cursor: pointer;
}

.nav__link .icon {
	margin-left: var(--space-8);
}

.nav__link[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Hover follows the shared text-action rule (Tertiary button, inline link):
 * the hover underline. White on the blue bar, so only the underline changes.
 * Services keeps it while its menu is open. */
.nav__link:hover .nav__label,
.nav__link[aria-expanded="true"] .nav__label {
	text-decoration: underline;
	text-decoration-thickness: var(--sgp-underline-hover);
	text-underline-offset: var(--sgp-underline-offset);
}

.nav__link:focus-visible {
	outline: var(--sgp-focus-ring-width) solid var(--sgp-color-on-color);
	outline-offset: var(--sgp-focus-ring-offset);
}

/* .sgp-button aligns itself to the start of a flex line, and components.css
   loads after this file, so the override needs the extra class. */
.site-header .site-header__cta {
	flex: none;
	align-self: center;
}

.site-header .menu-toggle {
	display: none;
}

/* ---------- Mega menu ---------- */

.mega {
	position: absolute;
	top: 100%;
	right: var(--gutter);
	left: var(--gutter);
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--space-32) var(--space-48) var(--space-48);
	border-radius: 0 0 var(--sgp-radius-section) var(--sgp-radius-section);
	background-color: var(--color-white);
	box-shadow: var(--sgp-elevation-transient);
	color: var(--color-navy);
	visibility: hidden;
	/* Slides down out of the header's lower edge: a top-down wipe (clip-path)
	   while the panel drops into place, so it never covers the bar. Open, the
	   clip widens past the edges to keep the panel's shadow. */
	/* Closed, the clip's top matches the lift, so the visible edge stays on the
	   header's lower edge the whole way down. */
	clip-path: inset(var(--space-24) 0 100% 0);
	transform: translateY(calc(-1 * var(--space-24)));
	/* Closing fades the whole panel out; the wipe resets only once it is gone. */
	opacity: 0;
	transition:
		opacity var(--reveal-duration) var(--sgp-ease),
		visibility 0s linear var(--reveal-duration),
		transform 0s linear var(--reveal-duration),
		clip-path 0s linear var(--reveal-duration);
}

.mega.is-open {
	visibility: visible;
	clip-path: inset(0 calc(-1 * var(--space-64)) calc(-1 * var(--space-64)));
	transform: none;
	opacity: 1;
	/* Opening: no fade, the wipe does the revealing (a fading panel would show
	   the page through it mid-slide). */
	transition: transform var(--reveal-duration) var(--sgp-ease), clip-path var(--reveal-duration) var(--sgp-ease);
}

/* ...and once it is open, its intro and the four columns fall in one after
   another on the site's reveal. */
.mega.is-open .mega__intro,
.mega.is-open .mega__col {
	animation: sgp-reveal var(--reveal-duration) var(--sgp-ease) backwards;
}

.mega.is-open .mega__col:nth-child(1) { animation-delay: calc(var(--reveal-step) * 2); }
.mega.is-open .mega__col:nth-child(2) { animation-delay: calc(var(--reveal-step) * 3); }
.mega.is-open .mega__col:nth-child(3) { animation-delay: calc(var(--reveal-step) * 4); }
.mega.is-open .mega__col:nth-child(4) { animation-delay: calc(var(--reveal-step) * 5); }

.mega__intro {
	padding-bottom: var(--space-20);
	border-bottom: var(--border-1) solid var(--color-navy);
}

.mega__title {
	margin: var(--space-8) 0 var(--space-8);
	font: var(--sgp-weight-regular) var(--sgp-text-24) var(--sgp-font);
}

.mega__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-32);
	margin-top: var(--space-20);
}

.mega__col {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

.mega__unit {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	padding: var(--space-8);
	border-radius: var(--sgp-radius-control);
	background-color: var(--color-grey);
	color: var(--color-navy);
	font-weight: var(--sgp-weight-medium);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
	transition: background-color var(--sgp-dur-short) var(--sgp-ease), color var(--sgp-dur-short) var(--sgp-ease);
}

/* Live site: the unit tile fills blue and its label turns white. */
.mega__unit:hover,
.mega__unit:focus-visible {
	background-color: var(--sgp-color-interactive);
	color: var(--sgp-color-on-color);
}

.mega__unit img {
	width: var(--icon-50);
	height: var(--icon-50);
}

.mega__links {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega__links a {
	color: var(--color-navy);
	font-weight: var(--sgp-weight-regular);
	transition: color var(--sgp-dur-short) var(--sgp-ease);
}

.mega__links a:hover,
.mega__links a:focus-visible {
	color: var(--color-blue);
}

/* Mobile menu panel */
.mobile-menu {
	position: fixed;
	inset: 0 0 auto;
	z-index: 200;
	max-height: 100vh;
	overflow-y: auto;
	padding: var(--space-40) var(--gutter);
	border-radius: 0 0 var(--sgp-radius-section) var(--sgp-radius-section);
	background-color: var(--color-white);
	color: var(--color-navy);
}

.mobile-menu[hidden] {
	display: none;
}

.mobile-menu .mobile-menu__close {
	position: absolute;
	top: var(--space-20);
	right: var(--gutter);
}

.mobile-menu__top {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	margin: 0 0 var(--space-32);
	padding: 0;
	list-style: none;
}

.mobile-menu__top a {
	padding-left: var(--space-8);
	color: var(--color-navy);
	font-weight: var(--sgp-weight-regular);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}

.mobile-menu .mega__cols {
	grid-template-columns: 1fr;
	margin-top: 0;
}

.mobile-menu .mega__links {
	gap: var(--space-12);
}

/* ---------- Footer ---------- */

.site-footer {
	padding-inline: var(--gutter);
	background-color: var(--color-blue);
	color: var(--color-white);
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: var(--space-24);
	max-width: var(--content-max);
	margin-inline: auto;
	padding-block: var(--space-72);
}

.site-footer__brand {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-24);
}

.site-footer__brand img {
	width: var(--logo-w);
}

.site-footer__address {
	max-width: var(--col-197);
	margin: 0;
	font: var(--sgp-weight-regular) var(--sgp-text-14) var(--sgp-font);
	font-style: normal;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	width: var(--col-270);
}

.site-footer__col--units {
	gap: var(--space-24);
}

/* Live list rows sit 4 apart (114 for four 25.6 lines). */
.site-footer__col--units ul {
	gap: var(--space-8);
}

.site-footer__col--social {
	gap: var(--space-8);
}

.site-footer ul {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--color-white);
	font-weight: var(--sgp-weight-regular);
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	font-weight: var(--sgp-weight-medium);
}

.site-footer__social .icon {
	width: var(--icon-14);
	height: var(--icon-14);
}

.site-footer__rule {
	height: 0;
	margin: var(--space-16) 0;
	border: 0;
	border-top: var(--border-1) solid var(--color-white-33);
}

/* ---------- Shared blocks ---------- */

.card {
	display: flex;
	flex-direction: column;
	border-radius: var(--sgp-radius-object);
}

.card--blue {
	background-color: var(--color-blue);
	color: var(--color-white);
}

.card--raised {
	background-color: var(--color-navy-raised);
	color: var(--color-white);
}

.card--glass {
	background-color: var(--color-white-11);
	color: var(--color-white);
}

.card--white {
	background-color: var(--color-white);
	color: var(--color-navy);
}

.card--grey {
	background-color: var(--color-grey);
	color: var(--color-navy);
}

.card--red {
	background-color: var(--color-red);
	color: var(--color-white);
}

.panel {
	display: flex;
	flex-direction: column;
	padding: var(--space-48);
	border-radius: var(--sgp-radius-section);
}

.check-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
}

.check-list__text {
	padding-left: var(--space-8);
}

.rule {
	height: 0;
	margin: var(--space-20) 0;
	border: 0;
	border-top: var(--border-1) solid currentColor;
	opacity: 0.33;
}

.rule--light {
	border-color: var(--color-white-33);
	opacity: 1;
}

/* Split panel: red feature half and a content half. */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.split__a,
.split__b {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-24);
	min-height: var(--panel-min);
	padding: var(--space-48);
	background-position: center;
	background-size: cover;
}

.split__a {
	border-radius: var(--sgp-radius-section) 0 0 var(--sgp-radius-section);
}

.split__b {
	border-radius: 0 var(--sgp-radius-section) var(--sgp-radius-section) 0;
}

.split--auto .split__a,
.split--auto .split__b {
	min-height: 0;
}

.split__b--top {
	justify-content: flex-start;
	gap: var(--space-8);
}

.split .rule {
	margin: var(--space-32) 0;
}

.split .eyebrow {
	margin-bottom: var(--space-16);
}

.split .check-list {
	margin-bottom: var(--space-24);
}

/* ---------- Home ---------- */

.hero-home {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--hero-home-min);
	padding-block: var(--space-200);
	color: var(--color-white);
}

.hero-home .wrap {
	gap: var(--space-24);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-24);
	margin-top: var(--space-32);
}

.service-card {
	gap: var(--space-32);
	padding: var(--space-32);
	border-radius: var(--sgp-radius-object);
	color: var(--color-white);
}

.service-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
}

.service-card__top img {
	width: var(--icon-45);
	height: var(--icon-45);
}

.service-card__body {
	margin: var(--space-8) 0 var(--space-72);
}

.service-card__title {
	margin: 0 0 var(--space-16);
	color: var(--color-white);
}

.service-card__more {
	display: flex;
	margin-top: auto;
	align-items: center;
	justify-content: space-between;
	color: var(--color-white);
	font: var(--sgp-weight-regular) var(--sgp-text-16) var(--sgp-font);
}

/* Arrow in a 48 surface circle (the live arrow-circle graphic, now a glyph). */
.service-card__more .icon.sgp-icon {
	display: grid;
	place-items: center;
	width: var(--sgp-target-min);
	height: var(--sgp-target-min);
	border-radius: var(--sgp-radius-full);
	background-color: var(--sgp-color-surface);
	color: var(--sgp-color-interactive);
	font-size: var(--material-icon);
	transition: transform var(--sgp-dur-short) var(--sgp-ease);
}

.service-card__more:hover .icon {
	transform: rotate(-45deg);
}

/* Testimonials */
.carousel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-24);
}

.carousel__nav {
	display: flex;
	gap: var(--space-32);
}

.carousel__bar {
	position: relative;
	height: var(--bar-4);
	margin-top: var(--space-32);
	background-color: var(--color-white);
}

.carousel__bar span {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--progress, 0);
	background-color: var(--color-red);
	transition: width var(--sgp-dur-medium) var(--sgp-ease);
}

.carousel__track {
	display: flex;
	gap: var(--space-24);
	margin: var(--space-32) 0 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.testimonial {
	flex: 0 0 var(--card-450);
	justify-content: space-between;
	gap: var(--space-24);
	padding: var(--space-32);
	border-radius: var(--sgp-radius-object);
	scroll-snap-align: start;
}

.testimonial__title {
	margin: var(--space-8) 0 var(--space-16);
}

.testimonial__quote {
	margin: 0;
}

.testimonial__person {
	display: flex;
	align-items: center;
	gap: var(--space-16);
}

.testimonial__person img,
.testimonial__avatar {
	width: var(--avatar-46);
	height: var(--avatar-46);
	flex: none;
}

.testimonial__name {
	margin: var(--space-8) 0 0;
	font: var(--sgp-weight-semibold) var(--sgp-text-16) var(--sgp-font);
}

/* Events */
.events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-24);
}

.event-card {
	border-radius: var(--sgp-radius-section);
	background-color: var(--color-navy-raised);
	color: var(--color-white);
}

.event-card__date {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-height: var(--event-top);
	padding: var(--space-24);
	border-radius: var(--sgp-radius-section) var(--sgp-radius-section) 0 0;
	background-position: center;
	background-size: cover;
}

.event-card__day {
	padding: var(--space-8) 0;
	font: var(--sgp-weight-semibold) var(--sgp-text-45) var(--sgp-font);
}

.event-card__month {
	margin-left: var(--space-8);
	font: var(--sgp-weight-semibold) var(--sgp-text-14) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}

.event-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-32);
}

.event-card__title {
	font: var(--sgp-weight-semibold) var(--sgp-text-20) var(--sgp-font);
}

.event-card__meta {
	margin: 0;
	font: var(--sgp-weight-regular) var(--sgp-text-14) var(--sgp-font);
}

.event-card__meta + .event-card__meta {
	margin-bottom: var(--space-16);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {

	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.nav,
	.site-header .site-header__cta {
		display: none;
	}

	.site-header .menu-toggle {
		display: inline-flex;
		/* Align the glyph, not its touch target, to the gutter. */
		margin-inline-end: calc(-1 * var(--space-8));
	}

	/* The desktop panel is laid out even while invisible; keep it from
	   widening the page on small screens. */
	.mega {
		display: none;
	}
}

@media (max-width: 767px) {

	.h1,
	h1 {
		font: var(--sgp-weight-bold) var(--sgp-text-45) var(--sgp-font);
	}

	.h2,
	h2 {
		font: var(--sgp-weight-regular) var(--sgp-text-36) var(--sgp-font);
	}

	.h3,
	h3 {
		font: var(--sgp-weight-regular) var(--sgp-text-28) var(--sgp-font);
	}

	.h4,
	h4 {
		font: var(--sgp-weight-regular) var(--sgp-text-24) var(--sgp-font);
	}

	.header-spacer {
		height: var(--header-h-mobile);
	}

	.site-header__bar {
		min-height: var(--header-h-mobile);
	}

	.site-header__logo,
	.site-header__logo img {
		width: var(--logo-w-mobile);
	}

	.site-footer__inner {
		flex-direction: column;
		gap: var(--space-35);
	}

	.site-footer__brand {
		gap: var(--space-10);
		margin-bottom: var(--space-25);
	}

	.site-footer__brand img {
		width: var(--logo-w-mobile);
		margin-bottom: var(--space-15);
	}

	.site-footer__col {
		width: auto;
	}

	.grid,
	.services__grid,
	.events__grid,
	.split {
		grid-template-columns: 1fr;
	}

	.split__a {
		border-radius: var(--sgp-radius-section) var(--sgp-radius-section) 0 0;
	}

	.split__b {
		border-radius: 0 0 var(--sgp-radius-section) var(--sgp-radius-section);
	}

	.split__a,
	.split__b {
		min-height: 0;
		padding: var(--space-35) var(--space-25);
	}

	.testimonial {
		flex-basis: 100%;
	}
}

/* ---------- Entrance motion ----------
   The SGP waterfall reveal: content fades up as it comes into view, items in
   one section a step apart. Targets carry data-reveal (sgp_blocks() marks
   content blocks; the home templates mark theirs). Hidden only under .js,
   which header.php drops again if main.js never starts. A keyframe animation,
   not a transition, so it never overrides an element's own transitions. */
@keyframes sgp-reveal {
	from {
		opacity: 0;
		transform: translateY(var(--space-12));
	}
}

.js [data-reveal]:not(.is-revealed) {
	opacity: 0;
}

.js [data-reveal].is-revealed {
	animation: sgp-reveal var(--reveal-duration) var(--sgp-ease) var(--reveal-delay, 0ms) backwards;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.js [data-reveal],
	.mega.is-open .mega__intro,
	.mega.is-open .mega__col {
		opacity: 1;
		animation: none;
	}
}

/* ---------- Utilities and dialogs ---------- */

.gap-0 {
	gap: 0;
}

.only-mobile {
	display: none;
}

.hero-home {
	background-image: var(--bg);
}

.menu-open {
	overflow: hidden;
}

/* Dialog surface and scrim: components.css. */
.dialog .dialog__close {
	position: absolute;
	top: var(--space-20);
	right: var(--space-20);
}

.dialog h2 {
	margin-bottom: var(--space-24);
}

.form {
	display: grid;
	gap: var(--space-20);
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
}

/* Fields and checkboxes are SGP Text field and Checkbox (components.css). */
.form__group {
	min-width: 0;
	padding: 0;
	border: 0;
}

.form__group legend {
	margin-bottom: var(--space-8);
	padding: 0;
}

/* Name: First and Last side by side, each labelled under its box. */
.form__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-20);
}

/* Submit keeps its own width, as on the live site; the grid would stretch it. */
.form .sgp-button {
	justify-self: start;
}

/* Contact page: the live form sits on an Off White card (the stand-in, or
   WPForms inside .sgp-wpforms on the live site). */
.b-form :is(.form, .sgp-wpforms) {
	padding: var(--space-48);
	border-radius: var(--sgp-radius-object);
	background-color: var(--sgp-color-work-surface);
}

@media (max-width: 767px) {
	.only-mobile {
		display: block;
	}

	.only-desktop {
		display: none;
	}

	.hero-home {
		background-image: var(--bg-mobile);
		padding-block: var(--space-200);
	}

	.hero-home .wrap {
		gap: var(--space-35);
	}

	.service-card {
		padding: var(--space-25);
	}

	/* The live contact card drops to 25 on phones. */
	.b-form :is(.form, .sgp-wpforms) {
		padding: var(--space-25);
	}

	.split .rule {
		display: none;
	}
}

.events__grid.carousel__track {
	display: grid;
	margin-top: 0;
	overflow: visible;
}

@media (max-width: 767px) {
	.service-card__body {
		margin: var(--space-10) 0 0;
	}

	/* Carousels: title on top, arrows under the cards. */
	[data-carousel] .carousel__head {
		display: contents;
	}

	[data-carousel] .carousel__head h2 {
		order: 0;
	}

	[data-carousel] .carousel__bar {
		order: 1;
	}

	[data-carousel] .carousel__track {
		order: 2;
	}

	[data-carousel] .carousel__nav {
		order: 3;
		justify-content: center;
		margin-top: var(--space-25);
	}

	[data-carousel] > .sgp-button {
		order: 4;
	}

	.events__grid.carousel__track {
		display: flex;
		overflow-x: auto;
	}

	.events__grid .event-card {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}
}

/* ---------- News ---------- */

.news-cats {
	display: flex;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-cats a {
	color: var(--color-navy);
}

.news-list {
	display: flex;
	flex-direction: column;
}

.news-row {
	display: flex;
	gap: var(--space-24);
	padding: var(--space-32) 0;
	border-bottom: var(--border-1) solid var(--color-grey);
}

.news-row__main {
	display: flex;
	flex: 0 0 var(--size-810);
	flex-direction: column;
	gap: var(--space-16);
}

.news-row__meta {
	display: flex;
	flex: 0 0 var(--col-270);
	flex-direction: column;
	gap: var(--space-16);
	font-weight: var(--sgp-weight-medium);
}

.news-row__meta p {
	margin: 0;
}

.news-row__label {
	margin: 0;
	font: var(--sgp-weight-medium) var(--sgp-text-14) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}

.news-row__title {
	font: var(--sgp-weight-semibold) var(--sgp-text-20) var(--sgp-font);
}

.news-row__title a {
	color: inherit;
	font-weight: inherit;
}

.news-row__more {
	color: var(--color-navy);
}

/* Article and webinar hero (News & Events Figma 3571:23309). */
.post-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--sgp-space-144);
	background-color: var(--color-navy);
	color: var(--color-white);
}

.post-hero .wrap {
	gap: var(--sgp-space-8);
}

.post-hero .eyebrow {
	margin: 0;
}

.post-hero h1 {
	font: var(--sgp-weight-bold) var(--sgp-text-45) var(--sgp-font);
}

.post-body {
	padding-block: var(--space-48) var(--space-24);
}

.post-body .wrap {
	flex-direction: row;
	gap: var(--space-48);
}

.post-side {
	display: flex;
	flex: 0 0 var(--size-338);
	flex-direction: column;
	gap: var(--space-24);
}

.post-side__by {
	margin: 0;
	font: var(--sgp-weight-regular) var(--sgp-text-14) var(--sgp-font);
}

.post-side__name {
	margin: var(--space-8) 0 var(--space-8);
	font: var(--sgp-weight-semibold) var(--sgp-text-14) var(--sgp-font);
	letter-spacing: var(--sgp-tracking-caps);
	text-transform: uppercase;
}

.post-side__latest {
	font-weight: var(--sgp-weight-semibold);
}

.post-side ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-side a {
	color: var(--color-navy);
}

.prose {
	flex: 1;
	min-width: 0;
}

.prose p {
	margin: 0 0 var(--space-24);
}

.prose h2,
.prose h3 {
	margin: var(--space-20) 0 var(--space-16);
	font: var(--sgp-weight-regular) var(--sgp-text-36) var(--sgp-font);
}

.prose h4 {
	margin: var(--space-8) 0 var(--space-16);
	font: var(--sgp-weight-regular) var(--sgp-text-24) var(--sgp-font);
}

.prose ul,
.prose ol {
	margin: 0 0 var(--space-24);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--space-24);
	padding-block: var(--space-48);
}

.post-nav a {
	color: var(--color-navy);
}

@media (max-width: 767px) {
	.post-body .wrap {
		flex-direction: column;
	}

	/* Live mobile: author and date side by side above the headline. */
	.news-row {
		flex-wrap: wrap;
	}

	.news-row__main {
		flex-basis: 100%;
		order: 2;
	}

	.news-row__meta {
		flex: 1 1 0;
		order: 1;
	}

	.post-side {
		flex-basis: auto;
	}

	.post-hero h1 {
		font: var(--sgp-weight-bold) var(--sgp-text-36) var(--sgp-font);
	}
}

.event-card--light {
	background-color: var(--color-grey);
	color: var(--color-navy);
}

.event-card--light .event-card__date {
	color: var(--color-white);
}

.events__grid--page {
	gap: var(--space-24);
	/* The live listing widget sits 13 above and 37 below its cards. */
	padding-block: var(--space-12) var(--space-32);
}

.event-card__date {
	color: var(--color-white);
}

@media (max-width: 767px) {
	[data-carousel] .carousel__nav {
		justify-content: space-between;
	}
}
