/* ==========================================================================
   KR Tree Care
   One stylesheet, mobile first. Colours and sizes live in the variables below.
   ========================================================================== */

:root {
	--forest-900: #142219;
	--forest-800: #1b2e22;
	--forest-700: #24402f;
	--forest-600: #2f5640;
	--cream: #f6f3ec;
	--cream-dark: #ece6d8;
	--paper: #ffffff;
	--ink: #1d211c;
	--ink-soft: #545b52;
	--line: #e2dccd;
	--accent: #c2540a;         /* burnt orange: buttons (white text passes contrast) */
	--accent-hover: #a54608;
	--accent-bright: #f08a3c;  /* lighter orange: small details on dark backgrounds */
	--accent-tint: #f6e6da;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 18px 40px -22px rgba(20, 34, 25, .45);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--section-y: clamp(64px, 10vw, 128px);

	--font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

/* Base
   ========================================================================== */

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

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

html:has(dialog[open]) { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3 {
	margin: 0 0 .45em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: .005em;
	text-transform: uppercase;
	text-wrap: balance;
}

h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

h3 { font-size: 1.5rem; line-height: 1.1; }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); }

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

.sprite { display: none; }

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

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

main section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
}

.skip-link:focus { top: 16px; }

/* Small text above headings */
.eyebrow {
	display: flex;
	align-items: center;
	gap: .75em;
	margin: 0 0 1rem;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}

.eyebrow-center { justify-content: center; }

.section-head {
	max-width: 720px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p:last-child {
	margin: 0;
	font-size: 1.125rem;
	color: var(--ink-soft);
}

/* Buttons and links
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 48px;
	padding: .7em 1.35em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 1rem/1 var(--font-body);
	letter-spacing: .01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.btn:active { transform: translateY(1px); }

.btn-lg {
	min-height: 56px;
	padding: .85em 1.6em;
	font-size: 1.0625rem;
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream-dark); }

.btn-dark { background: var(--forest-800); color: #fff; }
.btn-dark:hover { background: var(--forest-700); }

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

.text-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

.text-link .icon { width: 1em; height: 1em; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

.text-link-light { color: #fff; }

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 2rem 0 0;
}

.icon-circle {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent-tint);
	color: var(--accent);
}

/* Header
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	color: #fff;
	transition: background-color .3s, box-shadow .3s, color .3s;
}

.site-header.is-scrolled {
	background: rgba(246, 243, 236, .96);
	color: var(--ink);
	box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .35);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.site-header.menu-open,
.no-js .site-header {
	background: var(--forest-900);
	color: #fff;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand {
	position: relative;
	display: block;
	flex: none;
	margin-right: auto;
}

.brand img {
	width: auto;
	height: 46px;
	transition: opacity .3s;
}

/* Light-ringed logo over the photo / dark header; original on the cream header */
.brand-dark {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.site-header.is-scrolled .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark { opacity: 1; }
.site-header.menu-open .brand-light { opacity: 1; }
.site-header.menu-open .brand-dark { opacity: 0; }

.site-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	position: relative;
	display: block;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.header-call { padding-inline: 1.1em; }

.nav-toggle {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Phones and small tablets: menu drops down from the header */
@media (max-width: 959.98px) {
	.header-call {
		width: 46px;
		min-height: 46px;
		padding: 0;
	}

	.header-call span { display: none; }

	.no-js .nav-toggle,
	.no-js .site-nav { display: none; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 4px var(--gutter) 24px;
		background: var(--forest-900);
		color: #fff;
		box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .25s, transform .25s, visibility 0s .25s;
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .25s, transform .25s;
	}

	.site-nav ul { flex-direction: column; }

	.site-nav a {
		padding: 16px 2px;
		font-size: 1.125rem;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.site-nav a.is-active { color: var(--accent-bright); }
}

@media (min-width: 960px) {
	:root { --header-h: 84px; }

	.brand img { height: 54px; }

	.nav-toggle { display: none; }

	.site-nav ul { gap: 4px; }

	.site-nav a {
		padding: 10px 14px;
		font-size: .875rem;
	}

	.site-nav a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: 4px;
		height: 2px;
		background: var(--accent-bright);
		transform: scaleX(0);
		transition: transform .25s;
	}

	.site-header.is-scrolled .site-nav a::after { background: var(--accent); }

	.site-nav a:hover::after,
	.site-nav a.is-active::after { transform: scaleX(1); }

	.header-call { margin-left: 16px; }
}

/* Hero
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: max(600px, 100svh);
	background: var(--forest-900);
	color: #fff;
}

.hero picture,
.hero-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
}

.hero-img { object-fit: cover; object-position: 50% 40%; }

/* Darkens the photo where the text sits */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(20, 34, 25, .6) 0%, rgba(20, 34, 25, 0) 22%),
		linear-gradient(0deg, rgba(20, 34, 25, .95) 0%, rgba(20, 34, 25, .7) 38%, rgba(20, 34, 25, 0) 68%);
}

.hero-content {
	padding-top: calc(var(--header-h) + 48px);
	padding-bottom: clamp(112px, 16vw, 168px);
}

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

.hero h1 {
	max-width: 14ch;
	margin-bottom: .3em;
	font-size: clamp(3rem, 10vw, 6.25rem);
	line-height: .95;
}

.hero-lead {
	max-width: 32ch;
	margin-bottom: 2rem;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	color: rgba(255, 255, 255, .9);
}

@media (max-width: 479.98px) {
	.hero .btn-row .btn { width: 100%; }
}

/* Upright screens (phones, tablets held upright): photo on top, fading into
   the text below, so the climber isn't hidden behind the heading. */
@media not all and (min-width: 768px) and (min-aspect-ratio: 1/1) {
	.hero {
		display: grid;
		grid-template-rows: minmax(240px, 1fr) auto;
	}

	.hero::after { display: none; }

	.hero picture {
		position: relative;
		inset: auto;
		z-index: 0;
		display: block;
		grid-row: 1;
	}

	.hero picture::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(180deg, rgba(20, 34, 25, .7) 0%, rgba(20, 34, 25, 0) 32%),
			linear-gradient(0deg, var(--forest-900) 0%, rgba(20, 34, 25, 0) 50%);
	}

	.hero-img { object-position: 50% 56%; }

	.hero-content {
		position: relative;
		z-index: 1;
		margin-top: -40px;
		padding-top: 0;
	}
}

@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
	.hero { align-items: center; }

	.hero-img { object-position: 50% 50%; }

	.hero::after {
		background:
			linear-gradient(180deg, rgba(20, 34, 25, .55) 0%, rgba(20, 34, 25, 0) 20%),
			linear-gradient(90deg, rgba(20, 34, 25, .9) 0%, rgba(20, 34, 25, .65) 34%, rgba(20, 34, 25, .1) 62%, rgba(20, 34, 25, 0) 100%);
	}
}

/* Why choose us (card overlapping the bottom of the hero)
   ========================================================================== */

.trust {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(64px, 9vw, 88px));
}

.trust-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 16px;
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	list-style: none;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.trust-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.trust-item strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.375rem;
	line-height: 1.1;
	text-transform: uppercase;
}

.trust-item span:not(.icon-circle) {
	display: block;
	margin-top: 2px;
	font-size: .9375rem;
	line-height: 1.4;
	color: var(--ink-soft);
}

@media (min-width: 600px) {
	.trust-item { flex-direction: row; align-items: flex-start; }
}

@media (min-width: 1000px) {
	.trust-list { grid-template-columns: repeat(4, 1fr); }
}

/* About
   ========================================================================== */

.about-grid {
	display: grid;
	gap: clamp(48px, 7vw, 96px);
	align-items: center;
}

.about-text p:not(.eyebrow):not(.link-row) { max-width: 60ch; color: var(--ink-soft); }
.about-text .lead { color: var(--ink) !important; }

.about-media {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding-bottom: 56px;
}

.about-photo-main {
	margin: 0 0 0 16%;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-dark);
}

.about-photo-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

.about-photo-inset {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44%;
	margin: 0;
	border: 6px solid var(--cream);
	border-radius: calc(var(--radius) + 6px);
	overflow: hidden;
	background: var(--cream-dark);
	box-shadow: var(--shadow);
}

.about-photo-inset img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }

.about-photo-inset figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 28px 12px 10px;
	background: linear-gradient(0deg, rgba(20, 34, 25, .85), rgba(20, 34, 25, 0));
	color: rgba(255, 255, 255, .85);
	font-size: .8125rem;
	line-height: 1.3;
}

.about-photo-inset figcaption strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: #fff;
	text-transform: uppercase;
}

.about-badge {
	position: absolute;
	top: 24px;
	right: -8px;
	display: grid;
	place-content: center;
	width: 112px;
	height: 112px;
	margin: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	text-align: center;
	line-height: 1.1;
	box-shadow: var(--shadow);
	transform: rotate(-8deg);
}

.about-badge strong {
	font-family: var(--font-display);
	font-size: 2.5rem;
	line-height: 1;
}

.about-badge span {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

@media (max-width: 599.98px) {
	.about-badge { right: 0; width: 92px; height: 92px; }
	.about-badge strong { font-size: 2rem; }
	.about-badge span { font-size: .6875rem; }
}

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

/* Services
   ========================================================================== */

.services {
	background:
		radial-gradient(1200px 600px at 100% 0%, rgba(47, 86, 64, .55), transparent 60%),
		var(--forest-800);
	color: #e8eee6;
}

.services .eyebrow { color: var(--accent-bright); }
.services .section-head p:last-child { color: rgba(232, 238, 230, .78); }

.service-grid {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card {
	padding: 28px 26px 30px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .04);
	transition: background-color .25s, border-color .25s, transform .25s;
}

.service-card:hover {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(240, 138, 60, .55);
	transform: translateY(-3px);
}

.service-num {
	display: block;
	margin-bottom: 20px;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--accent-bright);
}

.service-card h3 { color: #fff; }

.service-card p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(232, 238, 230, .74);
}

.service-card-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	border-color: transparent;
	background: var(--accent);
}

.service-card-cta:hover { background: var(--accent); border-color: transparent; }
.service-card-cta p { margin-bottom: 20px; color: rgba(255, 255, 255, .9); }

@media (min-width: 600px) {
	.service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
	.service-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Call-to-action band (chainsaws photo)
   ========================================================================== */

.cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #0b0b0a;
	color: #fff;
}

.cta-band-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 0 50%;
}

.cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(11, 11, 10, .72);
}

.cta-band-inner {
	display: flex;
	align-items: center;
	min-height: clamp(380px, 40vw, 540px);
	padding-block: 72px;
}

.cta-band-text { max-width: 540px; }

.cta-band-text p {
	margin-bottom: 1.75rem;
	font-size: 1.1875rem;
	color: rgba(255, 255, 255, .85);
}

/* Wide screens: the photo's right half is already black, so put the text there */
@media (min-width: 900px) {
	.cta-band::after { background: linear-gradient(90deg, rgba(11, 11, 10, 0) 30%, rgba(11, 11, 10, .6) 50%, rgba(11, 11, 10, .85) 100%); }
	.cta-band-inner { justify-content: flex-end; }
}

/* Our work: before/after and gallery
   ========================================================================== */

.work { background: var(--paper); }

.before-after { margin: 0 0 clamp(16px, 3vw, 24px); }

.ba-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(8px, 2vw, 20px);
}

.ba-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-dark);
}

.ba-item img { width: 100%; height: 100%; object-fit: cover; }

.ba-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(20, 34, 25, .82);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ba-tag-after { background: var(--accent); }

.before-after figcaption {
	margin-top: 12px;
	font-size: .9375rem;
	color: var(--ink-soft);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(8px, 2vw, 20px);
	margin: clamp(32px, 5vw, 48px) 0 0;
	padding: 0;
	list-style: none;
}

.gallery-item a {
	position: relative;
	display: block;
	height: 100%;
	aspect-ratio: 1;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-dark);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item a:hover img { transform: scale(1.05); }

.gallery-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(20, 34, 25, .7);
	color: #fff;
	opacity: 0;
	transform: scale(.85);
	transition: opacity .25s, transform .25s;
}

.gallery-zoom .icon { width: 18px; height: 18px; }

.gallery-item a:hover .gallery-zoom,
.gallery-item a:focus-visible .gallery-zoom { opacity: 1; transform: none; }

@media (hover: none) {
	.gallery-zoom { opacity: 1; transform: none; }
}

.gallery-item-lg,
.gallery-item:last-child { grid-column: span 2; }

.gallery-item:last-child a { aspect-ratio: 2 / 1; }

@media (min-width: 700px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }

	.gallery-item-lg { grid-row: span 2; }
	.gallery-item-lg a { aspect-ratio: auto; }

	.gallery-item:last-child { grid-column: auto; }
	.gallery-item:last-child a { aspect-ratio: 1; }
}

/* Areas covered (tree canopy background)
   ========================================================================== */

.areas {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--forest-700);
	color: #fff;
	text-align: center;
}

.areas-bg,
.areas-bg img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.areas::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 34, 25, .9), rgba(20, 34, 25, .8));
}

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

.areas h2 { max-width: 24ch; margin-inline: auto; }

.areas-lead {
	max-width: 56ch;
	margin: 0 auto 2rem;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, .85);
}

.areas-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 880px;
	margin: 0 auto 2.25rem;
	padding: 0;
	list-style: none;
}

.areas-list li {
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.3;
}

.areas-list li.is-main {
	border-color: var(--accent);
	background: var(--accent);
	font-weight: 600;
}

.areas-more { margin: 0; font-size: 1.0625rem; }

/* Contact
   ========================================================================== */

.contact-grid {
	display: grid;
	gap: clamp(40px, 6vw, 72px);
}

.contact-info .lead { color: var(--ink-soft); }

.contact-list {
	display: grid;
	gap: 20px;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 16px;
	line-height: 1.4;
}

.contact-list small {
	display: block;
	margin-bottom: 2px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.contact-phone {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.contact-phone:hover { color: var(--accent); }

.contact-card {
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: .9375rem;
	font-weight: 600;
}

.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fbfaf7;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;   /* 16px stops iPhones zooming in on focus */
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--forest-600);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(47, 86, 64, .16);
}

.form-submit { width: 100%; margin-top: 24px; }
.form-submit:disabled { opacity: .7; cursor: progress; }

.form-note {
	margin: 12px 0 0;
	font-size: .9375rem;
	text-align: center;
	color: var(--ink-soft);
}

.form-result {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-weight: 500;
}

.form-result.is-success { background: #e4efe0; color: #1f4a26; }
.form-result.is-error { background: #fbe4de; color: #8a2a17; }

.botcheck { display: none !important; }

@media (min-width: 560px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.field-full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
	.contact-grid { grid-template-columns: 5fr 7fr; align-items: start; }
}

/* Footer
   ========================================================================== */

.site-footer {
	padding-top: clamp(56px, 8vw, 88px);
	background: var(--forest-900);
	color: rgba(232, 238, 230, .72);
	font-size: 1rem;
}

.footer-grid {
	display: grid;
	gap: 40px;
}

.footer-brand img { width: auto; height: 54px; margin-bottom: 20px; }
.footer-brand .footer-roundel { height: clamp(110px, 12vw, 140px); margin-bottom: 24px; }
.footer-brand p { max-width: 36ch; }

.footer-title {
	margin-bottom: 1rem;
	font-size: 1.125rem;
	letter-spacing: .08em;
	color: #fff;
}

.footer-links {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-phone {
	font-family: var(--font-display);
	font-size: 1.625rem;
	font-weight: 700;
	color: #fff;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 48px;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .875rem;
}

.footer-bottom p { margin: 0; }

@media (min-width: 800px) {
	.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Phone quick-action bar
   ========================================================================== */

.mobile-cta {
	position: fixed;
	inset: auto 0 0;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(246, 243, 236, .97);
	box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .45);
	transform: translateY(110%);
	transition: transform .3s;
}

.mobile-cta.is-visible { transform: none; }

@media (max-width: 899.98px) {
	.site-footer { padding-bottom: 72px; }
}

@media (min-width: 900px) {
	.mobile-cta { display: none; }
}

/* Photo viewer
   ========================================================================== */

.lightbox {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 15, 11, .96);
	color: #fff;
}

.lightbox::backdrop { background: rgba(10, 15, 11, .96); }

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: min(92vw, 1200px);
	margin: 0;
	padding: 72px 0 96px;
}

.lightbox img {
	width: auto;
	max-width: 100%;
	max-height: calc(100dvh - 200px);
	border-radius: var(--radius-sm);
	object-fit: contain;
}

.lightbox figcaption {
	max-width: 60ch;
	font-size: .9375rem;
	text-align: center;
	color: rgba(255, 255, 255, .8);
}

.lb-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}

.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn .icon { width: 24px; height: 24px; }

.lb-close { top: 16px; right: 16px; }
.lb-prev,
.lb-next { bottom: 24px; }
.lb-prev { left: calc(50% - 64px); }
.lb-next { right: calc(50% - 64px); }

@media (min-width: 900px) {
	.lightbox figure { padding: 56px 0; }
	.lightbox img { max-height: calc(100dvh - 140px); }
	.lb-prev,
	.lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
	.lb-prev { left: 24px; }
	.lb-next { right: 24px; }
}

/* Scroll-in animation (only with JavaScript, and never for reduced motion)
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

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

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

	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}

	.js .reveal { opacity: 1; transform: none; }
}
