/* =========================================================
   T.R.E.E. Initiative — Forest Strata Design System
   Canopy → Understory → Shrub Layer → Forest Floor
   ========================================================= */

:root {
	--canopy:   #1F4D3A;   /* deep forest green — primary */
	--canopy-dk:#153328;
	--understory: #EFE7D3; /* warm parchment green-tinted */
	--shrub:    #2B1F18;   /* bark brown — dark accent section */
	--floor:    #F6F1E4;   /* ivory forest floor */
	--gold:     #D9A544;   /* savanna gold */
	--gold-dk:  #B5842E;
	--rust:     #B5542B;   /* soil rust */
	--ink:      #24201A;
	--ink-soft: #574F42;
	--line:     rgba(36,32,26,0.12);

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--floor);
	line-height: 1.6;
	font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.tree-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.tree-mono { font-family: var(--font-mono); }

.tree-skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--gold); color: var(--ink); padding: 12px 20px; z-index: 1000;
}
.tree-skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--rust);
	margin-bottom: 0.9em;
}
.eyebrow--on-dark { color: var(--gold); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 14px 28px;
	border-radius: var(--radius);
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease;
	cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--shrub); }
.btn--gold:hover { background: var(--gold-dk); }
.btn--outline { background: transparent; border-color: var(--canopy); color: var(--canopy); }
.btn--outline:hover { background: var(--canopy); color: #fff; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.tree-site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--floor);
	border-bottom: 1px solid var(--line);
}
.tree-site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 24px;
}
.tree-brand { display: flex; align-items: center; }
.tree-brand img,
.custom-logo-link img {
	max-height: 56px;
	width: auto;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
}
.tree-brand__text {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--canopy);
}
.tree-brand__mark { color: var(--rust); display: flex; }
.tree-brand__text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.tree-brand__text small { display: block; font-size: 0.72rem; color: var(--ink-soft); font-family: var(--font-mono); }

.tree-nav-toggle {
	display: none;
	flex-direction: column; gap: 5px;
	background: none; border: none; cursor: pointer; padding: 8px;
}
.tree-nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
.tree-nav-toggle__label { position: absolute; left: -9999px; }

.tree-nav__list {
	display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
	font-weight: 500; font-size: 0.95rem;
}
.tree-nav__list a { text-decoration: none; padding: 6px 0; }
.tree-nav__list li { position: relative; }
.tree-nav__list li:hover > a { color: var(--rust); }
.tree-nav__list ul {
	list-style: none; margin: 0; padding: 10px 0;
	position: absolute; top: 100%; left: 0;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	min-width: 180px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.tree-nav__list li:hover > ul { display: block; }
.tree-nav__list ul a { display: block; padding: 8px 18px; }

/* ---------------------------------------------------------
   Forest strata sections
   --------------------------------------------------------- */
.stratum { position: relative; }
.stratum__inner { padding: 90px 24px; }
.stratum__seam {
	height: 8px;
	background: repeating-linear-gradient(90deg, var(--rust) 0 24px, transparent 24px 48px);
	opacity: 0.5;
}
.stratum__seam--light { opacity: 0.25; }

.stratum--canopy { background: var(--canopy); color: #fff; }
.stratum--canopy .eyebrow { color: var(--gold); }
.stratum--canopy h1, .stratum--canopy h2 { color: #fff; }
.stratum--canopy p { color: rgba(255,255,255,0.82); }

.stratum--understory { background: var(--understory); }

.stratum--shrub { background: var(--shrub); color: #fff; }
.stratum--shrub h2, .stratum--shrub h2.on-dark { color: #fff; text-align: center; }
.stratum--shrub p.on-dark { color: rgba(255,255,255,0.75); }
.stratum--shrub .eyebrow { text-align: center; }

.stratum--floor { background: var(--floor); }

.page-banner .stratum__inner { padding: 60px 24px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
	display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero__subhead { font-size: 1.1rem; max-width: 46ch; }
.hero__rings { display: flex; justify-content: center; }
.growth-rings { width: 100%; max-width: 360px; }

/* Orbit rings — dashed tracks that turn slowly and continuously,
   like seasons cycling around a tree's growth core */
.growth-rings .orbit {
	fill: none;
	stroke-width: 1.5;
	stroke-dasharray: 3 10;
	stroke-linecap: round;
}
.growth-rings .orbit--1 { stroke: rgba(217,165,68,0.22); }
.growth-rings .orbit--2 { stroke: rgba(217,165,68,0.38); }
.growth-rings .orbit--3 { stroke: rgba(217,165,68,0.55); }

.growth-rings .orbit-dot {
	fill: var(--gold);
	r: 4px;
	transform-origin: 200px 200px;
	transform-box: view-box;
}
.growth-rings .orbit-dot--1 { animation: tree-orbit 22s linear infinite; }
.growth-rings .orbit-dot--2 { animation: tree-orbit 15s linear infinite reverse; }
.growth-rings .orbit-dot--3 { animation: tree-orbit 9s linear infinite; }

/* position each dot on its ring's circumference before rotating */
.growth-rings .orbit-dot--1 { cx: 200; cy: 20; }
.growth-rings .orbit-dot--2 { cx: 200; cy: 60; }
.growth-rings .orbit-dot--3 { cx: 200; cy: 100; }

.growth-rings .ring--static { fill: none; stroke: var(--gold); stroke-width: 2; }
.growth-rings .ring-core { fill: var(--gold); }

@keyframes tree-orbit {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.growth-rings .orbit-dot { animation: none; }
}

/* Radiating pulse — glow travels from the core outward, on loop,
   evoking planting that starts at the centre and spreads outward */
.pulse { animation: tree-radiate 3.2s ease-in-out infinite; filter: drop-shadow(0 0 0 rgba(217,165,68,0)); }
.pulse--0 { animation-delay: 0s; }
.pulse--1 { animation-delay: 0.35s; }
.pulse--2 { animation-delay: 0.7s; }
.pulse--3 { animation-delay: 1.05s; }
.pulse--4 { animation-delay: 1.4s; }

@keyframes tree-radiate {
	0%   { opacity: 0.25; filter: drop-shadow(0 0 0 rgba(217,165,68,0)); }
	45%  { opacity: 1;    filter: drop-shadow(0 0 6px rgba(217,165,68,0.85)); }
	100% { opacity: 0.25; filter: drop-shadow(0 0 0 rgba(217,165,68,0)); }
}
@media (prefers-reduced-motion: reduce) {
	.pulse { animation: none; opacity: 0.85; }
}

/* ---------------------------------------------------------
   Two column / cards
   --------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.understory__cards { display: grid; gap: 20px; }
.leaf-card {
	background: #fff; border-radius: var(--radius); padding: 26px;
	border-left: 3px solid var(--rust);
}
.leaf-card__index { font-family: var(--font-mono); color: var(--rust); font-size: 0.85rem; }

/* ---------------------------------------------------------
   Growth-ring stat visualization
   --------------------------------------------------------- */
.stat-intro { max-width: 60ch; margin: 0 auto 3em; text-align: center; }
.stat-rings {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
	text-align: center;
}
.stat-ring { display: flex; flex-direction: column; align-items: center; position: relative; }
.stat-ring__visual { position: relative; width: 110px; height: 110px; }
.stat-ring__visual svg { width: 110px; height: 110px; transform: rotate(-90deg); position: absolute; top: 0; left: 0; }
.stat-ring__track { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 6; }
.stat-ring__fill {
	fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round;
	stroke-dasharray: 326.7; stroke-dashoffset: 0;
}
.stat-ring__fill--1 { stroke: var(--gold); }
.stat-ring__fill--2 { stroke: var(--rust); }
.stat-ring__fill--3 { stroke: #7FA98C; }
.stat-ring__fill--4 { stroke: var(--gold-dk); }
.stat-ring__number {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-family: var(--font-mono); font-weight: 600; font-size: 1.2rem;
	color: #fff; white-space: nowrap;
}
.stat-ring__label {
	font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
	letter-spacing: 0.06em; color: rgba(255,255,255,0.65); margin-top: 14px;
}

/* ---------------------------------------------------------
   Testimonials & CTA band
   --------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.testimonial {
	margin: 0; padding: 30px; background: #fff; border-radius: var(--radius);
	border-top: 3px solid var(--gold);
}
.testimonial p { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.testimonial cite { font-family: var(--font-mono); font-size: 0.85rem; color: var(--rust); font-style: normal; }

.cta-band {
	background: var(--canopy); color: #fff; text-align: center;
	padding: 60px 30px; border-radius: 6px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); }

/* ---------------------------------------------------------
   Inner pages / contact
   --------------------------------------------------------- */
.page-content { max-width: 780px; margin: 0 auto; }
.page-content__thumb { margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; }

.contact-layout { align-items: start; }
.contact-info__list { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-info__list li { margin-bottom: 20px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-row input, .form-row textarea {
	font-family: var(--font-body); font-size: 1rem;
	padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: var(--canopy); }
.form-status.is-error { color: var(--rust); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.tree-site-footer { background: var(--shrub); color: rgba(255,255,255,0.85); padding-top: 70px; }
.tree-site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.tree-site-footer h3, .tree-site-footer h4 { color: #fff; }
.tree-site-footer h4 { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tree-footer__mark { color: var(--gold); display: inline-block; margin-bottom: 12px; }
.tree-site-footer p, .tree-site-footer a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.tree-site-footer a:hover { color: var(--gold); }
.tree-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tree-site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding: 22px 24px; font-size: 0.85rem; color: rgba(255,255,255,0.55);
	text-align: center;
}

/* ---------------------------------------------------------
   Motion (respect reduced-motion)
   --------------------------------------------------------- */
.stat-ring__fill { transition: stroke-dashoffset 1s ease; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .stat-ring__fill { transition: none; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
	.hero, .two-col, .testimonials { grid-template-columns: 1fr; }
	.stat-rings { grid-template-columns: repeat(2, 1fr); }
	.tree-site-footer__grid { grid-template-columns: 1fr 1fr; }
	.hero__rings { order: -1; }
}

@media (max-width: 700px) {
	.tree-brand img,
	.custom-logo-link img { max-height: 40px; }
	.tree-site-header__inner { padding: 10px 20px; }
	.tree-nav-toggle { display: flex; }
	.tree-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--floor); border-bottom: 1px solid var(--line);
		padding: 10px 24px 20px;
	}
	.tree-nav.is-open { display: block; }
	.tree-nav__list { flex-direction: column; gap: 4px; }
	.tree-nav__list ul { position: static; box-shadow: none; border: none; padding-left: 14px; display: block; }
	.tree-site-footer__grid { grid-template-columns: 1fr; }
	.stratum__inner { padding: 60px 20px; }
}
