/*
Theme Name: LexiaDesign-Child
Description: Provent Pest Control child theme of LexiaDesign.
Author: Specflux Solutions
Template: lexiadesign
Version: 1.1.0
Text Domain: lexiadesign-child
*/

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
.wp-site-blocks > * + *, main.wp-block-group > * + * { margin-block-start: 0; }

/* Header: stays visible while scrolling */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base-0);
	box-shadow: 0 1px 0 var(--wp--preset--color--base-200);
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
.pv-header { max-width: 1260px; margin-inline: auto; }
.pv-nav a:hover { color: var(--wp--preset--color--base-500); }
.pv-header-cta .wp-block-button__link { padding: 0.6rem 1.2rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 600px) {
	.pv-logo img { width: 140px !important; }
	.pv-header-cta { display: none; }
}

/* Placeholders waiting on client details */
.pv-ph {
	background: #fff6a8;
	color: #0e0e0e;
	outline: 1px dashed #b5a800;
	padding: 0 0.2em;
	border-radius: 3px;
}

/* Eyebrow labels */
.pv-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Hero */
.pv-hero .wp-block-cover__inner-container { max-width: 600px; }
@media (max-width: 781px) {
	.pv-hero .wp-block-cover__background { background: rgba(14, 14, 14, 0.8) !important; }
}
.pv-hero h1 { color: #fff; }
.pv-hero mark.pv-hl { background: none; color: var(--wp--preset--color--brand); }
.pv-trust { gap: 0.6rem 1.6rem !important; }
.pv-trust p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.pv-trust p::before { content: "✓"; color: var(--wp--preset--color--brand); margin-right: 0.45rem; font-weight: 800; }
.pv-btn-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}
.pv-btn-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--base-900); }
.pv-btn-wa .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.pv-btn-wa .wp-block-button__link:hover { background: #1da851; color: #fff; }

/* Pest cards: photo is grey until hovered or focused, then turns colour */
.pv-pest {
	background: var(--wp--preset--color--base-0);
	border: 2px solid var(--wp--preset--color--base-200);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}
.pv-pest .wp-block-image { margin: 0; overflow: hidden; }
.pv-pest .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.35s ease, transform 0.35s ease;
}
.pv-pest:hover, .pv-pest:focus-within {
	border-color: var(--wp--preset--color--brand-600);
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.pv-pest:hover .wp-block-image img, .pv-pest:focus-within .wp-block-image img {
	filter: none;
	transform: scale(1.05);
}
.pv-pest .pv-pest-body { padding: 1.1rem 1.25rem 1.3rem; }
.pv-pest h3 { margin: 0 0 0.4rem; }
.pv-pest p { margin: 0; font-size: 0.95rem; color: var(--wp--preset--color--base-500); }
.pv-pest .pv-pest-link { margin-top: 0.8rem; font-weight: 700; font-size: 0.9rem; }
.pv-pest .pv-pest-link a { text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--brand-600); }
.pv-pest--featured { border-color: var(--wp--preset--color--base-900); }
@media (hover: none) {
	.pv-pest .wp-block-image img { filter: none; }
}

/* Post type cards (featured image version of the pest/property cards) */
.pv-pest .wp-block-post-featured-image, .pv-property .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.pv-pest .wp-block-post-featured-image img {
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.35s ease, transform 0.35s ease;
}
.pv-pest:hover .wp-block-post-featured-image img, .pv-pest:focus-within .wp-block-post-featured-image img {
	filter: none;
	transform: scale(1.05);
}
@media (hover: none) {
	.pv-pest .wp-block-post-featured-image img { filter: none; }
}
.pv-loop .wp-block-post-template { margin: 0; padding: 0; gap: 1.5rem; }
.pv-loop--pv_service .wp-block-post-template > li:first-child .pv-pest { border-color: var(--wp--preset--color--base-900); }
.pv-pest .wp-block-post-title, .pv-property .wp-block-post-title { margin: 0 0 0.4rem; font-size: 1.3rem; }
.pv-pest .wp-block-post-title a, .pv-property .wp-block-post-title a { text-decoration: none; }
.pv-pest .wp-block-post-excerpt, .pv-property .wp-block-post-excerpt { margin: 0; }
.pv-pest .wp-block-post-excerpt__excerpt, .pv-property .wp-block-post-excerpt__excerpt { margin: 0; font-size: 0.95rem; color: var(--wp--preset--color--base-500); }
.wp-block-post-excerpt__more-text { margin: 0.8rem 0 0; font-weight: 700; font-size: 0.9rem; }
.wp-block-post-excerpt__more-link { color: var(--wp--preset--color--base-900); text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--brand-600); }

/* Single service / customer type pages */
.pv-back { font-weight: 700; font-size: 0.9rem; }
.pv-back a { color: inherit; text-decoration: none; }
.pv-band h1 { color: #fff; }
.pv-single-img { margin: 0 0 1.5rem; border-radius: 16px; overflow: hidden; }
.pv-entry h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.pv-entry li { margin-bottom: 0.35rem; }
.pv-cta-card { border-radius: 16px; padding: 1.5rem; position: sticky; top: 110px; }

/* Property cards */
.pv-property { border-radius: 16px; overflow: hidden; background: var(--wp--preset--color--base-0); height: 100%; }
.pv-property .wp-block-image { margin: 0; }
.pv-property .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pv-property .pv-property-body { padding: 1rem 1.2rem 1.3rem; }
.pv-property h3 { margin: 0 0 0.35rem; }
.pv-property p { margin: 0; font-size: 0.95rem; color: var(--wp--preset--color--base-500); }

/* Why choose us */
.pv-fact { border-top: 3px solid var(--wp--preset--color--brand); padding-top: 1rem; }
.pv-fact h3 { color: #fff; margin: 0 0 0.35rem; }
.pv-fact p { margin: 0; color: var(--wp--preset--color--base-200); font-size: 0.95rem; }

/* Areas */
.pv-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.pv-chips li {
	background: var(--wp--preset--color--base-0);
	border: 1px solid var(--wp--preset--color--base-200);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-weight: 600;
	font-size: 0.95rem;
}
.pv-chips li.is-main { background: var(--wp--preset--color--brand); border-color: var(--wp--preset--color--brand); }

/* FAQ */
.pv-faq details {
	border-bottom: 1px solid var(--wp--preset--color--base-200);
	padding: 1rem 0;
}
.pv-faq summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
}
.pv-faq details p { margin: 0.6rem 0 0; color: var(--wp--preset--color--base-500); }

/* Contact */
.pv-contact-card { background: var(--wp--preset--color--base-0); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); }
.pv-map iframe { width: 100%; height: 280px; border: 0; border-radius: 12px; display: block; }

/* Footer */
.pv-footer-links { list-style: none; padding: 0; }
.pv-footer-links li { margin-bottom: 0.35rem; }
.pv-footer a { text-decoration: none; }
.pv-footer a:hover { color: var(--wp--preset--color--brand); }

/* Floating WhatsApp / Call buttons: left side on desktop, bottom bar on phones */
.pv-float {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pv-float__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem 0.7rem 0.9rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}
.pv-float__btn:hover { transform: translateY(-2px); }
.pv-float__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-float__btn--wa { background: var(--wp--preset--color--whatsapp); color: #fff; }
@media (min-width: 601px) {
	.pv-float__btn { width: 56px; height: 56px; padding: 0; justify-content: center; }
	.pv-float__btn svg { width: 24px; height: 24px; }
	.pv-float__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pv-float__btn--call { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--base-900); }
@media (max-width: 600px) {
	.pv-float { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; }
	.pv-float__btn { flex: 1; justify-content: center; border-radius: 0; padding: 0.95rem; box-shadow: none; }
	body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pv-pest, .pv-pest .wp-block-image img, .pv-float__btn { transition: none; }
	.pv-pest:hover { transform: none; }
	.pv-pest:hover .wp-block-image img { transform: none; }
}
