/*
Theme Name: All Pro Air LV Child
Theme URI: https://allproairlv.com/
Description: Child theme for allproairlv.com. HVAC lead-gen with a Vegas thermal / industrial-utility aesthetic. Deep blue dominant, orange thermal accent. Built on GeneratePress.
Author: All Pro Air LV
Author URI: https://allproairlv.com/
Template: generatepress
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allpro-child
*/

/* ==========================================================================
   Design tokens (HVAC)
   Locked palette: primary deep blue, accent orange, neutrals slate + white.
   ========================================================================== */
:root {
    /* Color */
    --ap-primary: #0B3D91;
    --ap-primary-700: #082C6B;
    --ap-primary-300: #2A5BB1;
    --ap-accent: #F47B20;
    --ap-accent-600: #D86510;
    --ap-slate: #3A4750;
    --ap-slate-50: #F4F6F8;
    --ap-white: #FFFFFF;
    --ap-trust-rule: #F47B20;

    /* Type */
    --ap-font-display: "Saira Condensed", "Oswald", system-ui, sans-serif;
    --ap-font-body: "Source Sans 3", "IBM Plex Sans", system-ui, sans-serif;
    --ap-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Spacing */
    --ap-space-1: 0.25rem;
    --ap-space-2: 0.5rem;
    --ap-space-3: 1rem;
    --ap-space-4: 1.5rem;
    --ap-space-5: 2.5rem;
    --ap-space-6: 4rem;

    /* Radius */
    --ap-radius-sm: 4px;
    --ap-radius-md: 8px;
    --ap-radius-pill: 999px;

    /* Shadow */
    --ap-shadow-cta: 0 4px 18px rgba(11, 61, 145, 0.35);
}

/* ==========================================================================
   Layout breakouts (Phase 3c.5)
   GeneratePress wraps the page in `.grid-container` (max-width 1200px).
   Hero, ticker, and every full-band homepage section need to bleed edge-to-
   edge. The `.is-fullbleed` utility uses the standard negative-margin trick;
   `html { overflow-x: clip }` prevents horizontal scrollbar bugs from 100vw.
   ========================================================================== */
html { overflow-x: clip; }
body { overflow-x: clip; }
.is-fullbleed,
.ap-call-ribbon,
.ap-hero,
.ap-trust-ticker,
.ap-trust,
.ap-section,
.ap-cta-bottom,
.ap-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Sticky header wrapper (Phase 3c.6)
   Wraps the click-to-call ribbon + GP masthead so the whole header moves as
   one piece. .scrolled is toggled by the footer-injected scroll listener.
   ========================================================================== */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
.site-header-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Click-to-call ribbon (Phase 3c.5 styling, padding tightened in 3c.6)
   ========================================================================== */
.ap-call-ribbon {
    background: var(--ap-primary);
    color: #fff;
    font-family: var(--ap-font-display);
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}
.ap-call-ribbon__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ap-call-ribbon__pretext { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.ap-call-ribbon__pill {
    color: var(--ap-accent);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.ap-call-ribbon__pill:hover,
.ap-call-ribbon__pill:focus {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .ap-call-ribbon { font-size: 0.85rem; padding: 7px 0; }
    .ap-call-ribbon__inner { gap: 0.4rem 0.5rem; }
    .ap-call-ribbon__pretext { display: none; /* keep just the phone visible on narrow screens */ }
    .ap-call-ribbon__pill::before { content: "Call: "; color: rgba(255,255,255,0.85); font-weight: 500; }
}

/* ==========================================================================
   Hero (Phase 3b)
   Vegas thermal aesthetic: full-bleed background video, deep-blue gradient
   overlay so the white headline and orange pricing pill read clearly.
   75vh desktop, 65vh mobile so the trust ticker peeks below the fold.
   ========================================================================== */
.ap-hero {
    position: relative;
    /* width + negative-margin breakout still needed; layout_setting=no-sidebar
       removed the 30% sidebar reservation, but this rule guarantees full
       viewport width regardless of any wrapper changes. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--ap-primary);
    isolation: isolate;
}
.ap-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}
.ap-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mostly black gradient for text legibility, with a faint deep-blue tint
       at the top so the orange pricing pill reads against a brand-warm sky. */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(11, 61, 145, 0.10) 100%
    );
    z-index: 2;
}
.ap-hero__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.ap-hero__headline {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: #fff;
    text-wrap: balance;
}
.ap-hero__subhead {
    font-family: var(--ap-font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.4;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 38em;
}
.ap-hero__pricing {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--ap-accent);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--ap-radius-md);
    font-family: var(--ap-font-display);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.30);
    margin-bottom: 1.25rem;
    align-self: flex-start;
}
.ap-hero__pricing-headline {
    font-weight: 900;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}
.ap-hero__pricing-fine {
    font-family: var(--ap-font-body);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: none;
    opacity: 0.92;
    letter-spacing: 0.01em;
}
.ap-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: var(--ap-radius-pill);
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.12s ease;
    min-height: 44px;
    line-height: 1;
}
.ap-btn--primary {
    background: var(--ap-accent);
    color: #fff;
    box-shadow: var(--ap-shadow-cta);
}
.ap-btn--primary:hover,
.ap-btn--primary:focus {
    background: var(--ap-accent-600);
    color: #fff;
    transform: translateY(-1px);
}
.ap-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.ap-btn--ghost:hover,
.ap-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.75);
}
.ap-hero__form-wrapper {
    margin-top: 0.5rem;
    max-width: 32rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--ap-radius-md);
    padding: 1rem 1.25rem;
    color: var(--ap-slate);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30);
}
@media (max-width: 768px) {
    .ap-hero { height: 65vh; min-height: 400px; }
    .ap-hero__content { padding: 40px 20px; }
}
@media (max-width: 1023.98px) {
    .ap-hero__form-wrapper { max-width: 100%; padding: 0.75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-hero__video { display: none; }
    .ap-hero { background: var(--ap-primary-700) center/cover no-repeat; }
}

/* ==========================================================================
   Trust ticker (Phase 3b)
   Pure CSS marquee. Deep blue background, white text, orange pipe separator.
   Items duplicated in markup so translateX(-50%) loops seamlessly. Pauses on
   hover and respects reduced-motion.
   ========================================================================== */
.ap-trust-ticker {
    overflow: hidden;
    padding: 12px 0;
    background: var(--ap-primary);
    color: #fff;
    font-family: var(--ap-font-display);
}
.ap-trust-ticker__track {
    display: flex;
    width: max-content;
    animation: ap-ticker-scroll 35s linear infinite;
    will-change: transform;
}
.ap-trust-ticker__row {
    display: flex;
    flex-shrink: 0;
    gap: 32px;
    padding-right: 32px;
    align-items: center;
}
.ap-trust-ticker__item {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.ap-trust-ticker__separator {
    display: inline-flex;
    align-items: center;
    color: var(--ap-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.ap-trust-ticker:hover .ap-trust-ticker__track {
    animation-play-state: paused;
}
@media (max-width: 768px) {
    .ap-trust-ticker__item,
    .ap-trust-ticker__separator { font-size: 13px; }
}
@keyframes ap-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ap-trust-ticker__track { animation: none; }
    .ap-trust-ticker__row + .ap-trust-ticker__row { display: none; }
}

/* ==========================================================================
   Section primitives (Phase 3c)
   Shared section wrapper and headline styles used by trust / services / why /
   areas / how-it-works / FAQ blocks.
   ========================================================================== */
.ap-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.ap-section--tinted { background: var(--ap-slate-50); }
.ap-section--inverse { background: var(--ap-primary); color: #fff; }
.ap-section__inner { max-width: 1200px; margin: 0 auto; }
.ap-section__eyebrow {
    display: inline-block;
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ap-accent);
    margin: 0 0 0.5rem;
}
.ap-section__headline {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--ap-slate);
    text-transform: uppercase;
    letter-spacing: -0.005em;
}
.ap-section--inverse .ap-section__headline { color: #fff; }
.ap-section__sub {
    font-family: var(--ap-font-body);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ap-slate);
    max-width: 50em;
    margin: 0 0 2rem;
}
.ap-section--inverse .ap-section__sub { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Section 3: Trust strip
   4-column row with icon + label, beneath the trust ticker.
   ========================================================================== */
.ap-trust {
    background: var(--ap-slate-50);
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid rgba(58, 71, 80, 0.08);
}
.ap-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.ap-trust__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ap-slate);
    font-family: var(--ap-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.ap-trust__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: var(--ap-accent);
}
@media (max-width: 768px) {
    .ap-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ap-trust__item { font-size: 0.9rem; }
}

/* ==========================================================================
   Section 4: Service cards grid
   ========================================================================== */
.ap-services__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.ap-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.10);
    border-radius: var(--ap-radius-md);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.ap-service-card:hover,
.ap-service-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--ap-accent);
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.12);
}
.ap-service-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ap-slate-50);
}
.ap-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ap-service-card__body {
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ap-service-card__title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--ap-primary);
    margin: 0 0 0.4rem;
}
.ap-service-card__desc {
    font-family: var(--ap-font-body);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--ap-slate);
    margin: 0 0 0.85rem;
    flex: 1;
}
.ap-service-card__more {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ap-accent);
    margin-top: auto;
}
.ap-service-card__more::after { content: " \2192"; }
@media (max-width: 1280px) {
    .ap-services__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .ap-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ap-services__grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ==========================================================================
   Section 5: Why choose us
   ========================================================================== */
.ap-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}
.ap-why-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ap-why-item__icon {
    width: 40px;
    height: 40px;
    color: var(--ap-accent);
    margin-bottom: 0.25rem;
}
.ap-why-item__title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--ap-primary);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}
.ap-why-item__desc {
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0;
}
@media (max-width: 1024px) {
    .ap-why__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 600px) {
    .ap-why__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section 6: Areas We Serve
   ========================================================================== */
.ap-area__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1rem;
    max-width: 880px;
}
.ap-area__chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.18);
    border-radius: var(--ap-radius-pill);
    padding: 0.65rem 1rem;
    font-family: var(--ap-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ap-primary);
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.ap-area__chip:hover,
.ap-area__chip:focus-visible {
    background: var(--ap-primary);
    color: #fff;
    border-color: var(--ap-primary);
}
.ap-area__chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ap-accent);
    flex: 0 0 auto;
}
@media (max-width: 768px) {
    .ap-area__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ap-area__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section 7: How It Works
   ========================================================================== */
.ap-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    counter-reset: ap-step;
    position: relative;
}
.ap-how__step {
    counter-increment: ap-step;
    position: relative;
    padding-top: 0.5rem;
}
.ap-how__step::before {
    content: counter(ap-step, decimal-leading-zero);
    display: inline-block;
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--ap-accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.ap-how__step-title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.15;
    color: var(--ap-primary);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 0.5rem;
}
.ap-how__step-desc {
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0;
}
@media (max-width: 768px) {
    .ap-how__steps { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   Section 8: FAQ accordion (native <details>)
   ========================================================================== */
.ap-faq__list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 880px; }
.ap-faq__item {
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.15);
    border-radius: var(--ap-radius-md);
    overflow: hidden;
}
.ap-faq__item[open] { border-color: var(--ap-accent); }
.ap-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ap-primary);
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ap-faq__q::-webkit-details-marker { display: none; }
.ap-faq__q::marker { display: none; }
.ap-faq__q::after {
    content: "+";
    flex: 0 0 auto;
    font-weight: 900;
    color: var(--ap-accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.15s ease;
}
.ap-faq__item[open] .ap-faq__q::after { transform: rotate(45deg); }
.ap-faq__a {
    padding: 0 1.25rem 1.1rem;
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--ap-slate);
}
.ap-faq__a p:first-child { margin-top: 0; }
.ap-faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Section 9: Footer CTA + footer + sticky mobile CTA
   ========================================================================== */
.ap-cta-bottom {
    background: var(--ap-primary);
    color: #fff;
    padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
    text-align: center;
}
.ap-cta-bottom__inner { max-width: 880px; margin: 0 auto; }
.ap-cta-bottom__headline {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 0.5rem;
    color: #fff;
}
.ap-cta-bottom__sub {
    font-family: var(--ap-font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem;
}
.ap-cta-bottom__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ap-footer {
    background: var(--ap-primary-700);
    color: rgba(255, 255, 255, 0.85);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 1rem;
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.55;
}
.ap-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}
.ap-footer__brand img { max-width: 240px; height: auto; display: block; margin-bottom: 1rem; }
.ap-footer__nap p { margin: 0.2rem 0; }
.ap-footer__nap a { color: #fff; text-decoration: none; font-weight: 600; }
.ap-footer__nap a:hover { color: var(--ap-accent); }
.ap-footer__heading {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.6rem;
}
.ap-footer__list { list-style: none; padding: 0; margin: 0; }
.ap-footer__list li + li { margin-top: 0.3rem; }
.ap-footer__list a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ap-footer__list a:hover { color: var(--ap-accent); }
.ap-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 1024px) {
    .ap-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
    .ap-footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .ap-footer { padding-bottom: 5rem; /* leave room for sticky CTA */ }
}

/* Sticky mobile CTA bar (lives in footer.php so all pages get it) */
.ap-sticky-cta {
    display: none;
}
@media (max-width: 1023.98px) {
    .ap-sticky-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
    }
    .ap-sticky-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.85rem 0.5rem;
        font-family: var(--ap-font-display);
        font-weight: 700;
        font-size: 0.95rem;
        text-transform: uppercase;
        text-decoration: none;
        min-height: 52px;
        line-height: 1;
    }
    .ap-sticky-cta__call { background: var(--ap-accent); color: #fff; }
    .ap-sticky-cta__book { background: var(--ap-primary); color: #fff; }
    body { padding-bottom: 52px; }
    /* Slide the bar offscreen while a form field is focused so it cannot
       overlap the iOS keyboard or the form submit button. CSS-only via
       :has() (broadly supported in 2026); transition keeps it from jumping. */
    .ap-sticky-cta { transition: transform 0.18s ease; }
    body:has(input:focus, textarea:focus, select:focus, .wpforms-field input:focus) .ap-sticky-cta {
        transform: translateY(120%);
    }
}

/* ==========================================================================
   Header polish (Phase 3c.6)
   ========================================================================== */

/* Logo trim: shrink masthead logo to 80% of GP's default height. */
.site-logo img,
.header-image.is-logo-image {
    max-height: 56px;
    width: auto;
    height: auto;
}

/* Phone CTA inside the primary navigation (desktop only). The auto margin
   pushes it past the menu items to the right edge of the inside-navigation
   flex row. */
.ap-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    background: var(--ap-accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(244, 123, 32, 0.30);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ap-header-cta:hover,
.ap-header-cta:focus-visible {
    background: var(--ap-accent-600);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244, 123, 32, 0.40);
}
.ap-header-cta__icon { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 768px) {
    .ap-header-cta { display: none; }
}

/* Nav menu underline-on-hover. Animated scaleX from center. */
.main-navigation .menu-item > a {
    position: relative;
    transition: color 150ms ease;
}
.main-navigation .menu-item > a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 2px;
    background: var(--ap-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 150ms ease;
    pointer-events: none;
}
.main-navigation .menu-item > a:hover::after,
.main-navigation .menu-item.current-menu-item > a::after,
.main-navigation .menu-item.current_page_item > a::after {
    transform: scaleX(1);
}
/* Suppress underline on submenu (dropdown) items - keep only top-level. */
.main-navigation .sub-menu .menu-item > a::after { display: none; }

/* ==========================================================================
   Service page (template-service.php) - Phase 3d
   Renders 9 sections: hero (50vh), overview, what-we-do, pricing, how-it-works,
   why-vegas, service-area, FAQ, bottom-CTA. Reuses .ap-section/.ap-faq__list/etc.
   ========================================================================== */

/* Narrow content variant for prose-heavy sections (overview, pricing, FAQ, CTA). */
.ap-section__inner--narrow { max-width: 880px; }

/* ----- Hero (compact, photo background, NOT video) ----- */
.ap-service-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 50vh;
    min-height: 380px;
    overflow: hidden;
    background: var(--ap-primary);
    isolation: isolate;
    color: #fff;
}
.ap-service-hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 1;
}
.ap-service-hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to top,
        rgba(8, 44, 107, 0.85) 0%,
        rgba(11, 61, 145, 0.55) 55%,
        rgba(11, 61, 145, 0.25) 100%
    );
    z-index: 2;
}
.ap-service-hero__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ap-service-hero__headline {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 0.5rem;
    color: #fff;
    text-wrap: balance;
}
.ap-service-hero__subhead {
    font-family: var(--ap-font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    max-width: 42em;
    margin: 0 0 1.5rem;
}
.ap-service-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 768px) {
    .ap-service-hero { height: 50vh; min-height: 320px; }
    .ap-service-hero__content { padding: 40px 20px; }
}

/* ----- Breadcrumbs ----- */
.ap-breadcrumbs {
    font-family: var(--ap-font-body);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem;
}
.ap-breadcrumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.30); }
.ap-breadcrumbs a:hover { color: #fff; border-bottom-color: var(--ap-accent); }
.ap-breadcrumbs span[aria-current] { color: #fff; }

/* ----- Service overview (the GBP-mirror paragraph) ----- */
.ap-service-overview__paragraph {
    font-family: var(--ap-font-body);
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ap-slate);
    margin: 0;
    padding: 0.5rem 0;
    border-left: 4px solid var(--ap-accent);
    padding-left: 1.5rem;
}
@media (max-width: 600px) {
    .ap-service-overview__paragraph { padding-left: 1rem; font-size: 1rem; }
}

/* ----- What we do (repair categories) ----- */
.ap-service-what__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.ap-service-what__item {
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-left: 3px solid var(--ap-accent);
    border-radius: var(--ap-radius-md);
    padding: 1.25rem 1.5rem;
}
.ap-service-what__item-title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--ap-primary);
    margin: 0 0 0.4rem;
    letter-spacing: -0.005em;
}
.ap-service-what__item-desc {
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0;
}
@media (max-width: 700px) {
    .ap-service-what__grid { grid-template-columns: 1fr; }
}

/* ----- Pricing table ----- */
.ap-service-pricing__table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.ap-service-pricing__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.4;
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.15);
    border-radius: var(--ap-radius-md);
    overflow: hidden;
}
.ap-service-pricing__table thead {
    background: var(--ap-primary);
    color: #fff;
    text-align: left;
}
.ap-service-pricing__table th,
.ap-service-pricing__table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(58, 71, 80, 0.08);
}
.ap-service-pricing__table thead th {
    font-family: var(--ap-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}
.ap-service-pricing__table tbody th {
    font-weight: 600;
    color: var(--ap-slate);
}
.ap-service-pricing__table tbody td {
    color: var(--ap-primary);
    font-weight: 700;
    white-space: nowrap;
}
.ap-service-pricing__table tbody tr:last-child th,
.ap-service-pricing__table tbody tr:last-child td { border-bottom: 0; }
.ap-service-pricing__footnote {
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0;
}

/* ----- How it works (numbered ol) ----- */
.ap-service-how__steps {
    list-style: none;
    counter-reset: ap-svc-step;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}
.ap-service-how__step {
    counter-increment: ap-svc-step;
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-top: 4px solid var(--ap-accent);
    border-radius: var(--ap-radius-md);
    padding: 1.25rem;
    position: relative;
}
.ap-service-how__step::before {
    content: counter(ap-svc-step, decimal-leading-zero);
    display: block;
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--ap-accent);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.ap-service-how__step-title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--ap-primary);
    margin: 0 0 0.4rem;
}
.ap-service-how__step-desc {
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0;
}
@media (max-width: 768px) {
    .ap-service-how__steps { grid-template-columns: 1fr; }
}

/* ----- Why this matters in Vegas ----- */
.ap-service-vegas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}
.ap-service-vegas__title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--ap-primary);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 0.4rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--ap-accent);
}
.ap-service-vegas__desc {
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--ap-slate);
    margin: 0;
}
@media (max-width: 768px) {
    .ap-service-vegas__grid { grid-template-columns: 1fr; }
}

/* ----- Service area list (reuses .ap-area__chip from homepage) ----- */
.ap-service-area__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1rem;
    max-width: 880px;
}
.ap-service-area__list li { display: flex; }
.ap-service-area__list .ap-area__chip { width: 100%; }
@media (max-width: 768px) {
    .ap-service-area__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ap-service-area__list { grid-template-columns: 1fr; }
}

/* ----- Bottom CTA ----- */
.ap-service-cta { background: var(--ap-slate-50); }
.ap-service-cta .ap-section__inner--narrow {
    text-align: center;
}
.ap-service-cta__form {
    margin: 1.5rem auto 1rem;
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-radius: var(--ap-radius-md);
    padding: 1rem 1.25rem;
    text-align: left;
    max-width: 32rem;
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.08);
}
.ap-service-cta__call {
    font-family: var(--ap-font-display);
    font-weight: 600;
    color: var(--ap-slate);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}
.ap-service-cta__call-link {
    color: var(--ap-accent);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.4em;
}
.ap-service-cta__call-link:hover { color: var(--ap-accent-600); text-decoration: underline; }

/* ==========================================================================
   Foundation pages (template-foundation.php) - Phase 3f
   About / Contact / Areas We Serve. Compact gradient hero, prose body,
   structured value blocks, contact 2-col grid + map, areas neighborhood list.
   ========================================================================== */

/* Foundation hero - solid gradient (no video background, lower height than service hero). */
.ap-foundation-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 36vh;
    min-height: 280px;
    overflow: hidden;
    background: var(--ap-primary);
    color: #fff;
}
.ap-foundation-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--ap-primary) 0%,
        var(--ap-primary-700) 100%
    );
    z-index: 1;
}
.ap-foundation-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ap-foundation-hero__headline {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 0.4rem;
    color: #fff;
    text-wrap: balance;
}
.ap-foundation-hero__subhead {
    font-family: var(--ap-font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 42em;
    margin: 0;
}
@media (max-width: 768px) {
    .ap-foundation-hero { height: 32vh; min-height: 240px; }
    .ap-foundation-hero__content { padding: 40px 20px; }
}

/* About page */
.ap-foundation-about__lede {
    font-family: var(--ap-font-body);
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ap-slate);
    margin: 0;
    padding: 0.5rem 0;
    border-left: 4px solid var(--ap-accent);
    padding-left: 1.5rem;
}
.ap-foundation-about__body {
    font-family: var(--ap-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ap-slate);
    margin: 0 0 1.25rem;
}
.ap-foundation-about__values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.ap-foundation-about__value {
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-left: 3px solid var(--ap-accent);
    border-radius: var(--ap-radius-md);
    padding: 1rem 1.25rem;
}
.ap-foundation-about__value-title {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--ap-primary);
    letter-spacing: -0.005em;
    margin: 0 0 0.3rem;
}
.ap-foundation-about__value-desc {
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ap-slate);
    margin: 0;
}

/* Contact page */
.ap-foundation-contact__lede {
    font-family: var(--ap-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ap-slate);
    margin: 0 0 1.5rem;
    max-width: 60em;
}
.ap-foundation-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
}
@media (max-width: 900px) {
    .ap-foundation-contact__grid { grid-template-columns: 1fr; }
}
.ap-foundation-contact__col--info { display: flex; flex-direction: column; gap: 1.25rem; }
.ap-foundation-contact__block {
    background: var(--ap-slate-50);
    border-left: 3px solid var(--ap-accent);
    border-radius: var(--ap-radius-md);
    padding: 1rem 1.25rem;
}
.ap-foundation-contact__h2 {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-primary);
    margin: 0 0 0.5rem;
}
.ap-foundation-contact__phone {
    font-family: var(--ap-font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--ap-accent);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.ap-foundation-contact__phone:hover { color: var(--ap-accent-600); text-decoration: underline; }
.ap-foundation-contact__address {
    font-family: var(--ap-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0 0 0.4rem;
    font-style: normal;
}
.ap-foundation-contact__map-link {
    color: var(--ap-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}
.ap-foundation-contact__map-link:hover { color: var(--ap-accent); text-decoration: underline; }
.ap-foundation-contact__hours {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    color: var(--ap-slate);
}
.ap-foundation-contact__hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(58, 71, 80, 0.15);
}
.ap-foundation-contact__hours li:last-child { border-bottom: 0; }
.ap-foundation-contact__day { font-weight: 600; }
.ap-foundation-contact__form {
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-radius: var(--ap-radius-md);
    padding: 1rem 1.25rem;
}
.ap-foundation-contact__map {
    margin-top: 1.5rem;
    border-radius: var(--ap-radius-md);
    overflow: hidden;
    border: 1px solid rgba(58, 71, 80, 0.12);
    background: var(--ap-slate-50);
}
.ap-foundation-contact__map iframe { display: block; }

/* Areas We Serve */
.ap-foundation-areas__lede {
    font-family: var(--ap-font-body);
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ap-slate);
    margin: 0;
    padding: 0.5rem 0;
    border-left: 4px solid var(--ap-accent);
    padding-left: 1.5rem;
}
.ap-foundation-areas__list .ap-section__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .ap-foundation-areas__list .ap-section__inner { grid-template-columns: 1fr; } }
.ap-foundation-area {
    background: #fff;
    border: 1px solid rgba(58, 71, 80, 0.12);
    border-top: 3px solid var(--ap-accent);
    border-radius: var(--ap-radius-md);
    padding: 1.25rem 1.5rem;
    scroll-margin-top: 100px;
}
.ap-foundation-area__name {
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--ap-primary);
    margin: 0 0 0.2rem;
}
.ap-foundation-area__distance {
    font-family: var(--ap-font-body);
    font-size: 0.85rem;
    color: var(--ap-accent);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}
.ap-foundation-area__desc {
    font-family: var(--ap-font-body);
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--ap-slate);
    margin: 0 0 0.6rem;
}
.ap-foundation-area__requests {
    font-family: var(--ap-font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ap-slate);
    margin: 0 0 0.6rem;
}
.ap-foundation-area__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
}
.ap-foundation-area__links a {
    display: inline-block;
    background: var(--ap-slate-50);
    color: var(--ap-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--ap-radius-sm);
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}
.ap-foundation-area__links a:hover {
    background: var(--ap-primary);
    color: #fff;
}
