/*
Theme Name: Phenomenal Gardens
Author: Phenomenal Gardens
Description: A refined, responsive block theme for Phenomenal Gardens.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 1.0.0
Text Domain: phenomenal-gardens
*/

:root {
	--pg-forest: #203d2e;
	--pg-forest-deep: #173125;
	--pg-sage: #778a70;
	--pg-sage-pale: #e8ede4;
	--pg-cream: #fbf5e8;
	--pg-paper: #f2f0e7;
	--pg-ink: #26352c;
	--pg-muted: #657168;
	--pg-brass: #ae8b53;
	--pg-line: rgba(32, 61, 46, 0.16);
}

html {
	scroll-behavior: smooth;
}

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

body {
	background: var(--pg-cream);
	color: var(--pg-ink);
	font-family: var(--wp--preset--font-family--sans);
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--pg-sage);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--pg-brass);
	outline-offset: 4px;
}

.wp-site-blocks {
	overflow: clip;
}

.wp-site-blocks > * + *,
.wp-site-blocks > .site-main > * + * {
	margin-block-start: 0;
}

.skip-link {
	position: absolute;
	z-index: 20;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.75rem 1rem;
	transform: translateY(-180%);
	border-radius: 999px;
	background: var(--pg-forest);
	color: #fff;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid var(--pg-line);
	background: var(--pg-cream);
}

.site-header__inner {
	display: flex;
	width: min(100% - 3rem, 1200px);
	min-height: 92px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.brand-logo {
	display: block;
	width: 200px;
	max-width: 100%;
	flex: 0 0 auto;
}

.brand-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--pg-forest);
	text-decoration: none;
}

.brand-lockup:hover {
	color: var(--pg-forest);
}

.brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(32, 61, 46, 0.26);
	border-radius: 50%;
	color: var(--pg-sage);
}

.brand-mark svg {
	width: 24px;
	height: 24px;
}

.brand-name {
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.brand-tagline {
	display: block;
	margin-top: 0.3rem;
	color: var(--pg-muted);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.9rem, 2vw, 2rem);
}

.site-nav a {
	font-size: 0.88rem;
	text-decoration: none;
}

.site-nav .nav-cta {
	padding: 0.78rem 1.1rem;
	border: 1px solid var(--pg-forest);
	border-radius: 999px;
	color: var(--pg-forest);
	font-weight: 600;
	transition: color 160ms ease, background-color 160ms ease;
}

.site-nav .nav-cta:hover {
	background: var(--pg-forest);
	color: var(--pg-cream);
}

.hero {
	position: relative;
	padding: clamp(3.5rem, 6vw, 5.5rem) max(1.5rem, calc((100% - 1200px) / 2));
	background: var(--pg-cream);
}

.hero__grid {
	display: grid;
	max-width: 1200px;
	margin: 0 auto;
	align-items: center;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
	margin: 0 0 1.2rem;
	color: var(--pg-sage);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 11ch;
	margin: 0;
	color: var(--pg-forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.9rem, 5vw, 4.8rem);
	font-weight: 400;
	letter-spacing: -0.065em;
	line-height: 0.99;
}

.hero__copy {
	max-width: 36rem;
	margin: 1.6rem 0 0;
	color: var(--pg-muted);
	font-size: clamp(1.05rem, 1.3vw, 1.2rem);
	line-height: 1.75;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: var(--pg-forest);
	color: var(--pg-cream);
}

.button--primary:hover {
	background: var(--pg-forest-deep);
	color: #fff;
}

.button--secondary {
	border-color: var(--pg-line);
	color: var(--pg-forest);
}

.button--secondary:hover {
	background: var(--pg-sage-pale);
	color: var(--pg-forest);
}

.hero__note {
	margin: 1.5rem 0 0;
	color: var(--pg-muted);
	font-size: 0.82rem;
	letter-spacing: 0.015em;
}

.hero__visual {
	position: relative;
	margin: 0;
	width: min(100%, 500px);
	justify-self: end;
}

.hero__visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 48% 48% 1.5rem 1.5rem;
	box-shadow: 0 28px 75px rgba(32, 61, 46, 0.12);
}

.hero__caption {
	position: absolute;
	right: -1rem;
	bottom: 1.5rem;
	max-width: 12.5rem;
	padding: 1rem 1.2rem;
	border: 1px solid rgba(32, 61, 46, 0.1);
	border-radius: 0.9rem;
	background: var(--pg-cream);
	box-shadow: 0 12px 35px rgba(32, 61, 46, 0.1);
	color: var(--pg-forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1rem;
	line-height: 1.4;
}

.confidence-strip {
	display: grid;
	padding: 1.4rem max(1.5rem, calc((100% - 1200px) / 2));
	border-top: 1px solid var(--pg-line);
	border-bottom: 1px solid var(--pg-line);
	background: var(--pg-cream);
	grid-template-columns: repeat(3, 1fr);
}

.confidence-strip p {
	margin: 0;
	padding: 0.3rem 1rem;
	color: var(--pg-forest);
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
}

.confidence-strip p + p {
	border-left: 1px solid var(--pg-line);
}

.section {
	padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem;
}

.section__inner {
	width: min(100%, 1200px);
	margin: 0 auto;
}

.section-heading {
	max-width: 740px;
	margin: 0 auto 3rem;
	text-align: center;
}

.section-heading h2,
.approach h2,
.local-section h2,
.contact-panel h2 {
	margin: 0;
	color: var(--pg-forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.1rem, 3.5vw, 3.3rem);
	font-weight: 400;
	letter-spacing: -0.05em;
	line-height: 1.07;
}

.section-heading > p:last-child {
	max-width: 620px;
	margin: 1.1rem auto 0;
	color: var(--pg-muted);
	line-height: 1.75;
}

.services {
	background: var(--pg-cream);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.service-card {
	min-height: 220px;
	padding: clamp(1.4rem, 2.5vw, 2rem);
	border: 1px solid var(--pg-line);
	border-radius: 1rem;
	background: var(--pg-cream);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
	transform: translateY(-4px);
	border-color: rgba(32, 61, 46, 0.3);
	box-shadow: 0 18px 40px rgba(32, 61, 46, 0.08);
}

.service-card__number {
	display: inline-block;
	margin-bottom: 1.7rem;
	color: var(--pg-brass);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1rem;
	font-style: italic;
}

.service-card h3 {
	margin: 0;
	color: var(--pg-forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.55rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.service-card p {
	margin: 0.7rem 0 0;
	color: var(--pg-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.approach {
	display: grid;
	padding-inline: max(1.5rem, calc((100% - 1200px) / 2));
	align-items: center;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 7vw, 7rem);
	background: var(--pg-cream);
}

.approach__intro > p:last-child,
.local-section__copy {
	color: var(--pg-muted);
	font-size: 1.03rem;
	line-height: 1.8;
}

.approach__steps {
	display: grid;
	gap: 0.8rem;
}

.approach-step {
	display: grid;
	padding: 1.25rem 1.4rem;
	border: 1px solid rgba(32, 61, 46, 0.14);
	border-radius: 0.8rem;
	background: var(--pg-cream);
	grid-template-columns: 2.6rem 1fr;
	gap: 0.8rem;
}

.approach-step__number {
	color: var(--pg-brass);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.25rem;
	font-style: italic;
}

.approach-step h3 {
	margin: 0;
	color: var(--pg-forest);
	font-size: 1rem;
}

.approach-step p {
	margin: 0.35rem 0 0;
	color: var(--pg-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.local-section {
	position: relative;
	overflow: hidden;
	background: var(--pg-cream);
	color: var(--pg-ink);
}

.local-section::after {
	position: absolute;
	right: -7rem;
	bottom: -14rem;
	width: 34rem;
	height: 34rem;
	border: 1px solid var(--pg-line);
	border-radius: 50%;
	content: "";
	box-shadow: 0 0 0 2.4rem rgba(32, 61, 46, 0.035), 0 0 0 5rem rgba(32, 61, 46, 0.025);
	pointer-events: none;
}

.local-section__inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: center;
	grid-template-columns: 1fr auto;
	gap: 3rem;
}

.local-section .eyebrow {
	color: var(--pg-sage);
}

.local-section h2 {
	max-width: 14ch;
	color: var(--pg-forest);
}

.local-section__copy {
	max-width: 640px;
	margin: 1.1rem 0 0;
	color: var(--pg-muted);
}

.local-section__badge {
	display: grid;
	width: 150px;
	height: 150px;
	padding: 1rem;
	border: 1px solid var(--pg-line);
	border-radius: 50%;
	color: var(--pg-forest);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.2rem;
	line-height: 1.35;
	text-align: center;
	place-items: center;
	transform: rotate(7deg);
}

.contact-section {
	padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem;
	background: var(--pg-cream);
}

.contact-panel {
	display: grid;
	width: min(100%, 1200px);
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 5rem);
	border-radius: 1.4rem;
	background: var(--pg-cream);
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
	align-items: center;
	gap: 3rem;
}

.contact-panel__copy {
	max-width: 620px;
	margin: 1rem 0 0;
	color: var(--pg-muted);
	line-height: 1.75;
}

.contact-panel__actions {
	display: grid;
	align-content: center;
	padding: 1.5rem;
	border: 1px solid var(--pg-line);
	border-radius: 1rem;
	background: var(--pg-cream);
	gap: 0.6rem;
}

.quote-form {
	display: grid;
	gap: 1rem;
}

.quote-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.quote-form__field {
	display: grid;
	color: var(--pg-forest);
	font-size: 0.82rem;
	font-weight: 600;
	gap: 0.4rem;
}

.quote-form__field input,
.quote-form__field textarea {
	width: 100%;
	padding: 0.75rem 0.8rem;
	border: 1px solid var(--pg-line);
	border-radius: 0.5rem;
	background: var(--pg-cream);
	color: var(--pg-ink);
	font: inherit;
	font-weight: 400;
}

.quote-form__field textarea {
	resize: vertical;
}

.quote-form__field input:focus,
.quote-form__field textarea:focus {
	border-color: var(--pg-sage);
	outline: 2px solid rgba(119, 138, 112, 0.24);
	outline-offset: 1px;
}

.quote-form__submit {
	width: fit-content;
	cursor: pointer;
}

.quote-form__privacy,
.quote-form__notice {
	margin: 0;
	color: var(--pg-muted);
	font-size: 0.8rem;
	line-height: 1.55;
}

.quote-form__notice {
	padding: 0.75rem 0.9rem;
	border-radius: 0.55rem;
	background: var(--pg-sage-pale);
	color: var(--pg-forest);
}

.quote-form__notice--error {
	background: #f7e8e3;
	color: #743b2f;
}

.quote-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-panel__note {
	margin: 0;
	color: var(--pg-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.site-footer {
	padding: 3rem 1.5rem 1.5rem;
	border-top: 1px solid var(--pg-line);
	background: var(--pg-cream);
	color: var(--pg-muted);
}

.site-footer__inner {
	display: grid;
	width: min(100%, 1200px);
	margin: 0 auto;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: start;
}

.site-footer .brand-lockup {
	color: var(--pg-forest);
}

.site-footer .brand-tagline {
	color: var(--pg-muted);
}

.site-footer__copy {
	max-width: 480px;
	margin: 1rem 0 0;
	font-size: 0.9rem;
	line-height: 1.7;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.site-footer__links a {
	color: var(--pg-forest);
	font-size: 0.88rem;
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	width: min(100%, 1200px);
	margin: 2.5rem auto 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--pg-line);
	justify-content: space-between;
	gap: 1rem;
	color: var(--pg-muted);
	font-size: 0.78rem;
}

@media (max-width: 900px) {
	.site-header__inner {
		width: min(100% - 2rem, 1200px);
		min-height: 82px;
	}

	.site-nav {
		gap: 0.9rem;
	}

	.site-nav a {
		font-size: 0.82rem;
	}

	.hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
		gap: 2rem;
	}

	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.approach {
		grid-template-columns: 1fr;
	}

	.contact-panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.site-header__inner {
		padding: 1rem 0;
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.brand-logo {
		width: 175px;
	}

	.site-nav {
		width: 100%;
		justify-content: flex-start;
		gap: 0.5rem 1rem;
		flex-wrap: wrap;
	}

	.site-nav .nav-cta {
		padding: 0.55rem 0.85rem;
	}

	.hero {
		padding-top: 3.5rem;
		padding-bottom: 4rem;
	}

	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		max-width: 12ch;
		font-size: clamp(2.6rem, 10vw, 3.6rem);
	}

	.hero__visual {
		max-width: 520px;
		margin: 0.7rem auto 0;
	}

	.hero__caption {
		right: 0.6rem;
		bottom: 0.8rem;
		max-width: 10rem;
		font-size: 0.9rem;
	}

	.confidence-strip {
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
		grid-template-columns: 1fr;
	}

	.confidence-strip p {
		padding: 0.7rem 0;
	}

	.confidence-strip p + p {
		border-top: 1px solid var(--pg-line);
		border-left: 0;
	}

	.service-grid {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: 0;
	}

	.service-card__number {
		margin-bottom: 1rem;
	}

	.local-section__inner,
	.contact-panel,
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.local-section__badge {
		width: 120px;
		height: 120px;
		font-size: 1rem;
	}

	.contact-panel__actions {
		width: 100%;
		padding: 1rem;
	}

	.contact-panel {
		padding: 1.25rem;
	}

	.quote-form__fields {
		grid-template-columns: 1fr;
	}

	.quote-form__submit {
		width: 100%;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}
