/* ==========================================================================
   AGK Electric - component layer
   theme.json owns colour, type, spacing and block presets.
   This file owns what presets cannot express: focus, components, grids,
   header behaviour and reduced-motion handling.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Component tokens and the shared button contract

   Button geometry lives in ONE place so the link-shaped call action in the
   header, the WordPress button block, the primary/secondary variants and the
   inverse (CTA / footer) surface cannot drift apart: the same height, padding,
   border width, radius, line height, weight and focus treatment everywhere.
   Colours come from the theme.json palette; only geometry is defined here.
   -------------------------------------------------------------------------- */

:root {
	--agk-control-min-height: 44px;
	--agk-button-border-width: 2px;
	--agk-button-radius: var(--agk-radius-control);
	--agk-button-font-size: 1rem;
	--agk-button-font-weight: 700;
	--agk-button-line-height: 1.25;
	--agk-button-padding-block: 0.6875rem;
	--agk-button-padding-inline: 1.25rem;
	--agk-button-gap: 0.5rem;

	/* Shared header-to-content rhythm (AGK #7). The first block after the header
	   starts at exactly this distance on every primary route; there are no
	   per-route negative margins anywhere in the components below. */
	--agk-header-content-gap: var(--wp--preset--spacing--60);

	/* Hairline used on dark (inverse) surfaces instead of a translucent white. */
	--agk-border-inverse: var(--wp--preset--color--steel-dark);

	/* Footer hover/focus link colour: a readable forest on the ink surface
	   (5.29:1). The brand forest itself is only 3.01:1 on ink, so it cannot be
	   used for link text there; see section 10. */
	--agk-footer-link-hover: #3F9D5C;
}

/* --------------------------------------------------------------------------
   1. Base and accessibility
   -------------------------------------------------------------------------- */

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

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

body {
	background-color: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--ink);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--wp--preset--color--ink);
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

p {
	max-width: 68ch;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color var(--agk-motion-short) ease;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

/* NOTE: `.wp-block-button__link:focus-visible` is deliberately NOT listed here.
   It outranks the button rules in section 5, so pairing it with a
   `:focus-visible` rule further down set every focused button's background to
   the element's own colour (a white label on a white fill on inverse surfaces).
   The button shapes get their focus ring from the `:focus-visible` rules that
   share the same specificity as their hover rules, so the surface colours are
   identical whether a button is hovered or focused from the keyboard. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--wp--preset--color--white);
	border-radius: var(--agk-radius-control);
}

/* Inverse surfaces need a contrasting focus ring. The white ring is the one
   visible against ink, forest and the accent green alike. */
.is-style-agk-inverse a:focus-visible,
.is-style-agk-inverse button:focus-visible,
.agk-cta a:focus-visible,
.agk-cta button:focus-visible,
.agk-footer a:focus-visible,
.agk-footer button:focus-visible,
.agk-footer .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 6px var(--wp--preset--color--ink);
}

/* Buttons on dark surfaces focus the same way their inline links do (white
   ring over an ink halo, section 5 supplies the fill for each state). */
.is-style-agk-inverse .wp-block-button__link:focus-visible,
.agk-cta .wp-block-button__link:focus-visible,
.agk-footer .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--white);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--ink);
}

/* Keep every focus target above surrounding decoration. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	position: relative;
	z-index: 2;
}

/* Button shapes only need stacking; their ring is owned by section 5. */
.wp-block-button__link {
	position: relative;
	z-index: 1;
}

img {
	max-width: 100%;
	height: auto;
}

::selection {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

/* Skip link.
   WordPress core renders one skip link per block template as the first
   focusable element. The theme styles that element instead of adding a second
   link, which would put two "skip to content" stops in the tab order. */
.skip-link.screen-reader-text {
	left: 0;
	position: fixed;
	top: -200px;
	z-index: 9999;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	padding: 0.75rem 1rem;
	text-decoration: none;
	border-radius: 0 0 var(--agk-radius-control) 0;
	height: auto;
	width: auto;
	clip: auto;
	clip-path: none;
	overflow: visible;
}

.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
	top: 0;
	color: var(--wp--preset--color--white);
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Screen-reader-only utility. */
.agk-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Layout helpers
   -------------------------------------------------------------------------- */

.agk-container {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
}

.agk-container--narrow {
	max-width: var(--wp--style--global--content-size);
}

.agk-section {
	padding-block: var(--agk-section);
}

.agk-section--tight {
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

.agk-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

/* Fixed column counts rather than auto-fit, so a single card keeps a sensible
   card width and never stretches or collapses to a sliver. */
.agk-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agk-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 60rem) {
	.agk-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Two-up grids drop to one column on phones; forced two columns gave each
	   a ~140px card at 320px, which clipped the contact form and the About
	   facts beside it. */
	.agk-grid--two {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 47.99rem) {
	.agk-grid--two,
	.agk-grid--three {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* On the desktop wide container, prefer three equal working columns rather
   than leaving a lone card alone on a second row. */
@media (min-width: 48rem) {
	.agk-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.agk-grid--three > * {
		min-width: 0;
	}
}

.agk-stack > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.agk-cluster {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

/* --------------------------------------------------------------------------
   3. Header and navigation

   One white bar: brand, five primary links, one green call action. The dark
   utility strip that used to sit above it (and repeated the phone number) was
   removed by owner decision, AGK #7.
   -------------------------------------------------------------------------- */

.agk-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--agk-border);
	position: relative;
	z-index: 50;
}

.agk-header__inner {
	align-items: center;
	display: grid;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 1fr) auto auto;
	grid-template-areas: 'brand nav call';
	justify-content: space-between;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: 0.75rem;
	padding-inline: var(--agk-gutter);
	width: 100%;
}

.agk-header .agk-brand {
	grid-area: brand;
	justify-self: start;
}

/* The core Navigation block (rendered by parts/header.php) and the single call
   action are explicit grid areas rather than incidental flex children, so the
   bar keeps its rhythm when a block adds a wrapper element. */
.agk-header .agk-header__inner > .wp-block-navigation {
	grid-area: nav;
	min-width: 0;
}

.agk-header .agk-call-button {
	grid-area: call;
	justify-self: end;
}

/* The logo lockup carries the whole brand name in its artwork, so the link is
   sized by the image. The image keeps its natural aspect ratio (the asset
   pipeline trims the source margin and records the exact pixel size): it is
   sized by HEIGHT only, with `width: auto`. An earlier rule set both a width
   clamp and a max-height, and the two fought each other, compressing the
   artwork ~8% vertically and failing Lighthouse's image-aspect-ratio audit
   (AGK #58, V-02). Do not reintroduce a width or max-width here. */
.agk-brand__logo {
	display: block;
	height: 2.6rem;
	width: auto;
}

.agk-brand {
	align-items: center;
	display: inline-flex;
	flex: 0 1 auto;
	gap: 0.75rem;
	min-width: 0;
	text-decoration: none;
}

/* The inline "AGK" tile is the fallback lockup when no custom logo is set; it
   is hidden from assistive technology because the wordmark beside it carries
   the name. The v1.0.0 header always shows the approved raster logo instead
   (parts/header.php), so this only appears if the asset is missing. */

.agk-brand__word small {
	display: block;
}

.agk-brand__mark {
	align-items: center;
	background: var(--wp--preset--color--ink);
	border-left: 4px solid var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	display: inline-flex;
	font-size: 1.1rem;
	font-weight: 800;
	height: 2.75rem;
	justify-content: center;
	letter-spacing: 0.02em;
	width: 2.75rem;
}

.agk-brand__word {
	color: var(--wp--preset--color--ink);
	display: flex;
	flex-direction: column;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1;
}

.agk-brand__word small {
	color: var(--wp--preset--color--forest);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-block-start: 0.3rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.agk-header a.agk-brand {
	color: inherit;
	text-decoration: none;
}

.agk-header a.agk-brand:hover .agk-brand__word {
	color: var(--wp--preset--color--forest);
}

/* Native Navigation block styling. */
.agk-header .wp-block-navigation {
	display: flex;
	font-size: 1rem;
	font-weight: 600;
	gap: var(--wp--preset--spacing--40);
	justify-content: flex-end;
}

/* Page-list output inside the native Navigation block must remain valid markup:
   a collapsible submenu wrapper is allowed, but a page list cannot nest as a
   direct child of the navigation ul. */
.agk-header .wp-block-navigation__container > .wp-block-navigation-item {
	list-style: none;
}

.agk-header .wp-block-navigation__container .wp-block-page-list {
	display: contents;
	list-style: none;
	padding: 0;
}

.agk-header .wp-block-navigation__container .wp-block-page-list > li {
	list-style: none;
}

.agk-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	padding-block: 0.5rem;
}

.agk-header .wp-block-navigation-item__content:hover,
.agk-header .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--forest);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3rem;
}

.agk-header .wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3rem;
}

.agk-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--agk-border);
	box-shadow: var(--agk-shadow-menu);
	min-width: 14rem;
	padding-block: 0.5rem;
}

/* Mobile call action stands beside the menu toggle and never hides inside it. */
.agk-header__mobile-actions {
	display: none;
	gap: 0.5rem;
}

/* The call action is part of the shared button contract below (same height,
   padding, radius and line height as every other primary button), with an icon
   instead of a second label line. */
.agk-call-button {
	align-items: center;
	background: var(--wp--preset--color--forest);
	border: var(--agk-button-border-width) solid var(--wp--preset--color--forest);
	border-radius: var(--agk-button-radius);
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	display: inline-flex;
	font-size: var(--agk-button-font-size);
	font-weight: var(--agk-button-font-weight);
	gap: var(--agk-button-gap);
	justify-content: center;
	line-height: var(--agk-button-line-height);
	min-height: var(--agk-control-min-height);
	padding-block: var(--agk-button-padding-block);
	padding-inline: var(--agk-button-padding-inline);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.agk-call-button:hover {
	background: var(--wp--preset--color--deep-forest);
	border-color: var(--wp--preset--color--deep-forest);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-call-button:focus-visible {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-call-button:active {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.agk-call-button svg {
	flex: 0 0 auto;
	height: 1rem;
	width: 1rem;
}

/* --------------------------------------------------------------------------
   5. Buttons and links

   ONE primary/secondary contract (AGK #8). Every button-shaped control â€” the
   button block on any surface, the header call action, a disabled form button â€”
   shares the geometry in the token block above and the rules below:

   - primary:   solid forest, white label; hover/active step to deep forest / ink
   - secondary: transparent with a 2px forest outline; hover fills forest
   - inverse:   on ink surfaces the primary is white on ink and the secondary is
                a white outline, so both keep AA contrast
   - NO text is underlined inside a button shape, in any state. Underlines stay
     reserved for inline (non-button) links.
   -------------------------------------------------------------------------- */

.wp-block-button__link,
.wp-element-button {
	align-items: center;
	border: var(--agk-button-border-width) solid transparent;
	border-radius: var(--agk-button-radius);
	display: inline-flex;
	font-size: var(--agk-button-font-size);
	font-weight: var(--agk-button-font-weight);
	gap: var(--agk-button-gap);
	justify-content: center;
	line-height: var(--agk-button-line-height);
	min-height: var(--agk-control-min-height);
	padding-block: var(--agk-button-padding-block);
	padding-inline: var(--agk-button-padding-inline);
	text-align: center;
	text-decoration: none;
	transition: background-color var(--agk-motion-short) ease, border-color var(--agk-motion-short) ease, color var(--agk-motion-short) ease, box-shadow var(--agk-motion-short) ease;
}

/* A button row is a flex row, so a solid primary and an outlined secondary on
   the same line stay vertically centred on one another at every font size. */
.agk-hero__actions .wp-block-button,
.agk-cta__actions .wp-block-button,
.wp-block-buttons > .wp-block-button {
	display: flex;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	text-decoration: none;
}

.wp-block-button__link:active,
.wp-element-button:active {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* The style class is set on the .wp-block-button PARENT, never on the link
   itself. The previous `:not(.is-style-agk-secondary)` selector could never
   match the parent, so every primary button underlined on hover (AGK #8). */
.wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--deep-forest);
	border-color: var(--wp--preset--color--deep-forest);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

/* Secondary button on light surfaces: outline only, so the primary action
   keeps visual precedence. The transparent 2px border on the base rule keeps
   both variants exactly the same height. */
.wp-block-button.is-style-agk-secondary .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--forest);
}

.wp-block-button.is-style-agk-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-agk-secondary .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.wp-block-button.is-style-agk-secondary .wp-block-button__link:active {
	background: var(--wp--preset--color--deep-forest);
	border-color: var(--wp--preset--color--deep-forest);
	color: var(--wp--preset--color--white);
}

/* Disabled buttons: legible but unmistakably inert, on either surface. */
.wp-block-button__link[disabled],
.wp-block-button__link[aria-disabled="true"] {
	background: var(--wp--preset--color--steel-dark);
	border-color: var(--wp--preset--color--steel-dark);
	color: var(--wp--preset--color--white);
	cursor: not-allowed;
	opacity: 1;
	text-decoration: none;
}

.wp-block-button.is-style-agk-secondary .wp-block-button__link[disabled],
.wp-block-button.is-style-agk-secondary .wp-block-button__link[aria-disabled="true"] {
	background: transparent;
	border-color: var(--wp--preset--color--steel-dark);
	color: var(--wp--preset--color--steel-dark);
}


.agk-link-arrow {
	align-items: center;
	display: inline-flex;
	font-weight: 700;
	gap: 0.35rem;
}

.agk-link-arrow::after {
	content: "\2192";
	transition: transform var(--agk-motion-short) ease;
}

a.agk-link-arrow:hover::after,
a.agk-link-arrow:focus-visible::after {
	transform: translateX(0.2rem);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.agk-hero {
	background: var(--wp--preset--color--canvas);
	border-bottom: 1px solid var(--agk-border);
	overflow: hidden;
	position: relative;
}

/* No detached accent bar here (AGK #7). The home hero used to paint a 4px
   forest stub at its top-left edge that hung off the header border and matched
   nothing else on the page. The hero's own structure â€” eyebrow, lead rule and
   actions â€” carries the emphasis instead. */

/* Soft technical backdrop: a very subtle green-grey wash behind the hero
   panel, no gradients over text. */
.agk-hero::after {
	background: var(--wp--preset--color--surface-alt);
	border-radius: 50%;
	content: "";
	filter: blur(60px);
	height: 60%;
	inset-block-start: 20%;
	inset-inline-end: -10%;
	opacity: 0.55;
	pointer-events: none;
	position: absolute;
	width: 40%;
	z-index: 0;
}

.agk-hero__inner {
	position: relative;
	z-index: 1;
}

.agk-hero__inner {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: 0 clamp(3rem, 6.5vw, 6.5rem);
	padding-inline: var(--agk-gutter);
	width: 100%;
}

/* The first hero's lead-in is supplied by the shared header rhythm in section
   16, so it is not repeated here; a later .agk-hero in the same template still
   needs its top padding, which the last rule in that section restores. */

/* Full-bleed sections used inside a constrained main column must centre and
   still paint edge to edge without vw arithmetic. */
.agk-main .agk-hero,
.agk-main .agk-cta,
.agk-main .agk-proof,
.agk-main .agk-section {
	width: 100%;
}

.agk-main .agk-hero__inner,
.agk-main .agk-cta__inner,
.agk-main .agk-proof__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.agk-hero__copy {
	max-width: 40rem;
}

.agk-eyebrow {
	color: var(--wp--preset--color--forest);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.agk-hero h1 {
	display: block;
	margin-block: 0 1.35rem;
	max-width: 18ch;
	text-wrap: balance;
}

/* Technical surface marker: a thin forest rule that becomes a short
   structural accent rather than a text decoration. */
.agk-hero__lead {
	border-left: 3px solid var(--wp--preset--color--forest);
	color: var(--wp--preset--color--steel-dark);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.55;
	max-width: 52ch;
	padding-inline-start: 1rem;
}

.agk-hero__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin-block-start: 2.25rem;
}

.agk-hero__aside {
	background: var(--wp--preset--color--feature-panel);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	box-shadow: var(--agk-shadow-card);
	padding: clamp(1.35rem, 3vw, 2.15rem);
}

.agk-hero__aside h2 {
	font-size: var(--wp--preset--font-size--heading-3);
	margin: 0 0 0.5rem;
}

.agk-hero__aside p {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.agk-proof-list {
	display: grid;
	gap: 0;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.agk-proof-list li {
	align-items: flex-start;
	border-top: 1px solid var(--agk-border);
	display: flex;
	font-size: 0.95rem;
	font-weight: 600;
	gap: 0.6rem;
	padding-block: 0.7rem;
}

.agk-proof-list li::before {
	background: var(--wp--preset--color--forest);
	content: "";
	flex: 0 0 auto;
	height: 2px;
	margin-block-start: 0.75em;
	width: 0.85rem;
}

/* Numbered steps in the hero aside (v1.0.0 "What working with AGK looks
   like"). The list keeps the shared rule and marker, but each step stacks its
   own heading and explanation so a long sentence wraps under its label instead
   of squeezing into a narrow next to it. The marker becomes the step number,
   drawn as a small forest disc. */
.agk-proof-list--steps li {
	display: grid;
	column-gap: 0.65rem;
	font-weight: 400;
	grid-template-columns: 1.45rem minmax(0, 1fr);
	padding-block: 0.85rem;
	row-gap: 0.2rem;
}

.agk-proof-list--steps li::before {
	align-items: center;
	background: var(--wp--preset--color--forest);
	border-radius: 50%;
	color: var(--wp--preset--color--white);
	content: counter(agk-step);
	counter-increment: agk-step;
	display: flex;
	font-size: 0.7rem;
	font-weight: 700;
	height: 1.45rem;
	justify-content: center;
	line-height: 1;
	margin-block-start: 0.1rem;
	width: 1.45rem;
}

.agk-proof-list--steps {
	counter-reset: agk-step;
}

.agk-proof-list--steps li strong {
	color: var(--wp--preset--color--ink);
	font-size: 0.95rem;
	font-weight: 700;
	grid-column: 2;
	line-height: 1.3;
}

.agk-proof-list--steps li span {
	color: var(--wp--preset--color--steel-dark);
	font-size: 0.875rem;
	grid-column: 2;
	line-height: 1.5;
}

.agk-hero__aside-action {
	margin-block-start: 1rem;
}

.agk-hero__aside-action .agk-link-arrow {
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Section headings and cards
   -------------------------------------------------------------------------- */

.agk-section-head {
	margin-block-end: var(--wp--preset--spacing--60);
	max-width: 46rem;
}

.agk-section-head p {
	margin: 0;
}

.agk-section-head h2 {
	margin: 0 0 0.75rem;
}

/* Section rhythm: alternating surfaces keep the page structured instead of
   one long neutral field. */
.agk-section--alt {
	background: var(--wp--preset--color--surface-alt);
}

.agk-section--panel {
	background: var(--wp--preset--color--feature-panel);
}

.agk-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(1.35rem, 2.5vw, 2.15rem);
	position: relative;
	transition: border-color var(--agk-motion-short) ease, box-shadow var(--agk-motion-short) ease, transform var(--agk-motion-short) ease;
}

.agk-card:hover,
.agk-card:focus-within {
	border-color: var(--agk-border-strong);
	box-shadow: var(--agk-shadow-card);
	transform: translateY(-2px);
}

.agk-card__eyebrow {
	color: var(--wp--preset--color--forest);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.agk-card h3 {
	margin: 0 0 0.6rem;
}

.agk-card h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.agk-card h3 a:hover,
.agk-card h3 a:focus-visible {
	color: var(--wp--preset--color--forest);
	text-decoration: underline;
}

.agk-card p {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--body);
	margin: 0 0 1.25rem;
}

.agk-card__footer {
	margin-block-start: auto;
	padding-block-start: 1rem;
}

.agk-card--service {
	border-left: 4px solid var(--wp--preset--color--forest);
}

.agk-card--intro {
	background: var(--wp--preset--color--white);
	border-style: solid;
	border-color: var(--agk-border);
}

/* Supporting cards stay on the feature-panel tone where the surrounding
   surface is already white, so the panel step remains legible. */
.agk-section:not(.agk-section--alt):not(.agk-section--panel) .agk-card--intro {
	background: var(--wp--preset--color--feature-panel);
}

.agk-tag {
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--agk-border);
	border-radius: 999px;
	color: var(--wp--preset--color--steel-dark);
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.7rem;
	text-transform: uppercase;
}

/* Project card foundation. Real records are supplied by the companion plugin. */
.agk-card--project {
	padding: 0;
}

/* Project cards.
   `auto-fit` with a generous minimum means one record fills a readable column,
   two sit side by side at comfortable width, and a full set of three or more
   wraps naturally. The previous fixed three-track grid squeezed 1â€“2 records into
   a third of a wide viewport (AGK #49). */
.agk-grid--three.agk-projects-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	max-width: var(--wp--style--global--wide-size);
}

/* Development fixtures render inside a labelled wrapper; the wrapper must not
   collapse the card's own grid placement. */
.agk-fixture-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-self: start;
	min-width: 0;
}

.agk-grid--three.agk-projects-grid > .agk-card--project {
	align-self: stretch;
	display: flex;
	grid-column: span 1;
	max-width: none;
	width: 100%;
}

/* Cards in one desktop row share a height (stretch), and each card is a full
   height column: fixed 3:2 photograph, then a content column whose link row is
   pushed to the bottom. A longer excerpt therefore grows only its own card's
   text area, never the gap between a link and the card edge. */
.agk-grid--three.agk-projects-grid > .agk-card--project > .agk-card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* The one card presentation. Metadata and title keep their spacing regardless
   of whether a record has a town, and the excerpt keeps a readable measure
   instead of running the full card width. */
.agk-card--project .agk-card__content > h3 {
	margin-block: 0 0.6rem;
}

.agk-card--project .agk-card__excerpt {
	margin-block: 0;
	max-width: 46ch;
}

/* A lone foundation card should read as a deliberate preview: one column wide,
   centred, never stretched across the full grid. */
.agk-grid--three.agk-projects-grid:has(> .agk-card--project:only-child) {
	grid-template-columns: minmax(0, 26rem);
	justify-content: start;
}

@media (max-width: 47.99rem) {
	.agk-grid--three.agk-projects-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.agk-card--project .agk-card__content {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Single-project page (real imported records).
   v1.0.0: the record arrives from the client package with a featured image and a
   gallery. The featured image opens the page, the approved body and facts follow,
   and the gallery closes it on a neutral surface so each photograph reads as its
   own image rather than as card decoration. */
.agk-project {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: var(--agk-header-content-gap) var(--agk-section-tight);
	padding-inline: var(--agk-gutter);
}

.agk-project > h1 {
	margin-block: 0.5rem 1rem;
	max-width: 24ch;
}

.agk-project__media {
	border-radius: var(--agk-radius-card);
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	overflow: hidden;
}

.agk-project__media img {
	aspect-ratio: 3 / 2;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.agk-project__facts {
	margin-block: clamp(1.5rem, 3vw, 2.5rem);
}

.agk-project__facts h2 {
	font-size: var(--wp--preset--font-size--heading-3);
}

.agk-project__gallery {
	background: var(--wp--preset--color--surface-alt);
	border-radius: var(--agk-radius-card);
	margin-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.agk-project__gallery h2 {
	font-size: var(--wp--preset--font-size--heading-3);
	margin: 0 0 1rem;
}

.agk-project__gallery-grid {
	align-items: start;
	display: grid;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
	/* Equal height rows: every thumbnail in a row shares one 4:3 frame, so the
	   pictures line up even when one carries a caption and another does not.
	   The container is sized by its content; it has no fixed height, so no
	   empty band can appear beneath a gallery of any length. */
	grid-auto-rows: auto;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.agk-project__gallery-grid li {
	margin: 0;
	min-width: 0;
}

.agk-project__gallery-link {
	display: block;
	border-radius: var(--agk-radius-control);
	overflow: hidden;
}

.agk-project__gallery-link img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform var(--agk-motion-short) ease;
	width: 100%;
}

.agk-project__gallery-link:hover img,
.agk-project__gallery-link:focus-visible img {
	transform: scale(1.02);
}

.agk-project__gallery-caption {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	margin: 0.45rem 0 0;
}

@media (max-width: 48rem) {
	.agk-project__gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.agk-project__gallery-link img {
		transition: none;
	}
}

.agk-project-figure {
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--surface-alt);
	border-bottom: 1px solid var(--agk-border);
	display: block;
	flex: 0 0 auto;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.agk-project-figure img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.agk-project-figure__empty {
	align-items: center;
	color: var(--wp--preset--color--steel-dark);
	display: flex;
	font-size: 0.875rem;
	font-weight: 600;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.12em;
	padding: 1rem;
	text-align: center;
	text-transform: uppercase;
}

.agk-project-meta {
	color: var(--wp--preset--color--steel-dark);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
}

/* Image ratio utilities for editor patterns. */
.agk-ratio-16-9 {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.agk-ratio-3-2 {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

.agk-ratio-4-5 {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

/* --------------------------------------------------------------------------
   8. Proof / introduction band
   -------------------------------------------------------------------------- */

.agk-proof {
	background: var(--wp--preset--color--surface-alt);
}

.agk-proof__inner {
	align-items: start;
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-inline: var(--agk-gutter);
	width: 100%;
}

.agk-fact-list {
	border-top: 1px solid var(--agk-border-strong);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The project-facts block renders a definition list rather than a <ul>, because
   town/scope/duration are term/definition pairs. Match the fact-list rhythm so
   the dl in a project body looks identical to the dl on the About page. */
.agk-project-facts {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
}

.agk-project-facts__item {
	border-bottom: 1px solid var(--agk-border);
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
	padding-block: 0.9rem;
}

.agk-project-facts dt {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.agk-project-facts dd {
	margin: 0;
	min-width: 0;
}

.agk-fact-list li {
	align-items: baseline;
	border-bottom: 1px solid var(--agk-border);
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
	padding-block: 0.9rem;
}

.agk-fact-list strong {
	color: var(--wp--preset--color--ink);
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.agk-fact-list span {
	color: var(--wp--preset--color--steel-dark);
}

/* --------------------------------------------------------------------------
   9. CTA band and inverse surfaces

   The closing band echoes the header (AGK #47): the same forest as the header
   call action is the single accent across the top edge, instead of the old
   detached accent-green stub that floated inside the padding. Colours come
   from the palette only; the ink background is used for text-free hairlines.
   -------------------------------------------------------------------------- */

.is-style-agk-inverse,
.agk-cta {
	background: var(--wp--preset--color--ink);
	border-top: 4px solid var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.agk-cta__inner {
	align-items: center;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: clamp(3rem, 5.5vw, 4.75rem);
	padding-inline: var(--agk-gutter);
	position: relative;
	width: 100%;
}

.agk-cta__inner > div:first-child {
	padding-block-start: 0;
}

/* The old accent stub positioned from the top of the ink panel read as a
   floating artefact once the 4px forest edge above it was introduced; the
   continuous edge now carries the accent on its own. */

.agk-cta__inner > div {
	position: relative;
	z-index: 1;
}

.agk-cta h2 {
	font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
}

.agk-cta h2,
.is-style-agk-inverse h2,
.is-style-agk-inverse h3,
.agk-cta h1,
.is-style-agk-inverse h1 {
	color: var(--wp--preset--color--white);
}

.agk-cta p,
.is-style-agk-inverse p {
	color: rgba(255, 255, 255, 0.9);
}

.is-style-agk-inverse a,
.agk-cta a {
	color: var(--wp--preset--color--white);
}

.is-style-agk-inverse a:hover,
.agk-cta a:hover {
	color: var(--wp--preset--color--accent);
}

.agk-cta__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	justify-content: flex-start;
}

/* On ink, the primary button keeps the site's primary identity: solid forest
   with a white label (6.9:1 on ink). It used to be a white fill, which read as
   the weaker action beside the white-outline secondary in the CTA band next to
   "Want to work with us?" (v1.0.0 owner review). The secondary stays a white
   outline, so the two still separate clearly; hover and focus step to the
   brighter deep-forest green, and the focus ring is drawn outside the panel's
   background so it never disappears into the fill. */
.agk-cta .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link,
.is-style-agk-inverse .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.agk-cta .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:hover,
.is-style-agk-inverse .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:hover {
	background: var(--wp--preset--color--deep-forest);
	border-color: var(--wp--preset--color--deep-forest);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-cta .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:focus-visible,
.is-style-agk-inverse .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--deep-forest);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-cta .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:active,
.is-style-agk-inverse .wp-block-button:not(.is-style-agk-secondary) .wp-block-button__link:active {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.agk-cta .is-style-agk-secondary .wp-block-button__link,
.is-style-agk-inverse .is-style-agk-secondary .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--white);
	box-shadow: none;
	color: var(--wp--preset--color--white);
}

.agk-cta .is-style-agk-secondary .wp-block-button__link:hover,
.agk-cta .is-style-agk-secondary .wp-block-button__link:focus-visible,
.is-style-agk-inverse .is-style-agk-secondary .wp-block-button__link:hover,
.is-style-agk-inverse .is-style-agk-secondary .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.agk-cta .is-style-agk-secondary .wp-block-button__link:active,
.is-style-agk-inverse .is-style-agk-secondary .wp-block-button__link:active {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

/* An outline that is the same colour as its own fill is not a focus indicator:
   the outlined secondary on ink therefore keeps a transparent fill on focus and
   gains the white ring (the ink halo drawn by section 1 sits outside it), so
   pointing at it and tabbing to it look the same. */
.agk-cta .wp-block-button.is-style-agk-secondary .wp-block-button__link:focus-visible,
.is-style-agk-inverse .wp-block-button.is-style-agk-secondary .wp-block-button__link:focus-visible {
	background: transparent;
	border-color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 6px var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

/* The footer keeps the ink surface and now opens with the same 4px forest edge
   as the CTA band, so the page closes the way the header opens (AGK #47). */
.agk-footer {
	background: var(--wp--preset--color--ink);
	border-top: 4px solid var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.agk-footer__inner {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.15fr);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 3.5vw, 3rem);
	padding-inline: var(--agk-gutter);
	width: 100%;
}

.agk-footer__brand-col {
	max-width: 30rem;
}

.agk-footer__col {
	min-width: 0;
}

.agk-footer h2 {
	color: var(--wp--preset--color--white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

/* The only button-shaped element in the footer: the call action repeats the
   header's green, so the two ends of the page agree. Scoped with the element so
   it outranks the generic `.agk-footer a` link rules below. */
.agk-footer a.agk-footer__call {
	align-items: center;
	background: var(--wp--preset--color--forest);
	border: var(--agk-button-border-width) solid var(--wp--preset--color--forest);
	border-radius: var(--agk-button-radius);
	color: var(--wp--preset--color--white);
	display: inline-flex;
	font-weight: var(--agk-button-font-weight);
	gap: var(--agk-button-gap);
	justify-content: center;
	line-height: var(--agk-button-line-height);
	margin-block-start: 0.5rem;
	min-height: var(--agk-control-min-height);
	padding-block: var(--agk-button-padding-block);
	padding-inline: var(--agk-button-padding-inline);
	text-align: center;
	text-decoration: none;
}

.agk-footer__intro {
	max-width: 34ch;
}

/* Approved partner artwork. Both marks come from the client's original files
   through the committed asset pipeline (scripts/brand/assets.cjs), which trims
   only the surrounding whitespace and never stretches or alters the branding:
     bbb-a-rating.png               520x286  (rounded BBB card, transparent corners)
     apex-chamber-of-commerce.png   338x177  (Apex Chamber announcement mark)

   Presentation (final footer adjustment):
   - one white badge per mark, identical 260 x 100 px boxes with 8 px internal
     padding, centred art, 12 px between the badges and 16 px below the divider;
   - the artwork is fitted with object-fit: contain, so each logo is scaled
     uniformly to the largest size its own proportions allow and never distorted;
   - the BBB card and the white badge are both light surfaces, so the card keeps
     its own rounded edge on the badge.
   On a narrow phone the badge shrinks to the available width but keeps its
   aspect ratio from 260 x 100, so the art is still never cropped. */
/* Partner badges: higher-specificity overrides of the generic footer `ul`/`li`
   rules above (which give every footer list a top rule and every item 0.4rem
   vertical padding). The divider above the first badge is owned by this list,
   and the badges own their own vertical rhythm. */
.agk-footer .agk-footer__partners {
	align-items: flex-start;
	border-top: 1px solid var(--agk-border-inverse);
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 16px 0 0;
	padding: 16px 0 0;
}

.agk-footer .agk-footer__partners > li {
	border-bottom: 0;
	margin: 0;
	padding: 0;
}

.agk-footer li.agk-footer__partner {
	align-items: center;
	background: var(--wp--preset--color--white);
	border-radius: var(--agk-radius-control);
	box-sizing: border-box;
	display: flex;
	height: 100px;
	justify-content: center;
	margin: 0;
	max-width: 100%;
	padding: 8px;
	width: 260px;
}

.agk-footer .agk-footer__partner img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

@media (max-width: 47.99rem) {
	/* Keep the badge's proportion on a phone; never larger than the column. */
	.agk-footer .agk-footer__partner,
	.agk-footer li.agk-footer__partner {
		flex: 0 0 auto;
		width: min(260px, 100%);
	}
}

/* Links: white at rest with no underline, because a column of six underlined
   items read as a wall of rules. Every footer hyperlink (Explore, Contact,
   phone, email, Privacy, attribution) uses the same contract: white on the ink
   surface (17.95:1), readable forest green on hover and on keyboard focus with
   an underline. Contrast is measured, not assumed: the brand forest #04724D is
   3.01:1 on ink and would fail at body size, so the footer hover colour is the
   readable forest #3F9D5C at 5.29:1. The focus state adds a white ring, so the
   keyboard cue is never carried by colour alone (WCAG 2.4.7 / 1.4.1).
   Inline text (address, copyright) stays plain; only real links change. */
.agk-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-footer a:hover,
.agk-footer a:focus-visible {
	color: var(--agk-footer-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.agk-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 3px;
	border-radius: 2px;
}

/* States for the footer call action, declared after the generic footer link
   rules above so they win. Hover fills white with an ink label; keyboard focus
   restores the forest fill with the white ring, because the white fill plus a
   white ring during focus left the label on a same-colour background once the
   focus ring was painted. White on forest stays at 6.9:1. */
.agk-footer a.agk-footer__call,
.agk-footer a.agk-footer__call:hover {
	text-decoration: none;
}

.agk-footer a.agk-footer__call:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.agk-footer a.agk-footer__call:focus-visible {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 6px var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.agk-footer__brand {
	color: var(--wp--preset--color--white);
	display: block;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
}

.agk-footer p {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 0.75rem;
}

.agk-footer ul {
	border-top: 1px solid var(--agk-border-inverse);
	list-style: none;
	margin: 0;
	padding: 0;
}

.agk-footer li {
	border-bottom: 1px solid var(--agk-border-inverse);
	line-height: 1.4;
	margin: 0;
	padding-block: 0.4rem;
}

/* Explore and Contact links. Colour, hover and focus come from the shared
   `.agk-footer a` contract above (white at rest, readable forest with an
   underline on hover and keyboard focus, plus the white ring). This rule only
   adds the one-line hit target and the decorative chevron, which is generated
   content so the link's accessible name stays exactly its label. */
.agk-footer__col ul li > a {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 0.4rem;
	min-height: 2.25rem;
	text-decoration: none;
	transition: color var(--agk-motion-short) ease;
}

.agk-footer__col ul li > a::after {
	content: '\2192';
	font-weight: 400;
	opacity: 0;
	transform: translateX(-0.25rem);
	transition: opacity var(--agk-motion-short) ease, transform var(--agk-motion-short) ease;
}

.agk-footer__col ul li > a:hover::after,
.agk-footer__col ul li > a:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.agk-footer__col ul li > a,
	.agk-footer__col ul li > a::after {
		transition: none;
	}
}

/* The address is text, not a link: keep it visually distinct from the phone
   and email links beside it. */
.agk-footer li:not(:has(a)) {
	color: var(--wp--preset--color--white);
}

.agk-footer__bottom {
	background: var(--wp--preset--color--ink);
	border-top: 1px solid var(--agk-border-inverse);
}

.agk-footer__bottom-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: 1.1rem;
	padding-inline: var(--agk-gutter);
	width: 100%;
}

.agk-footer__bottom p {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.agk-footer__attribution {
	font-size: var(--wp--preset--font-size--small);
	text-align: end;
}

/* The attribution follows the shared footer link contract (white, readable
   forest on hover/focus, white focus ring). It keeps an always-on underline so
   "RNC Solutions Group" is still recognisable as a link inside a sentence of
   body text, where colour alone would be the only cue. */
.agk-footer__attribution a {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.agk-provisional {
	background: rgba(255, 255, 255, 0.07);
	border: 1px dashed rgba(255, 255, 255, 0.35);
	border-radius: var(--agk-radius-control);
	color: rgba(255, 255, 255, 0.72);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-block-start: 0.5rem;
	padding: 0.25rem 0.5rem;
	text-transform: uppercase;
}

/* Light-surface provisional marker used in fixtures. This is the only
   sanctioned off-palette value in the theme (documented in T-04). */
.agk-fixture-note {
	background: #FFF8E1;
	border: 1px dashed #B98900;
	border-radius: var(--agk-radius-control);
	color: #5B4500;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.25rem 0.6rem;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   11. Form styling (visual only - handlers arrive in a later checkpoint)
   -------------------------------------------------------------------------- */

.agk-form {
	max-width: 40rem;
}

.agk-form__field,
.wp-block-search__inside-wrapper input,
.agk-form input[type="text"],
.agk-form input[type="email"],
.agk-form input[type="tel"],
.agk-form select,
.agk-form textarea {
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

.agk-form label {
	color: var(--wp--preset--color--ink);
	display: block;
	font-weight: 700;
	margin-block-end: 0.35rem;
}

.agk-form .agk-form__required {
	color: var(--agk-steel-dark);
	font-size: 0.875rem;
	font-weight: 600;
}

.agk-form input[type="text"],
.agk-form input[type="email"],
.agk-form input[type="tel"],
.agk-form select,
.agk-form textarea,
.wp-block-search__input {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--steel-dark);
	border-radius: var(--agk-radius-control);
	color: var(--wp--preset--color--ink);
	min-height: 44px;
	padding: 0.6rem 0.75rem;
	width: 100%;
}

.agk-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.agk-form input:hover,
.agk-form select:hover,
.agk-form textarea:hover {
	border-color: var(--wp--preset--color--ink);
}

.agk-form .agk-form__help {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
}

/* Honeypot: present in the DOM for the server-side trap, removed from layout and
   from the accessibility tree. It must never read as a real field. The clipping
   technique keeps it in place without an off-canvas offset, so a layout probe
   never mistakes its label for overflowing content. */
.agk-form__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Form status and fallback states. */
.agk-form__status {
	border-inline-start: 4px solid var(--wp--preset--color--steel-dark);
	padding: 0.75rem 1rem;
	margin-block: 1rem;
}

.agk-form__status--info {
	background: var(--wp--preset--color--surface-alt);
	border-inline-start-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--ink);
}

.agk-form__status--ok {
	background: var(--wp--preset--color--surface-alt);
	border-inline-start-color: var(--wp--preset--color--accent);
}

.agk-form__status--error {
	background: var(--wp--preset--color--white);
	border-inline-start-color: var(--wp--preset--color--error);
}

.agk-form__status ul {
	margin: 0.5rem 0 0;
	padding-inline-start: 1.25rem;
}

.agk-form__fallback {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-block-start: 1rem;
}

.agk-form__fallback-link {
	color: var(--wp--preset--color--forest);
	font-weight: 600;
}

.agk-form__privacy {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
}

/* Disabled controls (Checkpoint 2 has no submission handler yet) stay legible
   and unambiguously non-interactive, without an unrelated browser grey. */
.agk-form input:disabled,
.agk-form select:disabled,
.agk-form textarea:disabled {
	background: var(--wp--preset--color--surface-alt);
	border-color: var(--agk-border);
	color: var(--wp--preset--color--steel-dark);
	cursor: not-allowed;
	opacity: 1;
}

.agk-form .wp-block-button__link:disabled,
.agk-form .wp-block-button__link[aria-disabled="true"] {
	background: var(--wp--preset--color--steel-dark);
	color: var(--wp--preset--color--white);
	cursor: not-allowed;
	opacity: 1;
}

.agk-form .agk-form__error {
	color: var(--wp--preset--color--error);
	font-weight: 700;
}

.agk-form [aria-invalid="true"] {
	border-color: var(--wp--preset--color--error);
	box-shadow: 0 0 0 1px var(--wp--preset--color--error);
}

/* --------------------------------------------------------------------------
   12. Page pattern helpers
   -------------------------------------------------------------------------- */

.agk-page-title {
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}

.agk-page-title h1 {
	margin: 0;
	max-width: 24ch;
}

.agk-page-title p {
	color: var(--wp--preset--color--steel-dark);
	font-size: 1.1rem;
	max-width: 60ch;
}

.agk-specimen {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.agk-specimen h2 {
	margin-block-start: 0;
}

.agk-specimen-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.agk-swatch {
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	overflow: hidden;
}

.agk-swatch__color {
	height: 4rem;
}

.agk-swatch__meta {
	background: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.6rem 0.75rem;
}

.agk-swatch__meta strong {
	display: block;
}

.agk-swatch__meta code {
	background: none;
	color: var(--wp--preset--color--steel-dark);
	padding: 0;
}

.agk-focus-demo {
	background: var(--wp--preset--color--surface-alt);
	border: 1px dashed var(--wp--preset--color--forest);
	border-radius: var(--agk-radius-control);
	padding: 0.75rem 1rem;
}

.agk-focus-demo a,
.agk-focus-demo button {
	background: none;
	border: 0;
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. WordPress core adjustments
   -------------------------------------------------------------------------- */

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.5rem;
}

.wp-block-search__button {
	min-height: 44px;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	padding-block: 0.25rem;
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--forest);
}

.wp-block-post-title a,
.wp-block-post-excerpt__more-link {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.wp-block-post-featured-image img {
	border-radius: var(--agk-radius-card);
}

.alignwide {
	width: min(100%, var(--wp--style--global--wide-size));
}

/* --------------------------------------------------------------------------
   14. Responsive behaviour
   -------------------------------------------------------------------------- */

@media (max-width: 60rem) {
	.agk-header .wp-block-navigation__responsive-container-open,
	.agk-header .wp-block-navigation__responsive-container-close {
		min-height: 44px;
		min-width: 44px;
	}

	.agk-header__mobile-actions {
		display: inline-flex;
	}

	.agk-hero__inner,
	.agk-proof__inner,
	.agk-cta__inner {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.agk-footer__brand-col {
		grid-column: 1 / -1;
	}
}

@media (max-width: 40rem) {
	.agk-header__inner {
		gap: 0.75rem;
		grid-template-columns: minmax(0, 1fr) auto;
		padding-block: 0.6rem;
	}

	.agk-brand__logo {
		height: 2.1rem;
		width: auto;
	}

	.agk-brand__word {
		font-size: 1.05rem;
	}

	.agk-brand__word small {
		font-size: 0.6rem;
		letter-spacing: 0.06em;
	}

	.agk-brand__mark {
		height: 2.4rem;
		width: 2.4rem;
	}

	.agk-call-button span.agk-call-button__label {
		display: none;
	}

	.agk-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.agk-footer__bottom-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.agk-footer__attribution {
		text-align: start;
	}

	.agk-fact-list li {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.15rem;
	}

	.agk-hero__actions .wp-block-button,
	.agk-cta__actions .wp-block-button {
		flex: 1 1 auto;
	}

	.agk-hero__actions .wp-block-button__link,
	.agk-cta__actions .wp-block-button__link {
		width: 100%;
	}
}

@media (min-width: 60.0625rem) {
	.agk-header__mobile-actions {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   15. Reduced motion and forced colours
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.agk-link-arrow::after,
	a.agk-link-arrow:hover::after,
	a.agk-link-arrow:focus-visible::after {
		transform: none;
	}
}

@media (forced-colors: active) {
	a:focus-visible,
	button:focus-visible,
	summary:focus-visible,
	input:focus-visible,
	select:focus-visible,
	textarea:focus-visible,
	.wp-block-button__link:focus-visible {
		outline: 3px solid Highlight;
		box-shadow: none;
	}

	.agk-call-button,
	.wp-block-button__link {
		forced-color-adjust: none;
		border: 1px solid ButtonText;
	}
}

/* --------------------------------------------------------------------------
   16. Checkpoint 1 shell alignment
   -------------------------------------------------------------------------- */

/* One shell contract for the block wrappers.
   WordPress prints `.wp-site-blocks`, and the theme's templates then wrap the
   header, main and footer in `div.agk-page`. Both are full-bleed and neither may
   contribute outer spacing. v1.0.0 owner review reported an inconsistent strip
   of background above the header: measured, the header sat 1.5rem down on every
   page template. The cause was a UTF-8 byte-order mark at the start of the page
   templates, which WordPress rendered as an invisible character in an
   otherwise-blank line above the header; that line is one line box tall
   (18px × 1.6 = the theme's 1.5rem gap), so the gap looked like a spacing bug
   and only affected the routes using a page template. The BOMs are removed from
   the templates (and the stylesheet, where it would break the first rule for
   strict parsers) and this gate keeps them from coming back
   (`npm run test:content`). These rules remain as a belt-and-braces reset. */
.agk-page,
.wp-site-blocks {
	margin-block-start: 0;
	max-width: none;
	width: 100%;
}

.agk-main {
	max-width: none;
	margin-inline: 0;
	width: 100%;
}

/* The logged-in admin bar is fixed to the top of the viewport and would cover
   the header's first row. Push the page down by its height (mobile uses 46px,
   desktop 32px) only while an admin bar is present. */
body.admin-bar .agk-page {
	padding-block-start: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .agk-page {
		padding-block-start: 46px;
	}
}

.agk-header,
.agk-footer,
.agk-cta,
.agk-hero,
.agk-proof {
	max-width: none;
	width: 100%;
}

/* ONE shared header-to-content rhythm (AGK #7).
   Every primary route starts with a full-bleed hero that owns its own
   padding; because a top margin would collapse through the block-level
   wrapper WordPress prints instead of applying, the gap is expressed as
   padded space inside the first section and reads identically on the home
   hero, the inner-page hero, the single-project article and any page that
   does not use a hero at all.

   The hero's own padding-block-start has been moved into this rule, so the
   distance from the header border to the first text line is a flat
   --agk-header-content-gap on the inner-page hero, the single-project
   article and any page that opens directly on a section. There are no
   per-route negative margins anywhere.

   The home hero keeps its deliberate, slightly more generous lead-in, but
   that lead-in is now derived from the same token instead of an unrelated
   6.5rem clamp. */
#agk-main > :first-child.agk-hero,
#agk-main > .wp-block-group:first-child .agk-hero {
	--agk-hero-lead-in: clamp(2.25rem, 4.5vw, 4.5rem);
}

/* The home hero cancels its own large inner padding first (see .agk-hero
   below), then adds only the shared gap plus its lead-in, so the two stages
   never stack into a double-height band. */
#agk-main > .agk-hero:first-child,
#agk-main > .wp-block-group:first-child .agk-hero {
	padding-block-start: calc(var(--agk-header-content-gap) + var(--agk-hero-lead-in));
}

#agk-main > .agk-page-hero:first-child,
#agk-main > .wp-block-group:first-child .agk-page-hero,
#agk-main > .agk-hero:not(:first-child),
#agk-main > .wp-block-group:first-child .agk-hero:not(:first-child),
#agk-main > .agk-section:first-child,
#agk-main > .wp-block-group:first-child > .agk-section:first-child,
#agk-main > article:first-child,
#agk-main > .wp-block-group:first-child > article:first-child {
	padding-block-start: var(--agk-header-content-gap);
}

#agk-main > .wp-block-group {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

/* Sections rendered by the home dynamic block are direct children of main
   (no core layout class), so they need the same wide-container centring. */
#agk-main > section,
#agk-main > div.agk-section,
#agk-main > div.agk-hero,
#agk-main > div.agk-proof,
#agk-main > div.agk-cta {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	width: 100%;
}

#agk-main > section.agk-hero,
#agk-main > section.agk-cta {
	max-width: none;
}

/* Generic helper used by the server-rendered home composition; aligns inner
   content to the wide container with the shared page gutter. */
.agk-container {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-inline: 0;
	width: 100%;
}

.agk-section > .agk-container,
.agk-section-head.agk-container {
	margin-inline: auto;
}

.agk-section.agk-container,
.agk-section-head.agk-container,
.agk-grid.agk-container {
	padding-inline: var(--agk-gutter);
}

.agk-header__inner,
.agk-footer__inner,
.agk-footer__bottom-inner,
.agk-hero__inner,
.agk-cta__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

html,
body {
	overflow-x: hidden;
}

.agk-card--inverse {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.agk-card--inverse h3,
.agk-card--inverse p {
	color: var(--wp--preset--color--white);
}

.agk-card--inverse .agk-card__eyebrow {
	color: var(--wp--preset--color--accent);
}

.agk-header .wp-block-navigation__responsive-container-open:focus-visible,
.agk-header .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}
/* ==========================================================================
   17. Checkpoint 2 â€” Cool Architectural page system
   ========================================================================== */

/* Inner-page hero: cool canvas, restrained scale. The detached 4px forest bar
   that was painted across the top edge (and looked pasted onto the projects
   hero) is gone (AGK #7); the hero's bottom border separates it from the body. */
.agk-page-hero {
	background: var(--wp--preset--color--canvas);
	border-bottom: 1px solid var(--agk-border);
}

/* Top padding now comes from the section-level shared header rhythm (section
   16), so the gap after the header is the same on every route. */
.agk-page-hero__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-block: 0 clamp(2rem, 4vw, 3rem);
	padding-inline: var(--agk-gutter);
	width: 100%;
}

.agk-page-hero h1 {
	margin: 0 0 1rem;
	max-width: 22ch;
}

.agk-page-hero__lead {
	color: var(--wp--preset--color--steel-dark);
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
	line-height: 1.55;
	max-width: 62ch;
}

.agk-page-hero .agk-hero__actions {
	margin-block-start: 1.75rem;
}

/* Supporting cards on the feature-panel surface. */
.agk-card--panel {
	background: var(--wp--preset--color--feature-panel);
	border-color: var(--agk-border);
}

/* On a feature-panel section, cards revert to white so the surface step is
   visible rather than tone-on-tone. */
.agk-section--panel .agk-card {
	background: var(--wp--preset--color--white);
}

.agk-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agk-plain-list li {
	border-bottom: 1px solid var(--agk-border);
	color: var(--wp--preset--color--steel-dark);
	padding-block: 0.7rem;
}

.agk-plain-list li:last-child {
	border-bottom: 0;
}

/* FAQ disclosure list. */
.agk-faq {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	margin-block-end: 0.75rem;
	padding: 1rem 1.25rem;
}

.agk-faq summary {
	cursor: pointer;
	font-weight: 700;
	padding-block: 0.25rem;
}

.agk-faq summary:hover {
	color: var(--wp--preset--color--forest);
}

.agk-faq[open] summary {
	color: var(--wp--preset--color--forest);
	margin-block-end: 0.5rem;
}

.agk-faq p {
	color: var(--wp--preset--color--steel-dark);
	margin: 0;
}

/* Contact phone emphasis. */
.agk-contact-phone {
	display: inline-block;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	min-height: 44px;
	text-decoration: none;
}

.agk-contact-phone:hover,
.agk-contact-phone:focus-visible {
	text-decoration: underline;
}

/* Keep the Checkpoint 2 inner-page sections on the shared wide container. */
#agk-main > .agk-page-hero,
#agk-main > .agk-section,
#agk-main > .agk-cta {
	max-width: none;
	width: 100%;
}

@media (max-width: 60rem) {
	/* The shared base rule (section 16) owns the top gap; this block used to
	   override padding-block outright and doubled the header-to-content gap to
	   about 7rem on every inner page below 60rem. */
	.agk-page-hero__inner {
		padding-block-end: clamp(1.5rem, 4vw, 2rem);
	}
}

/* Mobile navigation: the overlay is a full-viewport panel with its own
   padding, so long labels never clip at 320px. The call CTA stays outside the
   panel, in the header bar, and is never covered. */
.agk-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--agk-gutter) 2rem;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-block-start: 0;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container,
.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container.items-justified-right {
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 0.25rem;
	text-align: start;
	width: 100%;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item {
	align-items: flex-start;
	justify-content: flex-start;
	text-align: start;
	width: 100%;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content {
	display: block;
	min-height: 44px;
	padding-block: 0.65rem;
	width: auto;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-dialog {
	min-height: 100%;
	padding-block-start: 3.5rem;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-close {
	inset-block-start: 0.75rem;
	inset-inline-end: 0;
	min-height: 44px;
	min-width: 44px;
	position: absolute;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	box-shadow: none;
	inset: auto;
	margin-block: 0.25rem 0.75rem;
	max-width: 100%;
	padding-block: 0.25rem;
	padding-inline: 0.75rem;
	position: static;
	text-align: start;
	width: 100%;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item {
	width: auto;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content {
	padding-inline: 0;
}

/* Call action inside the mobile overlay so the phone number stays reachable
   while the menu is open. Hidden on desktop, where the utility bar shows it. */
.agk-header .wp-block-navigation-item.agk-menu-call {
	display: none;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item.agk-menu-call {
	display: flex;
	margin-block-start: 1.25rem;
	width: 100%;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item.agk-menu-call
	.wp-block-navigation-item__content {
	align-items: center;
	background: var(--wp--preset--color--forest);
	border-radius: var(--agk-radius-control);
	color: var(--wp--preset--color--white);
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item.agk-menu-call
	.wp-block-navigation-item__content:hover,
.agk-header
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item.agk-menu-call
	.wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--deep-forest);
	color: var(--wp--preset--color--white);
}

/* Specimen-only heading-scale sample (keeps exactly one H1 per page). */
.agk-specimen .agk-demo-h1 {
	border-left: 4px solid var(--wp--preset--color--forest);
	font-size: var(--wp--preset--font-size--heading-1);
	line-height: 1.08;
	padding-inline-start: 0.75rem;
}
/* Give the Services submenu disclosure a comfortable 44px hit area. */
.agk-header .wp-block-navigation__submenu-icon {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.agk-header .wp-block-navigation-submenu__toggle {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 32px;
}
/* The core heading block resets element styles; keep the page-hero H1 on the
   full display scale so inner-page titles match the home hero hierarchy. */
.agk-page-hero h1.wp-block-heading,
.agk-hero h1.wp-block-heading,
.agk-specimen .agk-demo-h1 {
	font-size: var(--wp--preset--font-size--heading-1);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.08;
}

.agk-card h3.wp-block-heading,
.agk-hero__aside h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	line-height: 1.25;
}

.agk-section-head h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.agk-cta h2.wp-block-heading {
	font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
}

/* ==========================================================================
   18. Services cards (AGK #9, v1.0.0 layout correction)

   Each service is one solid card: an eyebrow, the service name, the
   description and the single link. The original two-layer overlap ("layered"
   card) offset the body by 1.5rem against a name plate only 1.5rem narrower,
   so the body's left edge cut across the plate's right edge and cards of
   different copy length ended at different heights — readable only as a
   misalignment (v1.0.0 owner review). The grid now equalises row height and
   the card is a flex column so the link sits on the same baseline in every
   card. Each card exposes exactly one link.
   ========================================================================== */

.agk-layered-grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agk-layered-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--agk-border);
	border-left: 4px solid var(--wp--preset--color--forest);
	border-radius: var(--agk-radius-card);
	box-shadow: var(--agk-shadow-card);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

.agk-layered-card__top,
.agk-layered-card__body {
	display: contents;
}

/* With `display: contents` the body's box disappears, so the description and
   link must be flex items of the card itself to keep the gap rhythm. */
.agk-layered-card > .agk-layered-card__body > * {
	min-width: 0;
}

.agk-layered-card__top .agk-card__eyebrow {
	margin: 0;
}

.agk-layered-card__top h3.wp-block-heading {
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.25rem;
	overflow-wrap: anywhere;
}

.agk-layered-card__copy {
	color: var(--wp--preset--color--steel-dark);
	margin: 0;
}

.agk-layered-card__features {
	color: var(--wp--preset--color--steel-dark);
	font-size: var(--wp--preset--font-size--small);
	list-style: disc;
	margin: 0;
	padding-inline-start: 1.15rem;
}

.agk-layered-card__features li {
	margin-block-end: 0.35rem;
}

/* Pinned to the bottom of the equalised card, so all three links align. */
.agk-layered-card__link {
	align-items: center;
	display: inline-flex;
	margin-block-start: auto;
	min-height: 44px;
	padding-block-start: 0.75rem;
}

/* Two columns on mid-width viewports so cards do not become too narrow. */
@media (max-width: 64rem) {
	.agk-layered-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Single column on mobile. */
@media (max-width: 48rem) {
	.agk-layered-grid {
		gap: 1rem;
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (forced-colors: active) {
	.agk-layered-card {
		border: 1px solid CanvasText;
		box-shadow: none;
	}
}

/* ==========================================================================
   19. Page notice and testimonials (AGK #12)

   .agk-page-notice is a paragraph-register status notice for a single page.
   It is NOT a fixture chip: the copy states a real editorial status rather
   than flagging developer content. Text pairing #5B4500 on #FFF8E1 measures
   8.89:1 (AAA at all sizes); the 1px border is decorative only.
   ========================================================================== */

.agk-page-notice {
	background: #FFF8E1;
	border: 1px solid #B98900;
	border-inline-start: 4px solid #B98900;
	border-radius: var(--agk-radius-control);
	color: #5B4500;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	max-width: 62ch;
	padding: 0.85rem 1rem;
}

.agk-page-notice strong {
	font-weight: 700;
}

/* Testimonials (v1.0.0 owner review; balanced two-column layout from the
   release refinement): unattributed verbatim quotes presented as dark,
   high-contrast cards.

   Reading order is the source order (1-8), and the text is reproduced exactly as
   the customer wrote it.

   Layout: a CSS-columns masonry, so each quote is exactly as tall as it needs to
   be. The previous equal-height grid stretched a short quote to the height of
   the longest quote in its row, leaving several cards mostly empty. Columns fill
   in order and balance their heights, `break-inside: avoid` keeps every quote
   whole, and the 32rem preferred width gives two balanced columns on desktop
   and one on a phone, with a readable measure either way. The container stays a
   plain list of blockquotes, not a carousel.

   The quotation marks are typographic opening and closing marks drawn as
   pseudo-elements. Because they are generated content they are outside the
   accessibility tree, so a screen reader reads the customer's words and the
   visual marks cannot be double-announced.

   Colour: white on ink is 17.95:1 and the accent-green quote glyph is 7.45:1 on
   ink, both comfortably AA at any size. No names, towns, stars, ratings or
   review schema are added: the quotes have no rating values and marking them
   up as reviews would fabricate data. */
.agk-testimonials {
	column-fill: balance;
	column-gap: clamp(1rem, 2vw, 1.5rem);
	columns: 32rem 2;
	margin: 0;
	max-width: none;
	padding: 0;
}

.agk-testimonials blockquote {
	align-items: flex-start;
	background: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--agk-radius-card);
	break-inside: avoid;
	color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	font-size: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	margin: 0 0 clamp(1rem, 2vw, 1.5rem);
	max-width: none;
	min-width: 0;
	padding: clamp(1.5rem, 2.4vw, 2rem);
	padding-block-start: clamp(2.75rem, 4vw, 3.25rem);
	position: relative;
}

/* Avoid a trailing gap at the bottom of the tallest column. */
.agk-testimonials blockquote:last-child {
	margin-block-end: 0;
}

.agk-testimonials blockquote::before {
	color: var(--wp--preset--color--accent);
	content: '\201C';
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 2.75rem;
	font-weight: 700;
	inset-block-start: 0.3rem;
	inset-inline-start: clamp(0.75rem, 1.4vw, 1rem);
	line-height: 1;
	position: absolute;
}

.agk-testimonials blockquote p {
	color: inherit;
	font-size: inherit;
	margin: 0;
	max-width: none;
	overflow-wrap: anywhere;
}

.agk-testimonials blockquote p::after {
	color: var(--wp--preset--color--accent);
	content: '\201D';
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.35em;
	font-weight: 700;
	line-height: 0;
	margin-inline-start: 0.12em;
	vertical-align: -0.12em;
}

/* One readable column below 60rem, in source order (1-8). The column width
   already collapses to one column; this keeps the intent explicit for engines
   that resolve `columns` differently. */
@media (max-width: 59.99rem) {
	.agk-testimonials {
		columns: 1;
	}
}

@media (forced-colors: active) {
	.agk-page-notice {
		border: 1px solid CanvasText;
	}

	.agk-testimonials blockquote {
		border: 1px solid CanvasText;
	}
}

/* ==========================================================================
   20. v1.0.0 section hierarchy and responsive corrections

   A page alternates plain and tinted surfaces, so the first section after the
   hero is tinted and the alternation holds through to the CTA (the Services
   hub used to open with a tinted band directly under the hero's own tinted
   band, and Careers rendered a bare notice on plain canvas).
   ========================================================================== */

.agk-page-hero + .agk-section:not(.agk-section--alt):not(.agk-section--panel) {
	background: var(--wp--preset--color--surface-alt);
}

.agk-page-hero__inner {
	position: relative;
}

/* The Careers action jumps to the form on the same page. This keeps the form
   heading clear of the top edge when the anchor lands. */
.agk-careers .agk-card--form,
#agk-inquiry-employment {
	scroll-margin-block-start: var(--agk-header-content-gap);
}

/* The tint is the first body section only; the closing CTA keeps the ink
   surface it already sets. */
.agk-page-hero + .agk-section.agk-section--alt:not(.agk-section--panel) {
	background: var(--wp--preset--color--surface-alt);
}

.agk-section--alt > .agk-card--panel,
.agk-section--alt .agk-card--panel,
.agk-section--panel > .agk-card--panel,
.agk-section--panel .agk-card--panel {
	background: var(--wp--preset--color--white);
	border-color: var(--agk-border);
}

/* The embedded employment form sits inside a panel card: keep its controls at
   a readable width and let the card own the outer spacing. */
/* Data surfaces need more than the marketing register allows. */
.agk-card--form,
.agk-card--form.agk-card--panel {
	background: var(--wp--preset--color--white);
	border-color: var(--agk-border);
}

/* Data surfaces need more than the marketing register allows: an address legible
   in a footer is not legible as a legal contact block, so it is reset here
   rather than inheriting the footer's small caption size. */
.agk-privacy .agk-privacy__address {
	font-size: var(--wp--preset--font-size--body);
	font-style: normal;
	line-height: 1.7;
	margin-block: 1.25rem;
}

.agk-privacy .agk-privacy__section + .agk-privacy__section {
	margin-block-start: clamp(2rem, 4vw, 3rem);
}

.agk-privacy h3.wp-block-heading {
	font-size: var(--wp--preset--font-size--heading-3);
	margin-block: 1.5rem 0.5rem;
}

.agk-privacy .agk-privacy__toc {
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	margin-block-end: clamp(2rem, 4vw, 3rem);
	padding: 1.25rem 1.5rem;
}

.agk-privacy .agk-privacy__toc h2 {
	font-size: 1rem;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.agk-privacy .agk-privacy__toc ol {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.agk-privacy .agk-privacy__toc li {
	margin-block: 0.35rem;
}

/* Data surfaces need more than the marketing register allows: an address legible
   in a footer is not legible as a legal contact block, so it is reset here
   rather than inheriting the footer's small caption size. */
.agk-privacy .agk-privacy__address {
	font-size: var(--wp--preset--font-size--body);
	font-style: normal;
	line-height: 1.7;
	margin-block: 1.25rem;
}

.agk-privacy .agk-privacy__section + .agk-privacy__section {
	margin-block-start: clamp(2rem, 4vw, 3rem);
}

.agk-privacy h3.wp-block-heading {
	font-size: var(--wp--preset--font-size--heading-3);
	margin-block: 1.5rem 0.5rem;
}

.agk-privacy .agk-privacy__toc {
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--agk-border);
	border-radius: var(--agk-radius-card);
	margin-block-end: clamp(2rem, 4vw, 3rem);
	padding: 1.25rem 1.5rem;
}

.agk-privacy .agk-privacy__toc h2 {
	font-size: 1rem;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.agk-privacy .agk-privacy__toc ol {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.agk-privacy .agk-privacy__toc li {
	margin-block: 0.35rem;
}

.agk-form--embedded {
	background: transparent;
	border: 0;
	margin-block-start: 0.5rem;
	padding: 0;
}

.agk-form--embedded .agk-form__field input,
.agk-form--embedded .agk-form__field textarea {
	max-width: 34rem;
	width: 100%;
}

@media (max-width: 40rem) {
	/* Touch targets and card padding at phone widths. */
	.agk-testimonials blockquote {
		padding: clamp(1.25rem, 5vw, 1.5rem);
		padding-block-start: 2.5rem;
	}

	.agk-layered-card {
		padding: 1.25rem;
	}

	.agk-footer__partner {
		flex: 1 1 auto;
	}
}

@media (min-width: 40.01rem) and (max-width: 60rem) {
	/* The phone header rule above hides the in-bar call action; between 40rem
	   and the navigation breakpoint there is room for it beside the toggle. */
	.agk-header__inner {
		grid-template-areas: 'brand nav call';
		grid-template-columns: minmax(0, 1fr) auto auto;
	}

	.agk-header .agk-header__inner > .agk-call-button {
		display: inline-flex;
	}
}
