/* Headings use Fraunces, loaded from fonts.googleapis.com; see the <link>
   tags in each page's <head>. Body text uses the system sans stack, which
   costs no request at all. */

:root {
	/* Brand greens, from the darkest band to the page background. */
	--green-950: #0f241c;
	--green-900: #16352a;
	--green-800: #21493b;
	--accent: #2bbf96;
	--accent-strong: #1b9c77;
	--warm: #ff7a33;

	--cream: #faf7f2;
	--paper: #fff;
	--ink: #16201c;
	--ink-muted: #5c6b63;
	--rule: #e6e0d8;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(15 36 28 / 5%), 0 10px 30px rgb(15 36 28 / 7%);
	--shadow-lift: 0 2px 4px rgb(15 36 28 / 6%), 0 18px 44px rgb(15 36 28 / 12%);

	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	--width: 1150px;
	--measure: 64ch;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font: 400 clamp(1rem, 0.97rem + 0.15vw, 1.075rem) / 1.65 var(--sans);
	color: var(--ink);
	background: var(--paper);
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	/* Keep headline line breaks even rather than leaving one orphan word. */
	text-wrap: balance;
	margin: 0 0 0.5em;
}
h1 {
	font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.1rem);
}
h2 {
	font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
}
h3 {
	font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
}

p {
	margin: 0 0 1.15em;
	text-wrap: pretty;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
a:hover {
	color: var(--accent-strong);
}

:focus-visible {
	outline: 2.5px solid var(--accent);
	outline-offset: 3px;
	border-radius: 3px;
}

.container {
	max-width: var(--width);
	margin: 0 auto;
	padding: 0 24px;
}

.skip {
	position: absolute;
	left: -9999px;
}
.skip:focus {
	left: 12px;
	top: 12px;
	z-index: 20;
	background: var(--paper);
	color: var(--ink);
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lift);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgb(255 255 255 / 82%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--rule);
}
.site-header .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 36px;
	padding-block: 14px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: -0.015em;
	text-decoration: none;
}
.brand img {
	width: 38px;
	height: 39px;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	display: block;
	padding: 7px 14px;
	border-radius: 100px;
	text-decoration: none;
	font-size: 0.93rem;
	font-weight: 500;
	color: var(--ink-muted);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover {
	background: rgb(43 191 150 / 11%);
	color: var(--ink);
}
.site-nav [aria-current="page"] {
	background: rgb(43 191 150 / 15%);
	color: var(--accent-strong);
}

@media (max-width: 640px) {
	.site-header .container {
		justify-content: center;
		text-align: center;
	}
	.site-nav ul {
		justify-content: center;
	}
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(60px, 8vw, 110px) 0;
}
.section--light {
	background: var(--cream);
}
.section--dark {
	background: var(--green-900);
	color: #fff;
	text-align: center;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(36px, 6vw, 72px);
}
.split--flip > :first-child {
	order: 2;
}
.split p:not(.eyebrow) {
	max-width: var(--measure);
	color: var(--ink-muted);
}
.split img {
	width: 100%;
	/* A shared ratio makes the photos read as one set rather than as
	   whatever shape each happened to be cropped to. */
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

@media (max-width: 820px) {
	.split {
		grid-template-columns: 1fr;
	}
	.split--flip > :first-child {
		order: 0;
	}
	.split img {
		aspect-ratio: 3 / 2;
	}
}

.eyebrow {
	margin: 0 0 0.7em;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background:
		linear-gradient(155deg, rgb(15 36 28 / 93%), rgb(33 73 59 / 82%)),
		url(/img/hero.jpg) center / cover no-repeat;
	color: #fff;
	text-align: center;
	padding: clamp(64px, 9vw, 110px) 0;
}
.hero--page {
	padding: clamp(56px, 7vw, 86px) 0;
}
.hero h1 {
	margin-bottom: 0.45em;
}
.hero p:not(.eyebrow) {
	max-width: 46ch;
	margin: 0 auto;
	color: rgb(255 255 255 / 80%);
	font-size: 1.02rem;
}

.hero-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 1.8vw, 22px);
	margin: 0 0 clamp(32px, 4vw, 48px);
}
.hero-gallery img {
	width: 100%;
	height: clamp(170px, 20vw, 250px);
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 16px 40px rgb(0 0 0 / 28%);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hero-gallery img:hover {
	transform: translateY(-6px);
}

@media (max-width: 640px) {
	.hero-gallery {
		grid-template-columns: 1fr 1fr;
	}
	/* The third photo takes the full width on its own row. */
	.hero-gallery img:last-child {
		grid-column: span 2;
		height: 150px;
	}
}

/* ---------- Buttons ---------- */

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--green-950);
	padding: 15px 32px;
	border-radius: 100px;
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 1px 2px rgb(15 36 28 / 10%), 0 8px 22px rgb(43 191 150 / 28%);
	transition: transform 0.18s ease, box-shadow 0.18s ease,
		background-color 0.18s ease;
}
.button:hover,
.button:focus {
	background: #35d2a6;
	color: var(--green-950);
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgb(15 36 28 / 10%), 0 14px 30px rgb(43 191 150 / 36%);
}

/* A right-aligned button still reads fine... */
p.text-right {
	text-align: right;
}

/* ...but a right-aligned block of copy leaves a ragged left edge that the
   eye has to hunt for. The alternating images already carry the rhythm. */
div.text-right {
	text-align: left;
}

@media (max-width: 820px) {
	p.text-right {
		text-align: left;
	}
}

/* ---------- Feature list ---------- */

.features {
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
	display: grid;
	gap: 0.55em;
	max-width: var(--measure);
	color: var(--ink);
}
.features li {
	font-size: 0.97rem;
}

/* ---------- Call-to-action band ---------- */

.band h2 {
	max-width: 18ch;
	margin-inline: auto;
}
.band hr {
	width: 56px;
	margin: 28px auto 32px;
	border: 0;
	border-top: 3px solid var(--accent);
	border-radius: 3px;
}

/* ---------- Testimonials ---------- */

.testimonials {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: clamp(26px, 3vw, 40px);
	align-items: start;
}
.testimonials h2 {
	margin: 0;
}
.testimonials figure {
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow);
}
.testimonials blockquote {
	margin: 0;
	font-size: 0.99rem;
	color: var(--ink-muted);
}
.stars {
	color: var(--warm);
	letter-spacing: 3px;
	font-size: 0.92rem;
	margin: 0 0 0.9em;
}
.testimonials figcaption {
	margin-top: 1.2em;
	padding-top: 1.1em;
	border-top: 1px solid var(--rule);
}
.testimonials cite {
	font-style: normal;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.testimonials {
		grid-template-columns: 1fr;
	}
}

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

.contact-card {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
	background: var(--cream);
	border: 1px solid var(--rule);
	border-radius: calc(var(--radius) * 1.5);
	padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 52px);
	box-shadow: var(--shadow);
}
.contact-card p:not(.eyebrow) {
	color: var(--ink-muted);
}
.contact-email {
	display: inline-block;
	margin-bottom: 1.5em;
	font-family: var(--display);
	font-size: clamp(1.2rem, 0.9rem + 1.5vw, 1.7rem);
	font-weight: 600;
	color: var(--accent-strong);
	text-decoration-color: rgb(43 191 150 / 40%);
}

/* ---------- Client offer pages ----------
   Used by the unlisted, per-client landing pages. */

.eyebrow--ondark {
	color: var(--accent);
}

/* Qualified with p to outrank `.hero p:not(.eyebrow)`, which sets margin
   and max-width for the lead paragraph. */
.hero p.hero-cta {
	margin: clamp(38px, 4.5vw, 60px) 0 0;
	max-width: none;
}

.button--lg {
	padding: 18px 42px;
	font-size: 0.95rem;
}

.steps-title {
	max-width: 20ch;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 3vw, 40px);
	counter-reset: step;
	list-style: none;
	margin: clamp(32px, 4vw, 48px) 0 0;
	padding: 0;
}
.steps li {
	counter-increment: step;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow);
}
.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--green-950);
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.05rem;
}
.steps h3 {
	font-size: 1.15rem;
	margin-bottom: 0.4em;
}
.steps p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ink-muted);
}

@media (max-width: 820px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

.band-note {
	margin: 28px 0 0;
	font-size: 0.86rem;
	color: rgb(255 255 255 / 62%);
}

.fineprint {
	max-width: 72ch;
	margin-inline: auto;
	font-size: 0.88rem;
	color: var(--ink-muted);
}
.fineprint h2 {
	font-size: clamp(1.2rem, 1rem + 0.9vw, 1.5rem);
	color: var(--ink);
}

/* ---------- Legal pages ---------- */

.prose {
	max-width: 72ch;
	margin-inline: auto;
	color: var(--ink-muted);
}
.prose h2 {
	margin-top: 1.6em;
	font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
	color: var(--ink);
}
.prose h2:first-child {
	margin-top: 0;
}
.prose h3 {
	margin-top: 1.4em;
	font-size: 1.1rem;
	color: var(--ink);
}
.prose strong {
	color: var(--ink);
}
.prose ul {
	margin: 0 0 1.2em;
	padding-left: 1.1em;
}
.prose li {
	margin-bottom: 0.45em;
}
.prose li::marker {
	color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--green-950);
	color: #fff;
	padding: 42px 0;
	font-size: 0.88rem;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* The nav is the only item left in the footer, so centre it. */
	justify-content: center;
	gap: 16px 36px;
}
.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer a {
	text-decoration: none;
	color: rgb(255 255 255 / 72%);
}
.site-footer a:hover {
	color: var(--accent);
}

/* ---------- Scroll reveal ----------
   Scroll-driven animations, so no JavaScript. Gated behind @supports so
   that browsers without them never apply the opacity:0 starting state and
   simply show the content, and behind the reduced-motion query. */

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.section .split > *,
		.section .testimonials > *,
		.section .steps > *,
		.section .contact-card,
		.band > * {
			animation: rise-in linear both;
			animation-timeline: view();
			/* Finish as soon as the element has entered the viewport. A
			   range like "cover 22%" is not always reachable for elements
			   near the bottom of a short page, which would strand them
			   mid-fade. */
			animation-range: entry 10% entry 90%;
		}
	}
}

@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
