/* ==========================================================================
   WhenuaTek theme stylesheet

   Contents
   01. Design tokens
   02. Reset and base
   03. Typography
   04. Layout: container and section
   05. Buttons and links
   06. Site header and primary navigation
   07. Hero
   08. Credibility strip
   09. Trust signals
   10. Section headings
   11. Cards (services, scenarios)
   12. Services page
   13. Team page
   14. Contact page and form
   15. Call-to-action band
   16. Prose (WYSIWYG output)
   17. Page header banner
   18. Post list and pagination
   19. Site footer
   20. Accessibility utilities
   21. Motion and print

   Mobile-first: base rules target small screens; the 768px breakpoint
   matches the point at which the hamburger menu is replaced by inline nav.
   ========================================================================== */


/* 01. Design tokens
   ========================================================================== */

:root {
	/* Brand palette. Teal and green are the existing WhenuaTek colours. */
	--wt-teal: #0b7893;
	--wt-teal-dark: #085d72;
	--wt-teal-darker: #064859;
	--wt-green: #10907e;
	--wt-green-dark: #0c7466;

	/* Neutrals. Body text sits at 7:1+ on white; muted at 4.6:1+. */
	--wt-ink: #11222a;
	--wt-body: #3d515a;
	--wt-muted: #5c6f77;
	--wt-line: #e2e8ea;
	--wt-tint: #f4f8f9;
	--wt-white: #ffffff;

	/* Typography */
	--wt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wt-line-height: 1.65;

	/* Spacing scale */
	--wt-space-xs: 0.5rem;
	--wt-space-sm: 1rem;
	--wt-space-md: 1.5rem;
	--wt-space-lg: 2.5rem;
	--wt-space-xl: 4rem;
	--wt-space-2xl: 5.5rem;

	/* Layout */
	--wt-container: 1180px;
	--wt-container-narrow: 760px;
	--wt-gutter: 1.25rem;
	--wt-radius: 10px;
	--wt-radius-lg: 16px;

	/* Elevation */
	--wt-shadow-sm: 0 1px 2px rgba(17, 34, 42, 0.06), 0 2px 8px rgba(17, 34, 42, 0.05);
	--wt-shadow-md: 0 4px 16px rgba(17, 34, 42, 0.08), 0 12px 32px rgba(17, 34, 42, 0.06);

	/* Sticky header height, used to offset anchor targets */
	--wt-header-h: 68px;
}


/* 02. Reset and base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Keep anchor targets clear of the sticky header. */
	scroll-padding-top: calc(var(--wt-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--wt-white);
	color: var(--wt-body);
	font-family: var(--wt-font);
	font-size: 1rem;
	line-height: var(--wt-line-height);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

/* The Google Maps iframe carries width/height attributes for aspect ratio;
   the border is removed here rather than with an inline style. */
iframe {
	border: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

figure {
	margin: 0;
}

address {
	font-style: normal;
}


/* 03. Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--wt-space-sm);
	color: var(--wt-ink);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

h1 {
	font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
}

h2 {
	font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.125rem);
}

h3 {
	font-size: clamp(1.15rem, 1vw + 0.9rem, 1.375rem);
}

p {
	margin: 0 0 var(--wt-space-sm);
}

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

strong {
	color: var(--wt-ink);
	font-weight: 700;
}


/* 04. Layout: container and section
   ========================================================================== */

.wt-container {
	width: 100%;
	max-width: var(--wt-container);
	margin-inline: auto;
	padding-inline: var(--wt-gutter);
}

.wt-container--narrow {
	max-width: var(--wt-container-narrow);
}

.wt-section {
	padding-block: var(--wt-space-xl);
}

.wt-section--tint {
	background: var(--wt-tint);
}

.wt-main {
	display: block;
}

@media (min-width: 768px) {
	:root {
		--wt-gutter: 2rem;
	}

	.wt-section {
		padding-block: var(--wt-space-2xl);
	}
}


/* 05. Buttons and links
   ========================================================================== */

a {
	color: var(--wt-teal-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--wt-green-dark);
}

.wt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.975rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wt-btn--lg {
	padding: 0.9rem 1.85rem;
	font-size: 1.0625rem;
}

.wt-btn--primary {
	background: var(--wt-teal);
	border-color: var(--wt-teal);
	color: var(--wt-white);
}

.wt-btn--primary:hover {
	background: var(--wt-teal-dark);
	border-color: var(--wt-teal-dark);
	color: var(--wt-white);
	transform: translateY(-1px);
}

/* Ghost button sits on the hero image, so it needs a solid backdrop. */
.wt-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--wt-white);
	color: var(--wt-white);
}

.wt-btn--ghost:hover {
	background: var(--wt-white);
	color: var(--wt-teal-darker);
}

.wt-btn--invert {
	background: var(--wt-white);
	border-color: var(--wt-white);
	color: var(--wt-teal-darker);
}

.wt-btn--invert:hover {
	background: transparent;
	color: var(--wt-white);
	transform: translateY(-1px);
}

/* Arrow link, used for "read more" style navigation. */
.wt-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
}

.wt-link-arrow::after {
	content: "\2192";
	transition: transform 0.18s ease;
}

.wt-link-arrow:hover {
	text-decoration: underline;
}

.wt-link-arrow:hover::after {
	transform: translateX(3px);
}


/* 06. Site header and primary navigation
   ========================================================================== */

.wt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wt-white);
	border-bottom: 1px solid var(--wt-line);
	transition: box-shadow 0.2s ease;
}

.wt-header--scrolled {
	box-shadow: var(--wt-shadow-sm);
}

.wt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wt-space-sm);
	min-height: var(--wt-header-h);
}

.wt-header__brand {
	display: flex;
	align-items: center;
}

.wt-header__brand img,
.custom-logo {
	width: auto;
	max-height: 44px;
}

.wt-logo-text {
	color: var(--wt-ink);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.wt-logo-text__mark {
	color: var(--wt-teal);
}

/* -- Hamburger toggle (mobile only) -- */

.wt-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.75rem;
	background: transparent;
	border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius);
	color: var(--wt-ink);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.wt-nav-toggle__bars {
	display: grid;
	gap: 4px;
	width: 20px;
}

.wt-nav-toggle__bars span {
	display: block;
	height: 2px;
	background: var(--wt-ink);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Bars morph into a cross while the menu is open. */
.wt-nav-open .wt-nav-toggle__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.wt-nav-open .wt-nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.wt-nav-open .wt-nav-toggle__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* -- Nav panel: slide-down overlay below 768px -- */

.wt-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	padding: var(--wt-space-sm) var(--wt-gutter) var(--wt-space-md);
	background: var(--wt-white);
	border-bottom: 1px solid var(--wt-line);
	box-shadow: var(--wt-shadow-md);
}

.wt-nav-open .wt-nav {
	display: block;
}

.wt-nav__list {
	list-style: none;
}

.wt-nav__list li {
	border-bottom: 1px solid var(--wt-line);
}

.wt-nav__list li:last-child {
	border-bottom: 0;
}

.wt-nav__list a {
	display: block;
	padding: 0.85rem 0;
	color: var(--wt-ink);
	font-weight: 600;
	text-decoration: none;
}

.wt-nav__list a:hover,
.wt-nav__list .current-menu-item > a,
.wt-nav__list .current_page_item > a {
	color: var(--wt-teal);
}

.wt-nav__cta {
	display: inline-flex;
	margin-top: var(--wt-space-sm);
	padding: 0.7rem 1.25rem;
	background: var(--wt-teal);
	border-radius: 999px;
	color: var(--wt-white);
	font-weight: 600;
	text-decoration: none;
}

.wt-nav__cta:hover {
	background: var(--wt-teal-dark);
	color: var(--wt-white);
}

@media (min-width: 768px) {
	.wt-nav-toggle {
		display: none;
	}

	.wt-nav {
		position: static;
		display: flex;
		align-items: center;
		gap: var(--wt-space-md);
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.wt-nav__list {
		display: flex;
		align-items: center;
		gap: var(--wt-space-md);
	}

	.wt-nav__list li {
		border-bottom: 0;
	}

	.wt-nav__list a {
		position: relative;
		padding: 0.35rem 0;
		font-size: 0.975rem;
	}

	/* Underline marker for the active page. */
	.wt-nav__list .current-menu-item > a::after,
	.wt-nav__list .current_page_item > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -2px;
		height: 2px;
		background: var(--wt-teal);
	}

	.wt-nav__cta {
		margin-top: 0;
		font-size: 0.925rem;
	}
}


/* 07. Hero
   ========================================================================== */

.wt-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 60vh;
	padding-block: var(--wt-space-xl);
	background: linear-gradient(135deg, var(--wt-teal-darker) 0%, var(--wt-teal) 55%, var(--wt-green) 100%);
	color: var(--wt-white);
	overflow: hidden;
}

.wt-hero__media {
	position: absolute;
	inset: 0;
}

.wt-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Scrim keeps hero text above 4.5:1 contrast on any photograph. */
.wt-hero--has-image .wt-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(6, 72, 89, 0.92) 0%, rgba(11, 120, 147, 0.78) 55%, rgba(16, 144, 126, 0.62) 100%);
}

.wt-hero__inner {
	position: relative;
	max-width: 760px;
}

.wt-hero__heading {
	margin-bottom: var(--wt-space-md);
	color: var(--wt-white);
	text-wrap: balance;
}

.wt-hero__sub {
	margin-bottom: var(--wt-space-lg);
	font-size: clamp(1.0625rem, 1vw + 0.9rem, 1.3125rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.94);
}

.wt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wt-space-sm);
	margin: 0;
}

@media (min-width: 768px) {
	.wt-hero {
		min-height: 72vh;
		padding-block: var(--wt-space-2xl);
	}
}


/* 08. Credibility strip
   ========================================================================== */

.wt-stats {
	padding-block: var(--wt-space-lg);
	background: var(--wt-ink);
	color: var(--wt-white);
}

.wt-stats__list {
	display: grid;
	gap: var(--wt-space-md);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
}

.wt-stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wt-stats__number {
	color: var(--wt-white);
	font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.wt-stats__label {
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 768px) {
	.wt-stats__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--wt-space-lg);
	}
}


/* 09. Trust signals
   ========================================================================== */

.wt-trust {
	padding-block: var(--wt-space-md);
	background: var(--wt-tint);
	border-bottom: 1px solid var(--wt-line);
}

.wt-trust__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	list-style: none;
}

.wt-trust__item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--wt-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.wt-trust__tick {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--wt-green);
}


/* 10. Section headings
   ========================================================================== */

.wt-section-heading {
	max-width: 44ch;
	margin-bottom: var(--wt-space-lg);
}

.wt-eyebrow {
	margin-bottom: 0.4rem;
	color: var(--wt-green-dark);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wt-section-title {
	margin-bottom: 0;
	text-wrap: balance;
}


/* 11. Cards (services, scenarios)
   ========================================================================== */

.wt-card-grid {
	display: grid;
	gap: var(--wt-space-md);
	grid-template-columns: 1fr;
	list-style: none;
}

.wt-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: var(--wt-space-md);
	background: var(--wt-white);
	border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius-lg);
	box-shadow: var(--wt-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wt-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wt-shadow-md);
}

.wt-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--wt-tint);
	border-radius: var(--wt-radius);
	color: var(--wt-teal);
}

.wt-card__icon .wt-icon,
.wt-card__icon-img {
	width: 30px;
	height: 30px;
}

.wt-card__title {
	margin-bottom: 0;
}

.wt-card__text {
	margin-bottom: 0;
	color: var(--wt-body);
}

.wt-card__link {
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: 0.95rem;
}

/* Scenario cards lead with the question, so they get a coloured rule. */
.wt-card--scenario {
	border-left: 4px solid var(--wt-green);
}

@media (min-width: 640px) {
	.wt-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}


/* 12. Services page
   ========================================================================== */

.wt-jumplinks {
	margin-bottom: var(--wt-space-lg);
	padding-bottom: var(--wt-space-md);
	border-bottom: 1px solid var(--wt-line);
}

.wt-jumplinks__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
}

.wt-jumplinks__list a {
	display: inline-block;
	padding: 0.45rem 1rem;
	background: var(--wt-tint);
	border: 1px solid var(--wt-line);
	border-radius: 999px;
	color: var(--wt-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.wt-jumplinks__list a:hover {
	background: var(--wt-teal);
	border-color: var(--wt-teal);
	color: var(--wt-white);
}

.wt-services {
	display: grid;
	gap: var(--wt-space-xl);
}

.wt-service {
	padding-bottom: var(--wt-space-lg);
	border-bottom: 1px solid var(--wt-line);
}

.wt-service:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.wt-service__head {
	display: flex;
	align-items: flex-start;
	gap: var(--wt-space-sm);
	margin-bottom: var(--wt-space-md);
}

.wt-service__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--wt-tint);
	border-radius: var(--wt-radius);
	color: var(--wt-teal);
}

.wt-service__icon .wt-icon,
.wt-service__icon-img {
	width: 34px;
	height: 34px;
}

.wt-service__title {
	margin-bottom: 0.35rem;
}

.wt-service__summary {
	margin-bottom: 0;
	color: var(--wt-muted);
}

.wt-service__list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-service__list li {
	position: relative;
	padding-left: 1.75rem;
}

/* Tick marker drawn in CSS, so no image request per bullet. */
.wt-service__list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0.15rem;
	width: 0.5rem;
	height: 0.85rem;
	border: solid var(--wt-green);
	border-width: 0 2px 2px 0;
	transform: translateY(-50%) rotate(45deg);
}

@media (min-width: 768px) {
	.wt-service__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem var(--wt-space-lg);
	}
}


/* 13. Team page
   ========================================================================== */

.wt-team-grid {
	display: grid;
	gap: var(--wt-space-md);
	grid-template-columns: 1fr;
	list-style: none;
}

.wt-team-card {
	padding: var(--wt-space-md);
	background: var(--wt-white);
	border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius-lg);
	box-shadow: var(--wt-shadow-sm);
	text-align: center;
}

.wt-team-card__media {
	display: flex;
	justify-content: center;
	margin-bottom: var(--wt-space-sm);
}

.wt-team-card__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
}

.wt-team-card__name {
	margin-bottom: 0.25rem;
	font-size: 1.15rem;
}

.wt-team-card__name a {
	color: var(--wt-ink);
	text-decoration: none;
}

.wt-team-card__name a:hover {
	color: var(--wt-teal);
	text-decoration: underline;
}

.wt-team-card__role {
	margin-bottom: 0.4rem;
	color: var(--wt-teal-dark);
	font-size: 0.925rem;
	font-weight: 600;
	/* Long titles (e.g. "... Engineer / Northland Manager") wrap into even
	   lines instead of leaving one word stranded. Ignored by older browsers. */
	text-wrap: balance;
}

.wt-team-card__quals {
	margin-bottom: 0;
	color: var(--wt-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* -- Full profiles -- */

.wt-profiles {
	display: grid;
	gap: var(--wt-space-xl);
}

.wt-profile {
	display: grid;
	gap: var(--wt-space-md);
	padding-bottom: var(--wt-space-lg);
	border-bottom: 1px solid var(--wt-line);
}

.wt-profile:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.wt-profile__media {
	display: flex;
	justify-content: flex-start;
}

.wt-profile__photo {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
}

.wt-profile__name {
	margin-bottom: 0.25rem;
}

.wt-profile__role {
	margin-bottom: 0.35rem;
	color: var(--wt-teal-dark);
	font-weight: 600;
}

.wt-profile__quals {
	margin-bottom: var(--wt-space-sm);
	color: var(--wt-muted);
	font-size: 0.875rem;
}

@media (min-width: 640px) {
	.wt-team-grid {
		grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	}
}

@media (min-width: 768px) {
	.wt-profile {
		grid-template-columns: 190px 1fr;
		gap: var(--wt-space-lg);
	}
}


/* 14. Contact page and form
   ========================================================================== */

/* Offices: stacked on mobile, side by side from 768px. Each office is a
   flex column so both maps line up along the bottom even if one office
   has more detail lines than the other. */
.wt-offices {
	display: grid;
	gap: var(--wt-space-xl);
}

.wt-office {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wt-office__map {
	margin-top: auto;
	padding-top: var(--wt-space-md);
}

.wt-contact__heading {
	margin-bottom: var(--wt-space-md);
	font-size: 1.375rem;
}

.wt-contact__list {
	margin: 0;
	display: grid;
	gap: var(--wt-space-md);
}

.wt-contact__item dt {
	margin-bottom: 0.2rem;
	color: var(--wt-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wt-contact__item dd {
	margin: 0;
	color: var(--wt-ink);
	font-size: 1.0625rem;
}

/* -- Form -- */

.wt-form-grid {
	display: grid;
	gap: var(--wt-space-sm);
}

.wt-form-row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wt-form-label {
	color: var(--wt-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.wt-required {
	color: var(--wt-green-dark);
}

.wt-form-control {
	width: 100%;
	padding: 0.7rem 0.85rem;
	background: var(--wt-white);
	border: 1px solid #c6d2d6;
	border-radius: var(--wt-radius);
	color: var(--wt-ink);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.45;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wt-form-control:focus {
	border-color: var(--wt-teal);
	box-shadow: 0 0 0 3px rgba(11, 120, 147, 0.18);
	outline: none;
}

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

.wt-form-row--error .wt-form-control {
	border-color: #b3261e;
}

.wt-form-error {
	color: #b3261e;
	font-size: 0.85rem;
	font-weight: 600;
}

.wt-form-actions {
	margin: var(--wt-space-md) 0 0;
}

.wt-form-note {
	margin-top: 0.75rem;
	color: var(--wt-muted);
	font-size: 0.85rem;
}

/* Privacy line sits directly above the submit button. */
.wt-form-note--privacy {
	margin: var(--wt-space-md) 0 0;
}

.wt-form-note--privacy + .wt-form-actions {
	margin-top: var(--wt-space-sm);
}

/* Honeypot: removed from view and from the tab order, never display:none,
   so bots that skip hidden fields still fill it in. */
.wt-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -- Alerts -- */

.wt-alert {
	margin-bottom: var(--wt-space-md);
	padding: var(--wt-space-sm) var(--wt-space-md);
	border-left: 4px solid;
	border-radius: var(--wt-radius);
}

.wt-alert--success {
	background: #e8f5f1;
	border-color: var(--wt-green);
	color: #0a4f45;
}

.wt-alert--error {
	background: #fdecea;
	border-color: #b3261e;
	color: #8c1d18;
}

/* -- Map -- */

.wt-map__frame {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
	border-radius: var(--wt-radius);
	background: var(--wt-tint);
}

@media (min-width: 768px) {
	.wt-offices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wt-space-lg);
	}

	.wt-map__frame {
		height: 360px;
	}

	.wt-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wt-space-sm) var(--wt-space-md);
	}

	.wt-form-row--half {
		grid-column: span 1;
	}

	.wt-form-row--full {
		grid-column: 1 / -1;
	}
}


/* 15. Call-to-action band
   ========================================================================== */

.wt-cta {
	padding-block: var(--wt-space-xl);
	background: linear-gradient(120deg, var(--wt-teal-darker) 0%, var(--wt-teal) 60%, var(--wt-green) 100%);
	color: var(--wt-white);
}

.wt-cta__inner {
	max-width: 720px;
	text-align: center;
}

.wt-cta__heading {
	color: var(--wt-white);
	text-wrap: balance;
}

.wt-cta__text {
	margin-bottom: var(--wt-space-md);
	color: rgba(255, 255, 255, 0.94);
}

.wt-cta__text--lead {
	font-size: 1.125rem;
	line-height: 1.6;
}


/* 16. Prose (WYSIWYG output)
   ========================================================================== */

.wt-prose > *:last-child {
	margin-bottom: 0;
}

.wt-prose p {
	margin-bottom: var(--wt-space-sm);
}

.wt-prose--lg {
	font-size: 1.0625rem;
}

.wt-prose--lg p {
	margin-bottom: var(--wt-space-md);
}

.wt-prose h2,
.wt-prose h3 {
	margin-top: var(--wt-space-lg);
}

.wt-prose ul,
.wt-prose ol {
	margin: 0 0 var(--wt-space-sm);
	padding-left: 1.35rem;
}

.wt-prose li {
	margin-bottom: 0.4rem;
}

.wt-prose img {
	border-radius: var(--wt-radius);
}

.wt-prose a {
	font-weight: 600;
}

.wt-figure {
	margin-bottom: var(--wt-space-lg);
}

.wt-figure__img {
	width: 100%;
	border-radius: var(--wt-radius-lg);
}

.wt-about__team-link {
	margin-top: var(--wt-space-lg);
	margin-bottom: 0;
}

/* Intro block on the home page: heading beside body copy on wide screens. */
.wt-intro__grid {
	display: grid;
	gap: var(--wt-space-md);
}

@media (min-width: 900px) {
	.wt-intro__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		gap: var(--wt-space-2xl);
	}

	.wt-intro__heading .wt-section-heading {
		margin-bottom: 0;
	}
}


/* 17. Page header banner
   ========================================================================== */

.wt-page-header {
	padding-block: var(--wt-space-lg);
	background: var(--wt-tint);
	border-bottom: 1px solid var(--wt-line);
}

.wt-page-header__title {
	margin-bottom: 0;
	font-size: clamp(1.875rem, 4vw + 1rem, 2.75rem);
	text-wrap: balance;
}

.wt-page-header__lead {
	max-width: 62ch;
	margin-top: var(--wt-space-sm);
	margin-bottom: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--wt-body);
}

@media (min-width: 768px) {
	.wt-page-header {
		padding-block: var(--wt-space-xl);
	}
}

/* With a banner image: the photo fills the header behind the title and intro. */
.wt-page-header--has-image {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 240px;
	overflow: hidden;
	background: var(--wt-teal-darker);
	border-bottom: 0;
}

.wt-page-header__media {
	position: absolute;
	inset: 0;
}

.wt-page-header__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

/* Brand overlay keeps white text readable on any photograph. */
.wt-page-header__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(11, 120, 147, 0.85) 0%, rgba(16, 144, 126, 0.7) 100%);
}

.wt-page-header__inner {
	position: relative;
}

.wt-page-header--has-image .wt-page-header__title,
.wt-page-header--has-image .wt-page-header__lead {
	text-shadow: 0 1px 3px rgba(6, 72, 89, 0.45);
}

.wt-page-header--has-image .wt-page-header__title {
	color: var(--wt-white);
}

.wt-page-header--has-image .wt-page-header__lead {
	color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
	.wt-page-header--has-image {
		min-height: 340px;
	}
}

/* Optional full-width photo band on the home page, with an optional caption. */
.wt-photo-band {
	margin: 0;
	background: var(--wt-tint);
}

.wt-photo-band__img {
	width: 100%;
	height: clamp(220px, 38vw, 520px);
	object-fit: cover;
}

.wt-photo-band__caption {
	padding-block: var(--wt-space-sm);
	border-bottom: 1px solid var(--wt-line);
	font-size: 0.9375rem;
	color: var(--wt-muted);
}


/* 18. Post list and pagination
   ========================================================================== */

.wt-postlist {
	display: grid;
	gap: var(--wt-space-lg);
}

.wt-postlist__title {
	margin-bottom: 0.4rem;
}

.wt-postlist__title a {
	color: var(--wt-ink);
	text-decoration: none;
}

.wt-postlist__title a:hover {
	color: var(--wt-teal);
	text-decoration: underline;
}

.wt-pagination {
	margin-top: var(--wt-space-lg);
}

.wt-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border-radius: var(--wt-radius);
	text-decoration: none;
}

.wt-pagination .current {
	background: var(--wt-teal);
	color: var(--wt-white);
}


/* 19. Site footer
   ========================================================================== */

.wt-footer {
	padding-top: var(--wt-space-xl);
	background: var(--wt-ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9375rem;
}

.wt-footer__grid {
	display: grid;
	gap: var(--wt-space-lg);
	padding-bottom: var(--wt-space-lg);
}

.wt-footer__logo {
	margin-bottom: 0.5rem;
	color: var(--wt-white);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wt-footer__logo .wt-logo-text__mark {
	color: #4fc3d9;
}

.wt-footer__tagline {
	max-width: 42ch;
	margin-bottom: 0;
	line-height: 1.6;
}

.wt-footer__heading {
	margin-bottom: 0.75rem;
	color: var(--wt-white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wt-footer__address {
	display: grid;
	gap: 0.35rem;
	justify-items: start;
	line-height: 1.6;
}

.wt-footer__office {
	display: block;
	margin-bottom: 0.5rem;
}

.wt-footer__office-name {
	display: block;
	color: var(--wt-white);
	font-weight: 600;
}

.wt-footer__list {
	display: grid;
	gap: 0.45rem;
	list-style: none;
}

.wt-footer a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.wt-footer a:hover {
	color: var(--wt-white);
	text-decoration: underline;
}

.wt-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem var(--wt-space-md);
	padding-block: var(--wt-space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wt-footer__copyright,
.wt-footer__legal {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 768px) {
	.wt-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr;
		gap: var(--wt-space-xl);
		padding-bottom: var(--wt-space-xl);
	}
}


/* 20. Accessibility utilities
   ========================================================================== */

/* Visible, high-contrast focus ring on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--wt-green);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Dark sections need a light ring to stay visible. */
.wt-hero a:focus-visible,
.wt-cta a:focus-visible,
.wt-footer a:focus-visible,
.wt-stats a:focus-visible {
	outline-color: var(--wt-white);
}

.wt-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: var(--wt-white);
	color: var(--wt-teal-darker);
	font-weight: 700;
	text-decoration: none;
}

.wt-skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
	box-shadow: var(--wt-shadow-md);
}

.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;
}


/* 21. Motion and print
   ========================================================================== */

@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;
	}
}

@media print {
	/* Drop the sticky header, chrome and interactive-only elements. */
	.wt-header,
	.wt-footer,
	.wt-nav-toggle,
	.wt-jumplinks,
	.wt-map,
	.wt-form,
	.wt-skip-link {
		display: none !important;
	}

	body {
		color: #000;
		font-size: 11pt;
	}

	/* Hero and CTA bands are colour-heavy; flatten them for paper. */
	.wt-hero,
	.wt-cta,
	.wt-stats {
		min-height: 0;
		padding-block: 1rem;
		background: none !important;
		color: #000;
	}

	.wt-hero__media,
	.wt-hero__actions,
	.wt-page-header__media,
	.wt-photo-band {
		display: none;
	}

	.wt-page-header--has-image {
		min-height: 0;
		background: none;
	}

	.wt-page-header--has-image .wt-page-header__title,
	.wt-page-header--has-image .wt-page-header__lead {
		color: #000;
		text-shadow: none;
	}

	.wt-hero__heading,
	.wt-cta__heading,
	.wt-stats__number {
		color: #000;
	}

	.wt-hero__sub,
	.wt-cta__text,
	.wt-stats__label {
		color: #333;
	}

	.wt-section {
		padding-block: 1rem;
	}

	.wt-card,
	.wt-profile,
	.wt-service {
		break-inside: avoid;
		box-shadow: none;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}
}
