/*
Theme Name: Pet Waste Removal & Yard Cleanup
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yard-cleanup
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--yw-bg: var(--wp--preset--color--background);
	--yw-sand: var(--wp--preset--color--sand);
	--yw-cream: var(--wp--preset--color--cream);
	--yw-text: var(--wp--preset--color--text);
	--yw-accent: var(--wp--preset--color--accent);
	--yw-primary: var(--wp--preset--color--primary);
}

body {
	background: var(--yw-bg);
	color: var(--yw-text);
}

/* === header === */
.site-header {
	background: var(--yw-cream);
	border-bottom: 1px solid var(--yw-sand);
}
.brand-group .wp-block-site-title {
	color: var(--yw-accent);
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	letter-spacing: 0.02em;
}
.site-header .wp-block-navigation__container > li > a {
	color: var(--yw-text);
	font-weight: 600;
}
.site-header .wp-block-navigation__container > li > a:hover {
	color: var(--yw-primary);
}
.is-style-header-call .wp-element-button {
	padding: 12px 20px;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
}

/* === section eyebrow (shrink-wrapped label) === */
.section-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--yw-primary);
	margin: 0;
}

/* === section headings === */
.section-headline {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--yw-accent);
	margin: 0.4em 0 0;
}
.section-lead {
	font-size: 1.1rem;
	max-width: 40rem;
	color: var(--yw-text);
}
.dark-section .section-headline,
.dark-section .section-eyebrow-dark { color: var(--yw-cream); }
.dark-section .section-lead { color: var(--yw-cream); }
.section-eyebrow-dark {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--yw-primary);
	margin: 0;
}

/* === faq === */
.faq-hero {
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--md);
}
.faq-section {
	padding-top: var(--wp--preset--spacing--md);
	padding-bottom: var(--wp--preset--spacing--xl);
}
.faq-section .faq-card + .faq-card {
	margin-top: 1rem;
}
.faq-card {
	padding: 1.5rem;
}
.faq-question {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: clamp(1.4rem, 3vw, 1.8rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--yw-accent);
	margin: 0 0 0.6rem;
}
.faq-card ul {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}
.faq-card li {
	margin-bottom: 0.5rem;
}
/* === book === */
.book-hero {
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--md);
}
.book-section {
	padding-top: var(--wp--preset--spacing--md);
	padding-bottom: var(--wp--preset--spacing--md);
}
.book-help {
	padding-top: var(--wp--preset--spacing--md);
	padding-bottom: var(--wp--preset--spacing--xl);
}

/* === hero === */
.hero-cover {
	min-height: 88vh;
}
.hero-cover .wp-block-cover__inner-container { width: 100%; }
.hero-inner {
	max-width: 46rem;
}
.hero-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--yw-cream);
	margin: 0;
}
.hero-title {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: clamp(3rem, 9vw, 6.2rem);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--yw-cream);
	margin: 0.2em 0 0;
}
.hero-accent-word { color: var(--yw-primary); }
.hero-buttons .is-style-call-now .wp-element-button {
	font-size: 1rem;
	letter-spacing: 0.06em;
}
.hero-sub {
	color: var(--yw-cream);
	font-size: 1.25rem;
	max-width: 34rem;
	margin-top: 1em;
}

/* === service cards === */
.is-style-card {
	background: var(--yw-cream);
	border: 1px solid var(--yw-sand);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(35, 42, 47, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}
.is-style-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(35, 42, 47, 0.16);
}
.is-style-card .wp-block-image img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	display: block;
}
.card-body { padding: 26px; }
.card-num {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--yw-primary);
	margin: 0 0 0.4em;
}
.card-title {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 1.7rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.05;
	color: var(--yw-accent);
	margin: 0 0 0.5em;
}
.card-body p {
	font-size: 1rem;
	margin: 0 0 1em;
}
.is-style-card .wp-block-buttons .wp-element-button {
	padding: 11px 18px;
	font-size: 0.8rem;
}

/* === service areas === */
.area-grid .wp-block-column {
	background: rgba(250, 246, 236, 0.06);
	border: 1px solid rgba(250, 246, 236, 0.18);
	border-radius: 12px;
	padding: 18px 22px;
}
.area-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.area-list li {
	padding: 0.45em 0 0.45em 1.9em;
	position: relative;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--yw-cream);
}
.area-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 14px;
	height: 14px;
	border: 2px solid var(--yw-primary);
	border-radius: 50%;
}

/* === contact === */
.contact-panel {
	background: var(--yw-cream);
	border: 1px solid var(--yw-sand);
	border-radius: 14px;
	padding: 34px;
	box-shadow: 0 16px 40px rgba(35, 42, 47, 0.08);
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--yw-bg);
	border: 1px solid var(--yw-sand);
	border-radius: 6px;
	padding: 12px 14px;
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 1rem;
	color: var(--yw-text);
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form select:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: none;
	border-color: var(--yw-primary);
}
.wp-block-jetpack-contact-form .jetpack-field-label {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35em;
}
.contact-side { padding-top: 0.5em; }
.contact-side h3 {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 2rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--yw-accent);
	margin: 0 0 0.4em;
}
/* booking panel */
.book-title {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: clamp(1.7rem, 4vw, 2.2rem);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--yw-accent);
	margin: 1.5rem 0 0.35em;
}
.book-panel { margin-top: 1.15rem; }
.book-panel .wp-block-jetpack-contact-form select { cursor: pointer; }
.contact-phone {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--yw-accent);
}
.contact-phone a {
	color: var(--yw-accent);
	text-decoration: none;
}
.contact-phone a:hover { color: var(--yw-primary); }

/* business hours list */
.hours-heading {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--yw-accent);
	margin: 0 0 0.5em;
}
.hours-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.2em;
}
.hours-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
	padding: 0.55em 0;
	border-bottom: 1px solid var(--yw-sand);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li span:first-child { font-weight: 600; color: var(--yw-text); }
.hours-list li span:last-child { font-weight: 600; color: var(--yw-primary); }

/* footer hours: dark ground */
.site-footer .hours-heading { color: var(--yw-cream); }
.site-footer .hours-list li { border-bottom: 1px solid rgba(250, 246, 236, 0.2); }
.site-footer .hours-list li span:first-child { color: var(--yw-cream); }
.site-footer .hours-list li span:last-child { color: var(--yw-primary); }


/* === footer payments & social === */
.pay-section {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-top: 1px solid rgba(250, 246, 236, 0.14);
}
.pay-heading {
	margin: 0 0 1rem;
}
.is-style-pay-badge {
	margin: 0;
	padding: 0.55em 1.1em;
	border: 1px solid rgba(250, 246, 236, 0.4);
	border-radius: 6px;
	color: var(--yw-cream);
	background: transparent;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.header-social .wp-block-social-link-anchor {
	color: var(--yw-accent);
}
.footer-social .wp-block-social-link-anchor {
	color: var(--yw-cream);
}
.wp-block-social-links .wp-block-social-link {
	margin: 0 0.5em;
}
.header-social,
.footer-social { margin: 0; }

/* === footer hours: full-width two-column band === */
.hours-band {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-top: 1px solid rgba(250, 246, 236, 0.14);
}
.hours-band .hours-heading {
	margin-bottom: 0.75em;
}
.hours-cols {
	width: 100%;
	justify-content: space-between;
	column-gap: 2rem;
}
.hours-cols-list {
	list-style: none;
	padding: 0;
	margin: 0;
	min-width: 0;
}
.hours-cols-list li {
	padding: 0.55em 0;
	border-bottom: 1px solid rgba(250, 246, 236, 0.2);
	white-space: nowrap;
}
.hours-cols-list li:last-child { border-bottom: 0; }
.hours-days li { color: var(--yw-cream); font-weight: 600; }
.hours-times { margin-left: auto; }
.hours-times li { color: var(--yw-primary); font-weight: 600; text-align: right; }
@media (max-width: 720px) {
	.hours-cols { flex-direction: column; align-items: stretch; }
	.hours-times { margin-left: 0; }
	.hours-times li { text-align: left; }
}

/* === progress project === */
.progress-section {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.progress-section .section-lead {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}
.progress-group-title {
	margin: 0;
	margin-top: var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yw-accent);
	display: inline-block;
	padding: 0 0.35em;
	border-bottom: 2px solid var(--yw-accent);
}
.progress-section .progress-grid:first-of-type {
	margin-top: var(--wp--preset--spacing--30);
}
.progress-grid {
	gap: var(--wp--preset--spacing--40);
}
.is-style-card.progress-card {
	height: 100%;
	overflow: hidden;
}
.progress-card .card-image img {
	width: 100%;
	height: auto;
	display: block;
}
.step-label {
	margin: 0;
	padding: 0.65em 1em;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--yw-accent);
	border-top: 1px solid var(--yw-sand);
}
@media (max-width: 900px) {
	.progress-grid .progress-card {
		min-width: 0;
	}
}
@media (max-width: 782px) {
	.progress-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 480px) {
	.progress-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.progress-card .card-image img {
		border-radius: 12px 12px 0 0;
	}
}

/* === before & after page === */
.before-hero,
.cta-banner { padding-block: var(--wp--preset--spacing--70); }
.gallery-section { padding-block: var(--wp--preset--spacing--60); }
.before-grid { gap: var(--wp--preset--spacing--40); }
.is-style-card.ba-card .wp-block-image img { height: auto; }

@media (max-width: 720px) {
	.before-grid { grid-template-columns: 1fr !important; }
}

/* === mobile call bar === */
.mobile-call-bar {
	display: none;
}

/* === CTA band === */
.cta-banner { text-align: center; }
.cta-banner .section-headline { color: var(--yw-accent); }

/* === footer === */
.site-footer {
	color: var(--yw-cream);
}
.site-footer .wp-block-site-title {
	font-size: 1.5rem;
	letter-spacing: 0.02em;
}
.site-footer h3 {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid var(--yw-primary);
	padding-bottom: 0.4em;
	margin-bottom: 0.8em;
}
.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer ul li { padding: 0.25em 0; }
.footer-tagline {
	max-width: 20rem;
	color: var(--yw-sand);
}

/* === responsive === */
@media (max-width: 782px) {
	.is-style-card .wp-block-image img { height: 180px; }
	.progress-card .wp-block-image img { height: auto; object-fit: cover; }
	.contact-panel { padding: 24px; }
}

@media (max-width: 720px) {
	body { padding-bottom: 74px; }
	.mobile-call-bar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		background: var(--yw-accent);
		padding: 10px 14px;
		box-shadow: 0 -6px 20px rgba(35, 42, 47, 0.25);
	}
	.mobile-call-bar .wp-block-buttons { width: 100%; }
	.mobile-call-bar .wp-block-button { flex: 1 1 100%; }
	.mobile-call-bar .wp-element-button {
		display: block;
		width: 100%;
		text-align: center;
		padding: 15px 20px;
		font-size: 1rem;
		letter-spacing: 0.05em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-card {
		transition: none;
		transform: none;
	}
	.is-style-card:hover { transform: none; }
}
