/* ==========================================================================
   Plumb Doctor theme styles
   Mobile-first. Everything below 901px is the phone layout; the
   @media (min-width: 901px) blocks add the desktop layout on top.
   Colors/fonts come from theme.json presets (var(--wp--preset--...)).
   ========================================================================== */

:root {
	--pd-night: var(--wp--preset--color--night);
	--pd-lime: var(--wp--preset--color--lime);
	--pd-red: var(--wp--preset--color--plunger-red);
	--pd-red-text: var(--wp--preset--color--red-text);
	--pd-green-text: var(--wp--preset--color--green-text);
	--pd-ink: var(--wp--preset--color--ink);
	--pd-muted: var(--wp--preset--color--ink-muted);
	--pd-mist: var(--wp--preset--color--mist);
	--pd-line: #d5d9cf;
	--pd-heading: var(--wp--preset--font-family--heading);
	--pd-label: var(--wp--preset--font-family--label);
	--pd-wordmark: var(--wp--preset--font-family--wordmark);
	--pd-script: var(--wp--preset--font-family--script);
	--pd-gutter: clamp(16px, 4vw, 24px);
	--pd-section: clamp(48px, 7vw, 88px);
}

/* ---------- Base + utilities ---------- */
body { margin: 0; }
mark { background: none; color: inherit; padding: 0; }
img { max-width: 100%; height: auto; }
:where(a, button):focus-visible { outline: 3px solid var(--pd-lime); outline-offset: 2px; }
.pd-main { margin: 0; }
.pd-main > .wp-block-post-content > * { margin-block: 0; }
.pd-wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pd-gutter); box-sizing: border-box; }
.pd-center { text-align: center; }
.pd-img { margin: 0; }
.pd-img img { display: block; width: 100%; height: auto; }
.pd-eyebrow { margin: 0; font-family: var(--pd-label); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-green-text); }
.pd-eyebrow--red { color: var(--pd-red-text); }
.pd-eyebrow--white { color: #fff; }
.pd-script { margin: 0; font-family: var(--pd-script); font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.1; color: var(--pd-lime); }
.pd-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; }
.pd-accent { color: var(--pd-lime); }
.pd-accent-green { color: var(--pd-green-text); }

/* Phone vs desktop structure. Lazy images inside hidden blocks are never downloaded. */
@media (max-width: 900px) {
	.pd-desktop-only { display: none !important; }
	.pd-desktop-inline { display: none; }
	body { padding-bottom: 72px; } /* room for the sticky call bar */
}

/* ---------- Top bar + header ---------- */
.pd-topbar { padding-block: 6px; }
.pd-topbar-text { margin: 0; text-align: center; font-family: var(--pd-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pd-night); }
.pd-site-header { position: sticky; top: 0; z-index: 50; }
.pd-header { border-bottom: 4px solid var(--pd-lime); padding-block: 10px; }
.pd-header-row { gap: 16px; align-items: center; }
.pd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pd-brand img { width: 44px; height: 44px; }
.pd-wordmark { font-family: var(--pd-wordmark); font-size: 20px; line-height: 0.95; text-align: center; text-transform: uppercase; color: var(--pd-lime); -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.pd-header-phone { display: none; }
.pd-nav { font-family: var(--pd-wordmark); font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
.pd-nav a, .pd-nav .wp-block-navigation-item__content { color: var(--pd-lime); text-decoration: none; }
.pd-nav .wp-block-navigation__responsive-container-open { color: var(--pd-lime); border: 2px solid var(--pd-lime); border-radius: 6px; padding: 8px; }
.pd-nav .wp-block-navigation__responsive-container.is-menu-open { font-size: 20px; }
.pd-nav .wp-block-navigation__submenu-container { background: var(--pd-night) !important; border: 1px solid #2a2d29 !important; padding: 8px 0; min-width: 240px; }
.pd-nav .wp-block-navigation__submenu-container a { color: #fff; font-family: var(--wp--preset--font-family--body); font-weight: 700; text-transform: none; font-size: 16px; padding: 8px 16px; }

@media (min-width: 901px) {
	.pd-header { padding-block: 14px; }
	.pd-brand img { width: 56px; height: 56px; }
	.pd-wordmark { font-size: 26px; }
	.pd-header-phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--pd-red); color: #fff; text-decoration: none; font-family: var(--pd-label); font-weight: 700; font-size: 22px; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.pd-actions { gap: 12px; }
.pd-btn-red .wp-block-button__link { background: var(--pd-red); color: #fff; }
.pd-btn-lime .wp-block-button__link { background: var(--pd-lime); color: var(--pd-night); }
.wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.pd-hero { position: relative; overflow: hidden; color: #fff; padding-block: 40px 56px; }
.pd-hero-bg, .pd-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.pd-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,9,10,0.72) 0%, rgba(7,9,10,0.6) 55%, rgba(7,9,10,0.85) 100%); }
.pd-hero > .pd-wrap { position: relative; z-index: 2; }
.pd-hero-grid { gap: 28px; }
.pd-hero-title { margin: 8px 0 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.55); font-size: clamp(2.1rem, 6vw, 3.5rem); }
.pd-hero-lead { color: #e3e7de; font-size: 1.1rem; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.pd-hero-offers { font-size: 1rem; }
.pd-hero-offers a { color: var(--pd-lime); font-weight: 700; }
.pd-google-review { margin: 0; padding: 20px 22px; border-radius: 12px; background: #fff; color: #202124; box-shadow: 0 18px 40px rgba(0,0,0,0.45); font-family: Roboto, Arial, Helvetica, sans-serif; }
.pd-gr-head { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.pd-gr-head small { color: #70757a; }
.pd-gr-avatar { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #5e35b1; color: #fff; font-size: 19px; }
.pd-gr-stars { margin: 10px 0 6px; color: #fbbc04; font-size: 20px; letter-spacing: 2px; }
.pd-google-review blockquote { margin: 0; font-size: 1rem; line-height: 1.5; }
.pd-google-review figcaption { margin-top: 10px; font-size: 13px; color: #70757a; }
.pd-google-review figcaption a { color: #1a73e8; text-decoration: none; }
.pd-hero-awards { gap: 18px; margin-top: 18px; align-items: flex-end; }
.pd-award img { width: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
.pd-award--lg img { height: 150px; }
.pd-award--md img { height: 100px; }
.pd-award--sm img { height: 84px; }

@media (min-width: 901px) {
	.pd-hero { padding-block: 72px 80px; }
	.pd-hero::before { background: linear-gradient(90deg, rgba(7,9,10,0.62) 0%, rgba(7,9,10,0.48) 40%, rgba(7,9,10,0.15) 72%, rgba(7,9,10,0) 100%); }
	.pd-hero-grid { align-items: flex-end; gap: 48px; }
	.pd-google-review { transform: rotate(-1.5deg); max-width: 560px; margin-left: auto; }
	.pd-google-review blockquote { font-size: 1.125rem; }
	.pd-hero-awards { justify-content: flex-end; }
	.pd-award--lg img { height: 230px; }
	.pd-award--md img { height: 140px; }
	.pd-award--sm img { height: 112px; }
}

/* ---------- Why strip ---------- */
.pd-why { color: #fff; padding-block: 16px; }
.pd-why-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-family: var(--pd-label); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pd-why-list li::before { content: "✓ "; }
@media (min-width: 901px) { .pd-why-list { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 1.15rem; } }

/* ---------- Contact options ---------- */
.pd-contact { padding-block: var(--pd-section); }
.pd-contact h2 mark { color: var(--pd-green-text); }
.pd-contact-grid { gap: 32px; }
.pd-checks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-weight: 700; }
.pd-checks li::before { content: "✓ "; color: var(--pd-green-text); }
.pd-price-line { padding-top: 14px; border-top: 1px solid var(--pd-line); font-family: var(--pd-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pd-red-text); }
.pd-cta-stack { flex-direction: column; align-items: stretch; gap: 12px; }
.pd-cta-stack .wp-block-button { width: 100%; }
.pd-cta .wp-block-button__link { width: 100%; box-sizing: border-box; justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 24px; text-transform: none; text-align: left; border: 2px solid transparent; }
.pd-cta .wp-block-button__link strong { font-size: 1.35rem; text-transform: uppercase; }
.pd-cta .wp-block-button__link small { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 0.85rem; opacity: 0.85; }
.pd-cta--red .wp-block-button__link { background: var(--pd-red); color: #fff; }
.pd-cta--lime .wp-block-button__link { background: var(--pd-lime); color: var(--pd-night); }
.pd-cta--white .wp-block-button__link { background: #fff; color: var(--pd-night); border-color: var(--pd-night); }
.pd-cta--outline .wp-block-button__link { background: transparent; color: var(--pd-ink); border-color: var(--pd-green-text); }
.pd-cta--ghost .wp-block-button__link { background: transparent; color: var(--pd-ink); border-color: #c9cfc2; }
@media (min-width: 901px) { .pd-contact-grid { gap: 72px; align-items: center; } }

/* ---------- Services (problem / treatment cards) ---------- */
.pd-services { color: #fff; padding-block: var(--pd-section); }
.pd-services h2 { color: #fff; margin: 8px 0 0; }
.pd-services .pd-lead { color: #fff; max-width: 760px; }
.pd-rx-grid { gap: 12px; margin-top: 24px; }
.pd-rx-card { margin: 0; color: var(--pd-ink); background: var(--pd-mist); border: 1px solid var(--pd-line); border-radius: 10px; overflow: hidden;
	/* Phone: compact row with a small diagram thumbnail */
	display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-content: center; }
.pd-rx-card > * { margin: 0; grid-column: 2; }
.pd-rx-card > .pd-rx-img { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; }
.pd-rx-img img { height: 100%; object-fit: cover; border-right: 4px solid var(--pd-night); }
.pd-rx-label { font-family: var(--pd-label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 10px; }
.pd-rx-label--problem { color: var(--pd-red-text); }
.pd-rx-label--treatment { color: var(--pd-green-text); }
.pd-rx-problem { font-family: var(--pd-heading); font-weight: 800; font-size: 1rem; line-height: 1.3; }
.pd-rx-name { font-family: var(--pd-label); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.pd-rx-name a { color: inherit; text-decoration: none; }
.pd-rx-more a { font-weight: 700; font-size: 0.95rem; color: var(--pd-green-text); }
.pd-rx-divider, .pd-rx-line, .pd-rx-card > .pd-rx-label--treatment { display: none; }
.pd-rx-more { padding-bottom: 10px; }
@media (min-width: 901px) {
	.pd-rx-grid { gap: 20px; }
	.pd-rx-card { display: flex; flex-direction: column; }
	.pd-rx-card > * { padding-inline: 22px; }
	.pd-rx-card > .pd-rx-img { padding: 0; }
	.pd-rx-img img { border-right: 0; border-bottom: 4px solid var(--pd-night); aspect-ratio: 5 / 3; }
	.pd-rx-label { padding-top: 16px; }
	.pd-rx-problem { font-size: 1.15rem; }
	.pd-rx-divider { display: block; border: 0; border-top: 2px dashed #c9cfc2; margin: 14px 22px 0 !important; width: auto; }
	.pd-rx-card > .pd-rx-label--treatment, .pd-rx-line { display: block; }
	.pd-rx-name { font-size: 1.6rem; }
	.pd-rx-line { flex: 1; color: var(--pd-muted); font-size: 1rem; line-height: 1.5; margin-top: 6px; }
	.pd-rx-more { padding-block: 10px 22px; }
}

/* ---------- Family + service areas ---------- */
.pd-family { padding-block: var(--pd-section); }
.pd-family h2 mark { color: var(--pd-green-text); }
.pd-family-grid { gap: 28px; margin-top: 24px; align-items: stretch; }
.pd-family-grid > .wp-block-column { display: flex; flex-direction: column; gap: 16px; }
.pd-photo { margin: 0; }
.pd-photo img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.pd-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-photo-pair img { height: 140px; }
.pd-social-box { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 10px; background: var(--pd-night); color: #c9cfc2; }
.pd-social-box h3 { margin: 0; color: #fff; }
.pd-social .wp-block-button__link { min-height: 46px; padding: 0 20px; font-size: 1.1rem; }
.pd-social--fb .wp-block-button__link { background: #1877f2; color: #fff; }
.pd-social--ig .wp-block-button__link { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.pd-social--nd .wp-block-button__link { background: #8ed500; color: var(--pd-night); }
.pd-feed-slot { flex: 1; min-height: 240px; border-top: 1px solid #3a3d38; }
.pd-map-box { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; border: 10px solid var(--pd-night); border-radius: 18px; background-color: #fff; background-image: radial-gradient(#d5d9cf 1.2px, transparent 1.2px); background-size: 18px 18px; box-shadow: 10px 10px 0 var(--pd-lime); }
.pd-map { width: 100%; height: 100%; max-height: 980px; }
.pd-areas-line { font-size: 1.05rem; line-height: 1.7; color: var(--pd-muted); }
@media (min-width: 901px) {
	.pd-family-grid { gap: 64px; }
	.pd-photo--big img { height: 230px; }
	.pd-photo-pair img { height: 130px; }
}

/* ---------- Reviews ---------- */
.pd-reviews { color: #fff; padding-block: var(--pd-section); }
.pd-reviews h2 { color: #fff; max-width: 820px; margin-inline: auto; }
.pd-review-card { max-width: 820px; margin: 24px auto; padding: 28px; border: 0; border-radius: 10px; background: #fff; color: var(--pd-ink); box-shadow: 10px 10px 0 var(--pd-lime); text-align: center; }
.pd-review-card p:first-child { color: #f5b400; font-size: 1.5rem; letter-spacing: 4px; margin: 0; }
.pd-review-card p { font-family: var(--pd-heading); font-weight: 800; font-size: 1.25rem; line-height: 1.5; }
.pd-review-card cite { font-family: var(--pd-label); font-weight: 700; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pd-muted); }
.pd-voted { font-family: var(--pd-label); font-weight: 800; font-style: italic; font-size: 1.3rem; text-transform: uppercase; }

/* ---------- Offers ---------- */
.pd-offers { padding-block: 56px; }
.pd-offer-grid { gap: 16px; }
.pd-offer { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--pd-line); display: flex; flex-direction: column; gap: 6px; }
.pd-offer h3 { margin: 0; font-family: var(--pd-label); font-size: 1.5rem; text-transform: uppercase; }
.pd-offer p { margin: 0; color: var(--pd-muted); }
.pd-offer-link a { font-weight: 700; color: var(--pd-green-text); }
.pd-offer--dark { background: var(--pd-night); border-color: var(--pd-night); color: #fff; }
.pd-offer--dark h3 { color: #fff; }
.pd-offer--dark p { color: #b8bdb2; }
.pd-offer-big { font-family: var(--pd-heading); font-size: 3.5rem !important; line-height: 1; color: var(--pd-lime) !important; }
.pd-brands { margin-top: 18px; color: var(--pd-muted); }

/* ---------- Closing call band ---------- */
.pd-closing { color: #fff; padding-block: 56px; }
.pd-closing h2 { color: #fff; margin: 0; }
.pd-closing p { color: #c9cfc2; }
.pd-cta-row { align-items: center; gap: 24px; }

/* ---------- Footer ---------- */
.pd-footer { color: #c9cfc2; border-top: 4px solid var(--pd-lime); padding-top: 56px; font-size: 1rem; }
.pd-foot-grid { gap: 32px 24px; }
.pd-foot-brand { display: flex; flex-direction: column; gap: 14px; }
.pd-foot-brand .pd-brand img { width: 56px; height: 56px; }
.pd-foot-blurb { margin: 0; }
.pd-foot-social { display: flex; gap: 10px; }
.pd-foot-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pd-lime); color: var(--pd-lime); font-family: var(--pd-label); font-weight: 700; text-decoration: none; }
.pd-foot-social-link:hover { background: var(--pd-lime); color: var(--pd-night); }
.pd-foot-h { margin: 0 0 6px; font-family: var(--pd-label); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-lime); }
.pd-foot-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pd-footer a { color: #c9cfc2; text-decoration: none; }
.pd-footer a:hover { color: var(--pd-lime); }
.pd-foot-phone a { color: #fff !important; font-family: var(--pd-label); font-weight: 700; font-size: 1.8rem; }
.pd-foot-bottom { margin-top: 40px; padding-block: 20px 24px; border-top: 1px solid #2a2d29; font-size: 0.875rem; color: #8b9184; }
.pd-foot-bottom p { margin: 0; }
@media (max-width: 900px) {
	/* Phone footer stays short: brand + contact only. Link lists live in the menu. */
	.pd-foot-nav { display: none; }
}

/* ---------- Mobile sticky call bar ---------- */
.pd-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--pd-night); border-top: 2px solid var(--pd-lime); }
.pd-mobilebar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-family: var(--pd-label); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; text-decoration: none; }
.pd-mobilebar-call { background: var(--pd-red); color: #fff; }
.pd-mobilebar-text { background: var(--pd-lime); color: var(--pd-night); }
@media (min-width: 901px) { .pd-mobilebar { display: none; } }

/* ---------- Generic pages ---------- */
.pd-page { padding-block: 48px 72px; }

/* ---------- Link colors inside light sections ---------- */
.pd-areas-line a, .pd-contact a { color: var(--pd-green-text); font-weight: 700; }
/* Fallback width for header/footer rows (block layout also constrains these). */
.pd-header > *, .pd-topbar > *, .pd-footer > * { max-width: 1200px; margin-inline: auto !important; }
