/**
 * Shared visual foundations.
 *
 * Component-specific styles will be added only after their layouts are
 * approved. Elementor may override these foundations at page level.
 */

:root {
	--rg-color-navy: #00315c;
	--rg-color-navy-dark: #002542;
	--rg-color-green: #9bc31c;
	--rg-color-green-dark: #789b0f;
	--rg-color-text: #17212b;
	--rg-color-muted: #52606d;
	--rg-color-surface: #f4f6f7;
	--rg-color-border: #d7dee3;
	--rg-color-white: #ffffff;
	--rg-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--rg-content-width: 75rem;
	--rg-reading-width: 45rem;
	--rg-radius-small: 0.375rem;
	--rg-radius-medium: 0.75rem;
	--rg-shadow-small: 0 0.25rem 1rem rgb(0 49 92 / 8%);
	--rg-space-1: 0.25rem;
	--rg-space-2: 0.5rem;
	--rg-space-3: 0.75rem;
	--rg-space-4: 1rem;
	--rg-space-6: 1.5rem;
	--rg-space-8: 2rem;
	--rg-space-12: 3rem;
	--rg-space-16: 4rem;
	--rg-space-24: 6rem;
}

body {
	color: var(--rg-color-text);
	font-family: var(--rg-font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
}

a {
	color: var(--rg-color-navy);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--rg-color-navy-dark);
}

body:not(.elementor-page) .site-main {
	margin-inline: auto;
	max-width: var(--rg-content-width);
	padding: var(--rg-space-12) clamp(1rem, 4vw, 2rem) var(--rg-space-16);
}

.rg-site-header {
	background: rgb(255 255 255 / 97%);
	border-bottom: 0.0625rem solid var(--rg-color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .rg-site-header {
	top: 2.875rem;
}

.rg-site-header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 4.5rem;
	position: relative;
}

.rg-brand {
	color: var(--rg-color-navy);
	display: inline-flex;
	flex-direction: column;
	line-height: 1.15;
	text-decoration: none;
}

.rg-brand:hover {
	color: var(--rg-color-navy-dark);
}

.rg-brand__name {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.rg-brand__tagline {
	display: none;
	font-size: 0.75rem;
	font-weight: 500;
	margin-top: var(--rg-space-1);
	max-width: 28rem;
}

.rg-menu-toggle {
	align-items: center;
	background: var(--rg-color-navy);
	border: 0;
	border-radius: var(--rg-radius-small);
	color: var(--rg-color-white);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	gap: var(--rg-space-2);
	min-height: 2.75rem;
	padding: var(--rg-space-2) var(--rg-space-3);
}

.rg-menu-toggle__icon,
.rg-menu-toggle__icon::before,
.rg-menu-toggle__icon::after {
	background: currentColor;
	content: "";
	display: block;
	height: 0.125rem;
	position: relative;
	width: 1.125rem;
}

.rg-menu-toggle__icon::before {
	position: absolute;
	top: -0.375rem;
}

.rg-menu-toggle__icon::after {
	position: absolute;
	top: 0.375rem;
}

.rg-primary-navigation {
	background: var(--rg-color-white);
	border-bottom: 0.0625rem solid var(--rg-color-border);
	box-shadow: var(--rg-shadow-small);
	display: none;
	left: 0;
	padding: var(--rg-space-3) clamp(1rem, 4vw, 2rem) var(--rg-space-4);
	position: absolute;
	right: 0;
	top: 100%;
}

.rg-primary-navigation[data-open] {
	display: block;
}

.rg-primary-menu,
.rg-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rg-primary-menu a {
	border-radius: var(--rg-radius-small);
	color: var(--rg-color-navy);
	display: block;
	font-size: 1rem;
	font-weight: 700;
	padding: var(--rg-space-3);
	text-decoration: none;
}

.rg-primary-menu a:hover,
.rg-primary-menu .current-menu-item > a,
.rg-primary-menu .current-menu-ancestor > a {
	background: var(--rg-color-surface);
	color: var(--rg-color-navy-dark);
}

.rg-primary-menu .current-menu-item > a {
	box-shadow: inset 0.25rem 0 0 var(--rg-color-green);
}

.rg-site-footer {
	background: var(--rg-color-navy);
	color: var(--rg-color-white);
	margin-top: var(--rg-space-16);
	padding-block: var(--rg-space-8);
}

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

.rg-site-footer__copyright {
	font-size: 0.9375rem;
	margin: 0;
}

.rg-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rg-space-3) var(--rg-space-6);
}

.rg-footer-menu a {
	color: var(--rg-color-white);
	font-size: 0.9375rem;
	font-weight: 600;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 0.1875rem solid var(--rg-color-green);
	outline-offset: 0.1875rem;
}

.rg-container {
	margin-inline: auto;
	max-width: var(--rg-content-width);
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.rg-reading-width {
	max-width: var(--rg-reading-width);
}

.rg-button {
	align-items: center;
	border: 0.125rem solid transparent;
	border-radius: var(--rg-radius-small);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rg-button--primary {
	background: var(--rg-color-navy);
	color: var(--rg-color-white);
}

.rg-button--primary:hover {
	background: var(--rg-color-navy-dark);
	color: var(--rg-color-white);
}

.rg-button--accent {
	background: var(--rg-color-green);
	color: var(--rg-color-navy-dark);
}

.rg-button--accent:hover {
	background: var(--rg-color-green-dark);
	color: var(--rg-color-white);
}

@media (min-width: 48rem) {
	body {
		font-size: 1.125rem;
	}

	.admin-bar .rg-site-header {
		top: 2rem;
	}

	.rg-brand__tagline {
		display: block;
	}

	.rg-site-footer__inner {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (min-width: 64rem) {
	.rg-menu-toggle {
		display: none;
	}

	.rg-primary-navigation {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: block;
		padding: 0;
		position: static;
	}

	.rg-primary-menu {
		align-items: center;
		display: flex;
		gap: var(--rg-space-1);
	}

	.rg-primary-menu a {
		padding: var(--rg-space-3);
	}

	.rg-primary-menu .current-menu-item > a {
		box-shadow: inset 0 -0.1875rem 0 var(--rg-color-green);
	}
}

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