/*
Theme Name: Quality Plumbing & Heating
Theme URI: https://www.qph.com/
Author: The Web Guys
Author URI: https://www.the-web-guys.com/
Description: Custom WordPress theme for Quality Plumbing & Heating Inc. (Kokomo & Indianapolis, IN). Built from the approved Viktor Space staging design. Business details live in inc/config.php and Settings > Site Settings; forms in Settings > Site Forms.
Version: 1.1.19
Requires PHP: 7.4
Text Domain: qph
*/

/* Compiled design system lives in assets/css/site.css. Add overrides below. */

/* Service-area map: Google My Maps embed with the My Maps header bar cropped off. */
.qph-map {
	position: relative;
	height: 100%;
	width: 100%;
	min-height: 22rem;
	overflow: hidden;
}
.qph-map iframe {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: calc(100% + 72px);
	margin-top: -72px;
	border: 0;
}

/* Editor / blog prose */
.qph-prose > * + * { margin-top: 1.1em; }
.qph-prose h2, .qph-prose h3, .qph-prose h4 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; color: #08325c; line-height: 1.1; }
.qph-prose h2 { font-size: 2rem; margin-top: 2em; }
.qph-prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.qph-prose p, .qph-prose li { font-size: 1.0625rem; line-height: 1.7; }
.qph-prose a { color: #08325c; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.qph-prose a:hover { color: #ec1c24; }
.qph-prose ul { list-style: disc; padding-left: 1.5rem; }
.qph-prose ol { list-style: decimal; padding-left: 1.5rem; }
.qph-prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.qph-prose blockquote { border-left: 4px solid #ec1c24; padding-left: 1.25rem; font-style: italic; }

/* WordPress adds width/height to Media Library images inside post content. */
.qph-prose img { height: auto; }

/* Gravity Forms (Orbital theme) brand variables */
.gform_wrapper.gform-theme {
	--gf-color-primary: #ec1c24;
	--gf-color-primary-rgb: 236, 28, 36;
	--gf-color-primary-contrast: #ffffff;
	--gf-color-primary-darker: #c8141b;
	--gf-ctrl-btn-bg-color-primary: #ec1c24;
	--gf-ctrl-btn-bg-color-hover-primary: #c8141b;
	--gf-ctrl-btn-border-color-primary: #ec1c24;
	--gf-ctrl-btn-color-primary: #ffffff;
	--gf-ctrl-btn-font-family: "Anton", Impact, sans-serif;
	--gf-ctrl-btn-font-weight: 400;
	--gf-ctrl-btn-letter-spacing: 0.02em;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-radius: 0.375rem;
	--gf-ctrl-label-color-primary: #08325c;
	--gf-ctrl-label-font-weight: 700;
	--gf-ctrl-border-color: #dbdbdb;
	--gf-ctrl-border-color-focus: #08325c;
	--gf-ctrl-radius: 0.375rem;
	--gf-font-size-primary: 1rem;
}
.gform_wrapper.gform-theme .gform_footer button,
.gform_wrapper.gform-theme .gform_footer input[type="submit"] {
	background: #ec1c24 !important;
	border-color: #ec1c24 !important;
	color: #fff !important;
	font-family: "Anton", Impact, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 1rem 2rem;
	border-radius: 0.375rem;
}

/* Multi-step forms (Careers): progress bar, page navigation, sections, choices */
.gform_wrapper.gform-theme .gf_progressbar_wrapper { margin-bottom: 1.75rem; }
.gform_wrapper.gform-theme .gf_progressbar_title { font-family: "Anton", Impact, sans-serif; font-size: 1.125rem; letter-spacing: 0.02em; text-transform: uppercase; color: #08325c; margin: 0 0 0.6rem; }
.gform_wrapper.gform-theme .gf_progressbar { background: #f4f8fc; border: 1px solid #dbdbdb; border-radius: 999px; height: 0.875rem; padding: 0; overflow: hidden; }
.gform_wrapper.gform-theme .gf_progressbar_percentage { background: #ec1c24 !important; border-radius: 999px; height: 100%; font-size: 0; }
.gform_wrapper.gform-theme .gform_page_footer { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-start; margin-top: 1.5rem; }
.gform_wrapper.gform-theme .gform_page_footer .gform_next_button,
.gform_wrapper.gform-theme .gform_page_footer .gform_button,
.gform_wrapper.gform-theme .gform_page_footer .gform_previous_button {
	font-family: "Anton", Impact, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 1rem 2rem;
	border-radius: 0.375rem;
	border: 2px solid #ec1c24 !important;
	background: #ec1c24 !important;
	color: #fff !important;
	cursor: pointer;
}
.gform_wrapper.gform-theme .gform_page_footer .gform_previous_button {
	background: transparent !important;
	border-color: #08325c !important;
	color: #08325c !important;
}
.gform_wrapper.gform-theme .gform_page_footer .gform_previous_button:hover { background: #08325c !important; color: #fff !important; }
.gform_wrapper.gform-theme .gform_page_footer .gform_next_button:hover,
.gform_wrapper.gform-theme .gform_page_footer .gform_button:hover { background: #c8141b !important; border-color: #c8141b !important; }
.gform_wrapper.gform-theme .gsection { border-bottom: 2px solid #dbdbdb; padding-bottom: 0.5rem; margin-top: 0.75rem; }
.gform_wrapper.gform-theme .gsection .gsection_title { font-family: "Anton", Impact, sans-serif; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; color: #08325c; }
.gform_wrapper.gform-theme .gfield--type-radio .gfield_radio { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.gform_wrapper.gform-theme .gfield--type-radio .gchoice label { font-weight: 600; color: #08325c; }
@media (max-width: 40rem) {
	.gform_wrapper.gform-theme .gform_page_footer .gform_next_button,
	.gform_wrapper.gform-theme .gform_page_footer .gform_button,
	.gform_wrapper.gform-theme .gform_page_footer .gform_previous_button { width: 100%; text-align: center; }
}

/* File-upload "Select files" button: brand navy instead of the plugin blue */
.gform_wrapper.gform-theme .gform_button_select_files { background: #08325c !important; border-color: #08325c !important; color: #fff !important; font-family: "Anton", Impact, sans-serif !important; text-transform: uppercase; letter-spacing: 0.02em; }
.gform_wrapper.gform-theme .gform_button_select_files:hover { background: #ec1c24 !important; border-color: #ec1c24 !important; }

/* Editor-only placeholder for empty slots */
.qph-slot-placeholder { border: 2px dashed rgba(8, 50, 92, 0.4); border-radius: 0.5rem; padding: 3rem 1.5rem; text-align: center; background: #fff; }

/* ---------------------------------------------------------------- Blog (TWG layout) */
.qph-blog { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .qph-blog { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; } }
.qph-blog__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 40rem) { .qph-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .qph-blog__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qph-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 0.5rem; border: 1px solid rgba(219, 219, 219, 0.8); background: #fff; }
.qph-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-qph-mist, #f4f8fc); }
.qph-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.qph-card:hover .qph-card__img { transform: scale(1.03); }
.qph-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.5rem; }
.qph-card__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0; font-size: 0.8125rem; color: rgba(63, 74, 88, 0.85); }
.qph-card__cat { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-qph-red, #ec1c24); }
.qph-card__cat:hover { color: var(--color-qph-navy, #08325c); }
.qph-card__title { margin: 0.75rem 0 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--color-qph-navy, #08325c); }
.qph-card__title a:hover { color: var(--color-qph-red, #ec1c24); }
.qph-card__excerpt { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-qph-body, #3f4a58); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qph-card__more { margin-top: auto; padding-top: 1.25rem; font-size: 0.9375rem; color: var(--color-qph-red, #ec1c24); }
.qph-card__more:hover { color: var(--color-qph-navy, #08325c); }
.qph-blog__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.qph-blog__pages .page-numbers { display: inline-block; padding: 0.5rem 1rem; border-radius: 0.375rem; border: 1px solid var(--color-qph-grey, #dbdbdb); color: var(--color-qph-navy, #08325c); font-size: 0.9375rem; }
.qph-blog__pages .page-numbers.current { background: var(--color-qph-navy, #08325c); border-color: var(--color-qph-navy, #08325c); color: #fff; }
.qph-blog__pages a.page-numbers:hover { border-color: var(--color-qph-navy, #08325c); }
.qph-blog__empty { padding: 3rem 1.5rem; text-align: center; border-radius: 0.5rem; border: 1px solid rgba(219, 219, 219, 0.8); background: var(--color-qph-mist, #f4f8fc); }
.qph-blog__empty .qph-display { font-size: 1.5rem; color: var(--color-qph-navy, #08325c); }
.qph-blog__empty p + p { margin-top: 0.75rem; font-size: 0.9375rem; }

.qph-side { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 64rem) { .qph-side { position: sticky; top: 7rem; } }
.qph-side__box { padding: 1.5rem; border-radius: 0.5rem; border: 1px solid rgba(219, 219, 219, 0.8); background: #fff; }
.qph-side__title { margin: 0 0 1rem; font-size: 1.125rem; color: var(--color-qph-navy, #08325c); }
.qph-side__search { display: flex; border: 1px solid var(--color-qph-grey, #dbdbdb); border-radius: 0.375rem; overflow: hidden; }
.qph-side__search input[type="search"] { flex: 1 1 auto; min-width: 0; border: 0; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.9375rem; color: var(--color-qph-body, #3f4a58); background: #fff; }
.qph-side__search input[type="search"]:focus { outline: 2px solid var(--color-qph-navy, #08325c); outline-offset: -2px; }
.qph-side__search button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; border: 0; background: var(--color-qph-red, #ec1c24); color: #fff; cursor: pointer; }
.qph-side__search button:hover { background: var(--color-qph-red-dark, #c8161d); }
.qph-side__cats { list-style: none; margin: 0; padding: 0; }
.qph-side__cats li + li { border-top: 1px solid rgba(219, 219, 219, 0.7); }
.qph-side__cats a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; font-size: 0.9375rem; font-weight: 600; color: var(--color-qph-navy, #08325c); }
.qph-side__cats a:hover, .qph-side__cats a[aria-current="page"] { color: var(--color-qph-red, #ec1c24); }
.qph-side__cats a span { font-weight: 500; color: rgba(63, 74, 88, 0.75); }
.qph-side__recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.qph-side__recent a { display: flex; gap: 0.85rem; align-items: center; color: var(--color-qph-navy, #08325c); }
.qph-side__recent a:hover strong { color: var(--color-qph-red, #ec1c24); }
.qph-side__recent img { flex: 0 0 4.5rem; width: 4.5rem; height: 3.25rem; object-fit: cover; border-radius: 0.25rem; }
.qph-side__recent strong { display: block; font-size: 0.9rem; line-height: 1.35; font-weight: 700; }
.qph-side__recent time { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: rgba(63, 74, 88, 0.75); }
.qph-side__cta { padding: 1.75rem; border-radius: 0.5rem; background: var(--color-qph-navy, #08325c); color: #fff; }
.qph-side__cta .qph-eyebrow { color: #ff5b61; }
.qph-side__cta h2 { margin: 0.5rem 0 0; font-size: 1.5rem; color: #fff; }
.qph-side__cta p + p, .qph-side__cta h2 + p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.qph-side__cta > a { margin-top: 1.25rem; width: 100%; }

.qph-crumbs { margin-bottom: 1.25rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.85); }
.qph-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.qph-crumbs li + li::before { content: "›"; margin-right: 0.35rem; opacity: 0.7; }
.qph-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.qph-crumbs a:hover { color: var(--color-qph-grey, #dbdbdb); }
.qph-crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; display: inline-block; vertical-align: bottom; }

.qph-post { background: #fff; padding: 3.5rem 0 4rem; }
@media (min-width: 64rem) { .qph-post { padding: 5rem 0; } }
.qph-post__body { max-width: 46rem; margin: 0 auto; }
.qph-post__body .qph-post-img, .qph-post__body img { display: block; max-width: 100%; height: auto; margin: 2rem auto; border-radius: 0.5rem; }
.qph-post__tags { list-style: none; max-width: 46rem; margin: 2.5rem auto 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qph-post__tags a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--color-qph-grey, #dbdbdb); font-size: 0.8125rem; font-weight: 600; color: var(--color-qph-navy, #08325c); }
.qph-post__tags a:hover { border-color: var(--color-qph-navy, #08325c); }
.qph-post__back { max-width: 46rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(219, 219, 219, 0.8); font-size: 0.9375rem; }
.qph-post__back a { color: var(--color-qph-red, #ec1c24); }
.qph-post__back a:hover { color: var(--color-qph-navy, #08325c); }
.qph-related { padding: 3.5rem 0 4rem; background: var(--color-qph-mist, #f4f8fc); }
@media (min-width: 64rem) { .qph-related { padding: 5rem 0; } }
.qph-related h2.qph-display { margin: 0.5rem 0 2rem; font-size: 2rem; color: var(--color-qph-navy, #08325c); }

/* Footer bottom bar: legal links + TWG credit with logo */
.qph-legal-links { display: inline-flex; gap: 0.25rem 0.75rem; flex-wrap: wrap; margin-left: 0.5rem; }
.qph-legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.qph-twg-credit { display: inline-flex; align-items: center; gap: 0.4rem; }
.qph-twg-credit img { width: auto; height: 1.75rem; padding: 0.15rem 0.3rem; background: #fff; border-radius: 0.25rem; }
.qph-twg-credit__text span { white-space: nowrap; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* Logo leads the credit line (Peyton, 2026-10-21). */
/* More room above the credit line; on mobile the logo stacks above centered text (Peyton, 2026-10-21). */
.qph-twg-credit { margin-top: 0.75rem; }
@media (max-width: 63.999rem) {
  .qph-twg-credit { flex-direction: column; gap: 0.5rem; }
  .qph-twg-credit__text { text-align: center; }
}
@media (min-width: 64rem) { .qph-twg-credit__text { text-align: left; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* WCAG AA contrast for small red text (Stage 14 #33). Brand red #ec1c24 is 4.41:1 on white and
   2.93:1 on navy; 12px eyebrows and the utility-bar phone use an AA-safe shade instead. Buttons keep brand red. */
.qph-eyebrow.text-qph-red { color: #c8161d; }
.bg-qph-navy .qph-eyebrow.text-qph-red, .bg-qph-onyx .qph-eyebrow.text-qph-red, .qph-side__cta .qph-eyebrow { color: #ff8a8e; }
[data-qph-header] .bg-qph-navy .text-qph-red { color: #ff8a8e; }

/* Footer contact card: muted "See All Locations" link under the phone line (Peyton, 2026-10-21).
   #5d6878 = 5.6:1 on white (AA). */
.qph-footer-locations { margin-top: 0.25rem; line-height: 1.5; }
.qph-footer-locations a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9375rem; font-weight: 600; color: #5d6878; text-decoration: underline; text-decoration-color: rgba(93, 104, 120, 0.4); text-underline-offset: 3px; transition: color 0.15s, text-decoration-color 0.15s; }
.qph-footer-locations a:hover, .qph-footer-locations a:focus-visible { color: var(--color-qph-navy, #08325c); text-decoration-color: currentColor; }
.qph-footer-locations svg { flex-shrink: 0; transition: transform 0.15s; }
.qph-footer-locations a:hover svg { transform: translateX(2px); }

/* Footer sitemap columns: tight line-height inside each link so wrapped items read as one link,
   bigger gap between items (Peyton, 2026-10-21). Was leading 1.4 + 0.625rem gap. */
.qph-footer-links { display: flex; flex-direction: column; gap: 0.875rem; }
.qph-footer-links a { display: inline-block; line-height: 1.2; }

/* v1.1.14: TWG blog standard (categories drop-down, single-post sidebar + share links) */
.qph-side__catform { display: flex; gap: 0.5rem; }
.qph-side__catform select { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-qph-grey, #dbdbdb); border-radius: 0.375rem; background: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--color-qph-navy, #08325c); }
.qph-side__catform select:focus-visible { outline: 2px solid var(--color-qph-red, #ec1c24); outline-offset: 2px; }
.qph-side__catform button { padding: 0 1rem; border-radius: 0.375rem; background: var(--color-qph-red, #ec1c24); color: #fff; }
.qph-blog--single .qph-post__body, .qph-blog--single .qph-post__tags, .qph-blog--single .qph-post__back, .qph-blog--single .qph-share { max-width: 46rem; margin-left: 0; margin-right: 0; }
.qph-share { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.qph-share__label { margin: 0; font-size: 1rem; letter-spacing: 0.03em; color: var(--color-qph-navy, #08325c); }
.qph-share ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.qph-share a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--color-qph-navy, #08325c); color: #fff; transition: background-color 0.2s; }
.qph-share a:hover, .qph-share a:focus-visible { background: var(--color-qph-red, #ec1c24); }

/* v1.1.14 (Stage 14 r2 B1): 1024-1279 px header + footer card fit (no overlap, no sideways scroll) */
@media (min-width: 64rem) and (max-width: 79.999rem) {
	[data-header-row] { gap: 0.5rem; }
	[data-desktop-nav] [data-nav-item] > a, [data-desktop-nav] [data-nav-item] > button { padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.875rem; }
	[data-header-cta] a { padding-left: 1rem; padding-right: 1rem; font-size: 0.875rem; }
	.qph-footer-ctas { flex-direction: column; width: auto; }
}

/* v1.1.15 (Stage 14 r2 B15): Google review snapshot in place of the unconnected GHL widget */
.qph-rev { color: var(--color-qph-body, #3f4a58); }
.qph-rev__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 0.5rem 0.5rem 1.25rem; border-bottom: 1px solid rgba(219, 219, 219, 0.8); }
.qph-rev__score { display: flex; align-items: center; gap: 0.85rem; }
.qph-rev__avg { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1.75rem; line-height: 1; color: var(--color-qph-navy, #08325c); }
.qph-rev__avg strong { font-family: Anton, sans-serif; font-weight: 400; }
.qph-rev__src { margin: 0.3rem 0 0; font-size: 0.875rem; }
.qph-rev__stars { display: inline-flex; gap: 1px; color: #f5a623; }
.qph-rev__links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.qph-rev__links a { display: inline-flex; align-items: center; padding: 0.7rem 1.1rem; border-radius: 0.375rem; border: 2px solid var(--color-qph-navy, #08325c); font-size: 0.9375rem; letter-spacing: 0.02em; color: var(--color-qph-navy, #08325c); transition: background-color 0.2s, color 0.2s; }
.qph-rev__links a:hover { background: var(--color-qph-navy, #08325c); color: #fff; }
.qph-rev__links a.qph-rev__write { background: var(--color-qph-red, #ec1c24); border-color: var(--color-qph-red, #ec1c24); color: #fff; }
.qph-rev__links a.qph-rev__write:hover { background: var(--color-qph-navy, #08325c); border-color: var(--color-qph-navy, #08325c); }
.qph-rev__list { list-style: none; margin: 1.25rem 0 0; padding: 0 0 0.5rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.qph-rev__card { flex: 0 0 min(19rem, 82%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: 0.5rem; background: var(--color-qph-mist, #f4f8fc); border: 1px solid rgba(219, 219, 219, 0.7); }
.qph-rev__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; }
.qph-rev__text { margin: 0; flex: 1; font-size: 0.9375rem; line-height: 1.6; }
.qph-rev__name { margin: 0; font-weight: 700; color: var(--color-qph-navy, #08325c); }
.qph-rev--grid .qph-rev__list { display: grid; overflow: visible; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .qph-rev--grid .qph-rev__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .qph-rev--grid .qph-rev__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
