/* Shared inner-page performance and accessibility polish.
   This late override layer intentionally excludes the homepage and isolated PPC
   landing page, both of which own their own header/hero architecture. */

html {
    --abraham-fixed-header-offset: 100px;
}

body:not(.home):not(.ac-repair-lp-page) {
    --abraham-fixed-header-offset: 100px;
}

@supports selector(body:has(#page-header.has-promotional-deals)) {
    body:not(.home):not(.ac-repair-lp-page):has(#page-header.has-promotional-deals) {
        --abraham-fixed-header-offset: 100px;
    }
}

body:not(.home):not(.ac-repair-lp-page) .header-notification-bar {
    padding: 4px 12px;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

body:not(.home):not(.ac-repair-lp-page) .header-notification-bar a {
    min-height: 22px;
    padding: 0;
}

body:not(.home):not(.ac-repair-lp-page) .header-wrap {
    flex-wrap: nowrap;
    min-height: 68px;
    padding-top: 7px;
    padding-bottom: 7px;
}

body:not(.home):not(.ac-repair-lp-page) .logo {
    flex: 0 1 214px;
    max-width: 214px;
}

body:not(.home):not(.ac-repair-lp-page) .logo-container,
body:not(.home):not(.ac-repair-lp-page) .logo-container img {
    max-height: 54px;
}

body:not(.home):not(.ac-repair-lp-page) .header-right {
    flex-wrap: nowrap;
    gap: 0 8px;
}

body:not(.home):not(.ac-repair-lp-page) .header-btn .btn-primary {
    min-height: 44px;
}

body:not(.home):not(.ac-repair-lp-page) .navbar {
    border-top: 1px solid rgba(4, 36, 82, .07);
    box-shadow: 0 8px 18px rgba(4, 36, 82, .045);
}

/* AA color corrections for legacy service, city, article, and footer UI. */
body:not(.home):not(.ac-repair-lp-page) .btn:not(.btn-secondary):not(.btn-tertiary),
body:not(.home):not(.ac-repair-lp-page) .btn:not(.btn-secondary):not(.btn-tertiary) i {
    color: #061a3d;
}

body:not(.home):not(.ac-repair-lp-page) .btn-secondary {
    background: #126b94;
    color: #fff;
}

body:not(.home):not(.ac-repair-lp-page) .btn-tertiary,
body:not(.home):not(.ac-repair-lp-page) .abraham-ac-repair-launch__eyebrow,
body:not(.home):not(.ac-repair-lp-page) .abraham-equipment-eyebrow {
    color: #0b638f;
}

body:not(.home):not(.ac-repair-lp-page) .btn-tertiary::after {
    background: #126b94;
}

body:not(.home):not(.ac-repair-lp-page) .abraham-ac-repair-launch p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-ac-repair-launch__matrix a,
body:not(.home):not(.ac-repair-lp-page) .abraham-broward-section p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-seo-content p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-body p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-body li a,
body:not(.home):not(.ac-repair-lp-page) .toc-container a,
body:not(.home):not(.ac-repair-lp-page) .abraham-equipment-source-note a,
body:not(.home):not(.ac-repair-lp-page) .abraham-equipment-facts a {
    color: #0b638f;
}

body:not(.home):not(.ac-repair-lp-page) .abraham-ac-repair-launch p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-ac-repair-launch__matrix a,
body:not(.home):not(.ac-repair-lp-page) .abraham-broward-section p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-seo-content p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-body p a,
body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-body li a {
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

body:not(.home):not(.ac-repair-lp-page) .abraham-quick-answer__actions a[href^="tel:"] {
    gap: .25em;
}

body:not(.home):not(.ac-repair-lp-page) .half-form-text__form .abraham-schedule-form-heading {
    color: var(--paragraph-color);
    font-size: 32px;
    margin: 0 0 15px;
    text-align: center;
}

body:not(.home):not(.ac-repair-lp-page) .half-form-text__highlight .abraham-schedule-contact-heading {
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.44;
    margin: 0;
    padding-bottom: 5px;
    text-transform: uppercase;
}

body:not(.home):not(.ac-repair-lp-page) .abraham-seo-nap-location a {
    color: #735c13;
}

body:not(.home):not(.ac-repair-lp-page) .blog-post__bottom {
    background: #126b94;
}

body:not(.home):not(.ac-repair-lp-page) .accordian-location-links__col ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body:not(.home):not(.ac-repair-lp-page) .social-share-row-grey .social-share-row__item {
    color: #666f7c;
}

body:not(.home):not(.ac-repair-lp-page) .social-share-row-grey .resp-sharing-button__icon--solid {
    fill: #666f7c;
}

body:not(.home):not(.ac-repair-lp-page) .resp-sharing-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
}

body:not(.home):not(.ac-repair-lp-page) .resp-sharing-button,
body:not(.home):not(.ac-repair-lp-page) .resp-sharing-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:not(.home):not(.ac-repair-lp-page) .social-share-row {
    flex-wrap: wrap;
    gap: 4px;
}

body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .abraham-blog-inline-cta {
    max-width: 900px;
    margin-top: 20px;
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    body:not(.home):not(.ac-repair-lp-page) .header-phone.hidden-xs-down {
        display: none !important;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary .sub-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 760px) {
    body:not(.home):not(.ac-repair-lp-page) .abraham-quick-answer h2 {
        margin-bottom: .35rem;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-quick-answer p {
        line-height: 1.55;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-quick-answer__actions {
        margin-top: .75rem;
    }

    body:not(.home):not(.ac-repair-lp-page) .half-form-text--contact .half-form-text__form {
        padding-right: 12px;
        padding-left: 12px;
    }

    body:not(.home):not(.ac-repair-lp-page) .half-form-text--contact .half-form-text__form iframe {
        display: block;
        width: 100% !important;
        max-width: none;
    }

    body:not(.home):not(.ac-repair-lp-page) .blog-single-container .abraham-legacy-post-hero h1 {
        font-size: 30px;
        line-height: 1.05;
        margin-bottom: 16px;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .abraham-legacy-quick-answer {
        padding: 14px;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .abraham-legacy-quick-answer h2 {
        font-size: 18px;
        line-height: 1.25;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .blog-single-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .blog-single-meta > .col-xs-6 {
        width: 100%;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .blog-single-meta > .col-xs-6:last-child {
        display: none;
    }

    body:not(.home):not(.ac-repair-lp-page) .abraham-legacy-post-hero .blog-single-meta .social-share-row {
        justify-content: flex-start;
    }
}

@media (max-width: 359px) {
    body:not(.home):not(.ac-repair-lp-page) .logo {
        flex-basis: 132px;
        max-width: 132px;
    }

    body:not(.home):not(.ac-repair-lp-page) .retina-logo {
        width: 100% !important;
        background-size: contain;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-right {
        gap: 0 4px;
    }
}

@media (max-width: 339px) {
    body:not(.home):not(.ac-repair-lp-page) .logo {
        flex-basis: 120px;
        max-width: 120px;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-right {
        gap: 0 2px;
    }
}

@media (min-width: 1200px) {
    html,
    body:not(.home):not(.ac-repair-lp-page) {
        --abraham-fixed-header-offset: 94px;
    }

    @supports selector(body:has(#page-header.has-promotional-deals)) {
        body:not(.home):not(.ac-repair-lp-page):has(#page-header.has-promotional-deals) {
            --abraham-fixed-header-offset: 94px;
        }
    }

    body:not(.home):not(.ac-repair-lp-page) .page-header > .container {
        position: relative;
        z-index: 3;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-right .js-search-toggle,
    body:not(.home):not(.ac-repair-lp-page) .header-phone.hidden-xs-down {
        display: none !important;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-right {
        flex: 0 0 170px;
        justify-content: flex-end;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-btn .btn-primary {
        height: 44px;
        min-height: 44px;
        padding: 8px 20px;
        font-size: 15px;
    }

    body:not(.home):not(.ac-repair-lp-page) .header-btn .btn-primary i {
        display: none;
    }

    body:not(.home):not(.ac-repair-lp-page) .navbar {
        background: transparent;
        border-top: 0;
        box-shadow: none;
        left: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 26px;
        z-index: 4;
    }

    body:not(.home):not(.ac-repair-lp-page) .navbar > .container {
        align-items: center;
        display: flex;
        min-height: 68px;
        pointer-events: none;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary {
        margin-left: clamp(210px, 18vw, 260px);
        margin-right: clamp(130px, 12vw, 170px);
        pointer-events: auto;
        width: 100%;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul {
        gap: clamp(12px, 1.35vw, 22px);
        justify-content: center;
        min-height: 68px;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul > li,
    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul > li > a {
        min-height: 68px;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul > li {
        padding-top: 0;
        padding-bottom: 0;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul > li > a {
        align-items: center;
        display: flex;
        font-size: clamp(13px, .9vw, 14px);
        font-weight: 800;
        padding-right: 0;
        padding-left: 0;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary ul li.menu-item-has-children a {
        padding-right: 24px;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary ul li.menu-item-has-children > .sub-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 32px;
        min-height: 32px;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary > ul > li > .sub-menu {
        top: 68px;
    }

    body:not(.home):not(.ac-repair-lp-page) .nav-primary ul li:hover > .sub-menu-toggle.icon-down-carret {
        transform: translateY(-50%) rotate(180deg);
    }
}
