/*
Theme Name: Crown Trees
Theme URI: https://crowntreesnorfolk.co.uk
Author: WebKraft Studios
Author URI: https://webkraftstudios.com
Description: Bespoke one-page theme for Crown Tree Services, Norfolk tree surgeons. Clean rebuild of the original Crown Trees theme with no framework dependencies.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crown-trees
*/

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face {
	font-family: "Arvo";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/arvo-400.woff2") format("woff2");
}
@font-face {
	font-family: "Arvo";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/arvo-700.woff2") format("woff2");
}
@font-face {
	font-family: "Geologica";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/geologica-var.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--forest-950: #0c1f15;
	--forest-900: #11281b;
	--forest-800: #173523;
	--forest-700: #21492f;
	--forest-600: #2e6240;
	--sky-500: #3aaedf;
	--sky-400: #62c1ea;
	--sky-100: #dcf0f8;
	--sky-50: #eef7fb;
	--navy: #0f3443;
	--paper: #f5f8f3;
	--white: #ffffff;
	--ink: #1b2820;
	--ink-soft: #4b5a50;
	--line: #dfe6df;
	--link: #1a6f96;

	--font-head: "Arvo", Georgia, serif;
	--font-body: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(12, 31, 21, .06), 0 2px 6px rgba(12, 31, 21, .05);
	--shadow: 0 6px 24px rgba(12, 31, 21, .08), 0 2px 6px rgba(12, 31, 21, .05);
	--shadow-lg: 0 18px 50px rgba(12, 31, 21, .16);

	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(64px, 9vw, 120px);
	--header-h: 76px;
}

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

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 350;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img { display: block; }

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s ease;
}
a:hover { color: var(--forest-700); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.2;
	color: var(--forest-900);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
strong, b { font-weight: 600; }

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

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	background: var(--white);
	color: var(--forest-900);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

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

.icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	vertical-align: -.125em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .85em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 550;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
	background: var(--forest-700);
	color: var(--white);
	box-shadow: 0 6px 16px rgba(33, 73, 47, .22);
}
.btn-primary:hover {
	background: var(--forest-800);
	color: var(--white);
}

.btn-sky {
	background: var(--accent);
	color: var(--forest-950);
}
.btn-sky:hover {
	background: var(--white);
	color: var(--forest-950);
}

.btn-outline {
	border-color: currentColor;
	color: var(--forest-800);
	background: transparent;
}
.btn-outline:hover {
	background: var(--forest-800);
	border-color: var(--forest-800);
	color: var(--white);
}

.btn-icon {
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 1.25rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-sm);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.site-brand { display: flex; align-items: center; }
.site-brand img,
.custom-logo {
	width: auto;
	height: 60px;
	image-rendering: auto;
}
.site-title-text {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--forest-900);
	text-decoration: none;
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 450;
	text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item:not(.menu-item-type-custom) > a {
	background: var(--sky-50);
	color: var(--forest-800);
}

.primary-nav .header-call {
	display: inline-flex;
	font-size: .95rem;
	padding: .7em 1.2em;
	color: var(--white);
}
.primary-nav .header-call:hover {
	background: var(--forest-800);
	color: var(--white);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	color: var(--forest-900);
	cursor: pointer;
}
.nav-toggle .bars {
	position: relative;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: background-color .2s ease;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s ease;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--gutter) 20px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
	.header-call { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	padding: clamp(20px, 4vh, 56px) 0 clamp(96px, 15vh, 190px);
	background:
		radial-gradient(ellipse 60% 55% at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #ffffff 0%, var(--sky-50) 45%, var(--sky-100) 100%);
	overflow: hidden;
	text-align: center;
	isolation: isolate;
}

.hero-trees {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: clamp(240px, 50vw, 700px);
	z-index: -1;
	pointer-events: none;
}
.hero-trees img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 60%);
	mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 60%);
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 42% 46% at 50% 52%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.hero-inner { position: relative; width: 100%; }

.hero-badge {
	display: inline-grid;
	place-items: center;
	width: clamp(108px, min(40vw, 21vh), 214px);
	aspect-ratio: 1;
	margin: 0 auto clamp(14px, 2.6vh, 26px);
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), var(--shadow-lg);
}
.hero-badge img {
	width: 66%;
	height: auto;
	margin-top: 6%;
}

.hero-kicker {
	display: block;
	margin: 0 0 .3em;
	font-family: var(--font-head);
	font-size: clamp(1.4rem, min(3vw, 4.4vh), 2.2rem);
	font-weight: 700;
	color: var(--forest-700);
}

.hero h1 {
	max-width: 17em;
	margin: 0 auto clamp(16px, 3vh, 28px);
	font-family: var(--font-body);
	font-size: clamp(1.2rem, min(2.8vw, 4vh), 2rem);
	font-weight: 650;
	letter-spacing: .02em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--forest-900);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.hero-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(12px, 2.2vh, 22px);
}
.social-btn {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid var(--forest-800);
	color: var(--forest-800);
	background: rgba(255, 255, 255, .6);
	font-size: 1.2rem;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.social-btn:hover {
	background: var(--forest-800);
	color: var(--white);
	transform: translateY(-2px);
}

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(18px, 3.5vh, 32px);
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-left: -26px;
	border-radius: 50%;
	background: var(--white);
	color: var(--forest-800);
	font-size: 1.5rem;
	box-shadow: var(--shadow);
	animation: nudge 2.4s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--forest-950); }

/* Too short to fit the banner and the button together: the banner grows, so drop the button. */
@media (max-height: 520px) {
	.hero-scroll { display: none; }
}

@keyframes nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }

.section-head {
	max-width: 720px;
	margin: 0 auto clamp(36px, 5vw, 56px);
	text-align: center;
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); margin: 0; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-bottom: .9em;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--forest-600);
}
.eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
}

/* About -------------------------------------------------------------------- */
.about { background: var(--paper); padding-top: clamp(40px, 6vw, 80px); }

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.about-copy .entry-content p:first-of-type {
	font-size: 1.25rem;
	font-weight: 450;
	color: var(--forest-900);
	line-height: 1.55;
}

.about-media {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}
.about-photo {
	position: relative;
	margin: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 5;
	background: var(--sky-100);
}
.about-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trust-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.trust-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: .93rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--forest-900);
}
.trust-list .icon {
	font-size: 1.35rem;
	color: var(--forest-600);
}

.about-follow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
	padding: 18px 22px 18px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.about-follow p { margin: 0; font-size: .95rem; color: var(--ink); }
.about-follow .social-btn {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-color: var(--forest-700);
	background: var(--forest-700);
	color: var(--white);
}
.about-follow .social-btn:hover {
	background: var(--forest-900);
	border-color: var(--forest-900);
}

.areas {
	margin-top: clamp(40px, 6vw, 64px);
	padding: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 36px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.areas .icon {
	font-size: 1.7rem;
	color: var(--accent);
	margin-top: 2px;
}
.areas h3 { font-size: 1.1rem; margin-bottom: .3em; }
.areas p { margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-media { position: static; max-width: 520px; }
}

/* Services ----------------------------------------------------------------- */
.home-services {
	position: relative;
	background:
		radial-gradient(ellipse 80% 60% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
		var(--forest-800);
	color: rgba(255, 255, 255, .86);
}
.home-services .eyebrow { color: var(--accent); }
.home-services h2 { color: var(--white); }
.home-services .section-head p { color: rgba(255, 255, 255, .75); }

.service-grid {
	columns: 3;
	column-gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-grid > li {
	break-inside: avoid;
	margin-bottom: 20px;
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 26px 26px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--radius-lg);
	transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.service-card:hover {
	background: rgba(255, 255, 255, .09);
	border-color: color-mix(in srgb, var(--accent) 50%, transparent);
	transform: translateY(-3px);
}

.service-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 20px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--accent) 15%, transparent);
	color: var(--accent);
	font-size: 1.6rem;
}

.service-card h3 {
	margin: 0 0 .55em;
	font-size: 1.25rem;
	color: var(--white);
}
.service-card h3 a {
	color: inherit;
	text-decoration: none;
}
.service-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.service-desc {
	font-size: .97rem;
	line-height: 1.65;
}
.service-desc p:last-child,
.service-desc div:last-child { margin-bottom: 0; }

.service-more {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding-top: 16px;
	font-size: .9rem;
	font-weight: 550;
	color: var(--accent);
}
.service-card:hover .service-more .icon { transform: translateX(3px); }
.service-more .icon { transition: transform .2s ease; }

@media (max-width: 1000px) {
	.service-grid { columns: 2; }
}
@media (max-width: 640px) {
	.service-grid { columns: 1; }
}

/* Gallery ------------------------------------------------------------------ */
.home-gallery { background: var(--white); }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-item a {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--sky-100);
	color: var(--white);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
}
.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-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 60px 22px 20px;
	background: linear-gradient(180deg, rgba(12, 31, 21, 0) 0%, rgba(12, 31, 21, .85) 70%);
	text-align: left;
}
.gallery-caption h3 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--white);
}
.gallery-caption p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: .35em 0 0;
	font-size: .9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .85);
	max-height: 0;
	opacity: 0;
	transition: max-height .35s ease, opacity .35s ease;
}
.gallery-item a:hover .gallery-caption p,
.gallery-item a:focus-visible .gallery-caption p {
	max-height: 3em;
	opacity: 1;
}
@media (hover: none) {
	.gallery-caption p { max-height: 3em; opacity: 1; }
}

@media (max-width: 900px) {
	.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.gallery-grid { grid-template-columns: 1fr; }
	.gallery-item a { aspect-ratio: 1; }
}

/* Lightbox */
.lightbox {
	width: min(1100px, 100vw - 32px);
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--forest-950);
	color: var(--white);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.lightbox::backdrop {
	background: rgba(8, 20, 14, .82);
	backdrop-filter: blur(4px);
}
.lightbox-figure {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	margin: 0;
	max-height: calc(100vh - 32px);
}
.lightbox-figure img {
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 160px);
	object-fit: contain;
	background: #000;
}
.lightbox-figure figcaption {
	padding: 16px 64px 20px 24px;
}
.lightbox-figure figcaption h3 {
	margin: 0 0 .2em;
	font-size: 1.15rem;
	color: var(--white);
}
.lightbox-figure figcaption p {
	margin: 0;
	font-size: .95rem;
	color: rgba(255, 255, 255, .8);
}
.lightbox-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--forest-950);
	font-size: 1.3rem;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.lightbox-btn:hover { background: var(--white); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev,
.lightbox-next { top: calc(50% - 60px); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Testimonials ------------------------------------------------------------- */
.home-testimonials {
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, #ffffff) 0%, var(--paper) 100%);
	overflow: hidden;
}

.carousel { position: relative; }

.carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 40px) / 3);
	gap: 20px;
	margin: 0;
	padding: 6px 2px 24px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }

@media (max-width: 1000px) {
	.carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
	.carousel-track { grid-auto-columns: 88%; }
}

.carousel-track > li {
	display: flex;
	scroll-snap-align: start;
}
.testimonial {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 30px 28px 26px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.testimonial .quote-mark {
	font-size: 2.2rem;
	color: var(--accent);
	margin-bottom: 14px;
}
.testimonial blockquote {
	margin: 0 0 24px;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--ink);
}
.testimonial blockquote div,
.testimonial blockquote p { margin: 0; }
.testimonial figcaption {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}
.testimonial figcaption img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, #ffffff);
}
.testimonial cite {
	font-style: normal;
	font-weight: 600;
	color: var(--forest-900);
	line-height: 1.35;
}
.testimonial cite span {
	display: block;
	font-weight: 400;
	font-size: .9rem;
	color: var(--ink-soft);
}

.carousel-controls {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}
.carousel-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--forest-800);
	font-size: 1.3rem;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.carousel-btn:hover:not(:disabled) {
	background: var(--forest-800);
	border-color: var(--forest-800);
	color: var(--white);
}
.carousel-btn:disabled { opacity: .4; cursor: default; }

/* Contact ------------------------------------------------------------------ */
.contact {
	background:
		radial-gradient(ellipse 70% 70% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
		var(--forest-700);
	color: rgba(255, 255, 255, .88);
}
.contact .eyebrow { color: var(--accent); }
.contact h2 { color: var(--white); }

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}

.contact-intro { font-size: 1.08rem; }

.contact-methods {
	display: grid;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.contact-methods a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--radius);
	color: var(--white);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.contact-methods a:hover {
	background: rgba(255, 255, 255, .13);
	border-color: color-mix(in srgb, var(--accent) 60%, transparent);
	color: var(--white);
}
.contact-methods .method-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 12px;
	background: color-mix(in srgb, var(--accent) 16%, transparent);
	color: var(--accent);
	font-size: 1.3rem;
}
.contact-methods small {
	display: block;
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .65);
}
.contact-methods strong {
	font-weight: 550;
	font-size: 1.05rem;
	word-break: break-word;
}

.form-card {
	padding: clamp(24px, 4vw, 40px);
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	color: var(--ink);
}
.form-card h3 { margin-bottom: .8em; }

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

/* Contact Form 7 ----------------------------------------------------------- */
.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 label {
	display: block;
	font-size: .92rem;
	font-weight: 550;
	color: var(--forest-900);
}
.wpcf7 label br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #cfd8d0;
	border-radius: var(--radius-sm);
	background: #fbfcfa;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--forest-600);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(46, 98, 64, .15);
}
.wpcf7 .form-note {
	font-size: .88rem;
	color: var(--ink-soft);
}
.wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: .95em 2em;
	border: 0;
	border-radius: 999px;
	background: var(--forest-700);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--forest-800); transform: translateY(-1px); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: 4px; color: #b42318; }
.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: .95rem;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	position: relative;
	padding: clamp(56px, 8vw, 96px) 0 clamp(90px, 12vw, 150px);
	background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 50%, var(--sky-100) 100%);
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}
.page-hero {
	background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 55%, var(--paper) 100%);
}
.page-hero .hero-trees {
	top: 0;
	height: auto;
}
.page-hero .hero-trees img {
	object-position: center 34%;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, .5) 70%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, .5) 70%, transparent 100%);
}
.page-hero h1 { margin: 0 auto .2em; max-width: 20em; }
.page-hero .meta { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	color: var(--ink-soft);
}
.breadcrumbs a { color: var(--forest-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .icon { font-size: .8em; opacity: .6; }

.page-body { padding: clamp(40px, 6vw, 72px) 0 var(--section-y); }

.prose {
	max-width: 760px;
	margin-inline: auto;
}
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose > *:first-child { margin-top: 0; }

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
	max-width: 1100px;
	margin-inline: auto;
}
.single-layout .prose { max-width: none; margin: 0; }
.single-layout .lead-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 24px;
	border-radius: 18px;
	background: var(--forest-800);
	color: var(--accent);
	font-size: 1.9rem;
}
.single-feature {
	margin: 0 0 28px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.single-feature img { width: 100%; height: auto; }

.side-card {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 28px;
	background: var(--forest-800);
	border-radius: var(--radius-lg);
	color: rgba(255, 255, 255, .86);
}
.side-card h2 {
	font-size: 1.35rem;
	color: var(--white);
	margin-bottom: .5em;
}
.side-card p { font-size: .97rem; }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-card .side-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--white);
	font-weight: 550;
	text-decoration: none;
}

.related {
	margin-top: 32px;
	padding: 24px 28px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.related h2 { font-size: 1.1rem; margin-bottom: .7em; }
.related ul { margin: 0; padding: 0; list-style: none; }
.related li + li { border-top: 1px solid var(--line); }
.related a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	color: var(--ink);
	text-decoration: none;
}
.related a:hover { color: var(--forest-700); }
.related .icon { color: var(--ink-soft); font-size: .9em; }

.back-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-top: 28px;
	font-weight: 550;
	color: var(--forest-700);
	text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
	.single-layout { grid-template-columns: 1fr; }
	.side-card { position: static; }
}

.not-found {
	text-align: center;
	padding: var(--section-y) 0;
}
.not-found p { color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	background: #ffffff;
	color: var(--ink-soft);
	font-size: .95rem;
	overflow: hidden;
}
.site-footer .container { position: relative; }
.footer-main {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	padding: clamp(48px, 7vw, 72px) 0 40px;
}
.footer-brand {
	display: inline-block;
	margin-bottom: 18px;
}
.footer-brand img { height: 64px; width: auto; }
.site-footer h2 {
	font-family: var(--font-body);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--forest-600);
	margin-bottom: 1em;
}
.site-footer a {
	color: var(--ink);
	text-decoration: none;
}
.site-footer a:hover { color: var(--forest-600); }
.footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-list li { margin-bottom: 8px; }
.footer-list .icon { margin-right: 8px; color: var(--forest-600); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 0 28px;
	border-top: 1px solid var(--line);
	font-size: .88rem;
	color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }

@media (max-width: 800px) {
	.footer-main { grid-template-columns: 1fr; gap: 28px; }
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--forest-800);
	color: var(--white);
	font-size: 1.3rem;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.to-top:hover { background: var(--forest-950); color: var(--white); }

/* Reveal on scroll */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* WordPress core alignment helpers */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text,
figcaption.wp-element-caption {
	font-size: .9rem;
	color: var(--ink-soft);
	text-align: center;
}

/* ==========================================================================
   Brand colour cycle
   Follows the animated logo tree: blue, lime, green, orange, each held for
   4s with a short fade, over the GIF's 17.6s loop. site.js adds .cts-cycle
   to <html> and sets --cycle-offset so the cycle starts in step with the GIF.
   Accent details (icons, separators, rings, glows) read var(--accent).
   ========================================================================== */
@property --accent {
	syntax: "<color>";
	inherits: true;
	initial-value: #63c3ea;
}

@keyframes cts-accent {
	0%, 20% { --accent: #63c3ea; }
	25%, 45% { --accent: #a4cb4c; }
	50%, 70% { --accent: #23d03a; }
	75%, 95% { --accent: #f08a48; }
	100% { --accent: #63c3ea; }
}
@keyframes cts-sky {
	0%, 20% { background-color: #d6f3f9; }
	25%, 45% { background-color: #edf7d2; }
	50%, 70% { background-color: #dff7dc; }
	75%, 95% { background-color: #f7eade; }
	100% { background-color: #d6f3f9; }
}

:root { --accent: #63c3ea; }

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-color: #d6f3f9;
	opacity: .75;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 80%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 80%);
	pointer-events: none;
}

.hero-badge { position: relative; }
.hero-badge::after {
	content: "";
	position: absolute;
	inset: -7px;
	border: 4px solid color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 50%;
	pointer-events: none;
}

.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-color: var(--accent);
	opacity: .85;
}
.footer-glow {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 260px;
	background-color: var(--accent);
	opacity: .09;
	-webkit-mask-image: radial-gradient(ellipse 55% 100% at 50% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse 55% 100% at 50% 0%, #000 0%, transparent 70%);
	pointer-events: none;
}

/* The accent is animated on each block that uses it, so only those parts of
   the page restyle as it changes. */
.cts-cycle .hero::before { animation: cts-sky 17.6s linear var(--cycle-offset, 0s) infinite; }
.cts-cycle :is(.hero, .section, .page-body, .site-footer) {
	animation: cts-accent 17.6s linear var(--cycle-offset, 0s) infinite;
}

@media (prefers-reduced-motion: reduce) {
	.cts-cycle .hero::before,
	.cts-cycle :is(.hero, .section, .page-body, .site-footer) { animation: none; }
}

/* ==========================================================================
   Motion
   Entrance on load, staggered reveals, gentle idle movement and hover
   responses. Everything here is switched off for reduced motion by the
   global rule near the top of this file.
   ========================================================================== */
@keyframes cts-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@keyframes cts-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes cts-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
@keyframes cts-breathe {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.045); opacity: .7; }
}
@keyframes cts-drop {
	0% { transform: translateY(-14px); opacity: 0; }
	60% { transform: translateY(3px); opacity: 1; }
	100% { transform: none; }
}
@keyframes cts-shimmer {
	0%, 100% { background-color: var(--sky-100); }
	50% { background-color: #f1f7f9; }
}

/* Banner: items rise in one after another. */
.hero-badge,
.hero-kicker,
.hero h1,
.hero-actions,
.hero-social {
	animation: cts-rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-badge { animation-delay: .05s; }
.hero-kicker { animation-delay: .2s; }
.hero h1 { animation-delay: .3s; }
.hero-actions { animation-delay: .45s; }
.hero-social { animation-delay: .55s; }
.hero-trees { animation: cts-fade 1.4s ease-out both; }
.hero-scroll { animation: cts-fade .6s ease-out 1s both, nudge 2.4s ease-in-out 1.6s infinite; }

/* Banner icon: the tree floats and its colour ring breathes. */
.hero-badge img { animation: cts-float 6s ease-in-out 1s infinite; }
.hero-badge::after { animation: cts-breathe 4.4s ease-in-out infinite; }

/* Inner page headers. */
.page-hero .breadcrumbs,
.page-hero h1,
.page-hero .meta {
	animation: cts-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.page-hero h1 { animation-delay: .1s; }
.page-hero .meta { animation-delay: .2s; }

/* Section separators draw in when their heading appears. */
.js .reveal .eyebrow::before {
	width: 0;
	transition: width .6s cubic-bezier(.2, .7, .2, 1) .25s;
}
.js .reveal.is-in .eyebrow::before { width: 26px; }

/* The areas pin drops in. */
.js .areas.reveal.is-in > .icon { animation: cts-drop .7s cubic-bezier(.2, .7, .2, 1) .3s both; }

/* Photos fade in once loaded, over a soft placeholder. */
.js img.cts-lazy {
	opacity: 0;
	transition: opacity .6s ease;
}
.js img.cts-lazy.is-loaded { opacity: 1; }
.js .is-loading {
	animation: cts-shimmer 1.6s ease-in-out infinite;
}

/* Hover responses. */
.service-icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .3s ease; }
.service-card:hover .service-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }

.contact-methods .method-icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.contact-methods a:hover .method-icon { transform: scale(1.08) rotate(-5deg); }

.trust-list li { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.trust-list li:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	box-shadow: var(--shadow-sm);
}
.trust-list .icon { transition: transform .3s ease; }
.trust-list li:hover .icon { transform: scale(1.12); }

.testimonial { transition: transform .3s ease, box-shadow .3s ease; }
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.about-follow { transition: box-shadow .25s ease, transform .25s ease; }
.about-follow:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.footer-brand img { transition: transform .3s ease; }
.footer-brand:hover img { transform: scale(1.03); }