:root {
	--gm8-radius: 8px;
	--gm8-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
	overflow-x: hidden;
}

.gm8-site-header,
.gm8-site-footer {
	padding-left: var(--wp--preset--spacing--md);
	padding-right: var(--wp--preset--spacing--md);
}

.gm8-site-header__inner,
.gm8-site-footer__inner {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size);
}

.gm8-site-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.gm8-site-header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 72px;
}

.gm8-site-footer {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--lg);
	padding-top: var(--wp--preset--spacing--lg);
}

.gm8-button,
.gm8-button:visited {
	align-items: center;
	background: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 6px;
	color: var(--wp--preset--color--background);
	display: inline-flex;
	font-weight: 700;
	gap: 0.5rem;
	line-height: 1.2;
	padding: 0.8rem 1rem;
	text-decoration: none;
}

.gm8-button--secondary,
.gm8-button--secondary:visited {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

.gm8-eyebrow {
	color: var(--wp--preset--color--accent);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.gm8-section {
	padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
}

.gm8-section__inner {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size);
}

.gm8-bg--light {
	background: var(--wp--preset--color--surface);
}

.gm8-bg--dark {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--background);
}

.gm8-bg--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text);
}

.gm8-bg--dark .gm8-button--secondary,
.gm8-bg--dark .gm8-button--secondary:visited,
.gm8-hero--has-background .gm8-button--secondary,
.gm8-hero--has-background .gm8-button--secondary:visited,
.gm8-cta--has-background .gm8-button--secondary,
.gm8-cta--has-background .gm8-button--secondary:visited {
	border-color: rgba(255, 255, 255, 0.72);
	color: var(--wp--preset--color--background);
}

.gm8-bg--dark .gm8-button--secondary:hover,
.gm8-hero--has-background .gm8-button--secondary:hover,
.gm8-cta--has-background .gm8-button--secondary:hover {
	background: rgba(255, 255, 255, 0.08);
}

[class*="wp-block-acf-gm8-"].alignfull > .gm8-section {
	padding-left: 0;
	padding-right: 0;
}

[class*="wp-block-acf-gm8-"].alignfull .gm8-section__inner {
	max-width: var(--wp--style--global--wide-size);
}

[class*="wp-block-acf-gm8-"].alignwide .gm8-section__inner {
	max-width: var(--wp--style--global--wide-size);
}

/* Hero sections always span the viewport; inner content stays in the wide column. */
[class*="wp-block-acf-gm8-hero"] {
	margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important;
	max-width: none !important;
	width: auto !important;
}

[class*="wp-block-acf-gm8-hero"] > .gm8-hero {
	padding-left: max(var(--wp--preset--spacing--md), var(--wp--style--root--padding-left, 0px));
	padding-right: max(var(--wp--preset--spacing--md), var(--wp--style--root--padding-right, 0px));
}
