/**
 * Creystone Group – presentation layer.
 *
 * Colour, type and spacing tokens live in theme.json (Appearance → Editor → Styles).
 * This file adds what theme.json cannot express: the framed full-height banner,
 * the overlaid two-tier header, the capability panorama, the stepped stages,
 * block style variations, form styling and motion.
 */

:root {
	--cg-header-h: 4.75rem;
	--cg-frame: var(--wp--custom--frame, clamp(0.75rem, 1.6vw, 1.5rem));
	--cg-ease: var(--wp--custom--motion--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
	--cg-dur: var(--wp--custom--motion--duration, 720ms);
	--cg-line: rgba(23, 51, 28, 0.16);
	--cg-error: #b42318;
}

@media (min-width: 1200px) {
	:root {
		--cg-header-h: 8.25rem;
	}
}

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

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

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

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

[id] {
	scroll-margin-top: 2rem;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

img {
	height: auto;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 3px;
	border-radius: 1px;
}

:where(.wp-block-cover.is-dark) :where(a, button, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--lime);
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	padding: 0.9rem 1.25rem;
	text-decoration: none;
	z-index: 1000;
}

.cg-measure {
	max-width: var(--wp--custom--measure, 38rem);
	margin-inline: auto;
}

.cg-break {
	overflow-wrap: anywhere;
}

/* ---------- Header: overlaid on the top band of each page's banner ---------- */

.wp-site-blocks > .cg-site-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 50;
	margin: 0;
}

.admin-bar .wp-site-blocks > .cg-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.wp-site-blocks > main,
.wp-site-blocks > .cg-site-footer {
	margin-block-start: 0;
}

.cg-header {
	background: transparent !important;
}

.cg-header__bar {
	min-height: var(--cg-header-h);
	gap: 0.5rem !important;
}

.cg-header__logo img {
	display: block;
}

@media (max-width: 1199.98px) {
	.cg-header__bar {
		flex-direction: row !important;
		justify-content: space-between !important;
	}

	.cg-header__logo img {
		width: 150px !important;
	}
}

@media (min-width: 1200px) {
	.cg-header__bar {
		flex-direction: column !important;
		justify-content: center !important;
		padding-top: 1.1rem !important;
		padding-bottom: 0.9rem !important;
	}
}

/* Primary navigation: centred row from 1200px (eight items on one line), overlay below. */
.cg-primary-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--forest);
	text-decoration: none;
	padding: 0.4rem 0;
	position: relative;
}

.cg-primary-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.1rem;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--wp--preset--color--leaf);
	opacity: 0;
	transform: translateY(3px);
	transition: opacity 200ms ease, transform 200ms var(--cg-ease);
}

.cg-primary-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.cg-primary-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after {
	opacity: 1;
	transform: none;
}

.cg-primary-nav .wp-block-navigation__responsive-container-open,
.cg-primary-nav .wp-block-navigation__responsive-container-close {
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--forest);
}

.cg-primary-nav .wp-block-navigation__responsive-container-open svg,
.cg-primary-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

@media (min-width: 600px) and (max-width: 1199.98px) {
	.cg-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}

	.cg-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Overlay menu: light, centred, and display-led. */
.cg-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--forest) !important;
	padding: 1.25rem var(--wp--style--root--padding-right) 2.5rem;
}

.cg-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 1rem;
	right: var(--wp--style--root--padding-right);
}

.cg-primary-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem !important;
	align-items: center !important;
}

.cg-primary-nav .is-menu-open .wp-block-navigation__container {
	gap: 0.15rem !important;
	align-items: center !important;
}

.cg-primary-nav .is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--forest) !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.3rem, 7vw, 2.6rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	padding: 0.2rem 0 !important;
}

.cg-primary-nav .is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.cg-primary-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	font-style: italic;
	color: var(--wp--preset--color--moss) !important;
}

/* ---------- Banner: framed photograph, exactly one viewport tall ---------- */

.cg-banner {
	height: 100vh;
	height: 100svh;
	min-height: 32rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: var(--cg-header-h) var(--cg-frame) var(--cg-frame) !important;
	margin-block: 0 !important;
}

.cg-banner > .wp-block-cover {
	flex: 1 1 auto;
	margin: 0 !important;
	width: 100%;
	max-width: none !important;
	min-height: 0 !important;
	height: 100%;
	padding: clamp(1.75rem, 5vh, 4.5rem) clamp(1.25rem, 5vw, 4rem) !important;
	overflow: hidden;
}

/* Headline sizes are capped by viewport height so the banner always fits one screen. */
.cg-banner h1.has-display-font-size {
	font-size: clamp(2.6rem, min(8.4vw, 10.5svh), 7.75rem) !important;
}

.cg-banner h1.has-xx-large-font-size {
	font-size: clamp(2.5rem, min(7vw, 9.5svh), 6rem) !important;
}

.cg-banner p.has-medium-font-size {
	font-size: clamp(1rem, min(1.6vw, 2.4svh), 1.375rem) !important;
}

.cg-banner > .wp-block-cover > .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(23, 51, 28, 0.82) 0%, rgba(23, 51, 28, 0.42) 38%, rgba(23, 51, 28, 0.06) 72%) !important;
	opacity: 1 !important;
}

.cg-banner .wp-block-cover__inner-container {
	text-align: center;
}

.cg-banner .wp-block-cover__inner-container > * {
	margin-inline: auto;
}

.cg-banner h1 {
	max-width: 18ch;
}

.cg-banner p {
	max-width: 40rem;
}

.cg-banner .wp-block-cover__inner-container > h1 + p {
	margin-top: 1.5rem;
}

/* ---------- Text blocks ---------- */

.cg-centre {
	text-align: center;
}

.cg-centre > * {
	margin-inline: auto;
}

.cg-lead-serif {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.6rem, 2.6vw, 2.35rem);
	line-height: 1.22;
	letter-spacing: -0.005em;
	max-width: 32ch;
}

/* Short leaf rule. */
.is-style-cg-short.wp-block-separator,
hr.is-style-cg-short {
	width: 3.5rem;
	height: 2px;
	border: 0;
	margin: 1.75rem auto !important;
	opacity: 1;
}

/* Text link paragraphs. */
.is-style-cg-text-link {
	margin-top: 1.5rem;
	font-weight: 600;
}

.is-style-cg-text-link a {
	color: var(--wp--preset--color--forest);
	text-decoration-color: var(--wp--preset--color--leaf);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

.is-style-cg-text-link a:hover {
	color: var(--wp--preset--color--moss);
	text-decoration-color: currentColor;
}

.wp-block-cover.is-dark .is-style-cg-text-link a {
	color: var(--wp--preset--color--white);
}

.wp-block-cover.is-dark .is-style-cg-text-link a:hover {
	color: var(--wp--preset--color--lime);
	text-decoration-color: var(--wp--preset--color--lime);
}

/* ---------- Capability panorama (Home) ---------- */

.cg-panorama {
	gap: 0 !important;
	margin: var(--wp--preset--spacing--50) 0 0 !important;
	padding: 0 var(--cg-frame) var(--cg-frame);
}

.cg-panorama > .wp-block-column {
	flex: 1 1 0 !important;
	min-width: 0;
}

.cg-panorama .wp-block-cover {
	min-height: 78svh !important;
	height: 100%;
	margin: 0;
	padding: clamp(1.25rem, 2.6vw, 2.5rem) !important;
}

.cg-panorama .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(23, 51, 28, 0.88) 0%, rgba(23, 51, 28, 0.4) 48%, rgba(23, 51, 28, 0) 78%) !important;
	opacity: 1 !important;
}

.cg-panorama .wp-block-cover__image-background {
	transition: transform 900ms var(--cg-ease);
}

.cg-panorama h3 {
	color: var(--wp--preset--color--white);
}

.cg-panorama p {
	max-width: 24rem;
}

@media (min-width: 782px) {
	.cg-panorama > .wp-block-column {
		transition: flex-grow 700ms var(--cg-ease);
	}

	.cg-panorama > .wp-block-column + .wp-block-column {
		border-left: var(--cg-frame) solid var(--wp--preset--color--white);
	}

	.cg-panorama > .wp-block-column:hover,
	.cg-panorama > .wp-block-column:focus-within {
		flex-grow: 1.6 !important;
	}

	.cg-panorama > .wp-block-column:hover .wp-block-cover__image-background {
		transform: scale(1.04);
	}
}

@media (max-width: 781.98px) {
	.cg-panorama {
		flex-direction: column;
		gap: var(--cg-frame) !important;
	}

	.cg-panorama .wp-block-cover {
		min-height: 54svh !important;
	}
}

/* ---------- Framed images and chapters ---------- */

.cg-framed {
	padding-inline: var(--cg-frame) !important;
}

.cg-framed .wp-block-image {
	margin-block: 0;
}

.cg-framed img,
.cg-chapter .wp-block-image img {
	display: block;
	width: 100%;
}

@media (max-width: 599.98px) {
	.cg-framed img,
	.cg-chapter .wp-block-image img {
		aspect-ratio: 4 / 3 !important;
	}
}

.cg-chapter .wp-block-image {
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* ---------- Quad grid (values, areas, partners) ---------- */

.cg-quad {
	gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem) !important;
}

.cg-quad > * {
	text-align: center;
}

.cg-quad > * > * {
	margin-inline: auto;
}

.cg-quad > *::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	margin: 0 auto 1.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--leaf);
}

.cg-quad h3 {
	font-style: italic;
}

.cg-quad p {
	max-width: 26rem;
}

@media (max-width: 781.98px) {
	.cg-quad {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---------- Stepped stages (Our Approach) ---------- */

.cg-stairs {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 4vw, 3.5rem) !important;
}

.cg-stairs > * {
	margin: 0 !important;
	position: relative;
}

.is-style-cg-step {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: clamp(3.5rem, 6vw, 5.5rem);
	line-height: 0.85;
	color: var(--wp--preset--color--moss);
	margin: 0 0 0.75rem !important;
}

.cg-stairs h3 {
	margin-top: 0;
}

.cg-stairs p:not(.is-style-cg-step) {
	max-width: 30rem;
}

@media (min-width: 1200px) {
	.cg-stairs > * {
		width: 40%;
	}

	.cg-stairs > :nth-child(2) { margin-left: 15% !important; }
	.cg-stairs > :nth-child(3) { margin-left: 30% !important; }
	.cg-stairs > :nth-child(4) { margin-left: 45% !important; }
	.cg-stairs > :nth-child(5) { margin-left: 60% !important; }

	.cg-stairs > * + *::before {
		content: "";
		position: absolute;
		left: -2rem;
		top: -2.5rem;
		width: 1px;
		height: calc(100% + 2.5rem);
		background: var(--cg-line);
	}
}

/* ---------- Link list (Projects) ---------- */

.is-style-cg-link-list {
	list-style: none;
	padding: 0 !important;
	margin: 0 auto;
	text-align: center;
}

.is-style-cg-link-list li {
	margin: 0.4rem 0;
	font-family: var(--wp--preset--font-family--serif);
	line-height: 1.2;
}

.is-style-cg-link-list a {
	color: var(--wp--preset--color--forest);
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--leaf), var(--wp--preset--color--leaf));
	background-size: 0 2px;
	background-position: 50% 100%;
	background-repeat: no-repeat;
	transition: background-size 360ms var(--cg-ease), color 160ms ease;
}

.is-style-cg-link-list a:hover,
.is-style-cg-link-list a:focus-visible {
	background-size: 100% 2px;
	font-style: italic;
}

/* ---------- Contact details ---------- */

.cg-details {
	gap: clamp(2rem, 5vw, 4rem) !important;
}

.cg-details > * {
	text-align: center;
}

.cg-details h3 {
	font-style: italic;
	margin-bottom: 0.6rem;
}

.cg-details p {
	margin-top: 0;
}

@media (max-width: 781.98px) {
	.cg-details {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---------- Footer: light and centred ---------- */

.cg-footer {
	text-align: center;
}

.cg-footer .cg-footer__logo {
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

.cg-footer .cg-footer__strap {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
}

.cg-footer-nav,
.cg-footer-nav .wp-block-navigation__container {
	justify-content: center;
}

.cg-footer-nav .wp-block-navigation__container {
	gap: 0.4rem 1.75rem !important;
}

.cg-footer-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--forest);
	text-decoration: none;
}

.cg-footer-nav .wp-block-navigation-item__content:hover,
.cg-footer-nav .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--leaf);
	text-decoration-thickness: 2px;
}

.cg-footer a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

.cg-footer__legal p {
	margin: 0;
	color: var(--wp--preset--color--stone);
}

/* ---------- Contact form (Forminator, design style: none) ---------- */

.cg-form .forminator-ui.forminator-custom-form {
	margin-top: var(--wp--preset--spacing--40);
	text-align: left;
}

/* Forminator hides forms inline until its script runs. Show it immediately:
   the theme styles it already, it avoids a layout shift and it stays usable without JS. */
.cg-form form.forminator-custom-form {
	display: block !important;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	margin-bottom: 1.4rem;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-col {
	flex: 1 1 100%;
	min-width: 0;
}

@media (min-width: 600px) {
	.forminator-ui.forminator-custom-form[data-design="none"] .forminator-col-6 {
		flex: 1 1 calc(50% - 0.75rem);
	}
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--forest);
	margin-bottom: 0.3rem;
	line-height: 1.4;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-required {
	color: var(--wp--preset--color--moss);
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--forest);
	background: transparent;
	border: 0;
	border-bottom: 1px solid #7d8a80;
	border-radius: 0;
	padding: 0.7rem 0.1rem;
	min-height: 3rem;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.forminator-ui.forminator-custom-form[data-design="none"] textarea {
	min-height: 9rem !important;
	resize: vertical;
	border: 1px solid #7d8a80;
	padding: 0.85rem 0.9rem;
}

.forminator-ui.forminator-custom-form[data-design="none"] select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317331c' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.4rem center;
	padding-right: 2rem;
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input, select, textarea):hover {
	border-color: var(--wp--preset--color--forest);
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input, select, textarea):focus,
.forminator-ui.forminator-custom-form[data-design="none"] :is(input, select, textarea):focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--forest);
	box-shadow: 0 2px 0 0 var(--wp--preset--color--moss);
}

.forminator-ui.forminator-custom-form[data-design="none"] textarea:focus,
.forminator-ui.forminator-custom-form[data-design="none"] textarea:focus-visible {
	box-shadow: 0 0 0 1px var(--wp--preset--color--forest);
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-has_error :is(input, select, textarea) {
	border-color: var(--cg-error);
	box-shadow: 0 2px 0 0 var(--cg-error);
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-error-message {
	display: block;
	color: var(--cg-error);
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 0.4rem;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-button-submit {
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--forest);
	border: 0;
	border-radius: 0;
	padding: 1.05rem 2.25rem;
	min-height: 3.25rem;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-button-submit:hover,
.forminator-ui.forminator-custom-form[data-design="none"] .forminator-button-submit:focus-visible {
	background: var(--wp--preset--color--moss);
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-response-message {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--wp--preset--color--leaf);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--forest);
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-response-message:empty,
.forminator-ui.forminator-custom-form[data-design="none"] .forminator-response-message[aria-hidden="true"] {
	display: none;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-response-message.forminator-error {
	border-left-color: var(--cg-error);
	background: #fdf3f2;
}

.forminator-ui.forminator-custom-form[data-design="none"] .forminator-response-message p {
	margin: 0;
	font-weight: 600;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	.cg-banner > .wp-block-cover .wp-block-cover__image-background {
		animation: cg-settle 2200ms var(--cg-ease) both;
	}

	.cg-banner .wp-block-cover__inner-container > * {
		animation: cg-rise 900ms var(--cg-ease) both;
		animation-delay: 150ms;
	}

	.cg-banner .wp-block-cover__inner-container > :nth-child(2) {
		animation-delay: 280ms;
	}

	.cg-banner .wp-block-cover__inner-container > :nth-child(3) {
		animation-delay: 380ms;
	}

	.cg-reveal-on .cg-reveal {
		opacity: 0;
		transform: translateY(1.5rem);
		transition: opacity var(--cg-dur) var(--cg-ease), transform var(--cg-dur) var(--cg-ease);
	}

	.cg-reveal-on .cg-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cg-panorama > .wp-block-column,
	.cg-panorama .wp-block-cover__image-background {
		transition: none !important;
	}
}

@keyframes cg-settle {
	from {
		transform: scale(1.07);
	}

	to {
		transform: scale(1);
	}
}

@keyframes cg-rise {
	from {
		opacity: 0;
		transform: translateY(1.1rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Editor parity ---------- */

.editor-styles-wrapper .cg-reveal {
	opacity: 1 !important;
	transform: none !important;
}

.editor-styles-wrapper .cg-banner {
	min-height: 0;
	padding-top: var(--cg-frame) !important;
}

.editor-styles-wrapper .cg-banner > .wp-block-cover {
	min-height: 82vh !important;
}
.is-style-cg-italic { font-style: italic; }

/* Templates without a banner (generic pages, posts, archives) clear the overlaid header. */
.cg-main-offset {
	padding-top: calc(var(--cg-header-h) + var(--wp--preset--spacing--60)) !important;
}

/* Closing framed image sits on white, separated from the light footer by the frame. */
.cg-framed.alignfull {
	padding-bottom: var(--cg-frame) !important;
}

.cg-framed .wp-block-image img {
	display: block;
	width: 100%;
}

/* Footer contact links: comfortable touch targets (WCAG 2.2 target size). */
.cg-footer p a {
	display: inline-block;
	padding-block: 0.3rem;
}

/* ---------- Design direction v3: modern architectural editorial ---------- */

:root {
	--cg-header-h: 5.5rem;
	--cg-surface: #f5f7f2;
	--cg-soft-line: rgba(23, 51, 28, 0.12);
	--cg-shadow: 0 28px 70px rgba(16, 41, 22, 0.14);
}

body {
	background: var(--cg-surface);
}

@media (min-width: 1200px) {
	:root {
		--cg-header-h: 6.25rem;
	}

	.cg-header__bar {
		flex-direction: row !important;
		justify-content: space-between !important;
		padding-top: 1rem !important;
		padding-bottom: 1rem !important;
		gap: 3rem !important;
	}

	.cg-header__logo img {
		width: 205px !important;
	}
}

.cg-header__bar {
	position: relative;
}

.cg-header__bar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--cg-soft-line);
}

.cg-primary-nav .wp-block-navigation__container {
	column-gap: clamp(1rem, 1.7vw, 2rem) !important;
}

.cg-primary-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: -0.012em;
}

.cg-primary-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	bottom: -0.35rem;
	width: 1.4rem;
	height: 2px;
	margin-left: -0.7rem;
	border-radius: 0;
}

.cg-primary-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--manrope);
	font-style: normal;
	font-weight: 650;
	letter-spacing: -0.045em;
}

.cg-primary-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	font-style: normal;
}

/* The hero reads like an architectural cover: image first, structured copy second. */
.cg-banner > .wp-block-cover {
	padding: clamp(1.5rem, 4vw, 3.75rem) clamp(1.25rem, 5vw, 4.5rem) !important;
}

.cg-banner > .wp-block-cover > .wp-block-cover__background {
	background: linear-gradient(115deg, rgba(7, 27, 13, 0.78) 0%, rgba(7, 27, 13, 0.34) 56%, rgba(7, 27, 13, 0.08) 100%) !important;
}

.cg-banner .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto;
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid rgba(255, 255, 255, 0.48);
	text-align: left;
	position: relative;
}

.cg-banner .wp-block-cover__inner-container::before {
	content: "";
	position: absolute;
	left: 0;
	top: -2px;
	width: clamp(4.5rem, 9vw, 8rem);
	height: 3px;
	background: var(--wp--preset--color--lime);
}

.cg-banner h1,
.cg-banner p,
.cg-banner .has-text-align-center {
	text-align: left !important;
	margin-inline: 0 !important;
}

.cg-banner h1 {
	max-width: 14ch;
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 620;
	letter-spacing: -0.06em;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
}

.cg-banner p {
	max-width: 39rem;
	line-height: 1.5;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2);
}

.cg-banner__cta {
	width: 100%;
	justify-content: flex-start !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 1.4rem;
}

.cg-banner__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-width: 13rem;
	padding: 1rem 1.25rem;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.9rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--wp--preset--color--forest) !important;
	background: var(--wp--preset--color--lime) !important;
	box-shadow: 0 14px 35px rgba(7, 27, 13, 0.2);
	transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--cg-ease);
}

.cg-banner__cta .wp-block-button__link::after {
	content: "↗";
	font-size: 1.1em;
	line-height: 1;
	transition: transform 180ms var(--cg-ease);
}

.cg-banner__cta .wp-block-button__link:hover,
.cg-banner__cta .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--white) !important;
	background: var(--wp--preset--color--forest) !important;
	transform: translateY(-2px);
}

.cg-banner__cta .wp-block-button__link:hover::after,
.cg-banner__cta .wp-block-button__link:focus-visible::after {
	transform: translate(0.15rem, -0.15rem);
}

@media (min-width: 900px) {
	.cg-banner .wp-block-cover__inner-container {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
		gap: clamp(3rem, 8vw, 8rem);
		align-items: end;
	}

	.cg-banner .wp-block-cover__inner-container > h1 + p {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		margin-top: 0;
		padding-bottom: 5.25rem;
	}

	.cg-banner__cta {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		margin: 0;
	}
}

/* Editorial introduction: asymmetric, ruled and easier to scan. */
.cg-centre:has(> .cg-lead-serif) {
	max-width: var(--wp--style--global--wide-size);
	position: relative;
}

.cg-centre:has(> .cg-lead-serif) > * {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.cg-centre:has(> .cg-lead-serif) > h2 {
	max-width: 11ch;
}

.cg-lead-serif {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: clamp(1.35rem, 2.2vw, 2.05rem);
	font-weight: 430;
	line-height: 1.35;
	letter-spacing: -0.035em;
	max-width: 35ch;
}

.cg-centre:has(> .cg-lead-serif) .is-style-cg-short {
	margin: 1.4rem 0 !important;
}

@media (min-width: 900px) {
	.cg-centre:has(> .cg-lead-serif) {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
		align-items: start;
	}

	.cg-centre:has(> .cg-lead-serif) > h2 {
		grid-column: 1 / 6;
		grid-row: 1 / span 3;
	}

	.cg-centre:has(> .cg-lead-serif) > .is-style-cg-short {
		grid-column: 6 / 7;
		grid-row: 1;
		width: 100%;
		margin-top: 0.7rem !important;
	}

	.cg-centre:has(> .cg-lead-serif) > .cg-lead-serif,
	.cg-centre:has(> .cg-lead-serif) > .is-style-cg-text-link {
		grid-column: 7 / 13;
	}
}

.is-style-cg-text-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--leaf);
	padding-bottom: 0.2rem;
}

.is-style-cg-text-link a::after {
	content: "↗";
	font-size: 1.05em;
	line-height: 1;
	transition: transform 180ms var(--cg-ease);
}

.is-style-cg-text-link a:hover::after,
.is-style-cg-text-link a:focus-visible::after {
	transform: translate(0.18rem, -0.18rem);
}

/* A bento-like capability grid gives each service its own visual identity. */
.cg-panorama {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--cg-frame) !important;
	padding: 0 var(--cg-frame) var(--cg-frame);
	counter-reset: capability;
}

.cg-panorama > .wp-block-column {
	position: relative;
	border: 0 !important;
	overflow: hidden;
	counter-increment: capability;
}

.cg-panorama > .wp-block-column::before {
	content: "0" counter(capability);
	position: absolute;
	top: clamp(1.25rem, 2.5vw, 2.25rem);
	right: clamp(1.25rem, 2.5vw, 2.25rem);
	z-index: 4;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--lime);
}

.cg-panorama .wp-block-cover {
	min-height: clamp(27rem, 46vw, 39rem) !important;
	padding: clamp(1.5rem, 3vw, 3rem) !important;
}

.cg-panorama .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(7, 27, 13, 0.94) 0%, rgba(7, 27, 13, 0.45) 46%, rgba(7, 27, 13, 0.06) 82%) !important;
}

.cg-panorama .wp-block-cover__inner-container {
	padding-top: 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.cg-panorama .wp-block-cover__inner-container > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.cg-panorama h3 {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: clamp(1.65rem, 2.8vw, 3rem) !important;
	font-weight: 620;
	letter-spacing: -0.05em;
}

.cg-panorama p:not(.is-style-cg-text-link) {
	opacity: 0.86;
}

.cg-panorama .is-style-cg-text-link a {
	color: var(--wp--preset--color--white);
}

.cg-panorama .is-style-cg-text-link a:hover,
.cg-panorama .is-style-cg-text-link a:focus-visible {
	color: var(--wp--preset--color--lime);
}

@media (min-width: 782px) {
	.cg-panorama > .wp-block-column,
	.cg-panorama > .wp-block-column:hover,
	.cg-panorama > .wp-block-column:focus-within {
		flex-grow: initial !important;
	}
}

@media (max-width: 781.98px) {
	.cg-panorama {
		grid-template-columns: minmax(0, 1fr);
	}

	.cg-panorama .wp-block-cover {
		min-height: 32rem !important;
	}
}

/* Wide image chapters use a layered content card instead of another centered stack. */
.cg-chapter {
	position: relative;
}

.cg-chapter .wp-block-image {
	box-shadow: var(--cg-shadow);
}

.cg-chapter .cg-centre {
	position: relative;
	z-index: 2;
	max-width: 48rem;
	margin-top: clamp(-7rem, -8vw, -4rem);
	margin-left: clamp(1rem, 8vw, 8rem);
	margin-right: auto;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--cg-shadow);
	text-align: left;
}

.cg-chapter:nth-of-type(even) .cg-centre {
	margin-left: auto;
	margin-right: clamp(1rem, 8vw, 8rem);
}

.cg-chapter .cg-centre > * {
	text-align: left !important;
	margin-left: 0;
	margin-right: 0;
}

/* Values and facts become architectural cards with real hierarchy. */
.cg-quad {
	counter-reset: feature;
	gap: 1px !important;
	background: var(--cg-soft-line);
	border: 1px solid var(--cg-soft-line);
}

.cg-quad > * {
	position: relative;
	min-height: 15rem;
	padding: clamp(1.5rem, 3vw, 2.75rem);
	background: var(--wp--preset--color--paper);
	text-align: left;
	counter-increment: feature;
	transition: background-color 220ms ease, transform 220ms var(--cg-ease);
}

.cg-quad > *::before {
	content: "0" counter(feature);
	width: auto;
	height: auto;
	margin: 0 0 2.5rem;
	border-radius: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--moss);
}

.cg-quad > *:hover {
	background: #ebf8df;
	transform: translateY(-0.25rem);
}

.cg-quad > * > * {
	margin-left: 0;
	margin-right: 0;
}

.cg-quad h3 {
	font-style: normal;
}

.is-style-cg-step,
.is-style-cg-link-list li,
.cg-details h3,
.cg-footer .cg-footer__strap,
.is-style-cg-italic {
	font-family: var(--wp--preset--font-family--manrope);
	font-style: normal;
}

.is-style-cg-step {
	font-weight: 300;
	letter-spacing: -0.07em;
}

.cg-stairs > * {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--cg-soft-line);
	background: var(--wp--preset--color--white);
	box-shadow: 0 16px 45px rgba(16, 41, 22, 0.06);
}

.is-style-cg-link-list a:hover,
.is-style-cg-link-list a:focus-visible {
	font-style: normal;
}

/* Dark footer closes the page with more weight and contrast. */
.cg-footer {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--forest) !important;
	color: var(--wp--preset--color--white) !important;
}

.cg-footer::before {
	content: "";
	position: absolute;
	width: 34rem;
	height: 34rem;
	right: -12rem;
	top: -18rem;
	border: 1px solid rgba(193, 255, 114, 0.22);
	border-radius: 50%;
	box-shadow: 0 0 0 5rem rgba(193, 255, 114, 0.035), 0 0 0 10rem rgba(193, 255, 114, 0.025);
	pointer-events: none;
}

.cg-footer > * {
	position: relative;
	z-index: 1;
}

.cg-footer .cg-footer__logo img {
	filter: brightness(0) invert(1);
}

.cg-footer .cg-footer__strap {
	font-weight: 600;
	letter-spacing: -0.045em;
}

.cg-footer-nav .wp-block-navigation-item__content,
.cg-footer a,
.cg-footer .cg-footer__legal p {
	color: var(--wp--preset--color--white) !important;
}

.cg-footer__legal {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 899.98px) {
	.cg-banner .wp-block-cover__inner-container > h1 + p {
		margin-top: 1.25rem;
	}

	.cg-chapter .cg-centre,
	.cg-chapter:nth-of-type(even) .cg-centre {
		margin: -2.5rem 1rem 0;
	}
}

@media (max-width: 599.98px) {
	.cg-banner h1.has-display-font-size,
	.cg-banner h1.has-xx-large-font-size {
		font-size: clamp(2.55rem, 12vw, 4rem) !important;
	}

	.cg-banner > .wp-block-cover {
		padding-bottom: 2rem !important;
	}

	.cg-lead-serif {
		font-size: 1.25rem;
	}

	.cg-quad > * {
		min-height: 0;
	}
}

/* ---------- Inner pages: compact, aligned and accessible ---------- */

body.page:not(.page-id-21) {
	--cg-inner-space: clamp(3.25rem, 5.5vw, 5.75rem);
	--cg-inner-gutter: max(var(--wp--style--root--padding-left), var(--cg-frame));
}

body.page:not(.page-id-21) main {
	background: var(--wp--preset--color--white);
}

/* Inner pages must never present a blank viewport after a fast scroll, anchor
   jump or assistive navigation. Keep their content visible at all times. */
.cg-reveal-on body.page:not(.page-id-21) .cg-page-content > .cg-reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

body.page:not(.page-id-21) .cg-banner > .wp-block-cover .wp-block-cover__image-background,
body.page:not(.page-id-21) .cg-banner .wp-block-cover__inner-container > * {
	animation: none !important;
}

/* Inner-page banners introduce the page without consuming a full viewport. */
body.page:not(.page-id-21) .cg-banner {
	height: auto;
	min-height: 0;
	padding: var(--cg-header-h) var(--cg-frame) var(--cg-frame) !important;
}

body.page:not(.page-id-21) .cg-banner > .wp-block-cover {
	height: auto;
	min-height: clamp(27rem, 56svh, 36rem) !important;
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) !important;
}

body.page:not(.page-id-21):not(.page-id-25) .cg-banner > .wp-block-cover > .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(7, 27, 13, 0.28) 0%, rgba(7, 27, 13, 0.68) 46%, rgba(7, 27, 13, 0.94) 100%) !important;
}

body.page:not(.page-id-21) .cg-banner h1.has-display-font-size,
body.page:not(.page-id-21) .cg-banner h1.has-xx-large-font-size {
	font-size: clamp(3rem, min(6.25vw, 8.5svh), 5.75rem) !important;
	line-height: 0.96;
}

body.page:not(.page-id-21) .cg-banner p.has-medium-font-size {
	font-size: clamp(1rem, 1.35vw, 1.2rem) !important;
	line-height: 1.58;
}

@media (min-width: 900px) {
	body.page:not(.page-id-21):not(.page-id-25) .cg-banner .wp-block-cover__inner-container > h1 + p {
		padding: 1.15rem 1.25rem !important;
		background: var(--wp--preset--color--forest);
		text-shadow: none;
	}
}

/* Projects uses a compact, image-led introduction rather than the former
   empty portfolio placeholder. */
.page-id-25 .cg-banner > .wp-block-cover {
	min-height: clamp(22rem, 42svh, 29rem) !important;
}

.page-id-25 .cg-banner > .wp-block-cover > .wp-block-cover__background {
	background: linear-gradient(120deg, rgba(7, 27, 13, 0.9), rgba(7, 27, 13, 0.58)) !important;
	opacity: 1 !important;
}

.page-id-25 .cg-banner .wp-block-cover__inner-container {
	display: block;
	border-top-color: rgba(255, 255, 255, 0.48);
}

.page-id-25 .cg-banner .wp-block-cover__inner-container::before {
	background: var(--wp--preset--color--moss);
}

.page-id-25 .cg-banner h1,
.page-id-25 .cg-banner p {
	color: var(--wp--preset--color--white) !important;
	text-shadow: 0 1px 22px rgba(0, 0, 0, 0.25);
}

.page-id-25 .cg-banner p.has-lime-color {
	color: var(--wp--preset--color--lime) !important;
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* Replace page-authored 2XL gaps with one predictable section rhythm. */
body.page:not(.page-id-21) main > section.alignfull:not(.cg-banner):not(.cg-framed):not(.cg-chapter) {
	padding-top: var(--cg-inner-space) !important;
	padding-bottom: var(--cg-inner-space) !important;
}

body.page:not(.page-id-21) main p {
	line-height: 1.68;
}

body.page:not(.page-id-21) main h2 {
	line-height: 1.04;
}

body.page:not(.page-id-21) .cg-measure {
	max-width: 46rem;
}

/* Introductory statements should use their full reading measure. The earlier
   twelve-column rule left an unexplained empty half when no heading existed. */
body.page:not(.page-id-21) .cg-centre:has(> .cg-lead-serif) {
	display: block;
	max-width: 56rem;
}

body.page:not(.page-id-21) .cg-centre:has(> .cg-lead-serif) > * {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.page:not(.page-id-21) .cg-lead-serif {
	max-width: 43ch;
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	line-height: 1.42;
}

/* Related white sections on About and Sustainability read as one composition,
   not two blocks separated by an accidental field of whitespace. */
.page-id-22 .cg-banner + section,
.page-id-27 .cg-banner + section {
	padding-bottom: clamp(2rem, 3vw, 3rem) !important;
}

.page-id-22 .cg-banner + section + section,
.page-id-27 .cg-banner + section + section {
	padding-top: clamp(1rem, 2vw, 2rem) !important;
}

.page-id-22 .cg-banner + section + section .cg-centre {
	max-width: 52rem;
	text-align: left;
}

.page-id-22 .cg-banner + section + section .cg-centre > * {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Service chapters become a clean image/content split with no overlapping
   cards, negative margins or dead space between sections. */
body.page:not(.page-id-21) .cg-chapter {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
	align-items: stretch;
	gap: 0;
	padding: var(--cg-inner-space) var(--cg-inner-gutter) !important;
}

body.page:not(.page-id-21) .cg-chapter > .wp-block-image {
	width: 100%;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	box-shadow: none;
}

body.page:not(.page-id-21) .cg-chapter > .wp-block-image img {
	width: 100%;
	height: 100% !important;
	min-height: 27rem;
	aspect-ratio: auto !important;
	object-fit: cover;
}

body.page:not(.page-id-21) .cg-chapter > .cg-centre,
body.page:not(.page-id-21) .cg-chapter:nth-of-type(even) > .cg-centre {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: auto;
	max-width: none;
	margin: 0 !important;
	padding: clamp(2rem, 4vw, 4rem);
	background: transparent;
	box-shadow: none;
}

body.page:not(.page-id-21) .cg-chapter:nth-of-type(odd) > .wp-block-image {
	grid-column: 2;
	grid-row: 1;
}

body.page:not(.page-id-21) .cg-chapter:nth-of-type(odd) > .cg-centre {
	grid-column: 1;
	grid-row: 1;
}

body.page:not(.page-id-21) .cg-chapter .cg-centre > * {
	max-width: 36rem;
}

/* Values, audiences and delivery principles use compact cards with consistent
   inner alignment and readable text contrast. */
body.page:not(.page-id-21) .cg-quad {
	max-width: var(--wp--style--global--wide-size);
	margin-top: clamp(2.25rem, 4vw, 3.5rem) !important;
}

body.page:not(.page-id-21) .cg-quad > * {
	min-height: 12rem;
	padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

body.page:not(.page-id-21) .cg-quad > *::before {
	margin-bottom: 1.75rem;
}

body.page:not(.page-id-21) .cg-quad h3 {
	font-size: clamp(1.45rem, 2.1vw, 2rem) !important;
	line-height: 1.15;
}

body.page:not(.page-id-21) .cg-quad p {
	color: var(--wp--preset--color--stone);
	line-height: 1.65;
}

/* The five-stage process is a genuine sequence, rather than widely staggered
   cards that leave large blank areas across the page. */
.page-id-24 .cg-stairs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px !important;
	max-width: var(--wp--style--global--wide-size);
	margin-top: clamp(2.25rem, 4vw, 3.5rem) !important;
	border: 1px solid var(--cg-soft-line);
	background: var(--cg-soft-line);
}

.page-id-24 .cg-stairs > *,
.page-id-24 .cg-stairs > :nth-child(n) {
	width: auto;
	min-width: 0;
	min-height: 19rem;
	margin: 0 !important;
	padding: clamp(1.5rem, 2.2vw, 2.25rem);
	background: var(--wp--preset--color--white);
	box-shadow: none;
}

.page-id-24 .cg-stairs > * + *::before {
	display: none;
}

.page-id-24 .is-style-cg-step {
	font-size: clamp(2.75rem, 4vw, 4.25rem);
	font-weight: 650;
	line-height: 1;
	color: var(--wp--preset--color--moss);
	margin-bottom: 2.25rem !important;
}

.page-id-24 .cg-stairs h3 {
	font-size: clamp(1.25rem, 1.55vw, 1.6rem) !important;
	line-height: 1.16;
}

.page-id-24 .cg-stairs p:not(.is-style-cg-step) {
	color: var(--wp--preset--color--stone);
	font-size: 0.98rem;
	line-height: 1.62;
}

/* Projects navigation reads as a structured next-step list. */
.page-id-25 .is-style-cg-link-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	max-width: 62rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--cg-soft-line);
	text-align: left;
}

.page-id-25 main > section.alignfull:not(.cg-banner) {
	padding-top: clamp(2.75rem, 4vw, 4rem) !important;
	padding-bottom: clamp(2.75rem, 4vw, 4rem) !important;
}

.page-id-25 .is-style-cg-link-list li {
	margin: 0;
	border-bottom: 1px solid var(--cg-soft-line);
}

.page-id-25 .is-style-cg-link-list li:nth-child(odd) {
	border-right: 1px solid var(--cg-soft-line);
}

.page-id-25 .is-style-cg-link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
	padding: 1.15rem 1.25rem;
	background-image: none;
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	font-weight: 650;
}

.page-id-25 .is-style-cg-link-list a::after {
	content: "↗";
	font-size: 0.8em;
}

.page-id-25 .is-style-cg-link-list a:hover,
.page-id-25 .is-style-cg-link-list a:focus-visible {
	background: var(--wp--preset--color--paper);
}

/* Funding copy is easier to scan with a consistent left edge. */
.page-id-26 .cg-measure > * {
	text-align: left !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.page-id-26 .cg-measure .is-style-cg-short {
	margin-block: 1.5rem !important;
}

/* Contact form and details are clear panels, with strong focus states and no
   low-contrast placeholder/border treatment. */
.page-id-28 .cg-form {
	max-width: 54rem !important;
	padding: clamp(1.5rem, 4vw, 3.75rem);
	border: 1px solid rgba(23, 51, 28, 0.2);
	background: var(--wp--preset--color--white);
}

.page-id-28 .cg-form > h2,
.page-id-28 .cg-form > p {
	text-align: left !important;
}

.page-id-28 .cg-form > p {
	font-size: 0.95rem !important;
	color: var(--wp--preset--color--stone) !important;
}

.page-id-28 .cg-form .forminator-ui.forminator-custom-form {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	border-color: #5f6d62;
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input, select, textarea):focus,
.forminator-ui.forminator-custom-form[data-design="none"] :is(input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--forest);
	box-shadow: none;
}

.forminator-ui.forminator-custom-form[data-design="none"] :is(input, textarea)::placeholder {
	color: var(--wp--preset--color--stone);
	opacity: 1;
}

.page-id-28 .cg-details {
	gap: 1px !important;
	border: 1px solid var(--cg-soft-line);
	background: var(--cg-soft-line);
}

.page-id-28 .cg-details > * {
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--wp--preset--color--white);
	text-align: left;
}

.page-id-28 .cg-details h3 {
	margin-top: 0;
	font-style: normal;
}

.page-id-28 .cg-details a {
	font-weight: 650;
	text-decoration-thickness: 2px;
}

/* Closing images attach to the page composition rather than floating below a
   second oversized spacer. */
body.page:not(.page-id-21) .cg-framed.alignfull {
	padding-top: 0 !important;
	padding-bottom: var(--cg-frame) !important;
}

body.page:not(.page-id-21) .cg-framed img {
	max-height: 34rem;
	object-fit: cover;
}

/* Strong, consistent keyboard indication site-wide. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-width: 3px;
}

#wp-skip-link:focus,
#wp-skip-link:focus-visible {
	position: fixed !important;
	top: 0.75rem !important;
	left: 0.75rem !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0.85rem 1.1rem !important;
	background: var(--wp--preset--color--forest) !important;
	color: var(--wp--preset--color--white) !important;
	z-index: 100000 !important;
}

@media (max-width: 1199.98px) {
	.page-id-24 .cg-stairs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.page-id-24 .cg-stairs > :last-child {
		grid-column: 1 / -1;
		min-height: 0;
	}
}

@media (max-width: 899.98px) {
	body.page:not(.page-id-21) .cg-chapter {
		grid-template-columns: minmax(0, 1fr);
	}

	body.page:not(.page-id-21) .cg-chapter > .wp-block-image,
	body.page:not(.page-id-21) .cg-chapter:nth-of-type(odd) > .wp-block-image {
		grid-column: 1;
		grid-row: 1;
	}

	body.page:not(.page-id-21) .cg-chapter > .cg-centre,
	body.page:not(.page-id-21) .cg-chapter:nth-of-type(odd) > .cg-centre {
		grid-column: 1;
		grid-row: 2;
	}

	body.page:not(.page-id-21) .cg-chapter > .wp-block-image img {
		min-height: 22rem;
		max-height: 30rem;
	}
}

@media (max-width: 599.98px) {
	body.page:not(.page-id-21) {
		--cg-inner-space: 3.25rem;
	}

	body.page:not(.page-id-21) .cg-banner > .wp-block-cover {
		min-height: 29rem !important;
	}

	.page-id-25 .cg-banner > .wp-block-cover {
		min-height: 21rem !important;
	}

	body.page:not(.page-id-21) .cg-banner h1.has-display-font-size,
	body.page:not(.page-id-21) .cg-banner h1.has-xx-large-font-size {
		font-size: clamp(2.45rem, 11vw, 3.5rem) !important;
	}

	body.page:not(.page-id-21) .cg-chapter {
		padding-left: var(--wp--style--root--padding-left) !important;
		padding-right: var(--wp--style--root--padding-right) !important;
	}

	body.page:not(.page-id-21) .cg-chapter > .wp-block-image img {
		min-height: 16rem;
		aspect-ratio: 4 / 3 !important;
	}

	body.page:not(.page-id-21) .cg-chapter > .cg-centre {
		padding: 1.75rem 1.5rem 2rem;
	}

	body.page:not(.page-id-21) .cg-quad {
		margin-top: 2rem !important;
	}

	body.page:not(.page-id-21) .cg-quad > * {
		min-height: 0;
	}

	.page-id-24 .cg-stairs,
	.page-id-25 .is-style-cg-link-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-id-24 .cg-stairs > :last-child {
		grid-column: auto;
	}

	.page-id-24 .cg-stairs > * {
		min-height: 0;
	}

	.page-id-25 .is-style-cg-link-list li:nth-child(odd) {
		border-right: 0;
	}

	.page-id-28 .cg-form {
		padding: 1.5rem 1.25rem;
	}
}

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

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

@media (forced-colors: active) {
	.cg-quad,
	.cg-stairs,
	.cg-details,
	.page-id-28 .cg-form {
		border: 1px solid CanvasText;
	}

	:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		outline-color: Highlight;
	}
}

/* What We Do: keep service photography compact and consistently cropped. */
.page-id-23 .cg-chapter {
	align-items: center;
}

.page-id-23 .cg-chapter > .wp-block-image {
	height: auto;
	aspect-ratio: 16 / 9;
	align-self: center;
	overflow: hidden;
}

.page-id-23 .cg-chapter > .wp-block-image img {
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	object-fit: cover;
}

/* Launch-ready Projects page: capability-led content without an empty
   portfolio state, using the existing card and chapter system. */
.page-id-25 .cg-banner .wp-block-cover__inner-container,
.page-id-25 .cg-banner .cg-measure {
	max-width: 52rem;
}

.page-id-25 .cg-quad h3 {
	max-width: 15ch;
}

.page-id-25 main > section:has(.cg-quad) {
	padding-bottom: clamp(2rem, 3vw, 3rem) !important;
}

.page-id-25 .cg-chapter {
	align-items: center;
	padding-top: clamp(2rem, 3vw, 3rem) !important;
	padding-bottom: clamp(2rem, 3vw, 3rem) !important;
}

.page-id-25 .cg-chapter > .wp-block-image {
	height: auto;
	aspect-ratio: 16 / 9;
	align-self: center;
	overflow: hidden;
}

.page-id-25 .cg-chapter > .wp-block-image img {
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	object-fit: cover;
}

.page-id-25 .cg-chapter .wp-block-list {
	margin-block: 1.25rem 1.5rem;
	padding-left: 1.25rem;
}

.page-id-25 .cg-chapter .wp-block-list li + li {
	margin-top: 0.7rem;
}

/* Legal pages are deliberately simple, narrow and highly readable. */
.cg-legal-hero {
	padding-inline: var(--cg-inner-gutter) !important;
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--forest) !important;
	border-bottom: 1px solid var(--cg-soft-line);
}

.cg-legal-hero > * {
	width: min(100%, 52rem);
	margin-inline: auto;
}

.cg-legal-hero h1 {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--forest) !important;
}

.cg-legal-hero p {
	margin-top: 0;
	color: var(--wp--preset--color--forest) !important;
	opacity: 0.9;
}

.cg-legal {
	padding-inline: var(--cg-inner-gutter) !important;
}

.cg-legal > * {
	width: min(100%, 52rem);
	margin-inline: auto;
}

.cg-legal h2 {
	margin-top: clamp(2.4rem, 5vw, 3.75rem);
	margin-bottom: 0.85rem;
	font-style: normal;
}

.cg-legal p,
.cg-legal li {
	color: var(--wp--preset--color--stone);
	line-height: 1.75;
}

.cg-legal li + li {
	margin-top: 0.65rem;
}

.cg-footer__policy-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem 0.7rem;
}

.cg-footer__policy-links a {
	font-weight: 650;
	text-underline-offset: 0.2em;
}

/* Complianz inherits Creystone's typography and keeps all controls strongly
   contrasted at desktop, mobile and high zoom. */
.cmplz-cookiebanner,
.cmplz-cookiebanner button,
.cmplz-cookiebanner a,
.cmplz-manage-consent {
	font-family: var(--wp--preset--font-family--body), sans-serif !important;
}

.cmplz-cookiebanner .cmplz-title {
	font-family: var(--wp--preset--font-family--display), sans-serif !important;
	font-weight: 650 !important;
}

.cmplz-cookiebanner .cmplz-btn:focus-visible,
.cmplz-cookiebanner a:focus-visible,
.cmplz-manage-consent:focus-visible {
	outline: 3px solid var(--wp--preset--color--moss) !important;
	outline-offset: 3px !important;
}

@media (max-width: 599.98px) {
	.cg-legal-hero,
	.cg-legal {
		padding-inline: var(--wp--style--root--padding-left) !important;
	}

	.cg-footer__policy-links > span {
		display: none;
	}
}
