/*
Theme Name: Plant Mulch Co.
Theme URI: https://plant-mulch.local
Author: Neon Prometheus
Author URI: https://plant-mulch.local
Description: A warm, earthy block theme for Plant Mulch Co. — family-owned bulk landscape supply (bark, topsoil, compost & rock) serving Snohomish & North King County. Converted from the Figma homepage concept. Pairs with the Plant Mulch Calculator plugin for the live coverage estimator.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plant-mulch
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, business, landscaping, one-column, two-columns, three-columns
*/

/* =========================================================================
   Plant Mulch Co. — front-end styles
   Palette and fonts are defined in theme.json; this file reproduces the
   layout-specific details (gradients, dividers, hover states, animations)
   that can't be expressed in theme.json alone.
   ========================================================================= */

:root {
	--pm-shadow-tile: 0 12px 40px -18px rgba(29, 58, 41, .45);
	--pm-shadow-card: 0 30px 60px -30px rgba(0, 0, 0, .55);
	--pm-shadow-btn: 0 8px 22px -10px rgba(196, 110, 31, .8);
}

/* ---- Section rhythm ------------------------------------------------------ */
.pm-section {
	padding-block: 4.875rem;
}
.pm-section--tight {
	padding-block: 1.25rem 4.875rem;
}

/* ---- Eyebrow / kicker label --------------------------------------------- */
.pm-eyebrow {
	font-weight: 800;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: .75rem !important;
}

/* ---- Buttons ------------------------------------------------------------- */
/* Core buttons get the amber pill treatment from theme.json. Two extra
   variants reproduce the "ghost" (outline-on-dark) and "small" buttons. */
.wp-block-button .wp-block-button__link {
	box-shadow: var(--pm-shadow-btn);
	transition: transform .18s, background-color .18s, border-color .18s;
	border: 2px solid transparent;
	white-space: nowrap;
	max-width: 100%;
}
/* On phones, let long buttons wrap (and trim the contractor box padding) so
   they never run off-screen. */
@media (max-width: 560px) {
	.wp-block-button .wp-block-button__link { white-space: normal; }
	.pm-contractor { padding: 26px !important; }
}
.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
}
.wp-block-button.is-style-pm-small .wp-block-button__link {
	padding: 11px 20px;
	font-size: .93rem;
}
.wp-block-button.is-style-pm-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .4);
	box-shadow: none;
}
.wp-block-button.is-style-pm-ghost .wp-block-button__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .1);
}

/* ---- Utility bar --------------------------------------------------------- */
.pm-utility-bar {
	font-size: .86rem;
	font-weight: 500;
}
.pm-utility-bar a { color: #fff; text-decoration: none; font-weight: 800; }

/* ---- Header / sticky nav ------------------------------------------------- */
.pm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 242, 231, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border-sand);
}
.pm-brand,
.pm-brand:hover {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: 1.42rem;
	letter-spacing: -.02em;
	color: var(--wp--preset--color--green);
	text-decoration: none;
	line-height: 1.05;
}
.pm-brand .pm-brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--wp--preset--color--green);
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--base);
	font-size: 1.15rem;
	flex-shrink: 0;
}
.pm-brand small {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-top: 1px;
}
/* Header nav — custom walker menu (plant-mulch/menu) */
.pm-nav { display: flex; align-items: center; margin-left: auto; }
/* Mobile: the "Get an Estimate" button and the hamburger ride together, with the
   hamburger to the RIGHT of the button: order reads [estimate] [hamburger]. On
   wider phones/tablets everything sits on one row with the brand; once it gets
   cramped the brand takes the top row and estimate + hamburger share the next. */
@media (max-width: 900px) {
	.pm-header-row > .wp-block-buttons { order: 2; margin-left: auto; flex: 0 1 auto; min-width: 0; }
	.pm-header-row > .pm-nav { order: 3; margin-left: 14px; }
}
@media (max-width: 560px) {
	.pm-header-row { flex-wrap: wrap !important; row-gap: 12px; justify-content: flex-end; }
	.pm-header-row > :first-child { flex-basis: 100%; }  /* brand on its own top row */
	/* Right-align the estimate + hamburger cluster as a group (keeps them on the
	   same row, hamburger to the right) instead of letting auto-margin split them. */
	.pm-header-row > .wp-block-buttons { margin-left: 0; }
	.pm-header-row > .wp-block-buttons .wp-block-button,
	.pm-header-row > .wp-block-buttons .wp-block-button__link {
		white-space: normal;
		text-align: center;
	}
}
.pm-nav__toggle { display: none; }
.pm-nav__burger { display: none; }
.pm-nav-menu {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pm-nav__item { position: relative; }
.pm-nav__link {
	display: inline-block;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: .96rem;
	text-decoration: none;
	transition: .15s;
}
.pm-nav__link:hover,
.pm-nav__link.is-active {
	border-bottom-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--green);
}
.pm-nav .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
/* Mobile: CSS-only hamburger toggle (no JS) */
@media (max-width: 900px) {
	.pm-nav__burger {
		display: block;
		cursor: pointer;
		width: 30px;
		height: 22px;
		position: relative;
	}
	.pm-nav__burger i,
	.pm-nav__burger i::before,
	.pm-nav__burger i::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		height: 2.5px;
		border-radius: 2px;
		background: var(--wp--preset--color--green);
		transition: .2s;
	}
	.pm-nav__burger i { top: 50%; transform: translateY(-50%); }
	.pm-nav__burger i::before { top: -8px; }
	.pm-nav__burger i::after { top: 8px; }
	.pm-nav__toggle:checked ~ .pm-nav__burger i { background: transparent; }
	.pm-nav__toggle:checked ~ .pm-nav__burger i::before { top: 0; transform: rotate(45deg); }
	.pm-nav__toggle:checked ~ .pm-nav__burger i::after { top: 0; transform: rotate(-45deg); }
	.pm-nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		right: 26px;
		left: 26px;
		flex-direction: column;
		gap: 0;
		background: var(--wp--preset--color--base);
		border: 1px solid var(--wp--preset--color--border-sand);
		border-radius: 12px;
		padding: 8px;
		box-shadow: 0 24px 48px -22px rgba(0,0,0,.5);
		z-index: 60;
	}
	.pm-nav__toggle:checked ~ .pm-nav-menu { display: flex; }
	.pm-nav__link {
		display: block;
		padding: 11px 12px;
		border-bottom: none;
	}
	.pm-nav__link:hover,
	.pm-nav__link.is-active {
		border-bottom: none;
		background: var(--wp--preset--color--sand);
		border-radius: 8px;
	}
}

/* Cart coupon "Apply" button — a touch narrower on mobile so it's not so fat */
@media (max-width: 600px) {
	button[name="apply_coupon"] {
	    padding-top: 8px;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 8px;
        max-width: 100px;
        margin-left: 10px;
	}
}

/* Checkout: "how should we reach you?" contact-preference checkboxes */
.pm-contact-pref {
	margin: 1.5rem 0;
	padding: 1.1rem 1.25rem;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 12px;
}
.pm-contact-pref h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.pm-contact-pref__hint { margin: 0 0 .75rem; color: var(--wp--preset--color--muted); font-size: .9rem; }
.pm-contact-pref__opt {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0 2.4rem .6rem 0;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
}
.pm-contact-pref__opt:last-child { margin-right: 0; }
.pm-contact-pref__opt input { width: 1.1rem; height: 1.1rem; }

/* Estimate reassurance box (FAQ-styled, green, below the cart/checkout notices) */
.pm-estimate-help {
	margin: 1.25rem 0 1.75rem;
	padding: 1.15rem 1.4rem;
	background: var(--wp--preset--color--green);
	border-radius: 14px;
	box-shadow: 0 16px 38px -24px rgba(29, 58, 41, .8);
}
.pm-estimate-help__q {
	margin: 0 0 .4rem;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: 1.14rem;
	color: #fff;
}
.pm-estimate-help__q::before {
	content: "Q · ";
	color: var(--wp--preset--color--amber-light, #e7b15e);
	font-weight: 800;
}
.pm-estimate-help__a {
	margin: 0;
	font-size: .96rem;
	line-height: 1.55;
	color: var(--wp--preset--color--cream-text, #e8ecdf);
}
/* Compact variant (product pages) — tucked, smaller, centered */
.pm-estimate-help--sm {
	max-width: 640px;
	margin: 1.75rem auto 0;
	padding: .9rem 1.15rem;
	border-radius: 12px;
}
.pm-estimate-help--sm .pm-estimate-help__q { font-size: 1rem; margin-bottom: .25rem; }
.pm-estimate-help--sm .pm-estimate-help__a { font-size: .9rem; line-height: 1.5; }

/* Checkout: breathing room between form fields (was cramped) */
.woocommerce-checkout form .form-row {
	margin-bottom: 1.4rem;
}
/* "estimated" tag beside the order total */
.pm-est-note {
	font-size: .72em;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ---- Cart link (header icon + mobile-menu smart link) -------------------- */
.pm-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color .15s;
}
.pm-cart-icon:hover { color: var(--wp--preset--color--green); }
.pm-cart-icon__svg { width: 26px; height: 26px; display: block; }
.pm-cart-count--badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 9px;
	background: var(--wp--preset--color--amber);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.pm-cart-count--badge.is-empty { display: none; }
/* Count badge pinned to the hamburger (shows only when the cart isn't empty) */
.pm-cart-count--burger {
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 9px;
	background: var(--wp--preset--color--amber);
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}
.pm-cart-count--burger.is-empty { display: none; }
/* The mobile-menu cart link lives in the nav <ul>; hidden until the menu shows */
.pm-nav__cart-item { display: none; }
.pm-cart-count--menu {
	display: inline-block;
	min-width: 22px;
	margin-left: 9px;
	padding: 0 7px;
	box-sizing: border-box;
	border-radius: 11px;
	background: var(--wp--preset--color--amber);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
@media (max-width: 900px) {
	/* On mobile the header icon steps aside; the menu carries the cart link */
	.pm-cart-icon { display: none; }
	.pm-nav__cart-item {
		display: block;
		margin-bottom: 12px;
		padding-bottom: 8px;
		border-bottom: 1px solid var(--wp--preset--color--border-sand);
	}
	.pm-nav__cart-link {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		font-weight: 700;
	}
}

/* ---- Hero ---------------------------------------------------------------- */
.pm-hero {
	position: relative;
	overflow: hidden;
}
.pm-hero h1 em {
	font-style: italic;
	color: var(--wp--preset--color--amber-light);
	font-weight: 500;
}
.pm-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(221, 129, 42, .18);
	border: 1px solid rgba(221, 129, 42, .5);
	color: var(--wp--preset--color--amber-light);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 7px 15px;
	border-radius: 999px;
}
.pm-hero-img img {
	border-radius: 18px;
	height: 420px;
	width: 100%;
	object-fit: cover;
}
.pm-hero-points {
	color: var(--wp--preset--color--cream-text);
	font-size: .92rem;
	font-weight: 600;
}
/* The wave divider that caps the hero */
.pm-wave {
	display: block;
	width: 100%;
	height: 46px;
	margin-top: -1px;
	line-height: 0;
}
.pm-wave svg { display: block; width: 100%; height: 46px; }

/* Entrance animation for hero items */
@keyframes pm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.pm-hero .pm-rise > * { opacity: 0; animation: pm-rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
	.pm-hero .pm-rise > *:nth-child(1) { animation-delay: .05s; }
	.pm-hero .pm-rise > *:nth-child(2) { animation-delay: .18s; }
	.pm-hero .pm-rise > *:nth-child(3) { animation-delay: .31s; }
	.pm-hero .pm-rise > *:nth-child(4) { animation-delay: .44s; }
	.pm-hero .pm-rise > *:nth-child(5) { animation-delay: .57s; }
	.pm-hero .pm-rise > *:nth-child(6) { animation-delay: .70s; }
}

/* ---- Trust band ---------------------------------------------------------- */
.pm-trust {
	border-block: 1px solid var(--wp--preset--color--border-sand);
}
.pm-trust .pm-stat-big {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
}
.pm-trust .pm-stat-label {
	font-size: .82rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* ---- Product tiles ------------------------------------------------------- */
.pm-tile {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 18px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.pm-tile:hover {
	transform: translateY(-5px);
	box-shadow: var(--pm-shadow-tile);
}
.pm-tile img { height: 175px; width: 100%; object-fit: cover; display: block; }
.pm-tile .pm-tile__media { display: block; }
.pm-tile .pm-tile-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pm-tile h3 { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--green); font-size: 1.32rem; line-height: 1.08; margin: 0 0 8px; }
.pm-tile h3 a, .pm-tile h3 a:hover { color: inherit; text-decoration: none; }
.pm-tile p { color: var(--wp--preset--color--muted); font-size: .93rem; margin: 0 0 14px; }
.pm-tile .pm-price { font-weight: 800; font-size: 1.02rem; color: var(--wp--preset--color--contrast); margin: 0 0 14px; }
.pm-tile .pm-price small { color: var(--wp--preset--color--muted); font-weight: 600; font-size: .8rem; }
.pm-tile .pm-shop-link { margin-top: auto; color: var(--wp--preset--color--amber-dark); font-weight: 700; font-size: .92rem; text-decoration: none; }
.pm-tile .pm-shop-link:hover { color: var(--wp--preset--color--green); }
.pm-tile--cta { background: var(--wp--preset--color--green); border-color: var(--wp--preset--color--green); }
.pm-tile--cta:hover { transform: translateY(-5px); }
.pm-tile--cta h3 { color: #fff; }
.pm-tile--cta p { color: var(--wp--preset--color--cream-text); }
.pm-tile__btn { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 7px; background: var(--wp--preset--color--amber); color: #fff; font-weight: 700; font-size: .93rem; padding: 11px 20px; border-radius: 999px; text-decoration: none; transition: .18s; }
.pm-tile__btn:hover { background: var(--wp--preset--color--amber-dark); transform: translateY(-2px); color: #fff; }

/* ---- How it works steps -------------------------------------------------- */
.pm-step-num {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--wp--preset--color--sand);
	border: 2px solid var(--wp--preset--color--amber);
	color: var(--wp--preset--color--amber-dark);
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700;
	font-size: 1.5rem;
	display: grid;
	place-items: center;
	margin: 0 auto 16px;
}
.pm-pickup-note {
	background: #fff7e9;
	border-left: 4px solid var(--wp--preset--color--amber);
	padding: 10px 16px;
	font-size: .82rem;
	color: #7a5a25;
	border-radius: 0 8px 8px 0;
}

/* ---- Contractors band ---------------------------------------------------- */
.pm-contractor {
	border-radius: 22px;
	overflow: hidden;
}
.pm-contractor img { height: 230px; width: 100%; object-fit: cover; border-radius: 14px; }
.pm-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pm-checklist li { display: flex; gap: 10px; color: #f3e6d8; font-weight: 500; }
.pm-checklist li::before { content: "✓"; color: #f4b878; font-weight: 800; flex-shrink: 0; }

/* ---- Gallery ------------------------------------------------------------- */
.pm-gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.pm-gallery img { height: 200px; width: 100%; object-fit: cover; display: block; }
.pm-gallery figcaption {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(29, 58, 41, .78);
	color: #fff;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
}

/* ---- Reviews ------------------------------------------------------------- */
.pm-review {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 18px;
	padding: 26px;
	height: 100%;
}
.pm-review .pm-stars { color: var(--wp--preset--color--amber); letter-spacing: 2px; font-size: 1.05rem; }
.pm-review blockquote { margin: 14px 0; font-style: italic; color: var(--wp--preset--color--contrast); border: 0; padding: 0; }
.pm-review .pm-who { font-weight: 800; color: var(--wp--preset--color--green); }
.pm-review .pm-where { color: var(--wp--preset--color--muted); font-size: .86rem; font-weight: 600; }
.pm-review blockquote { quotes: none; }
.pm-review-sources {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 14px;
	margin-top: 76px;
}
.pm-review-source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 999px;
	padding: 9px 18px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: .15s;
}
.pm-review-source strong { color: var(--wp--preset--color--green); }
.pm-review-source:hover { border-color: var(--wp--preset--color--amber); transform: translateY(-2px); color: var(--wp--preset--color--green); }

/* ---- About / clean promise ---------------------------------------------- */
.pm-about-img img { height: 340px; width: 100%; object-fit: cover; border-radius: 18px; }
.pm-promise-item { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.pm-promise-item .pm-check {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--green-light);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: .9rem;
}
.pm-promise-item p { color: var(--wp--preset--color--muted); font-size: .93rem; margin: 0; }
.pm-promise-item p strong { color: var(--wp--preset--color--contrast); }

/* ---- Service area -------------------------------------------------------- */
.pm-town {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	padding: 8px 15px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .9rem;
	color: #fff;
}
.pm-map-placeholder {
	height: 320px;
	border-radius: 18px;
	background: repeating-linear-gradient(45deg, #234733, #234733 14px, #27503a 14px, #27503a 28px);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed rgba(255, 255, 255, .25);
	text-align: center;
}

/* ---- Service-area map (inline SVG) -------------------------------------- */
.pm-map {
	position: relative;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px;
	padding: 16px 16px 12px;
}
.pm-map__gmaps {
	position: absolute;
	top: 26px;
	right: 26px;
	z-index: 600;
	display: inline-flex;
	align-items: center;
	background: var(--wp--preset--color--amber);
	color: #fff;
	font-weight: 700;
	font-size: .78rem;
	padding: 7px 13px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
	transition: background-color .15s, transform .15s;
}
.pm-map__gmaps:hover { background: var(--wp--preset--color--amber-dark); color: #fff; transform: translateY(-1px); }
/* Real Leaflet/OSM map */
.pm-servicemap {
	height: 420px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	background: #e9f0e6;
}
.pm-servicemap .leaflet-container { font-family: var(--wp--preset--font-family--sans); }
/* Town/yard labels — strip Leaflet's default box for a clean map look */
.leaflet-tooltip.pm-maptip {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	color: #1d3a29;
	font-weight: 700;
	font-size: 11.5px;
	white-space: nowrap;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.leaflet-tooltip.pm-maptip::before { display: none; }
.leaflet-tooltip.pm-maptip--yard { color: #c46e1f; font-size: 12.5px; }
.pm-map__hint { color: rgba(255, 255, 255, .5); font-weight: 500; }
.pm-map__legend {
	display: flex;
	gap: 22px;
	justify-content: center;
	margin-top: 10px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--wp--preset--color--cream-text);
}
.pm-map__legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}
.pm-map__legend .pm-map__yard { width: 12px; height: 12px; background: var(--wp--preset--color--amber); border: 2px solid #fff; }
.pm-map__legend .pm-map__dot { background: var(--wp--preset--color--cream-text); }

/* ---- Footer -------------------------------------------------------------- */
.pm-footer { font-size: .92rem; }
.pm-footer .pm-brand,
.pm-footer .pm-brand:hover { color: #fff; }
.pm-footer .pm-brand small { color: #7f9279; }
.pm-footer a { color: #b6c6b0; text-decoration: none; transition: .15s; }
.pm-footer a:hover { color: var(--wp--preset--color--amber); }
.pm-footer .pm-foot-heading {
	font-weight: 800;
	color: #fff;
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.pm-footer .pm-foot-phone {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.5rem;
	color: #fff;
	font-weight: 700;
}
.pm-footer-base { color: #7f9279; font-size: .82rem; }

/* ---- Helpers ------------------------------------------------------------- */
.pm-on-dark, .pm-on-dark :where(p, li, span, h2, h3, h4) { color: var(--wp--preset--color--cream-text); }
.pm-on-dark :where(h1, h2, h3, h4) { color: #fff; }
/* Media captions need light text on the dark sections too (else dark-on-green) */
.pm-on-dark figcaption,
.pm-on-dark .wp-element-caption { color: var(--wp--preset--color--cream-text); }
.pm-measure { max-width: 33ch; }

/* ---- FAQ accordion (plant-mulch/faq block) ------------------------------ */
.pm-faq { border-top: 1px solid var(--wp--preset--color--border-sand); }
.pm-faq__item { border-bottom: 1px solid var(--wp--preset--color--border-sand); }
.pm-faq__q {
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 1.18rem;
	line-height: 1.25;
	color: var(--wp--preset--color--green);
	padding: 20px 44px 20px 0;
	position: relative;
}
.pm-faq__q::-webkit-details-marker { display: none; }
.pm-faq__q::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 18px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--wp--preset--color--amber-dark);
	transition: transform .15s;
}
.pm-faq__item[open] .pm-faq__q::after { content: "−"; }
.pm-faq__q:hover { color: var(--wp--preset--color--amber-dark); }
.pm-faq__a { padding: 0 44px 22px 0; color: var(--wp--preset--color--muted); }
.pm-faq__a > :first-child { margin-top: 0; }
.pm-faq__a > :last-child { margin-bottom: 0; }
.pm-faq__a a { color: var(--wp--preset--color--amber-dark); font-weight: 600; }
/* Editor affordance: faq-item is a div (not <details>) while editing */
/* FAQ block editor: accordion-styled, matches the front end (items shown open) */
.pm-faq--editing { border-top: 0; }
.pm-faq__edit-note { font-size: .8rem; color: var(--wp--preset--color--muted); background: var(--wp--preset--color--sand); border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; }
.pm-faq__item--editing { border: 1px solid var(--wp--preset--color--border-sand); border-radius: 10px; padding: 10px 18px 14px; margin-bottom: 12px; background: #fff; }
.pm-faq__edit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pm-faq__item--editing .pm-faq__q { padding: 6px 0; flex: 1 1 auto; cursor: text; }
.pm-faq__item--editing .pm-faq__q::after { content: none; }
.pm-faq__edit-tools { display: flex; flex-shrink: 0; gap: 2px; padding-top: 4px; }
.pm-faq__item--editing .pm-faq__a { padding: 0; }
.pm-faq__item--editing .pm-faq__a:empty::before,
.pm-faq__item--editing .pm-faq__q:empty::before { color: #9aa39a; }
.pm-faq__add-row { margin-top: 14px; }

/* ---- Page templates: banners, title strips, sidebar --------------------- */
.pm-page-banner h1 { margin: 0; }
.pm-faq-banner .pm-eyebrow { margin-bottom: .5rem !important; }
.pm-page-title h1 { margin: 0; }

.pm-sidebar-card {
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 16px;
}
@media (min-width: 782px) {
	.pm-sidebar-card { position: sticky; top: 90px; }
}
.pm-quickfacts .pm-bf,
.pm-quickfacts a {
	display: block;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
}
.pm-quickfacts a:hover { color: var(--wp--preset--color--amber-dark); }

/* ---- Product-page coverage calculator (pm-pcalc) ------------------------- */
.pm-pcalc {
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--border-sand);
	border-radius: 14px;
	padding: 18px 18px 20px;
	margin: 18px 0;
	max-width: 420px;
}
.pm-pcalc__title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	color: var(--wp--preset--color--green);
	font-size: 1.05rem;
	margin-bottom: 12px;
}
.pm-pcalc__label {
	display: block;
	font-weight: 700;
	font-size: .82rem;
	margin: 10px 0 6px;
	color: var(--wp--preset--color--contrast);
}
.pm-pcalc__row { display: flex; gap: 8px; }
.pm-pcalc__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1.5px solid var(--wp--preset--color--border-sand);
	border-radius: 10px;
	font-weight: 600;
	background: #fff;
	color: var(--wp--preset--color--contrast);
	outline: none;
}
.pm-pcalc__input:focus { border-color: var(--wp--preset--color--green-light); }
.pm-pcalc__depth {
	flex: 1;
	padding: 9px 0;
	border: 1.5px solid var(--wp--preset--color--border-sand);
	background: #fff;
	border-radius: 10px;
	font-weight: 700;
	font-size: .82rem;
	cursor: pointer;
	color: var(--wp--preset--color--muted);
	transition: .15s;
}
.pm-pcalc__depth.pm-active {
	border-color: var(--wp--preset--color--green);
	background: var(--wp--preset--color--green);
	color: #fff;
}
.pm-pcalc__result {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--wp--preset--color--border-sand);
}
.pm-pcalc__yards {
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--wp--preset--color--green);
	line-height: 1.1;
}
.pm-pcalc__add {
	display: block;
	margin-top: 4px;
	font-size: .9rem;
	color: var(--wp--preset--color--muted);
}
.pm-pcalc__add strong { color: var(--wp--preset--color--amber-dark); }

.woocommerce a.remove:hover {
    line-height: 0.9;
}

/* WooCommerce price unit suffix */
.pm-price-unit { font-size: .72em; color: var(--wp--preset--color--muted); font-weight: 600; }
.pm-unit { color: var(--wp--preset--color--muted); font-size: .92rem; }
.pm-unit strong { color: var(--wp--preset--color--contrast); }
/* Unit label tucked directly under the add-to-cart quantity box. Keep the form's
   native layout (so the quantity box keeps its original height) — the label is
   positioned absolutely, so we only need a positioning context + room below. */
form.cart {
	position: relative;
	margin-bottom: 2.1rem; /* reserve room for the absolutely-placed unit label */
}
.pm-qty-unit {
	position: absolute;
	top: 100%;
	left: 0;
	width: 5rem; /* matches the quantity box */
	margin-top: .4rem;
	color: var(--wp--preset--color--muted);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .01em;
	text-align: center;
	white-space: nowrap;
}

/* Shop catalog toolbar: result count + branded sort dropdown */
.pm-shop-intro {
	color: var(--wp--preset--color--muted);
	font-size: 1.02rem;
	max-width: 60ch;
	margin: 4px 0 26px;
}
.woocommerce-result-count {
	color: var(--wp--preset--color--muted);
	font-weight: 600;
	font-size: .92rem;
}
.woocommerce-ordering {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}
.woocommerce-ordering::before {
	content: "Sort by";
	font-weight: 800;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.woocommerce-ordering select.orderby {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: .92rem;
	color: var(--wp--preset--color--contrast);
	background-color: #fff;
	border: 1.5px solid var(--wp--preset--color--border-sand);
	border-radius: 999px;
	padding: 9px 40px 9px 16px;
	cursor: pointer;
	line-height: 1.2;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1.5 6 6.5 11 1.5" fill="none" stroke="%235d6657" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 15px center;
	transition: border-color .15s, box-shadow .15s;
}
.woocommerce-ordering select.orderby:hover { border-color: var(--wp--preset--color--amber); }
.woocommerce-ordering select.orderby:focus {
	outline: none;
	border-color: var(--wp--preset--color--green-light);
	box-shadow: 0 0 0 3px rgba(74, 124, 84, .18);
}
/* A bit more vertical space between shop product rows (columns stay as-is) */
.wc-block-product-template__responsive { row-gap: 3.375rem !important; }
/* Mobile: sort filter on its own full-width row so it can't push the page wide */
@media (max-width: 600px) {
	.woocommerce-result-count { display: block; width: 100%; }
	.woocommerce-ordering { display: flex; flex-wrap: wrap; width: 100%; margin-top: 14px; }
	.woocommerce-ordering select.orderby { flex: 1 1 auto; min-width: 0; max-width: 100%; }
}

/* Catalog/related "View product" link (replaces loop add-to-cart) */
.pm-view-product {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	margin: 14px auto 0;
	background: var(--wp--preset--color--amber);
	color: #fff;
	font-weight: 700;
	font-size: .92rem;
	line-height: 1.1;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--pm-shadow-btn);
	transition: background-color .15s, transform .15s;
}
.pm-view-product:hover { background: var(--wp--preset--color--amber-dark); color: #fff; transform: translateY(-2px); }
/* Related-products (WooCommerce flex product template): drop to 2 cols on tablet
   and 1 on small mobile so the cells/buttons don't get cramped and run together. */
@media (max-width: 781px) {
	.wc-block-product-template.is-flex-container { gap: 40px 22px !important; }
	.wc-block-product-template.is-flex-container > li { flex: 1 1 calc(50% - 11px) !important; max-width: calc(50% - 11px); }
	/* Comfortable vertical space between rows once columns stack/split on mobile */
	.wp-block-columns:not(.is-not-stacked-on-mobile) { row-gap: 2.5rem !important; }
}
@media (max-width: 480px) {
	.wc-block-product-template.is-flex-container { gap: 44px 22px !important; }
	.wc-block-product-template.is-flex-container > li { flex: 1 1 100% !important; max-width: 100%; }
}

/* ---- Responsive (mirrors the Figma breakpoints) -------------------------- */
/* The WordPress Navigation block collapses to its own hamburger overlay on
   small screens (overlayMenu: mobile), so we let it handle mobile nav rather
   than hiding the menu outright as the static Figma concept did. */
@media (max-width: 860px) {
	.pm-hero-img img { height: 260px; }
}
@media (max-width: 760px) {
	.pm-trust .wp-block-columns { flex-wrap: wrap; }
}
/* Products + before/after gallery: 3-/4-up on desktop, 2-up on tablet, then
   stack one at a time on phones. */
@media (max-width: 781px) {
	.pm-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.pm-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
	.pm-products-grid,
	.pm-gallery { grid-template-columns: 1fr !important; }
}
/* Hero wave divider: shorter/gentler on phones so it doesn't look squashed */
@media (max-width: 560px) {
	.pm-wave, .pm-wave svg { height: 30px; }
}
@media (max-width: 380px) {
	.pm-wave, .pm-wave svg { height: 22px; }
}
