/* Sitewide formatting corrections verified against live desktop and mobile pages. */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

html {
    --abraham-fixed-header-offset: 185px;
    scroll-padding-top: calc(var(--abraham-fixed-header-offset) + 12px);
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

body:not(.home):not(.ac-repair-lp-page) {
    padding-top: var(--abraham-fixed-header-offset);
}

body.home:not(.ac-repair-lp-page) .masthead--homepage {
    margin-top: var(--abraham-fixed-header-offset);
}

@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: 210px;
    }
}

body:not(.home):not(.ac-repair-lp-page) .masthead,
body:not(.home):not(.ac-repair-lp-page) .masthead--innerpage,
body:not(.home):not(.ac-repair-lp-page) .abraham-aeo-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-emergency-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-estimator-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-license-proof__hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-maint-calc-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-troubleshooter-hero {
    margin-top: 0 !important;
}

body:not(.home):not(.ac-repair-lp-page) .masthead--innerpage__wrapper {
    margin-top: 0 !important;
}

body:not(.home):not(.ac-repair-lp-page) .has-promotional-deals + .masthead--innerpage .masthead--innerpage__wrapper,
body:not(.home):not(.ac-repair-lp-page) .page-header.has-promotional-deals ~ .masthead--innerpage .masthead--innerpage__wrapper {
    margin-top: 0 !important;
}

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

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

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

.masthead,
.image-text,
.deals-crads,
.half-image-text-icon-pullouts {
    overflow-x: clip;
}

.js-search-toggle {
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
}

.desktop-menu__search:not(.js-search-active) {
    display: none;
    overflow: hidden;
    pointer-events: none;
}

.desktop-menu__search.js-search-active {
    display: block;
}

.desktop-menu__search-close {
    display: none !important;
}

.desktop-menu__search input,
.mobile-search form input {
    min-height: 44px;
}

.desktop-menu__search button,
.mobile-search form button {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
}

.mobile-search form button {
    background: #209AD6;
    bottom: auto;
}

.retina-logo {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo-container img {
    display: block;
    width: 100%;
    height: auto;
}

.mobile-phone a,
.nav-primary a,
.header-phone a {
    min-height: 44px;
}

.mobile-phone a,
.header-phone a {
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.masthead__text h1,
.masthead__text p.shadow {
    max-width: 10.5em;
}

.testimonial-cards,
.testimonial-card-right,
.testimonial-card-right__wrap,
.testimonial-card-slider {
    max-width: 100%;
}

.testimonial-card-right,
.testimonial-card-right__wrap,
.testimonial-card-slider {
    overflow: hidden;
}

.testimonial-card-slider {
    margin-left: 0;
    margin-right: 0;
}

.testimonial-card-slider .slick-list {
    overflow: hidden;
}

.footer-right-bg-icon,
.service-logo-graphic,
.image-text__pattern {
    max-width: min(34vw, 360px);
}

.footer-right-bg-icon {
    right: 0;
}

.service-logo-graphic {
    right: clamp(-120px, -8vw, -40px);
}

.logo-svg__preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.fx-accordion--service-location__map:has(.fx-location__map:empty) {
    display: none;
}

.fx-accordion--service-location:has(.fx-location__map:empty) {
    justify-content: center;
}

.fx-accordion--service-location:has(.fx-location__map:empty) .fx-accordion--service-location__content,
.fx-accordion--service-location:has(.fx-location__map:empty) .fx-accordion--service-location__content__text {
    width: 100%;
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.location-detail {
    background: var(--white);
}

.location-detail__content {
    padding-top: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(56px, 9vw, 100px);
}

.location-detail__grid {
    display: grid;
    gap: 24px;
}

.location-detail__map-shell,
.location-listing {
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(51, 51, 51, 0.14);
    overflow: hidden;
}

.location-detail__map-shell {
    min-height: 320px;
    background: var(--light-blue);
}

.location-detail__map-shell:has(.fx-location__map:empty) {
    display: none;
}

.location-listing {
    padding: clamp(24px, 5vw, 42px);
}

.location-listing__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.location-listing h2 {
    margin-bottom: 18px;
    color: var(--dark-blue);
}

.location-listing__section,
.location-listing__address {
    margin-bottom: 16px;
    color: var(--paragraph-color);
    font-size: 18px;
    line-height: 1.45;
}

.location-listing__section a,
.location-listing__address a {
    font-weight: 600;
}

.location-listing .btn-tertiary {
    width: fit-content;
    min-height: 44px;
    margin-top: 8px;
}

.header-notification-bar,
.masthead__text,
.masthead--innerpage__text,
.page-content,
.wysiwyg,
.abraham-book-page {
    overflow-wrap: anywhere;
}

.header-notification-bar span,
.header-notification-bar a {
    white-space: normal;
}

.book-trust-strip__inner,
.abraham-trust-bar {
    max-width: 100%;
}

.book-trust-badge,
.abraham-trust-bar__item {
    min-width: 0;
}

.testimonials__wrapper,
.testimonial-slider,
.testimonial-slider .slick-list {
    overflow: hidden;
}

.full-width-cta__content {
    position: relative;
    overflow: hidden;
}

.full-width-cta__man-image {
    max-width: min(432px, 34vw);
    object-fit: contain;
}

.fx-accordion--service-location {
    overflow: clip;
}

@media (max-width: 480px) {
    .header-notification-bar {
        font-size: clamp(16px, 4.8vw, 22px);
        line-height: 1.28;
    }

    .header-wrap {
        flex-wrap: nowrap;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header-right {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .logo {
        width: min(45vw, 178px);
        max-width: none;
    }

    .retina-logo {
        width: min(45vw, 178px);
        height: auto;
        background-image: none !important;
    }

    .retina-logo img {
        display: block !important;
        max-height: 54px;
        object-fit: contain;
    }

    .masthead__wrapper {
        padding-top: 198px !important;
    }

    body.home:not(.ac-repair-lp-page) .masthead--homepage .masthead__wrapper {
        padding-top: clamp(64px, 14vw, 92px) !important;
    }

    .masthead--innerpage__wrapper {
        padding-top: 64px !important;
        padding-bottom: 48px !important;
    }

    .masthead__text {
        margin-bottom: 34px !important;
    }

    .masthead__text > span {
        font-size: clamp(23px, 6.8vw, 30px) !important;
    }

    .masthead__text h1,
    .masthead__text p.shadow,
    .masthead--innerpage__text h1,
    .masthead--innerpage__text .h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 28px !important;
        font-size: clamp(28px, 8.5vw, 34px) !important;
        line-height: 1.08em !important;
        letter-spacing: 0;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .masthead--homepage .masthead__text h1,
    .masthead--homepage .masthead__text p.shadow {
        font-size: clamp(25px, 7.4vw, 31px) !important;
        line-height: 1.04em !important;
        max-width: min(100%, 12em) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .masthead--innerpage__text h1,
    .masthead--innerpage__text .h1 {
        font-size: clamp(31px, 8.2vw, 36px) !important;
        line-height: 1.12em !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .masthead__text p.shadow {
        left: 2px !important;
        top: 2px !important;
        -webkit-text-stroke-width: 1px !important;
    }

    .masthead__cartoon-image {
        left: -10px !important;
        top: -12px !important;
        max-width: 108px !important;
        height: auto;
    }

    .masthead__text .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .masthead__text .btn,
    .masthead__text .btn-primary,
    .masthead__text .btn-secondary,
    .masthead__text .btn-tertiary {
        width: min(100%, 260px);
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .book-trust-strip__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
        justify-items: center;
    }

    .book-trust-badge {
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }

    .abraham-trust-bar {
        gap: 4px 10px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .abraham-trust-bar__item {
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .abraham-trust-bar__divider {
        display: none;
    }

    .full-width-cta__content {
        overflow: visible;
    }

    .full-width-cta__man-image {
        max-width: min(321px, calc(100vw - 32px));
    }
}

@media (min-width: 1200px) {
    .home .masthead--homepage {
        margin-top: var(--abraham-fixed-header-offset);
    }

    .masthead__wrapper {
        padding-top: 64px;
        padding-bottom: 142px;
    }

    .masthead__text {
        padding-top: 28px;
    }

    .masthead__text h1,
    .masthead__text p.shadow {
        font-size: clamp(62px, 5.2vw, 86px);
        line-height: 0.96em;
        max-width: 8.5em;
    }

    .pullouts-image-col {
        min-height: 560px;
        overflow: visible;
    }

    .pullouts-image-graphics {
        right: clamp(-76px, -4vw, -32px);
    }

    .pullouts-image.animated-pullouts-image {
        left: auto;
        right: max(32px, calc((100vw - 1366px) / 2 + 32px));
        width: min(52vw, 720px);
        max-width: 720px;
    }

    .pullouts-image.animated-pullouts-image img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
    }

    .testimonial-card-right__wrap {
        width: 100%;
    }

    .testimonial-card {
        width: min(385px, 100%);
    }

    .location-detail__grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
        align-items: stretch;
    }

    .location-detail__map-shell:has(.fx-location__map:empty) + .location-listing,
    .location-detail__grid:not(:has(.location-detail__map-shell:not(:empty))) .location-listing {
        max-width: 720px;
    }
}

/* Keep fixed-header spacing controlled by the measured header-height variable.
   Later breakpoint rules in the legacy header CSS can otherwise reintroduce
   masthead margins that push hero text under or away from the menu. */
body:not(.home):not(.ac-repair-lp-page) .masthead,
body:not(.home):not(.ac-repair-lp-page) .masthead--innerpage,
body:not(.home):not(.ac-repair-lp-page) .abraham-aeo-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-emergency-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-estimator-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-license-proof__hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-maint-calc-hero,
body:not(.home):not(.ac-repair-lp-page) .abraham-troubleshooter-hero {
    margin-top: 0 !important;
}

body:not(.home):not(.ac-repair-lp-page) .masthead--innerpage__wrapper,
body:not(.home):not(.ac-repair-lp-page) .has-promotional-deals + .masthead--innerpage .masthead--innerpage__wrapper,
body:not(.home):not(.ac-repair-lp-page) .page-header.has-promotional-deals ~ .masthead--innerpage .masthead--innerpage__wrapper {
    margin-top: 0 !important;
}

.full-width-cta .full-width-cta__content {
    overflow: visible;
}

.full-width-cta .btn.btn-icon {
    position: relative;
}

@media (min-width: 1200px) {
    .full-width-cta {
        padding-top: 104px;
        padding-bottom: 108px;
    }

    .full-width-cta .full-width-cta__text {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 340px;
        padding-left: clamp(320px, 28vw, 390px) !important;
        text-align: left;
    }

    .full-width-cta h2,
    .full-width-cta p {
        margin-left: 0;
        margin-right: 0;
        max-width: 820px;
        text-align: left;
    }

    .full-width-cta .full-width-cta__highlight-text,
    .full-width-cta .full-width-cta__highlight-text::after {
        font-size: clamp(52px, 4.6vw, 74px);
        line-height: 0.98;
        max-width: 100%;
        text-align: left;
    }

    .full-width-cta .full-width-cta__man-image {
        left: 0;
        max-width: 300px;
        top: 50%;
        width: 300px;
    }

    .full-width-cta .full-width-cta__text .btn-group {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
}

.page-footer .footer-top__right .btn.btn-icon {
    position: relative !important;
}

.abraham-broward-footer-links {
    padding: 32px 0 38px;
}

.abraham-broward-footer-links h2 {
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.25;
    margin-bottom: 16px;
}

.abraham-broward-footer-links .container > div,
.abraham-broward-footer-links__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.abraham-broward-footer-links .container > div > a,
.abraham-broward-footer-links .container > div > span,
.abraham-broward-footer-links__grid > a,
.abraham-broward-footer-links__grid > span {
    align-items: center;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 6px;
    color: #fff;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    text-align: center;
    text-decoration: none;
}

.abraham-broward-footer-links .container > div > a:hover,
.abraham-broward-footer-links__grid > a:hover {
    background: rgb(32 154 214 / 18%);
    border-color: #209AD6;
    color: #fff;
}

@media (max-width: 1024px) {
    .abraham-broward-footer-links .container > div,
    .abraham-broward-footer-links__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .abraham-broward-footer-links .container > div,
    .abraham-broward-footer-links__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .abraham-broward-footer-links .container > div,
    .abraham-broward-footer-links__grid {
        grid-template-columns: 1fr;
    }
}
