/*
Theme Name: CNY Technologies 4
Theme URI: https://www.cnytechnologies.com
Author: Sheats CNY Technologies LLC
Author URI: https://www.cnytechnologies.com
Description: "Refined operator" redesign of the CNY Technologies marketing site. Classic PHP theme: flat warm surfaces, navy and teal identity, self-hosted Inter and Poppins, no page builder, no jQuery.
Version: 4.0.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cny-technologies
*/

/* =========================================================
   1. Tokens  (brief section 5.1, evolved from theme 3.0)
========================================================= */
:root {
	--c-navy: #0E2538;          /* headers, headings, identity */
	--c-navy-deep: #0A1B2A;     /* footer, closing CTA band */
	--c-navy-section: #243B4E;  /* dark bands */
	--c-teal: #0C9B78;          /* accent: rules, numerals, large type, focus */
	--c-teal-hover: #087A5E;    /* link text on light, button hover */
	--c-teal-btn: #0A8465;      /* button fill: #0C9B78 darkened until a white 16px label passes AA */
	--c-teal-on-dark: #7ED9C4;  /* text and highlights on navy */
	--c-sand: #F6F3EE;          /* page ground */
	--c-surface: #FFFFFF;
	--c-hairline: #D8D3CB;
	--c-text: #2C3A48;
	--c-muted: #5A6876;
	--c-amber: #E8A317;         /* rare highlight: owner placeholders only */
	--c-success: #1F9A57;
	--c-success-text: #17713F;  /* success message text (AA on white) */
	--c-error: #D6453A;
	--c-error-text: #B5362C;    /* error message text (AA on white) */
	--c-on-dark: #FFFFFF;
	--c-on-dark-muted: #C3CED8;
	--c-hairline-dark: rgba(255, 255, 255, 0.16);

	--f-body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-head: Poppins, Inter, "Segoe UI", sans-serif;

	--w-container: 1160px;
	--gutter: 24px;
	--radius: 6px;
	--header-h: 72px;
	--space-section: clamp(64px, 9vw, 112px);
}

/* =========================================================
   2. Base
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-sand);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3rem); }
h2 { font-size: clamp(1.625rem, 1.6vw + 1.1rem, 2.25rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--c-teal-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover { color: var(--c-navy); }

:focus-visible {
	outline: 3px solid var(--c-teal);
	outline-offset: 3px;
	border-radius: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-teal-on-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

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

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--c-surface);
	color: var(--c-navy);
	font-weight: 600;
	border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--w-container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* =========================================================
   3. Small parts: eyebrow, lede, buttons, lists
========================================================= */
.eyebrow {
	display: block;
	margin: 0 0 14px;
	color: var(--c-teal-hover);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	line-height: 1.4;
	text-transform: uppercase;
}
.on-dark .eyebrow { color: var(--c-teal-on-dark); }

.lede {
	max-width: 62ch;
	color: var(--c-text);
	font-size: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
	line-height: 1.6;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
	background: var(--c-teal-btn);
	border-color: var(--c-teal-btn);
	color: #fff;
}
.btn-primary:hover {
	background: var(--c-teal-hover);
	border-color: var(--c-teal-hover);
	color: #fff;
}
.btn-secondary {
	background: transparent;
	border-color: var(--c-navy);
	color: var(--c-navy);
}
.btn-secondary:hover {
	background: var(--c-navy);
	color: #fff;
}
.on-dark .btn-secondary,
.site-header .btn-secondary {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}
.on-dark .btn-secondary:hover {
	background: #fff;
	border-color: #fff;
	color: var(--c-navy);
}
.btn[disabled] { opacity: 0.65; cursor: progress; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.text-link {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--c-teal);
	padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--c-navy); }
.on-dark .text-link { color: var(--c-teal-on-dark); border-bottom-color: var(--c-teal-on-dark); }
.on-dark .text-link:hover { color: #fff; border-bottom-color: #fff; }

.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.check-list li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-top: 1px solid var(--c-hairline);
	line-height: 1.5;
}
.check-list li:last-child { border-bottom: 1px solid var(--c-hairline); }
.check-list li::before {
	content: "";
	position: absolute;
	left: 2px; top: 1.05em;
	width: 12px; height: 6px;
	border-left: 2px solid var(--c-teal);
	border-bottom: 2px solid var(--c-teal);
	transform: rotate(-45deg);
}

/* Owner placeholders. Rendered only for logged-in site managers
   (see cnyt_show_placeholders() in functions.php). */
.placeholder {
	display: inline-block;
	padding: 6px 12px;
	border: 2px dashed var(--c-amber);
	border-radius: var(--radius);
	background: #FFF8E6;
	color: var(--c-navy);
	font-family: var(--f-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}
.placeholder-note {
	margin: 0 0 20px;
	padding: 10px 14px;
	border-left: 4px solid var(--c-amber);
	background: #FFF8E6;
	color: var(--c-navy);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* =========================================================
   4. Header
========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-navy);
	color: #fff;
}
.site-header .container {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: #fff;
	text-decoration: none;
}
.site-logo:hover { color: #fff; }
.site-logo svg { flex: none; }
.site-logo-text { display: flex; flex-direction: column; }
.site-logo-name {
	font-family: var(--f-head);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.site-logo-tagline {
	color: var(--c-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
}
.site-logo .custom-logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav li a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.site-nav li a:hover { color: var(--c-teal-on-dark); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
	color: #fff;
	border-bottom-color: var(--c-teal-on-dark);
}
.site-nav .btn { min-height: 44px; padding: 9px 20px; font-size: 0.9375rem; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--radius);
	background: transparent;
	color: #fff;
	font-family: var(--f-body);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 18px; height: 2px;
	background: currentColor;
	border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.site-logo-tagline { display: none; }
	/* Keep wrap so the open nav can drop to a second row. Logo stays
	   left; the toggle is pinned to the container's right padding. */
	.site-header .container {
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.site-logo {
		min-width: 0;
		min-height: var(--header-h);
		margin-right: 0;
	}
	.site-logo-name {
		font-size: clamp(0.75rem, 3.2vw, 1.125rem);
		white-space: nowrap;
	}
	.nav-toggle {
		display: inline-flex;
		flex: none;
		margin-left: auto;
		padding-inline: 10px;
	}
	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 8px 0 24px;
		border-top: 1px solid var(--c-hairline-dark);
	}
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav li a {
		padding: 14px 4px;
		font-size: 1.0625rem;
		border-bottom: 1px solid var(--c-hairline-dark);
	}
	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a,
	.site-nav a[aria-current="page"] {
		color: var(--c-teal-on-dark);
		border-bottom-color: var(--c-hairline-dark);
	}
	.site-nav .btn { min-height: 50px; font-size: 1rem; }
	.no-js .nav-toggle { display: none; }
}

/* =========================================================
   5. Sections
========================================================= */
.section { padding-block: var(--space-section); }
.section--surface {
	background: var(--c-surface);
	border-block: 1px solid var(--c-hairline);
}
.section--navy { background: var(--c-navy-section); }
.section--deep { background: var(--c-navy-deep); }

.on-dark { color: var(--c-on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark a { color: var(--c-teal-on-dark); }
.on-dark a:hover { color: #fff; }
.on-dark .btn-primary, .on-dark .btn-primary:hover { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--c-muted); font-size: 1.125rem; line-height: 1.6; }
.on-dark .section-head p { color: var(--c-on-dark-muted); }

/* =========================================================
   6. Home: hero
========================================================= */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.hero-title {
	max-width: 17ch;
	margin-bottom: 20px;
	font-size: clamp(2.375rem, 4.4vw + 1.1rem, 4.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.hero-title span { color: var(--c-teal-hover); }
.hero .lede { margin-bottom: 30px; }
.hero-photo {
	margin: clamp(40px, 5vw, 60px) 0 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: #DDE3E2;
}
.hero-photo img {
	width: 100%;
	aspect-ratio: 3 / 1;
	object-fit: cover;
}
@media (max-width: 640px) {
	.hero-photo img { aspect-ratio: 16 / 9; object-position: 62% center; }
	.hero .btn { flex: 1 1 100%; }
}

/* =========================================================
   7. Home: services, steps, audiences, proof
========================================================= */
.service-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--c-navy);
}
.service-col {
	display: flex;
	flex-direction: column;
	padding: 32px 32px 8px 0;
}
.service-col + .service-col {
	padding-left: 32px;
	border-left: 1px solid var(--c-hairline);
}
.service-col:last-child { padding-right: 0; }
.service-num {
	margin-bottom: 18px;
	color: var(--c-teal-hover);
	font-family: var(--f-head);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}
.service-col h3 { font-size: 1.375rem; margin-bottom: 12px; }
.service-col p { margin-bottom: 22px; }
.service-col .text-link { align-self: flex-start; margin-top: auto; }

@media (max-width: 860px) {
	.service-cols { grid-template-columns: 1fr; }
	.service-col,
	.service-col + .service-col {
		padding: 28px 0;
		border-left: 0;
		border-bottom: 1px solid var(--c-hairline);
	}
	.service-col:last-child { border-bottom: 0; padding-bottom: 0; }
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.steps li {
	counter-increment: step;
	padding-top: 20px;
	border-top: 2px solid var(--c-teal-on-dark);
}
.steps li::before {
	content: "Step " counter(step);
	display: block;
	margin-bottom: 10px;
	color: var(--c-teal-on-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.steps h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.steps p { font-size: 1rem; line-height: 1.6; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.two-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 6vw, 80px);
}
.two-col > * + * {
	padding-left: clamp(32px, 6vw, 80px);
	border-left: 1px solid var(--c-hairline);
}
@media (max-width: 760px) {
	.two-col { grid-template-columns: 1fr; gap: 0; }
	.two-col > * + * {
		margin-top: 32px;
		padding: 32px 0 0;
		border-left: 0;
		border-top: 1px solid var(--c-hairline);
	}
}
.audience h3 { font-size: 1.375rem; }

.proof-clients {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}
.proof-client {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 24px;
	max-width: 100%;
	min-width: 0;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.proof-client > * { min-width: 0; }
.proof-client h3,
.proof-client p { overflow-wrap: anywhere; }
.proof-client-logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 72px;
}
.proof-client-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.proof-client h3 { margin: 0 0 2px; font-size: 1.125rem; }
.proof-client p { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 760px) { .proof-clients { grid-template-columns: 1fr; } }

.proof-slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.proof-slots .placeholder { display: block; padding: 22px 16px; text-align: center; }
.proof-slots .placeholder--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .proof-slots { grid-template-columns: 1fr; } }

/* =========================================================
   8. Closing CTA band (all pages)
========================================================= */
.cta-band { padding-block: clamp(56px, 8vw, 96px); background: var(--c-navy-deep); }
.cta-band .container {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 46ch; margin-bottom: 26px; font-size: 1.125rem; line-height: 1.6; }
.cta-contact {
	margin: 0;
	padding: 0 0 0 clamp(24px, 4vw, 48px);
	list-style: none;
	border-left: 1px solid var(--c-hairline-dark);
}
.cta-contact li { padding: 10px 0; }
.cta-contact-label {
	display: block;
	color: var(--c-on-dark-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.cta-contact a,
.cta-contact-value {
	color: #fff;
	font-family: var(--f-head);
	font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.cta-contact a:hover { color: var(--c-teal-on-dark); }
.cta-contact-value--small { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 500; }
@media (max-width: 800px) {
	.cta-band .container { grid-template-columns: 1fr; }
	.cta-contact {
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid var(--c-hairline-dark);
	}
	.cta-band .btn { width: 100%; }
}

/* =========================================================
   9. Inner pages: page header
========================================================= */
.page-header {
	padding-block: clamp(48px, 6vw, 80px) clamp(36px, 4vw, 56px);
	border-bottom: 1px solid var(--c-hairline);
}
.page-header h1 { max-width: 20ch; margin-bottom: 16px; }
.page-header + .section { padding-top: clamp(40px, 6vw, 72px); }

/* =========================================================
   10. About
========================================================= */
.about-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.about-story h2 { margin-top: 1.6em; font-size: 1.5rem; }
.about-story > :first-child { margin-top: 0; }
.about-photo { margin: 0 0 24px; overflow: hidden; border-radius: var(--radius); }
.about-photo img { width: 100%; }
.fact-list {
	margin: 0;
	padding: 4px 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.fact-list div { padding: 16px 0; border-bottom: 1px solid var(--c-hairline); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt {
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.fact-list dd { margin: 2px 0 0; color: var(--c-navy); font-weight: 600; line-height: 1.45; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }

.value-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.value-cols li { padding-top: 18px; border-top: 2px solid var(--c-teal); }
.value-cols h3 { margin-bottom: 6px; font-size: 1.125rem; }
.value-cols p { color: var(--c-muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 760px) { .value-cols { grid-template-columns: 1fr; gap: 24px; } }

/* =========================================================
   11. Services page
========================================================= */
.service-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.service-jump a { font-weight: 600; }

.service-block {
	display: grid;
	grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	padding-block: clamp(40px, 6vw, 72px);
	border-top: 1px solid var(--c-hairline);
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block:last-child { padding-bottom: 0; }
.service-block-num {
	color: var(--c-teal);
	font-family: var(--f-head);
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
}
.service-block h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); }
.service-block h3 {
	margin-bottom: 12px;
	color: var(--c-muted);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
@media (max-width: 900px) {
	.service-block { grid-template-columns: 1fr; gap: 20px; }
	.service-block-num { font-size: 2.25rem; }
}

/* =========================================================
   12. Our Clients
========================================================= */
.client {
	padding-block: clamp(40px, 6vw, 72px);
	border-top: 1px solid var(--c-hairline);
}
.client:first-of-type { border-top: 0; padding-top: 0; }
.client-head {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	margin-bottom: 32px;
}
.client-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.client-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.client-head h2 { margin-bottom: 4px; }
.client-loc { margin-bottom: 8px; color: var(--c-muted); font-weight: 500; }
.client-program {
	margin-bottom: 32px;
	padding: 20px 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-left: 4px solid var(--c-teal);
	border-radius: var(--radius);
}
.client-program h3 { margin-bottom: 4px; font-size: 1.125rem; }
.client-program p { color: var(--c-text); }

.app-screens {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}
.app-screens figure { margin: 0; }
.app-screens img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--c-hairline);
	border-radius: 14px;
	background: var(--c-surface);
}
.app-screens figcaption { margin-top: 16px; }
.app-screens h3 { margin-bottom: 6px; font-size: 1.0625rem; }
.app-screens p { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.55; }
/* Stay a clean row of three down to tablet; stack on small screens (avoid a 2+1 hole). */
@media (max-width: 700px) { .app-screens { grid-template-columns: 1fr; max-width: 420px; } }
@media (max-width: 420px) { .app-screens { gap: 24px; } }

.client-results {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: start;
}
.stat-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}
.stat-row div { padding-top: 14px; border-top: 2px solid var(--c-navy); }
.stat-row dt { color: var(--c-muted); font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.stat-row dd {
	margin: 0 0 4px;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: clamp(1.625rem, 2vw + 1rem, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
}
.stat-row dd .placeholder { font-size: 0.75rem; padding: 4px 8px; }
.stat-row div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.client-quote { margin: 0; padding-left: 24px; border-left: 3px solid var(--c-teal); }
.client-quote p { color: var(--c-navy); font-size: 1.125rem; line-height: 1.6; }
.client-quote blockquote { margin: 0; }
.client-quote figcaption { margin-top: 12px; color: var(--c-muted); font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 800px) {
	.client-head { grid-template-columns: 1fr; gap: 20px; }
	.client-logo { width: 160px; }
	.client-results { grid-template-columns: 1fr; }
}

.client-slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(40px, 6vw, 72px);
}
.client-slots .placeholder { display: block; padding: 40px 24px; text-align: center; }
@media (max-width: 640px) { .client-slots { grid-template-columns: 1fr; } }

/* =========================================================
   13. Contact
========================================================= */
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.page-header--contact { padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 0; }
.page-header--contact + .section { padding-top: 0; }

.form-card {
	padding: clamp(24px, 3.5vw, 40px);
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--c-muted); }
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin-top: 24px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--c-navy); font-size: 0.9375rem; font-weight: 600; }
.form-field .optional { color: var(--c-muted); font-weight: 400; }
.form-field input,
.form-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #8A949E;
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus-visible,
.form-field textarea:focus-visible {
	outline: 3px solid var(--c-teal);
	outline-offset: 1px;
	border-color: var(--c-teal-hover);
}
.form-field [aria-invalid="true"] { border-color: var(--c-error); border-width: 2px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; }
.form-hint { color: var(--c-muted); font-size: 0.875rem; line-height: 1.5; }
.form-error {
	color: var(--c-error-text);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}
.form-error[hidden] { display: none; }
.form-fineprint { margin-top: 14px; color: var(--c-muted); font-size: 0.875rem; line-height: 1.5; }
.form-message {
	margin: 20px 0 0;
	padding: 14px 16px;
	border: 1px solid;
	border-left-width: 4px;
	border-radius: var(--radius);
	background: #fff;
	font-weight: 500;
	line-height: 1.5;
}
.form-message[hidden] { display: none; }
.form-message.is-success { border-color: var(--c-success); color: var(--c-success-text); }
.form-message.is-error { border-color: var(--c-error); color: var(--c-error-text); }
@media (max-width: 560px) {
	.form-grid { grid-template-columns: 1fr; }
	.form-actions .btn { width: 100%; }
}

.contact-details { margin: 0; padding: 0; list-style: none; }
.contact-details > li { padding: 18px 0; border-top: 1px solid var(--c-hairline); }
.contact-details > li:first-child { padding-top: 0; border-top: 0; }
.contact-label {
	display: block;
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.contact-value {
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}
a.contact-value:hover { color: var(--c-teal-hover); }
.contact-value--small { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 600; }
.support-box {
	margin-top: 28px;
	padding: 22px 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.support-box h2 { margin-bottom: 8px; font-size: 1.125rem; }
.support-box p, .support-box li { font-size: 0.9375rem; line-height: 1.55; }
.support-box ul { margin: 10px 0 0; padding: 0; list-style: none; }
.support-box li { padding: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* =========================================================
   14. Legal (terms-privacy.php keeps the 3.0 class names)
========================================================= */
.legal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.legal-jumpto {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 22px;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--c-hairline);
	font-size: 0.9375rem;
}
.legal-jumpto-label { color: var(--c-muted); font-weight: 600; }
.legal-jumpto-date { margin-left: auto; color: var(--c-muted); }
.legal-section { max-width: 72ch; margin-bottom: 56px; }
.legal-section-head { margin-bottom: 8px; padding-top: 16px; border-top: 2px solid var(--c-navy); }
.legal-section-head h2 { margin: 0; }
.legal-section-icon { display: none; }
.legal-h3 { margin: 1.8em 0 0.5em; font-size: 1.125rem; }
.legal-body { margin-bottom: 1em; }
.legal-list { margin: 0 0 1.1em; padding-left: 1.25em; }
.legal-list li { margin-bottom: 6px; }
.legal-list li::marker { color: var(--c-teal); }
.legal-data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 8px;
}
.legal-data-card {
	padding: 16px 18px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.legal-data-card-title { margin-bottom: 4px; color: var(--c-navy); font-weight: 600; }
.legal-data-card-desc { color: var(--c-text); font-size: 0.9375rem; line-height: 1.55; }
.legal-cta {
	padding: 28px;
	background: var(--c-navy-section);
	border-radius: var(--radius);
	color: var(--c-on-dark-muted);
}
.legal-cta h2 { color: #fff; font-size: 1.5rem; }
.legal-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc { margin-bottom: 24px; }
.legal-toc-label,
.legal-meta-key {
	display: block;
	color: var(--c-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.legal-toc nav { display: flex; flex-direction: column; margin-top: 8px; }
.legal-toc nav a { padding: 8px 0; border-bottom: 1px solid var(--c-hairline); font-weight: 500; text-decoration: none; }
.legal-toc nav a:hover { text-decoration: underline; }
.legal-meta {
	padding: 4px 20px;
	background: var(--c-surface);
	border: 1px solid var(--c-hairline);
	border-radius: var(--radius);
}
.legal-meta-row { padding: 14px 0; border-bottom: 1px solid var(--c-hairline); }
.legal-meta-row:last-child { border-bottom: 0; }
.legal-meta-value { color: var(--c-navy); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 900px) {
	.legal-layout { grid-template-columns: 1fr; }
	.legal-aside { position: static; }
	.legal-toc { display: none; }
	.legal-jumpto-date { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) { .legal-data-grid { grid-template-columns: 1fr; } }

/* =========================================================
   15. 404, generic page, optional post list
========================================================= */
.error-404 { max-width: 640px; padding-block: clamp(64px, 10vw, 128px); }
.error-code {
	margin-bottom: 8px;
	color: var(--c-teal-hover);
	font-family: var(--f-head);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.09em;
}
.error-404 .btn-row { margin-top: 28px; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }

.post-list { max-width: 72ch; margin: 0; padding: 0; list-style: none; }
.post-list li { padding: 28px 0; border-top: 1px solid var(--c-hairline); }
.post-list li:first-child { border-top: 0; padding-top: 0; }
.post-list h2 { font-size: 1.5rem; margin-bottom: 6px; }
.post-list h2 a { color: var(--c-navy); text-decoration: none; }
.post-list h2 a:hover { color: var(--c-teal-hover); }
.post-date { color: var(--c-muted); font-size: 0.875rem; }
.pagination { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-hairline); border-radius: var(--radius); text-decoration: none; background: var(--c-surface); }
.pagination .current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* =========================================================
   16. Footer
========================================================= */
.site-footer {
	padding-block: clamp(48px, 6vw, 72px) 28px;
	background: var(--c-navy-deep);
	border-top: 1px solid var(--c-hairline-dark);
	color: var(--c-on-dark-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}
.footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-meta { margin-top: 12px; color: #fff; font-weight: 500; }
.footer-col h2 {
	margin-bottom: 14px;
	color: #fff;
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { padding: 2px 0; overflow-wrap: anywhere; }
.footer-col a,
.footer-bottom a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-block: 4px;
	box-sizing: border-box;
}
.site-footer a { color: var(--c-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid var(--c-hairline-dark);
	font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
/* Room for the WPConsent cookie banner so it never hides the legal links. */
.site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
@media (max-width: 900px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }

/* 200% text at a 320px viewport: wrap long words instead of overflowing. */
.hero-title,
.page-header h1,
.site-logo-name,
.stat-row dd,
.prose,
.footer-col,
.footer-brand,
.footer-bottom,
.contact-value,
.legal-meta-value,
.legal-section,
.legal-body,
.legal-h3,
.service-jump a,
.proof-client,
.about-story,
.audience,
.client {
	overflow-wrap: anywhere;
}
.site-logo,
.site-header .container,
.footer-main,
.footer-bottom,
.hero-title,
.page-header .container,
.proof-clients,
.proof-client,
.legal-layout,
.legal-layout > *,
.legal-section,
.about-layout,
.about-layout > *,
.about-story,
.audience,
.two-col,
.two-col > *,
.client-results,
.client,
.app-screens {
	min-width: 0;
	max-width: 100%;
}

/* Cookie policy / prose tables: .prose is 72ch with overflow-wrap:anywhere,
   which was splitting cookie names and headers mid-word. */
.prose:has(table),
.prose:has(.wpconsent-cookie-policy) {
	max-width: 100%;
}
.prose:has(table) > p,
.prose:has(.wpconsent-cookie-policy) > p {
	max-width: 72ch;
}
.wpconsent-cookie-policy {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 1.5em;
}
.prose table,
table.wpconsent-cookie-policy-table {
	width: 100%;
	min-width: 36rem;
	border-collapse: collapse;
	margin: 0 0 1.75em;
	background: var(--c-surface);
	overflow-wrap: normal;
	word-break: normal;
}
.prose th,
.prose td,
.wpconsent-cookie-policy-table th,
.wpconsent-cookie-policy-table td {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
	vertical-align: top;
	text-align: left;
	padding: 12px 14px;
	border: 1px solid var(--c-hairline);
}
.wpconsent-cookie-policy-table thead th {
	background: var(--c-navy);
	color: var(--c-on-dark);
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
.wpconsent-cookie-policy-table td:first-child,
.wpconsent-cookie-policy-table th:first-child {
	white-space: nowrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	color: var(--c-navy);
}
.wpconsent-cookie-policy-table td:last-child,
.wpconsent-cookie-policy-table th:last-child {
	white-space: nowrap;
}

/* =========================================================
   17. Motion and print
========================================================= */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
@media print {
	.site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none; }
	body { background: #fff; }
}
