/*
Theme Name: Groundwork Growth
Description: A marketing site theme for Groundwork Growth. Forest green and off-white, with a root system that grows across the hero. Edit all copy in Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: groundwork-growth
*/

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
:root {
	--paper: #f6f5f2;
	--tint: #eceee6;
	--ink: #17231b;
	--muted: #55645a;
	--forest: #2c4c34;
	--deep: #14241a;
	--deeper: #0f1b14;
	--sprout: #a9d779;
	--line: rgba(44, 76, 52, 0.16);

	--f-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 22px;
	--radius-sm: 14px;
	--wrap: 1120px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: var(--forest); }

.wrap {
	width: min(100% - 40px, var(--wrap));
	margin-inline: auto;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible {
	outline: 3px solid var(--forest);
	outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--sprout); }

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px; top: -80px;
	z-index: 100;
	background: var(--forest);
	color: var(--paper);
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 30px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--f-display);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }

.btn--sprout { background: var(--sprout); color: var(--deep); }
.btn--sprout:hover { background: #bce38f; }

.btn--ghost {
	background: rgba(246, 245, 242, 0.06);
	border-color: rgba(246, 245, 242, 0.26);
	color: var(--paper);
}
.btn--ghost:hover { background: rgba(246, 245, 242, 0.13); }

.btn--forest { background: var(--forest); color: var(--paper); }
.btn--forest:hover { background: #22392a; }

.btn--block { width: 100%; }

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(246, 245, 242, 0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding-block: 8px;
}

.brand { display: inline-flex; line-height: 0; }
.site-header .brand img,
.site-header .custom-logo { height: 56px; width: auto; }
@media (min-width: 900px) {
	.header-bar { min-height: 88px; }
	.site-header .brand img,
	.site-header .custom-logo { height: 66px; }
}

.nav-toggle {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	background: none;
	border: 0;
	border-radius: 12px;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 24px; height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0; right: 0;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding: 4px 20px 24px;
}
.is-open .site-nav { display: block; }

.nav-list,
.footer-list { list-style: none; margin: 0; padding: 0; }

.nav-list a {
	display: block;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-family: var(--f-display);
	font-weight: 600;
	text-decoration: none;
}
.nav-list a:hover { color: var(--forest); }

.nav-cta { margin-top: 20px; }
.nav-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(44, 76, 52, 0.3);
	border-radius: var(--radius-sm);
	color: var(--forest);
	font-family: var(--f-display);
	font-weight: 700;
	text-decoration: none;
}
.nav-phone .icon { width: 18px; height: 18px; }
.nav-phone:hover { background: var(--tint); }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav {
		display: flex;
		align-items: center;
		gap: 36px;
		position: static;
		background: none;
		border: 0;
		padding: 0;
	}
	.nav-list { display: flex; gap: 32px; }
	.nav-list a { padding: 8px 0; border: 0; font-size: 0.95rem; }
	.nav-cta { margin: 0; }
}

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 55% at 50% 0%, rgba(169, 215, 121, 0.14), transparent 70%),
		linear-gradient(180deg, #172b1f 0%, var(--deep) 55%, #101d15 100%);
	color: var(--paper);
	text-align: center;
	padding-block: clamp(72px, 12vw, 128px) clamp(80px, 12vw, 136px);
}

.roots {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	color: var(--sprout);
	opacity: 0.26;
	pointer-events: none;
}
.roots .r {
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
	opacity: 0;
	animation: root-grow var(--t, 1.6s) cubic-bezier(0.35, 0.1, 0.25, 1) var(--d, 0s) forwards;
}
@keyframes root-grow {
	0%   { opacity: 0; stroke-dashoffset: 1; }
	1%   { opacity: 1; stroke-dashoffset: 0.99; }
	100% { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.roots .r { animation: none; opacity: 1; stroke-dashoffset: 0; }
	html { scroll-behavior: auto; }
}

.hero__inner { position: relative; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 clamp(28px, 5vw, 40px);
	padding: 9px 18px;
	background: rgba(246, 245, 242, 0.06);
	border: 1px solid rgba(246, 245, 242, 0.18);
	border-radius: 999px;
	color: rgba(246, 245, 242, 0.86);
	font-size: 0.95rem;
	font-weight: 500;
}
.badge .icon { width: 18px; height: 18px; color: var(--sprout); }

.hero h1 {
	font-size: clamp(2.4rem, 9vw, 5.3rem);
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -0.035em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--sprout); }

.hero__text {
	max-width: 34rem;
	margin: clamp(24px, 4vw, 32px) auto 0;
	color: rgba(246, 245, 242, 0.76);
	font-size: clamp(1.05rem, 2.6vw, 1.25rem);
	line-height: 1.6;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	max-width: 340px;
	margin: clamp(32px, 6vw, 44px) auto 0;
}
@media (min-width: 640px) {
	.hero__actions { flex-direction: row; justify-content: center; max-width: none; }
}

/* ------------------------------------------------------------------
 * Stats
 * ---------------------------------------------------------------- */
.stats {
	background: var(--forest);
	color: var(--paper);
	padding-block: clamp(44px, 7vw, 64px);
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 16px;
	margin: 0;
}
.stat {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 8px;
	text-align: center;
}
.stat dd {
	margin: 0;
	color: var(--sprout);
	font-family: var(--f-display);
	font-size: clamp(2.3rem, 7vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}
.stat dt {
	color: rgba(246, 245, 242, 0.84);
	font-size: 0.98rem;
}
@media (min-width: 800px) {
	.stats__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
	.stat + .stat { border-left: 1px solid rgba(246, 245, 242, 0.18); }
}

/* ------------------------------------------------------------------
 * Sections
 * ---------------------------------------------------------------- */
.section { padding-block: clamp(64px, 10vw, 112px); }
.section--tint { background: var(--tint); }

.section-head {
	max-width: 40rem;
	margin: 0 auto clamp(36px, 6vw, 56px);
	text-align: center;
}
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 14px; }
.section-head p:last-child { margin: 0; color: var(--muted); font-size: 1.12rem; }

.pill {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--forest);
	font-size: 0.92rem;
	font-weight: 700;
}

/* Services */
.cards {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(26px, 4vw, 38px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s;
}
.card:hover { border-color: rgba(44, 76, 52, 0.5); }

.icon-tile {
	display: grid;
	place-items: center;
	width: 60px; height: 60px;
	background: var(--tint);
	border-radius: 16px;
	color: var(--forest);
}
.icon-tile .icon { width: 28px; height: 28px; }

.card h3 { margin: 24px 0 10px; font-size: 1.45rem; }
.card p { flex: 1; margin: 0 0 24px; color: var(--muted); }
.card__link {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.card__link:hover { text-decoration-color: var(--sprout); }

/* Process */
.process { display: grid; gap: 44px; }
.process__head h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 14px; }
.process__head p { color: var(--muted); font-size: 1.12rem; max-width: 28rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.step {
	position: relative;
	counter-increment: step;
	padding: 0 0 38px 66px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
	content: counter(step);
	position: absolute;
	left: 0; top: 0;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--forest);
	color: var(--paper);
	font: 700 1.05rem var(--f-display);
}
.step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 21px; top: 52px; bottom: 8px;
	width: 2px;
	background: linear-gradient(var(--forest), rgba(44, 76, 52, 0.12));
}
.step h3 { margin: 8px 0 8px; font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); max-width: 34rem; }

@media (min-width: 900px) {
	.process { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
	.process__head { position: sticky; top: 130px; }
}

/* Contact */
.contact {
	background: var(--deep);
	color: var(--paper);
}
.contact__grid { display: grid; gap: 44px; }
.contact h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 18px; }
.contact__copy > p { color: rgba(246, 245, 242, 0.76); font-size: 1.12rem; max-width: 30rem; }

.contact__list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact__list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact__list .icon { width: 22px; height: 22px; color: var(--sprout); }
.contact__list a {
	color: var(--paper);
	font-family: var(--f-display);
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.contact__list a:hover { color: var(--sprout); }

@media (min-width: 900px) {
	.contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

.form {
	display: grid;
	gap: 18px;
	padding: clamp(24px, 4vw, 38px);
	background: var(--paper);
	border-radius: var(--radius);
	color: var(--ink);
}
.field label { display: block; margin-bottom: 6px; font-size: 0.95rem; font-weight: 700; }
.field .optional { color: var(--muted); font-weight: 500; }
.field input,
.field textarea {
	width: 100%;
	padding: 13px 15px;
	background: #fff;
	border: 1px solid rgba(44, 76, 52, 0.3);
	border-radius: 12px;
	color: var(--ink);
	font: 500 1rem var(--f-text);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--forest); }

.hp {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.notice {
	margin: 0;
	padding: 13px 16px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.98rem;
}
.notice--ok { background: #e1efd2; color: #1f3a24; }
.notice--error { background: #f8e1dc; color: #6b2216; }

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.site-footer {
	background: var(--deeper);
	color: rgba(246, 245, 242, 0.76);
	padding: 56px 0 24px;
}
.footer-grid { display: grid; gap: 32px; }
.footer-brand img,
.footer-brand .custom-logo { height: 68px; width: auto; }
.footer-list { display: grid; gap: 10px; }
.footer-list a,
.footer-contact a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-list a:hover,
.footer-contact a:hover { color: var(--sprout); }
.footer-contact { display: grid; gap: 10px; align-content: start; overflow-wrap: anywhere; }

.footer-legal {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid rgba(246, 245, 242, 0.12);
	font-size: 0.9rem;
}
.footer-legal p { margin: 0; }

@media (max-width: 899px) {
	.site-footer { padding-bottom: 96px; }
}
@media (min-width: 800px) {
	.footer-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}

/* Floating call button, phones only */
.call-fab {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	display: grid;
	place-items: center;
	width: 58px; height: 58px;
	background: var(--sprout);
	border-radius: 50%;
	color: var(--deep);
	box-shadow: 0 8px 24px rgba(15, 27, 20, 0.3);
}
.call-fab .icon { width: 26px; height: 26px; }
@media (min-width: 900px) { .call-fab { display: none; } }

/* ------------------------------------------------------------------
 * Inner pages and blog
 * ---------------------------------------------------------------- */
.prose-wrap { max-width: 46rem; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.post-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a { text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.4em; }

.post-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.6rem; }
.post-item h2 a { color: inherit; text-decoration: none; }
.post-item h2 a:hover { color: var(--forest); text-decoration: underline; }

.nav-links { display: flex; gap: 16px; margin-top: 32px; font-weight: 700; }
.nav-links .current { color: var(--muted); }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: 0.9rem; }
