/* StyleGauge: global base, header and footer. Values mirror SGHeader / SGFooter. */

:root {
	--sg-ink: #13203b;
	--sg-bg: #f7f5f1;
	--sg-white: #ffffff;
	--sg-accent: #2f5bd3;
	--sg-accent-tint: #e9eefb;
	--sg-muted: #4d5566;
	--sg-muted-2: #5a6070;
	--sg-border: #e4e0d8;
	--sg-border-strong: #d6d1c6;
	--sg-hairline: #eeebe4;
	--sg-gutter: clamp(20px, 4vw, 48px);
	--sg-container: 1320px;
	--sg-serif: 'Instrument Serif', serif;
	--sg-sans: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--sg-ink); text-decoration: none; }
a:hover { color: var(--sg-accent); }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--sg-accent);
	outline-offset: 2px;
}

/* Template-part wrappers sit flush; sections own their spacing. */
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks { min-height: 100vh; background: var(--sg-bg); }

.sg-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

.sg-sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; }
@media (max-width: 600px) { .admin-bar .sg-sticky { top: 0; } }

.sg-header {
	position: relative;
	background: rgba(247, 245, 241, 0.96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--sg-border);
	font-family: var(--sg-sans);
	color: var(--sg-ink);
}
.sg-header ul { list-style: none; margin: 0; padding: 0; }

.sg-header__bar {
	max-width: var(--sg-container);
	margin: 0 auto;
	padding: 14px var(--sg-gutter);
	display: flex;
	align-items: center;
	gap: 12px 32px;
}

.sg-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--sg-ink); }
.sg-logo:hover { color: var(--sg-ink); }
.sg-logo__mark {
	width: 28px; height: 28px;
	background: var(--sg-ink);
	display: grid; place-items: center;
	color: var(--sg-bg);
	font-family: var(--sg-serif);
	font-size: 20px; line-height: 1;
	border-radius: 2px;
}
.sg-logo__mark--sm { width: 26px; height: 26px; font-size: 18px; }
.sg-logo__name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

.sg-nav { display: none; flex: 1; }
.sg-nav__list {
	display: flex; gap: 22px; justify-content: center;
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.sg-nav__link {
	display: block;
	color: var(--sg-ink);
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	font-weight: 500;
	
}
.sg-nav__item.is-active > .sg-nav__link { color: var(--sg-accent); font-weight: 600; }
.sg-header.has-open .sg-nav__item.is-active > .sg-nav__link { color: var(--sg-ink); }
.sg-header .sg-nav__item.is-open > .sg-nav__link { color: var(--sg-accent); border-bottom-color: var(--sg-accent); }

.sg-mega {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--sg-white);
	border-bottom: 1px solid var(--sg-border);
	box-shadow: 0 24px 40px -28px rgba(19, 32, 59, 0.4);
	white-space: normal;
}
.sg-nav__item.is-open > .sg-mega { display: block; }
.sg-mega__inner {
	max-width: var(--sg-container);
	margin: 0 auto;
	padding: 32px var(--sg-gutter) 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px 40px;
}
.sg-mega__intro, .sg-mega__col, .sg-mega__links { display: flex; flex-direction: column; gap: 10px; }
.sg-mega__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-mega__desc { font-size: 14px; font-weight: 400; color: var(--sg-muted); line-height: 1.5; }
.sg-mega__cta { font-size: 14px; font-weight: 600; color: var(--sg-accent); margin-top: 4px; }
.sg-mega__head {
	font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--sg-muted-2); min-height: 15px;
}
.sg-mega__links a { font-size: 15px; font-weight: 400; color: var(--sg-ink); }
.sg-mega__links a:hover, .sg-mega__cta:hover { color: var(--sg-accent); }

.sg-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sg-actions a { white-space: nowrap; }
.sg-actions__pill {
	font-size: 14px; font-weight: 500;
	padding: 10px 14px;
	border: 1px solid var(--sg-border-strong);
	border-radius: 999px;
	color: var(--sg-ink);
}
.sg-actions__text { font-size: 14px; font-weight: 500; padding: 10px 6px; color: var(--sg-ink); }
.sg-actions__primary {
	font-size: 14px; font-weight: 600;
	padding: 10px 18px;
	background: var(--sg-ink);
	color: var(--sg-bg);
	border-radius: 999px;
}
.sg-actions__primary:hover { color: var(--sg-bg); background: var(--sg-accent); }

.sg-menu-toggle {
	font: inherit; font-size: 14px; font-weight: 600;
	padding: 10px 16px;
	border-radius: 999px; border: 0;
	background: var(--sg-ink); color: var(--sg-bg);
	cursor: pointer; white-space: nowrap;
}

/* Full-screen menu below 1000px */
.sg-mobile {
	position: absolute; left: 0; right: 0; top: 100%;
	height: calc(100vh - 64px);
	height: calc(100dvh - var(--sg-header-h, 64px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--sg-bg);
	border-top: 1px solid var(--sg-border);
	padding: 8px 20px 32px;
	display: flex; flex-direction: column;
}
.sg-mobile[hidden] { display: none; }
.sg-mobile__item { border-bottom: 1px solid var(--sg-border); }
.sg-mobile__btn {
	width: 100%;
	display: flex; justify-content: space-between; align-items: center;
	background: none; border: 0;
	padding: 18px 0;
	font: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
	color: var(--sg-ink);
	cursor: pointer; text-align: left;
}
.sg-mobile__btn.is-active { color: var(--sg-accent); }
.sg-mobile__icon { font-size: 22px; font-weight: 400; color: var(--sg-accent); }
.sg-mobile__panel { display: flex; flex-direction: column; gap: 14px; padding: 0 0 20px; }
.sg-mobile__panel[hidden] { display: none; }
.sg-mobile__cta { font-size: 15px; font-weight: 600; color: var(--sg-accent); }
.sg-mobile__link { font-size: 16px; color: var(--sg-ink); }
.sg-mobile__ctas { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.sg-mobile__primary, .sg-mobile__secondary {
	text-align: center; font-size: 16px; font-weight: 600; border-radius: 999px;
}
.sg-mobile__primary { padding: 16px; background: var(--sg-ink); color: var(--sg-bg); }
.sg-mobile__primary:hover { color: var(--sg-bg); }
.sg-mobile__secondary { padding: 15px; border: 1px solid var(--sg-ink); color: var(--sg-ink); }
body.sg-menu-open { overflow: hidden; }

@media (min-width: 1000px) {
	.sg-nav { display: block; }
	.sg-narrow-only, .sg-mobile { display: none !important; }
}
@media (max-width: 999.98px) {
	.sg-wide-only { display: none !important; }
}

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

.sg-footer {
	background: var(--sg-bg);
	border-top: 1px solid var(--sg-border);
	font-family: var(--sg-sans);
	color: var(--sg-ink);
}
.sg-footer ul { list-style: none; margin: 0; padding: 0; }
.sg-footer__inner {
	max-width: var(--sg-container);
	margin: 0 auto;
	padding: clamp(40px, 5vw, 64px) var(--sg-gutter) 32px;
	display: flex; flex-direction: column; gap: 48px;
}
.sg-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: 32px;
}
.sg-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.sg-footer__logo { display: flex; align-items: center; gap: 10px; color: var(--sg-ink); }
.sg-footer__logo:hover { color: var(--sg-ink); }
.sg-footer__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sg-footer__tagline { font-size: 14px; color: var(--sg-muted-2); line-height: 1.5; }
.sg-footer__col, .sg-footer__links { display: flex; flex-direction: column; gap: 10px; }
.sg-footer__head {
	font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--sg-muted-2);
}
.sg-footer__links a { font-size: 14px; color: var(--sg-ink); }
.sg-footer__links a:hover, .sg-footer__legal a:hover { color: var(--sg-accent); }
.sg-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	font-size: 13px; color: var(--sg-muted-2);
	border-top: 1px solid var(--sg-border);
	padding-top: 20px;
}
.sg-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.sg-footer__legal a { color: var(--sg-muted-2); }

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

/* List items take the link's font size so line boxes match the prototype's bare links. */
.sg-mega__links li { font-size: 15px; }
.sg-footer__links li { font-size: 14px; }
.sg-footer__legal li { font-size: 13px; }
