/*
Theme Name: Vaughn Tree Care
Author: Surfside PPC
Description: Lightweight custom block theme for Vaughn Tree Care LLC. Built for fast load times, local SEO, and lead generation.
Version: 0.2.0
Requires at least: 6.6
Tested up to: 7.1
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: vaughn-tree-care
*/

:root {
	--vtc-radius: 22px;
	--vtc-radius-lg: 32px;
	--vtc-shadow: 0 18px 50px rgba(12, 35, 24, 0.1);
	--vtc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
	--vtc-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 3C10 3 4 8 4 15c0 1.5 .4 2.9 1 4l-2 2 1.5 1.5 2-2c1.1 .6 2.5 1 4 1 7 0 10.5-7.5 10.5-18.5z'/%3E%3C/svg%3E");
	--vtc-leaf-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230c2318' d='M21 3C10 3 4 8 4 15c0 1.5 .4 2.9 1 4l-2 2 1.5 1.5 2-2c1.1 .6 2.5 1 4 1 7 0 10.5-7.5 10.5-18.5z'/%3E%3C/svg%3E");
}

/* Header, main, and footer sit flush against each other */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Headings follow the section's text color on dark backgrounds */
.has-base-color :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

mark.has-inline-color {
	background: none;
}

/* Section rhythm */
.vtc-section {
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.vtc-section--tight {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.vtc-section-head {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* Buttons: pill with arrow */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: var(--vtc-arrow) center / contain no-repeat;
	mask: var(--vtc-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-button__link:hover::after {
	transform: rotate(45deg);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
}

/* Eyebrow pill */
.vtc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.35rem 1rem 0.35rem 0.8rem;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 45px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 1rem;
}

.vtc-eyebrow::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--vtc-leaf) center / contain no-repeat;
	mask: var(--vtc-leaf) center / contain no-repeat;
}

.vtc-eyebrow.has-text-align-center {
	margin-inline: auto;
}

.has-base-color .vtc-eyebrow {
	color: var(--wp--preset--color--base);
}

/* Top bar */
.vtc-topbar {
	padding-block: 0.55rem;
	font-size: var(--wp--preset--font-size--small);
}

.vtc-topbar p {
	margin: 0;
}

.vtc-topbar a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}

/* Header */
.vtc-header {
	padding-block: 1rem;
	background: var(--wp--preset--color--base);
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}

.admin-bar .vtc-header {
	top: 32px;
}

.vtc-header .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	white-space: nowrap;
}

.vtc-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
}

.vtc-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--secondary);
}

.vtc-header .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 14px;
	padding: 0.5rem;
	box-shadow: var(--vtc-shadow);
}

/* Core only collapses the menu below 600px. Collapse earlier so the header never crowds. */
@media (max-width: 1099px) {
	.vtc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.vtc-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* Hero: dark green with a tree-ring motif drawn in CSS */
.vtc-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 10vw, 8.5rem);
	background-color: var(--wp--preset--color--primary-dark);
	background-image:
		radial-gradient(circle at 85% 20%, rgba(65, 197, 117, 0.22), transparent 45%),
		linear-gradient(160deg, #0c2318 0%, #182f24 55%, #243b30 100%);
}

.vtc-hero::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -14rem;
	width: 52rem;
	height: 52rem;
	transform: translateY(-50%);
	border-radius: 50%;
	background: repeating-radial-gradient(circle at 46% 52%, transparent 0 26px, rgba(65, 197, 117, 0.16) 26px 28px, transparent 28px 47px, rgba(255, 255, 255, 0.06) 47px 48px);
	-webkit-mask: radial-gradient(circle, #000 35%, transparent 70%);
	mask: radial-gradient(circle, #000 35%, transparent 70%);
	pointer-events: none;
}

.vtc-hero > * {
	position: relative;
}

.vtc-hero h1 {
	max-width: 17ch;
	font-size: clamp(2.5rem, 6vw, 4.4rem);
	line-height: 1.05;
}

.vtc-hero p.has-medium-font-size {
	max-width: 46ch;
	opacity: 0.85;
}

.vtc-hero--home {
	padding-bottom: clamp(8rem, 14vw, 12rem);
}

.vtc-hero.vtc-section--tight {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.vtc-hero.vtc-section--tight h1 {
	max-width: none;
	font-size: var(--wp--preset--font-size--xx-large);
}

.vtc-hero.vtc-section--tight::before {
	width: 34rem;
	height: 34rem;
	right: -8rem;
}

/* Stats panel that overlaps the bottom of the home hero */
.vtc-stats-wrap {
	position: relative;
	z-index: 2;
	margin-top: clamp(-6.5rem, -9vw, -4.5rem);
}

.vtc-stats {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--vtc-radius-lg);
	background: linear-gradient(100deg, #d9efd2 0%, #eef2dc 50%, #ede5cf 100%);
	box-shadow: 0 10px 0 var(--wp--preset--color--contrast), var(--vtc-shadow);
}

.vtc-stat {
	padding-inline: clamp(0rem, 1.5vw, 1.5rem);
}

.vtc-stat h3 {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--large);
}

.vtc-stat p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

@media (min-width: 782px) {
	.vtc-stat + .vtc-stat {
		border-left: 1px solid rgba(12, 35, 24, 0.18);
	}
}

/* Cards */
.vtc-card {
	position: relative;
	height: 100%;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	background: var(--wp--preset--color--base);
	border-radius: var(--vtc-radius);
	box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 0 0 1px var(--wp--preset--color--line);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.vtc-card h3,
.vtc-card h4 {
	margin-top: 0;
}

.vtc-card h3 a {
	color: inherit;
	text-decoration: none;
}

.vtc-card > :last-child {
	margin-bottom: 0;
}

/* Service cards: whole card is clickable, arrow badge in the corner */
.vtc-card--service {
	padding-right: 5rem;
}

.vtc-card--service h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.vtc-card--service::after {
	content: "";
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--cream) var(--vtc-arrow) center / 1.15rem no-repeat;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.vtc-card--service:hover {
	transform: translateY(-6px);
	background: var(--wp--preset--color--primary-dark);
	color: rgba(255, 255, 255, 0.8);
	box-shadow: var(--vtc-shadow);
}

.vtc-card--service:hover h3 {
	color: var(--wp--preset--color--base);
}

.vtc-card--service:hover::after {
	background-color: var(--wp--preset--color--accent);
	transform: rotate(45deg);
}

.vtc-card__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 0.75rem;
}

.vtc-card--service:hover .vtc-card__num {
	color: var(--wp--preset--color--accent);
}

/* Feature tiles (why us) */
.vtc-card--feature {
	background: var(--wp--preset--color--cream);
	box-shadow: none;
}

.vtc-card--feature h4::before {
	content: "";
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) var(--vtc-leaf-dark) center / 1.3rem no-repeat;
}

/* Keyword marquee */
.vtc-marquee {
	overflow: hidden;
	padding-block: 1.1rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.vtc-marquee__track {
	display: flex;
	width: max-content;
	animation: vtc-marquee 40s linear infinite;
}

.vtc-marquee__track span {
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	padding-right: 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vtc-marquee__track span::after {
	content: "";
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	-webkit-mask: var(--vtc-leaf) center / contain no-repeat;
	mask: var(--vtc-leaf) center / contain no-repeat;
}

@keyframes vtc-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtc-marquee__track {
		animation: none;
	}

	.vtc-card,
	.wp-block-button__link,
	.wp-block-button__link::after {
		transition: none;
	}
}

/* Process steps */
.vtc-step {
	text-align: center;
}

.vtc-step__num {
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	border: 1.5px dashed var(--wp--preset--color--accent);
	background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* Reviews (dark section) */
.vtc-reviews {
	border-radius: var(--vtc-radius-lg);
	margin-inline: clamp(0rem, 2vw, 1.5rem);
	background-image: radial-gradient(circle at 10% 0%, rgba(65, 197, 117, 0.18), transparent 40%);
}

.vtc-reviews .vtc-card {
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
}

.vtc-reviews .vtc-card p:nth-child(2) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--base);
}

.vtc-stars {
	color: var(--wp--preset--color--orange);
	letter-spacing: 0.15em;
	margin: 0 0 0.75rem;
}

.vtc-trust {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.85;
}

/* Service area chips */
.vtc-area-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.vtc-area-list li {
	padding: 0.5rem 1.1rem;
	border-radius: 45px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--contrast);
}

.vtc-area-list li a {
	color: inherit;
	text-decoration: none;
}

.vtc-area-list li:has(a) {
	background: var(--wp--preset--color--accent);
	box-shadow: none;
}

/* FAQ */
.wp-block-details {
	margin-block: 0.75rem;
	padding: 1.1rem 1.5rem;
	border-radius: 16px;
	background: var(--wp--preset--color--cream);
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.wp-block-details[open] {
	background: var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

/* CTA band */
.vtc-cta {
	position: relative;
	overflow: hidden;
	border-radius: var(--vtc-radius-lg);
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	background: linear-gradient(100deg, #d9efd2 0%, #eef2dc 50%, #ede5cf 100%);
}

.vtc-cta h2 {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	max-width: 20ch;
	margin-inline: auto;
}

/* Post content */
.wp-block-post-content h2 {
	margin-top: 2.5rem;
}

.wp-block-post-content ul:not([class*="vtc-"]) li::marker {
	color: var(--wp--preset--color--secondary);
}

.wp-block-post-featured-image img,
.wp-block-image img {
	border-radius: var(--vtc-radius);
}

/* Footer */
.vtc-footer {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem;
	border-radius: var(--vtc-radius-lg) var(--vtc-radius-lg) 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, 0.75);
	background-image: radial-gradient(circle at 90% 0%, rgba(65, 197, 117, 0.16), transparent 40%);
}

.vtc-footer a {
	color: inherit;
	text-decoration: none;
}

.vtc-footer a:hover {
	color: var(--wp--preset--color--accent);
}

.vtc-footer h3 {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--medium);
}

.vtc-footer__lead {
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vtc-footer__lead h2 {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1.08;
}

.vtc-footer ul.is-style-none {
	list-style: none;
	padding: 0;
}

.vtc-footer ul.is-style-none li {
	margin-bottom: 0.5rem;
}

.vtc-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sticky mobile call bar */
.vtc-callbar {
	display: none;
}

@media (max-width: 781px) {
	.vtc-callbar {
		display: flex;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 50;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
	}

	.vtc-callbar a {
		flex: 1;
		padding: 0.9rem 0.5rem;
		text-align: center;
		font-family: var(--wp--preset--font-family--heading);
		font-weight: 600;
		text-decoration: none;
		color: var(--wp--preset--color--base);
		background: var(--wp--preset--color--primary-dark);
	}

	.vtc-callbar a + a {
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--contrast);
	}

	body {
		padding-bottom: 3.25rem;
	}

	.vtc-header .vtc-header__cta {
		display: none;
	}

	.admin-bar .vtc-header {
		top: 46px;
	}

	.vtc-topbar p:first-child {
		display: none;
	}

	.vtc-card--service {
		padding-right: clamp(1.5rem, 2.5vw, 2.25rem);
	}

	.vtc-card--service::after {
		display: none;
	}
}
