/*
Theme Name: Emergency Plumber Tempe
Theme URI: https://emergencyplumberstempe.com
Author: Demo conversion from RankLocal static site
Author URI: https://emergencyplumberstempe.com
Description: Demo WordPress theme converted from the RankLocal static HTML site for Emergency Plumber Tempe, Tempe AZ. Pantheon demo only. Homepage design, navigation, phone +1 (480) 867-7503 and footer are preserved from the original. Forms are demo placeholders and are not connected to any endpoint yett
Version: 1.10.99
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tempe-plumber
*/

/* Demo visibility guard: the original static site used scroll-reveal
   helpers that could leave below-fold sections hidden. For the demo,
   keep animated elements visible. */
[data-aos], [data-sal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.page-content {
    padding: 2rem 0 3rem;
}

.page-content h1 {
    margin-bottom: 1rem;
}

.demo-form-note {
    background: #fff8e1;
    border: 1px solid #f0c36d;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

/* v1.4 blog cards: restored from the original static blog page, whose
   card CSS lived in an inline <style> in blog/index.html, not in
   global.css. Without this, the archive fell back to huge global H2s. */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-media {
    height: 210px;
    background-size: cover;
    background-position: center;
}

.blog-card-body {
    padding: 1.6rem;
}

.blog-card-tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
}

.blog-card-date {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-top: .35rem;
}

.post-meta {
    font-size: .9rem;
    color: var(--muted);
    margin: .5rem 0 1rem;
}

/* v1.10.97: the hero is dark with white copy, so the post date inside
   .location-hero-copy needs a light colour with a dark text shadow. */
.location-hero-copy .post-meta {
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.blog-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: .6rem 0 .7rem;
    color: var(--ink);
}

.blog-card p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0 0 1rem;
}

.blog-card-more {
    font-weight: 600;
    color: var(--orange);
}

.blog-pagination {
    margin-top: 2rem;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: .5rem .9rem;
    margin: 0 .25rem;
    color: var(--orange);
    text-decoration: none;
}

.blog-pagination .page-numbers.current {
    color: var(--ink);
    font-weight: 700;
}

/* v1.10.8: balanced footer — 4 footer columns + separated social links.
   (The old footer-social div had no spacing rule, so names ran together.) */
/* v1.10.91: footer social buttons 40px to 52px, glyphs 20px to 28px, orange circles, links and order unchanged; Quora tail fixed in footer.php. */
/* v1.10.13: Locations column replaced by Legal column; social row is now
   circular icon badges only (no visible platform names). */
.footer-main {
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
}
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.footer-social-links a {
    color: var(--white);
    white-space: nowrap;
}
/* v1.10.18: social icons medium (50px), orange with white logo, hover reverse; visit icons orange. */
/* v1.10.18 add-on: smooth hover shrink (scale 0.92) for a premium feel, colour reverse kept. */
.footer-visit-line svg { color: var(--orange); flex: 0 0 auto; }
.footer-social-links a.footer-social-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--white);
    text-decoration: none;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.footer-social-links a.footer-social-icon:hover,
.footer-social-links a.footer-social-icon:focus-visible {
    background: var(--white);
    border-color: var(--white);
    color: var(--orange);
    transform: scale(0.92);
}
.footer-social-links a.footer-social-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}
/* v1.10.19: visible gap above the footer (section above sat too close). */
/* v1.10.20: social icons smaller (40px) — user said 50px circles still too big. */
.site-footer { margin-top: 48px; }
/* v1.10.21: plain intro sections (v1.10.0 competitor-gap / stub sections,
   e.g. "Sewer Camera Inspection in Tempe") get one shared design:
   light-orange card, clean and readable, site palette only. No text
   changed — only the card class on those sections and this CSS. */
/* v1.10.23: same card, richer premium design — CSS only, no text changed:
   soft shadow, bold orange left accent bar, subtle top accent line,
   stronger heading with an orange underline accent, comfortable spacing. */
.tempe-intro-card > .shell {
    position: relative;
    overflow: hidden;
    background: var(--orange-tint);
    background: linear-gradient(180deg, #fff1e8 0%, var(--orange-tint) 42%, #ffe0cd 100%);
    border: 1px solid rgba(241, 90, 27, 0.32);
    border-radius: 20px;
    padding: 36px 40px 36px 48px;
    box-shadow: 0 14px 34px rgba(60, 20, 0, 0.10), 0 2px 8px rgba(60, 20, 0, 0.06);
}
.tempe-intro-card > .shell::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 7px;
    background: linear-gradient(180deg, var(--orange), #c73e08);
}
.tempe-intro-card > .shell::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), rgba(241, 90, 27, 0));
}
.tempe-intro-card h2 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 12px;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.tempe-intro-card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--orange);
}
.tempe-intro-card h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--ink);
}
.tempe-intro-card p {
    color: var(--ink-soft);
    line-height: 1.7;
}
.tempe-intro-card p:last-child {
    margin-bottom: 0;
}
@media (max-width: 700px) {
    .tempe-intro-card > .shell {
        padding: 26px 22px 26px 30px;
        border-radius: 16px;
    }
    .tempe-intro-card > .shell::before {
        width: 5px;
    }
}

/* v1.10.34: PROMINENT visible breadcrumb trail on inner pages, at the
   very start of the hero (white strip directly above the hero image).
   Dark text on white, bold, orange links, thick orange underline — it
   must be unmissable on desktop AND mobile. Never hidden: explicit
   display/visibility and a small-screen rule that keeps it full size.
   Text/links unchanged; only visibility. */
.tempe-breadcrumbs { display: block !important; visibility: visible !important; background: #ffffff; border-bottom: 3px solid var(--orange, #f15a1b); padding: 14px 0; font-size: 15px; line-height: 1.5; }
.tempe-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tempe-breadcrumbs li:not(:first-child)::before { content: "\203A"; margin-right: 8px; color: #888888; font-weight: 700; }
.tempe-breadcrumbs a { color: var(--orange, #f15a1b); text-decoration: underline; font-weight: 700; }
.tempe-breadcrumbs a:hover { text-decoration: underline; }
.tempe-breadcrumbs li[aria-current="page"] { color: #111111; font-weight: 700; }
@media (max-width: 860px) {
    .tempe-breadcrumbs { display: block !important; visibility: visible !important; padding: 14px 0; font-size: 15px; }
}

/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.28: location Why Choose columns top-aligned on every location page.
   The right .city-note card carried margin-top:70px in global.css, so it
   sat lower than the heading and story columns. Removing that offset
   (style.css loads after global.css) puts all three columns on one top line. */
.city-authority-layout { align-items: start; }
.city-authority-layout > * { align-self: start; }
.city-note { margin-top: 0; }

/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.28: balanced, smaller heading scale (was up to 6rem on heroes and
   4.35rem on H2s). Text unchanged; only sizes. style.css loads last. */
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.location-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.city-intro h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.why-section .heading-split h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.tempe-intro-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (max-width: 620px) {
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    .location-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.32: blog post FAQ accordion — pretty orange boxes, answers
   hidden by default, click a question to expand. Only applies to the
   JS-built .blog-faq-item markup; other sections untouched. */
.blog-faq-item { margin-bottom: 12px; }
.blog-faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: #fff; color: var(--ink, #1a1a1a); font-weight: 700; font-size: 0.98rem;
  border: 1px solid #f3c9ad; border-left: 4px solid var(--orange, #f15a1b);
  border-radius: 10px; box-shadow: 0 2px 8px rgba(241, 90, 27, 0.10);
}
.blog-faq-item.open .blog-faq-q { background: var(--orange-tint, #ffe5da); border-color: var(--orange, #f15a1b); }
.blog-faq-plus { flex: 0 0 auto; color: var(--orange-dark, #d9430c); font-size: 1.3rem; line-height: 1; }
.blog-faq-a { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.blog-faq-item.open .blog-faq-a { max-height: 800px; }
.blog-faq-a p { margin: 0; padding: 12px 16px 4px 20px; }
.blog-faq-a p:last-child { padding-bottom: 12px; }

/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.44: superseded — old contact grid rules removed; see the unified
   equal-column / phone-stack rules in the v1.10.44 block at the end of
   style.css and in assets/global.css. */
/* v1.10.37: breadcrumbs INSIDE the hero, first element of .location-hero-copy,
   directly above the hero eyebrow. The hero is dark (near-black overlay,
   white copy), so NO white strip here: transparent background, white current
   page, light-orange links and light separators, all with a dark text
   shadow so they stay readable on the hero image. The v1.10.34 white-strip
   rule above still applies only to the no-hero fallback (after <main>).
   Nested .shell inside the copy column is flattened so the trail aligns
   with the eyebrow's left edge instead of being inset by the shell width. */
.location-hero .tempe-breadcrumbs { display: block !important; visibility: visible !important; background: transparent !important; border-bottom: none; padding: 0 0 20px; font-size: 15px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.location-hero-copy .tempe-breadcrumbs .shell { width: 100%; margin: 0; }
.location-hero .tempe-breadcrumbs a { color: #ffa25e; text-decoration: underline; font-weight: 700; }
.location-hero .tempe-breadcrumbs li:not(:first-child)::before { color: #d6d0c6; }
.location-hero .tempe-breadcrumbs li[aria-current="page"] { color: #ffffff; font-weight: 700; }
@media (max-width: 860px) {
    .location-hero .tempe-breadcrumbs { display: block !important; visibility: visible !important; padding: 0 0 16px; font-size: 15px; }
}

/* v1.10.40: Contact centre-gap fix, UNSCOPED (does not rely on the
   tempe-contact-page marker or body.page-id-17, which evidently did not
   match the live Contact page). Placed LAST in style.css so it wins over
   the older uneven contact grid rules in global.css/style.css.
   Two columns on desktop, one column at <=860px. Also applies to the
   homepage contact section, which shares these classes. */
.shell.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: start; }
.shell.contact-layout > * { min-width: 0; width: 100%; }
.shell.contact-layout .contact-copy, .shell.contact-layout .contact-details { width: 100%; max-width: none; }
.shell.contact-layout .contact-copy > p { max-width: none; }
.shell.contact-layout form.demo-form { width: 100%; max-width: none; }
@media (max-width: 860px) {
    .shell.contact-layout { grid-template-columns: 1fr; }
    .shell.contact-layout > * { grid-column: auto; grid-row: auto; }
}

/* v1.10.41: RESPONSIVE ONLY — tablet + small-phone media queries.
   Nothing above 1024px is changed: every rule below lives inside a
   max-width media query, so desktop (>1024px) rendering is identical
   to v1.10.40. No content, colours, fonts, headings, schema, text, or
   desktop layout order is changed; grids only collapse further on
   smaller screens, type/padding only shrink where the existing
   breakpoints left a cramped section. Existing breakpoints in
   global.css (1080/991/900/860/768/620px) already handle: header nav
   toggle, hero 1-column, service 2-then-1 column, reviews 1 column,
   contact 1 column, footer 3-then-2 columns, forms 1 column, maps
   420px, blog auto-fit cards, images max-width 100%, body
   overflow-x clip. Those sections are left untouched. */
/* Tablet landscape (<=1024px): tighten wide gaps only. */
@media (max-width: 1024px) {
    .faq-layout { gap: 40px; }
    .footer-main { gap: 28px; }
    .t8s-svc-body { gap: 36px; }
}
/* Tablet portrait (<=768px): footer to 2 columns a step earlier than
   the old 620px rule, and shorter maps/process images. */
@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
    .service-map iframe, .coverage-map iframe { height: 360px; }
    .process-visual img { height: 440px; }
}
/* Small phones (<=480px): the one range v1.10.40 had no rule for. */
@media (max-width: 480px) {
    .section { padding: 56px 0; }
    .hero h1, .location-hero h1 { font-size: clamp(2.5rem, 12vw, 3rem); }
    .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .zip-grid { grid-template-columns: repeat(2, 1fr); }
    .area-columns { grid-template-columns: 1fr; }
    .process-visual img { height: 300px; }
    .city-service-media img { height: 230px; }
    .service-map iframe, .coverage-map iframe { height: 300px; }
    .accordion-panel p { margin: -4px 16px 20px 16px; }
    .footer-visit-line span, .contact-details strong { overflow-wrap: anywhere; }
    .emergency-card { padding: 24px 18px; }
    .blog-card-body { padding: 1.2rem; }
    form.demo-form, form.contact-form { padding: 20px 16px; }
    .tempe-breadcrumbs, .location-hero .tempe-breadcrumbs { font-size: 14px; }
}

/* v1.10.42: RESPONSIVE ONLY (plus footer social icon shapes in footer.php).
   Nothing above 1024px is changed: every rule below lives inside a
   max-width media query, so desktop rendering is identical to v1.10.41.
   (a) Problems We Solve: on narrow screens the intro goes full width on
   top and the items stack below it full width, headings/paragraphs
   wrapping normally (no word-by-word lines). Covers .problems-grid /
   .problem-list and the service-page .t8s-problem-board.
   (b) Contact page: Send Us a Message first, full width, then the form
   below it full width, fields stacked on phones.
   (c) Footer: extra left/right padding on tablet/phone (black footer
   background stays full width), columns stack on phones.
   No content, headings text, meta, schema, or desktop order changed. */
@media (max-width: 1024px) {
    .problems-grid { grid-template-columns: 1fr; gap: 36px; }
    .problems-intro { position: static; max-width: none; }
    .t8s-problem-board { grid-template-columns: 1fr; }
    .t8s-problem-board article, .problem-list article { min-width: 0; }
    .problem-list h3, .t8s-problem-board h3, .problem-list p, .t8s-problem-board p { overflow-wrap: normal; word-break: normal; }
    .site-footer .shell { box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 860px) {
    .shell.contact-layout { grid-template-columns: 1fr; }
    .shell.contact-layout .contact-copy { order: 1; width: 100%; }
    .shell.contact-layout > :nth-child(2) { order: 2; width: 100%; grid-column: auto; grid-row: auto; }
    .shell.contact-layout > * { grid-column: auto; grid-row: auto; }
}
@media (max-width: 768px) {
    .problems-grid, .t8s-problems .heading-split { grid-template-columns: 1fr; }
    .problem-list article { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 22px 6px; }
    .t8s-problem-board article { padding: 28px 20px 28px 56px; }
    .t8s-problem-board span { left: 20px; }
    .t8s-problem-board h3 { font-size: clamp(1.05rem, 4vw, 1.3rem); line-height: 1.35; }
    .shell.contact-layout .form-grid, .shell.contact-layout form.demo-form .form-grid { grid-template-columns: 1fr; }
    .shell.contact-layout form.demo-form label, .shell.contact-layout form.demo-form .form-grid label { width: 100%; }
    .site-footer .shell { box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .problems-grid { gap: 28px; }
    .problems-intro h2 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .problem-list article { padding: 20px 4px; }
    .problem-list h3 { font-size: 1.05rem; line-height: 1.35; }
    .t8s-problem-board article { padding: 24px 16px 24px 48px; }
    .t8s-problem-board span { left: 16px; }
    .shell.contact-layout form.demo-form { padding: 20px 16px; }
    .site-footer .shell { box-sizing: border-box; padding-left: 20px; padding-right: 20px; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-social-links { flex-wrap: wrap; }
}

/* v1.10.43: Contact page EQUAL side-by-side columns (responsive).
   User screenshot showed the form and the Send Us info misaligned
   (diagonal / up-down, not equal). Root cause: many older Contact grid
   rules compete (uneven splits and wide gaps,
   grid-row: 1 / span 2 pinned form, nth-child placement). This block is
   LAST in style.css, so on equal specificity it wins by order, and it
   resets placement explicitly. At <=1024px (tablet and below) the
   Contact layout keeps TWO EQUAL columns (1fr / 1fr, gap 24px,
   align-items stretch): Send Us info order 1, form order 2, both
   children width 100%, min-width 0, grid-column auto, grid-row auto,
   no explicit column placement — auto-placement in DOM order puts
   them side-by-side, equal and complete. At <=620px (phones) it stacks
   ONE column: Send Us info FIRST, full width, form BELOW it, full
   width, form fields stacked. Desktop (>1024px) is untouched: no rule
   here applies above 1024px, so the existing desktop layout/order is
   unchanged. No content, headings, meta, schema, or other page changed. */
@media (max-width: 1024px) {
    .shell.contact-layout,
    .contact-layout,
    .location-contact-layout,
    div:has(> .contact-form-col),
    section:has(> .contact-form-col) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 24px !important;
        align-items: stretch !important;
    }
    .shell.contact-layout > *,
    .contact-layout > *,
    .location-contact-layout > *,
    div:has(> .contact-form-col) > *,
    section:has(> .contact-form-col) > * {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
    }
    .shell.contact-layout > :not(.contact-form-col),
    .contact-layout > :not(.contact-form-col),
    .location-contact-layout > :not(.contact-form-col),
    div:has(> .contact-form-col) > :not(.contact-form-col),
    section:has(> .contact-form-col) > :not(.contact-form-col) {
        order: 1 !important;
    }
    .shell.contact-layout > .contact-form-col,
    .contact-layout > .contact-form-col,
    .location-contact-layout > .contact-form-col,
    div:has(> .contact-form-col) > .contact-form-col,
    section:has(> .contact-form-col) > .contact-form-col {
        order: 2 !important;
    }
    .shell.contact-layout form.demo-form,
    .contact-layout form.demo-form,
    .location-contact-layout form.demo-form {
        width: 100% !important;
        max-width: none !important;
    }
}
@media (max-width: 620px) {
    .shell.contact-layout,
    .contact-layout,
    .location-contact-layout,
    div:has(> .contact-form-col),
    section:has(> .contact-form-col) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .shell.contact-layout > :not(.contact-form-col),
    .contact-layout > :not(.contact-form-col),
    .location-contact-layout > :not(.contact-form-col),
    div:has(> .contact-form-col) > :not(.contact-form-col),
    section:has(> .contact-form-col) > :not(.contact-form-col) {
        order: 1 !important;
    }
    .shell.contact-layout > .contact-form-col,
    .contact-layout > .contact-form-col,
    .location-contact-layout > .contact-form-col,
    div:has(> .contact-form-col) > .contact-form-col,
    section:has(> .contact-form-col) > .contact-form-col {
        order: 2 !important;
    }
    .shell.contact-layout .form-grid,
    .contact-layout .form-grid,
    .location-contact-layout .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v1.10.44: UNIFIED contact + problems fix, every page.
   Contact (Contact page + every service/location page contact section,
   including any div/section parent of .contact-form-col): EQUAL 1fr/1fr
   columns, 28px gap, on laptop/tablet (<=1024px). On phones (<=860px) a
   clean full-width stack: Send Us / message info FIRST, form BELOW it
   full width, fields one per row. Problems sections (all variants) on
   phones (<=860px) become full-width block stacks with the number above
   the heading, so text wraps as normal sentences, never one word per
   line. Old uneven contact rules were removed from this file and the
   base rules in assets/global.css were changed to the same equal
   columns, so no older rule can win. Desktop (>1024px) layout, order,
   content, headings, meta and schema unchanged. */
@media (max-width: 1024px) {
    .shell.contact-layout,
    .contact-layout,
    .location-contact-layout,
    div:has(> .contact-form-col),
    section:has(> .contact-form-col) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 28px !important;
        align-items: start !important;
    }
    .shell.contact-layout > *,
    .contact-layout > *,
    .location-contact-layout > *,
    div:has(> .contact-form-col) > *,
    section:has(> .contact-form-col) > * {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .shell.contact-layout > :not(.contact-form-col),
    .contact-layout > :not(.contact-form-col),
    .location-contact-layout > :not(.contact-form-col),
    div:has(> .contact-form-col) > :not(.contact-form-col),
    section:has(> .contact-form-col) > :not(.contact-form-col) {
        order: 1 !important;
    }
    .shell.contact-layout > .contact-form-col,
    .contact-layout > .contact-form-col,
    .location-contact-layout > .contact-form-col,
    div:has(> .contact-form-col) > .contact-form-col,
    section:has(> .contact-form-col) > .contact-form-col {
        order: 2 !important;
    }
}
@media (max-width: 860px) {
    .shell.contact-layout,
    .contact-layout,
    .location-contact-layout,
    div:has(> .contact-form-col),
    section:has(> .contact-form-col),
    .problems-grid,
    .t8s-problem-board,
    .problem-board {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }
    .shell.contact-layout .form-grid,
    .contact-layout .form-grid,
    .location-contact-layout .form-grid,
    div:has(> .contact-form-col) .form-grid,
    section:has(> .contact-form-col) .form-grid {
        grid-template-columns: 1fr !important;
    }
    .shell.contact-layout .form-grid label,
    .contact-layout .form-grid label,
    .location-contact-layout .form-grid label,
    div:has(> .contact-form-col) .form-grid label,
    section:has(> .contact-form-col) .form-grid label {
        width: 100% !important;
    }
    .problems-intro,
    .t8s-problems .heading-split {
        position: static !important;
        max-width: none !important;
        width: 100% !important;
    }
    .problem-list article,
    .t8s-problem-board article,
    .problem-board > div {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 24px 20px !important;
    }
    .problem-list > article > span,
    .t8s-problem-board span,
    .problem-board span {
        position: static !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
    .problem-list h3,
    .t8s-problem-board h3,
    .problem-board strong {
        width: 100% !important;
        font-size: 1.1rem !important;
        line-height: 1.35 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    .problem-list p,
    .t8s-problem-board p,
    .problem-board small {
        width: 100% !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

/* v1.10.45: same stray-placeholder <p> hide as in global.css, in the
   main stylesheet too, so it wins regardless of load/caching order.
   Only a direct-child <p> of a contact grid is hidden; <p> inside
   .contact-copy or inside the form is untouched. No other change. */
.contact-layout > p,
.shell.contact-layout > p,
.location-contact-layout > p,
div:has(> .contact-form-col) > p,
section:has(> .contact-form-col) > p { display: none; }

/* v1.10.50: RESPONSIVE ONLY — every rule below lives inside a
   max-width media query (<=1024px / <=768px / <=480px), so desktop
   (>1024px) layout, order, content and design are unchanged in
   effect. Grids stack, hero type scales, form fields stack, footer
   stacks, and long words wrap on narrow screens. No rule here
   applies above 1024px. The Home review carousel track is excluded
   from the review-grid stacking rule (its JS sets flex-basis). */
@media (max-width: 1024px) {
    .service-grid, .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero h1, .location-hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
    h1, h2, h3, p, li, a, strong, span { overflow-wrap: break-word; word-break: normal; }
    .shell, .hero-layout, .location-hero-inner, .faq-layout, .area-layout, .split-layout { min-width: 0; }
}
@media (max-width: 768px) {
    .service-grid, .benefit-grid, .faq-layout, .area-layout, .split-layout, .process-layout { grid-template-columns: minmax(0, 1fr); }
    .review-grid:not(.review-track) { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid label { width: 100%; }
    .footer-main { grid-template-columns: 1fr; }
    .hero h1, .location-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    .hero-actions, .location-hero-actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .hero h1, .location-hero h1 { font-size: clamp(1.9rem, 10vw, 2.5rem); }
    .hero-copy > p, .location-hero-copy > p { font-size: 1rem; }
    form.demo-form input, form.demo-form select, form.demo-form textarea, form.contact-form input, form.contact-form select, form.contact-form textarea { width: 100%; box-sizing: border-box; }
    .contact-details strong, .footer-visit-line span, a[href^="tel:"], a[href^="mailto:"] { overflow-wrap: anywhere; }
}

/* v1.10.56: FORM-REMOVAL DESIGN FIX (CSS only, from v1.10.55) + LOCATION MAP FULL-BOX FIX + MOBILE PARENT-TAP touch-action.
   Only the form-removed sections and the location coverage-maps are
   touched here. Desktop layout/order/content otherwise untouched;
   phone/tablet rules below are for these sections only. */
/* Call CTA card: same white-card treatment the removed lead form had
   (white background, orange top border, soft shadow), so the CTA looks
   intentional instead of bare text where the tall form used to sit. */
.hero-call, .tempe-call-cta {
  background: #ffffff;
  color: var(--ink);
  padding: 28px;
  border-radius: 6px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 12px 40px rgba(23, 21, 15, 0.08);
  box-sizing: border-box;
}
.hero-call h2, .tempe-call-cta h2 { color: var(--ink); }
.hero-call small, .tempe-call-cta small { color: var(--orange-dark); }
.hero-call p, .tempe-call-cta p { color: var(--muted); }
.hero-call .button, .tempe-call-cta .button { width: 100%; text-align: center; box-sizing: border-box; }
/* v1.10.61: hero call card fits its content ONLY — the old
   align-self:stretch + justify-content:center stretched the card to
   the full 720px hero column, leaving large empty space above and
   below its content. Card height is now its content height, with
   equal padding top and bottom, on desktop and mobile. */
.hero-call { margin: 0; align-self: flex-start; height: auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-layout .hero-call { align-self: flex-start; }
/* Inline render-time CTA (service/location/blog/hub/About/Legal pages):
   spaced like a content block, never flush against surrounding text. */
.tempe-call-cta { margin: 24px 0; }
/* Contact-section columns that now hold a CTA instead of a form:
   stretch the column to the info column's height and centre the card
   content, so no empty gap sits under a short CTA. Scoped with :has()
   to CTA sections only — the Contact page (real form, no CTA) is
   untouched by these rules. */
.shell.contact-layout:has(.tempe-call-cta), .contact-layout:has(.tempe-call-cta), .location-contact-layout:has(.tempe-call-cta) { align-items: stretch; }
.shell.contact-layout:has(.tempe-call-cta) > .contact-form-col, .contact-layout:has(.tempe-call-cta) > .contact-form-col, .location-contact-layout:has(.tempe-call-cta) > .contact-form-col { display: flex; flex-direction: column; }
.shell.contact-layout:has(.tempe-call-cta) > .contact-form-col .tempe-call-cta, .contact-layout:has(.tempe-call-cta) > .contact-form-col .tempe-call-cta, .location-contact-layout:has(.tempe-call-cta) > .contact-form-col .tempe-call-cta { margin: 0; flex: 0 0 auto; height: auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
/* LOCATION MAPS: the iframe must fill the WHOLE coverage-map box.
   Root cause of the half-empty card: the box is 590px tall on desktop
   (520px at tablet, 420px at phone) while the iframe was only 520px
   (420px / 360px / 300px at smaller widths), leaving the illustrated
   background showing through at the bottom. Flex column + 100% height
   + a min-height matching the box at each width closes that gap.
   .service-map (homepage map) is deliberately NOT touched here. */
.coverage-map { display: flex; flex-direction: column; }
.coverage-map iframe { width: 100% !important; height: 100% !important; min-height: 360px; flex: 1 1 auto; display: block; border: 0; }
@media (max-width: 1080px) {
  .coverage-map iframe { min-height: 360px; }
}
@media (max-width: 620px) {
  .coverage-map iframe { min-height: 320px; }
}
@media (max-width: 860px) {
  /* Form-removed sections only: former form phone padding for the CTA card. */
  .hero-call, .tempe-call-cta { padding: 20px 16px; }
}

/* v1.10.56: mobile parent rows — disable the double-tap-zoom gesture on
   the Services/Areas parent links so the second tap reliably registers
   as a click (see main.js). No layout, colour, or menu redesign. */
@media (max-width: 860px) {
  .nav-links .nav-dd > a, .nav-links li.menu-item-has-children > a { touch-action: manipulation; }
}

/* v1.10.58: (1) MAPS FILL THE WHOLE BOX — CSS only, no map query/zoom/
   coordinate changed, no map added. Root cause of the empty pale strip
   on phones: earlier rules shrank the iframe to 360px (<=768px) and
   300px (<=480px) while its box stayed 420px tall, so the pale box
   background showed below the map. This final block (last in style.css,
   which loads after global.css) sets container height and iframe height
   to the SAME value at every breakpoint, with line-height:0 and
   display:block so no inline gap remains below the iframe. Applies to
   BOTH .service-map (homepage) and .coverage-map (location pages).
   (2) BLACK PROBLEMS BOARD — CSS only, no text changed. Root cause of
   crooked rows on phones: an earlier mobile rule forced the rows to
   display:block with the number as a static block above the text, so
   number, title and arrow staggered. Every row is now one strict grid:
   number column | title+description column (left-aligned) | arrow
   column (vertically centred), same left edge and rhythm on every row,
   desktop and mobile, for .problem-list, .t8s-problem-board and
   .problem-board. The !important flags exist only to beat those earlier
   mobile display:block / 2-column overrides. */
.service-map, .coverage-map { display: flex !important; flex-direction: column !important; line-height: 0 !important; padding: 0 !important; }
.service-map { height: 520px !important; min-height: 520px !important; }
.coverage-map { height: 360px !important; min-height: 360px !important; }
.service-map iframe, .coverage-map iframe { width: 100% !important; height: 100% !important; min-height: 0 !important; flex: 1 1 auto !important; display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; vertical-align: bottom !important; }
@media (max-width: 1080px) {
  .coverage-map { height: 360px !important; min-height: 360px !important; }
  .service-map iframe, .coverage-map iframe { height: 100% !important; }
}
@media (max-width: 860px) {
  .service-map { height: 420px !important; min-height: 420px !important; }
  .coverage-map { height: 320px !important; min-height: 320px !important; }
  .service-map iframe, .coverage-map iframe { height: 100% !important; }
}
@media (max-width: 768px) {
  .service-map { height: 420px !important; min-height: 420px !important; }
  .coverage-map { height: 320px !important; min-height: 320px !important; }
  .service-map iframe, .coverage-map iframe { height: 100% !important; }
}
@media (max-width: 620px) {
  .service-map { height: 420px !important; min-height: 420px !important; }
  .coverage-map { height: 320px !important; min-height: 320px !important; }
  .service-map iframe, .coverage-map iframe { height: 100% !important; }
}
@media (max-width: 480px) {
  .service-map { height: 420px !important; min-height: 420px !important; }
  .coverage-map { height: 320px !important; min-height: 320px !important; }
  .service-map iframe, .coverage-map iframe { height: 100% !important; }
}
/* --- Problems board rows: one strict grid, every row, every page. --- */
.problem-list article, .t8s-problem-board article, .problem-board > div {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}
.problem-list article { padding: 26px 10px !important; }
.t8s-problem-board article { padding: 32px 28px !important; }
.problem-board > div { padding: 24px !important; }
/* Number column: static (not absolute, not a block above the text),
   left-aligned, vertically centred with its row. */
.problem-list > article > span, .t8s-problem-board article > span, .problem-board > div > span {
  position: static !important;
  left: auto !important; top: auto !important;
  grid-column: 1 !important; grid-row: 1 !important;
  display: block !important; margin: 0 !important;
  text-align: left !important; align-self: center !important;
}
/* Text column: title + description stacked, left edge identical. */
.problem-list article > div, .t8s-problem-board article > h3, .t8s-problem-board article > p, .t8s-problem-board article > b,
.problem-board > div > strong, .problem-board > div > small {
  grid-column: 2 !important; min-width: 0 !important; text-align: left !important;
}
.problem-list article > div { grid-row: 1 !important; }
.t8s-problem-board article > h3 { grid-row: 1 !important; margin: 0 0 6px 0 !important; }
.t8s-problem-board article > p { grid-row: 2 !important; margin: 0 !important; }
.t8s-problem-board article > b { grid-row: 3 !important; margin: 0 !important; }
.problem-board > div > strong { grid-row: 1 !important; margin: 0 0 6px 0 !important; }
.problem-board > div > small { grid-row: 2 !important; margin: 0 !important; }
/* Arrow column: its own column, right side, vertically centred — it
   can never drop to a separate line under the number again. */
.problem-list article > b, .problem-list article > a:last-child,
.problem-board > div > b, .problem-board > div > a:last-child {
  grid-column: 3 !important; grid-row: 1 !important;
  justify-self: end !important; align-self: center !important;
  display: block !important; margin: 0 !important; text-align: right !important;
}
@media (max-width: 768px) {
  .problem-list article, .t8s-problem-board article, .problem-board > div {
    grid-template-columns: 36px minmax(0, 1fr) 28px !important;
    gap: 12px !important; align-items: center !important;
  }
  .problem-list article { padding: 22px 6px !important; }
  .t8s-problem-board article { padding: 26px 18px !important; }
  .problem-board > div { padding: 20px 16px !important; }
}
@media (max-width: 480px) {
  .problem-list article, .t8s-problem-board article, .problem-board > div {
    grid-template-columns: 34px minmax(0, 1fr) 26px !important;
    gap: 10px !important;
  }
  .problem-list article { padding: 20px 4px !important; }
  .t8s-problem-board article { padding: 24px 16px !important; }
  .problem-board > div { padding: 20px 14px !important; }
}

/* v1.10.59: (1) DESKTOP HEADER RESTORE + (2) SIGNS-LIST LOCK.
   (1) Root cause of the spoiled desktop header: THREE breakpoints
   disagreed. global.css shows the hamburger only at <=860px, but the
   nav-dd mobile panel rules and the main.js mobile gate both used
   <=991px. So on 861-991px screens (small laptop / tablet landscape)
   the menu looked like desktop (row nav, no hamburger) yet behaved
   like mobile: hover dropdowns were collapsed to static in-flow
   blocks and the first click on Services/Areas only armed the
   dropdown instead of navigating. Fix: the mobile gate is now
   exactly the hamburger breakpoint (<=860px, see main.js), and the
   block below (min-width:861px only) restores the original desktop
   header: hamburger hidden, row nav, desktop link padding and
   underline, call button shown, and the Services/Areas dropdown as
   an absolute overlay panel (hover/focus), exactly as designed.
   Nothing below 861px is touched here, so the good mobile header
   (hamburger, dropdown, second-tap-to-hub) is byte-identical in
   behaviour. Gap/font-size are deliberately NOT restated here, so
   the original <=1080px compact desktop step still governs
   861-1080px. No WordPress menu setting changed, no header
   content/link/phone changed. WP-menu sub-menus (if the live menu
   uses them) get the same absolute overlay treatment as the
   fallback nav-dd panels, mirroring their values.
   (2) Location signs-list: the 14 location pages' dark signs card
   rows (span + text) were the one numbered black list NOT covered
   by the v1.10.58 board grid. Their grid is now locked to the same
   clean rule: number column | text column, one left edge, every
   row, desktop and mobile. No text changed. */
@media (min-width: 861px) {
  .nav-toggle { display: none !important; }
  .nav-links { position: static !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; padding: 0 !important; border: 0 !important; border-top: 0 !important; box-shadow: none !important; }
  .nav-links a { padding: 28px 0 !important; border-bottom: 0 !important; }
  .nav-dd-panel a { padding: 0.55rem 0.8rem !important; }
  .nav-links a::after { display: block !important; }
  .nav-links a, .nav-links span { overflow-wrap: normal !important; word-break: normal !important; }
  .nav-call { display: flex !important; }
  .nav-links .nav-dd > a { display: inline-flex !important; align-items: center !important; justify-content: flex-start !important; }
  .nav-dd-panel { position: absolute !important; top: 100% !important; left: 0 !important; min-width: 250px !important; padding: 0.5rem !important; margin-top: 0.5rem !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; max-height: 380px !important; overflow-y: auto !important; opacity: 0 !important; visibility: hidden !important; transform: translateY(8px) !important; }
  .nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
  .nav-dd-caret { display: inline-flex !important; align-items: center !important; margin-left: 0 !important; font-size: 0.7em !important; line-height: normal !important; }
  .nav-dd-caret::after { content: none !important; }
  .nav-links li.menu-item-has-children { position: relative !important; }
  .nav-links li.menu-item-has-children > ul.sub-menu { position: absolute !important; top: 100% !important; left: 0 !important; min-width: 250px !important; padding: 0.5rem !important; margin-top: 0.5rem !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; background: var(--white) !important; z-index: 60 !important; display: none !important; }
  .nav-links li.menu-item-has-children:hover > ul.sub-menu, .nav-links li.menu-item-has-children:focus-within > ul.sub-menu { display: grid !important; gap: 2px !important; }
  .nav-links li.menu-item-has-children > ul.sub-menu a { padding: 0.55rem 0.8rem !important; }
}
/* Location signs-list rows: same clean grid as the boards. */
.signs-list p { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) !important; gap: 10px !important; align-items: start !important; text-align: left !important; }
.signs-list p > span { grid-column: 1 !important; text-align: left !important; margin: 0 !important; }
.signs-list p > b { grid-column: 2 !important; }

/* v1.10.61: (1) call cards never stretch — height is content height,
   no empty space above or below, desktop and mobile. (2) single blog
   posts wrap normally at every width: no cut-off text at the right
   edge, no horizontal scroll. Scoped to body.single so pages, hubs
   and the homepage are untouched. */
.hero-call, .tempe-call-cta { height: auto !important; min-height: 0 !important; }
body.single main, body.single .page-content, body.single .page-body { max-width: 100%; min-width: 0; overflow-wrap: break-word; }
body.single main *, body.single .page-content *, body.single .page-body * { max-width: 100%; min-width: 0; overflow-wrap: break-word; word-break: normal; white-space: normal; }
body.single main img, body.single .page-content img, body.single .page-body img { max-width: 100%; height: auto; }
body.single main .shell, body.single main .section { min-width: 0; max-width: 100%; }

/* v1.10.76: area name at the pin, all service-area maps only. */
.coverage-map .area-pin-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -140%); z-index: 5; pointer-events: none; background: #fff; color: #111; font-size: 15px; font-weight: 700; line-height: 1.2; padding: 7px 12px; border: 2px solid #111; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .coverage-map .area-pin-label { font-size: 13px; padding: 6px 10px; } }

/* v1.10.77: red dotted service-area ring, district maps only (see functions.php). Overlay only, map stays interactive. */
.coverage-map .area-boundary-ring { display: none !important; }
