/* Large favicon mark, hanging from the top-left of the fixed nav.
   Bar copy, the nav title, breadcrumbs, and hero badges are shifted clear of it. */
#siteLogo {
    height: 144px;
    width: auto;
    max-height: none;
    object-fit: contain;
    background: transparent;
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0 !important;
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 2;
    cursor: pointer;
}

a.brand,
a.nav-brand,
a.topnav-brand,
.nav-inner {
    display: flex;
    align-items: center;
    height: 64px;
    overflow: visible;
    min-width: 0;
}

/* Title shares the orange-rule / same-day-text left edge.
   Inverse of the hero "Our only job." gradient (flame → copper-light). */
body:has(#siteLogo) nav.landing-nav,
body:has(#siteLogo) header.top-bar,
body:has(#siteLogo) .topnav {
    padding-left: 0 !important;
}

body:has(#siteLogo) nav.landing-nav > a.brand,
body:has(#siteLogo) header.top-bar > a.brand,
body:has(#siteLogo) a.topnav-brand,
body:has(#siteLogo) a.nav-brand {
    margin-left: var(--logo-clear);
    gap: 0 !important;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: clamp(1.28rem, 1.02rem + 1.2vw, 1.85rem) !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--flame-light, #F7A25E) !important;
    background-image: linear-gradient(135deg, var(--copper-light, #7EC8C8) 0%, var(--flame, #F47621) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header.top-bar,
nav.landing-nav,
nav.nav,
.topnav {
    overflow: visible !important;
}

/* Logo is ~101px wide and starts after the nav's left padding.
   --logo-hang is the mark's height so page copy can start below it. */
body:has(#siteLogo) {
    --logo-hang: 144px;
    --logo-clear: 180px;
}

/* Homepage same-day bar sits under the hanging mark. Copy and the flame
   rules both start after the logo. Bars lower on a page stay full width. */
body:has(#siteLogo) .hero > .service-bar {
    padding-left: var(--logo-clear) !important;
    border-top-color: transparent;
    border-bottom-color: transparent;
    position: relative;
}

body:has(#siteLogo) .hero > .service-bar::before,
body:has(#siteLogo) .hero > .service-bar::after {
    content: "";
    position: absolute;
    left: var(--logo-clear);
    right: 0;
    height: 3px;
    background: var(--flame, #F47621);
    pointer-events: none;
}

body:has(#siteLogo) .hero > .service-bar::before { top: -3px; }
body:has(#siteLogo) .hero > .service-bar::after { bottom: -3px; }

/* Keep the bar copy on the same left edge as the flame rules on wide screens. */
body:has(#siteLogo) .hero > .service-bar .service-bar-inner {
    margin-left: 0;
    margin-right: auto;
    width: auto;
    max-width: 100%;
}

/* Heroes that begin under the nav (city, service, pricing, quote) start below the mark. */
body:has(#siteLogo) .hero:not(:has(> .service-bar)) > .hero-content,
body:has(#siteLogo) .faq-hero,
body:has(#siteLogo) .page-wrap,
body:has(#siteLogo) .page {
    padding-top: calc(var(--logo-hang) + 24px) !important;
}

body:has(#siteLogo) nav.breadcrumb,
body:has(#siteLogo) .breadcrumb-bar {
    left: var(--logo-clear) !important;
    width: calc(100% - var(--logo-clear)) !important;
    right: auto !important;
    padding-left: 16px !important;
    box-sizing: border-box;
}

/* Phone numbers stay on one line. */
.service-bar-hours a,
a.nav-phone,
a.nav-mobile-phone,
header.top-bar .call-link,
a.service-promise-cta,
a.btn-call {
    white-space: nowrap !important;
}

/* One call action: phone links in the hero stay text, not a second filled button. */
a.service-promise-cta,
a.btn-call {
    display: inline !important;
    width: auto !important;
    max-width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
a.service-promise-cta:hover,
a.btn-call:hover {
    background: transparent !important;
    color: #ffd2b0 !important;
}

@media (max-width: 768px) {
    #siteLogo {
        height: 128px;
        left: 20px;
    }

    body:has(#siteLogo) {
        --logo-hang: 128px;
        --logo-clear: 148px;
    }

    /* City heroes are a row of copy + promise. That row puts the badge
       under the logo. Stack them so the badge is full width and below the mark. */
    body:has(#siteLogo) .hero:has(.service-promise) {
        flex-direction: column;
        align-items: stretch;
    }

    body:has(#siteLogo) .hero:has(.service-promise) > .hero-content,
    body:has(#siteLogo) .hero:has(.service-promise) > .service-promise {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}

/* Narrow screens: pull the shared left edge closer to the logo so the
   larger title still fits on one line before the menu button. */
@media (max-width: 420px) {
    body:has(#siteLogo) {
        --logo-clear: 124px;
    }

    body:has(#siteLogo) nav.landing-nav > a.brand,
    body:has(#siteLogo) header.top-bar > a.brand,
    body:has(#siteLogo) a.topnav-brand,
    body:has(#siteLogo) a.nav-brand {
        font-size: clamp(1.12rem, -0.74rem + 8.3vw, 1.5rem) !important;
    }
}

/* Discreet trademark. The name wrapper keeps the superscript inline inside
   flex wordmarks (a.brand, a.nav-brand, a.topnav-brand).
   Solid black DM Sans, even when the wordmark is a gradient. */
sup.tm {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 0.5em;
    line-height: 0;
    vertical-align: super;
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
}

a.brand > .brand-word,
a.nav-brand > .brand-word,
a.topnav-brand > .brand-word {
    white-space: nowrap;
}

/* Gradient wordmarks clip on the anchor. Paint the same gradient on the
   name so the mark stays visible after the text moves into the wrapper. */
body:has(#siteLogo) a.brand > .brand-word,
body:has(#siteLogo) a.nav-brand > .brand-word,
body:has(#siteLogo) a.topnav-brand > .brand-word {
    background-image: linear-gradient(135deg, var(--copper-light, #7EC8C8) 0%, var(--flame, #F47621) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* DIY and guide pages. Keep the box readable on light and dark heroes. */
.disclaimer-block {
    margin: 20px 0 8px;
    padding: 16px 18px;
    background: #fff8f1;
    color: #2a2a2a;
    border: 1px solid #f47621;
    border-left: 6px solid #f47621;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    -webkit-text-fill-color: #2a2a2a;
}
.disclaimer-block strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #0c4a4a;
    -webkit-text-fill-color: #0c4a4a;
}
.disclaimer-block p { margin: 0; color: #2a2a2a; -webkit-text-fill-color: #2a2a2a; }
.disclaimer-block a { color: #0c4a4a; font-weight: 600; }

.pro-callout {
    margin: 16px 0;
    padding: 16px 18px;
    background: #3b1212;
    color: #fff;
    border-radius: 12px;
    border: 1px solid #dc2626;
    text-align: left;
}
.pro-callout .pro-callout-label {
    margin: 0 0 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #fecaca;
}
.pro-callout p { margin: 0; line-height: 1.55; color: #fff; }
.pro-callout a { color: #fecaca; font-weight: 600; }

