/* ==========================================================
   Header click-to-call  —  [trl_header_phone] / Mana Navbar
   Desktop: pill after the last menu item in .nav-links.
   Mobile:  pill in the hamburger overlay footer.
   Colours follow the header: white on the transparent hero
   state, dark once .elementor-location-header gets .scrolled.
   ========================================================== */

/* Collapse wrappers when nothing is rendered */
.elementor-widget-shortcode:has(.trl-call-wrap--empty),
.nav-links > li.nav-phone:has(.trl-call-wrap--empty) {
    display: none !important;
}

.trl-call-wrap {
    display: inline-flex;
    align-items: center;
}

.trl-call-wrap--empty {
    display: none;
}

/* ---- Base pill (used by the shortcode anywhere) ---- */
.trl-call-wrap .trl-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: #fff;
    color: var(--dark, #111111);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.trl-call-wrap .trl-call-btn:hover,
.trl-call-wrap .trl-call-btn:focus-visible {
    background: var(--gold, #FFCC02);
    border-color: var(--gold, #FFCC02);
    color: var(--dark, #111111);
    transform: translateY(-1px);
}

.trl-call-icon {
    flex: 0 0 auto;
}

/* ---- Desktop navbar: last <li> of .nav-links ----
   Selectors are deliberately more specific than global.css
   ".nav-links>li>a" / ".scrolled .nav-links>li>a" so the pill
   keeps its own colours and does not get the gold underline. */
.nav-links > li.nav-phone {
    margin-left: 4px;
}

.nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn {
    color: var(--dark, #111111);
    position: static;
}

.nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn::after {
    display: none;
}

.nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn:hover,
.nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn:focus-visible {
    color: var(--dark, #111111);
}

/* Scrolled header has a white background: invert */
.elementor-location-header.scrolled .nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn {
    background: var(--dark, #111111);
    border-color: var(--dark, #111111);
    color: #fff;
}

.elementor-location-header.scrolled .nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn:hover,
.elementor-location-header.scrolled .nav-links > li.nav-phone > .trl-call-wrap > a.trl-call-btn:focus-visible {
    background: var(--gold, #FFCC02);
    border-color: var(--gold, #FFCC02);
    color: var(--dark, #111111);
}

/* ---- Mobile overlay footer (dark background) ---- */
.nav-overlay-footer .trl-call-wrap--overlay .trl-call-btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 15px;
}

.nav-overlay-footer .trl-call-wrap--overlay .trl-call-btn:hover,
.nav-overlay-footer .trl-call-wrap--overlay .trl-call-btn:focus-visible {
    background: var(--gold, #FFCC02);
    border-color: var(--gold, #FFCC02);
    color: var(--dark, #111111);
    transform: none;
}

/* ---- Mobile top bar: icon-only button beside the hamburger ----
   .nav-actions wraps the hamburger and this button. On desktop the
   wrapper is hidden (the hamburger was already display:none there),
   so the .nav grid keeps its original three items. */
.nav .nav-actions {
    display: none;
}

@media (max-width: 1200px) {
    .nav .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        grid-column: 3;
        justify-self: end;
    }

    .nav-actions .trl-call-wrap--mobile .trl-call-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        justify-content: center;
        gap: 0;
        background: #fff;
        border-color: #fff;
        color: var(--dark, #111111);
    }

    .nav-actions .trl-call-wrap--mobile .trl-call-num {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .nav-actions .trl-call-wrap--mobile .trl-call-icon {
        width: 14px;
        height: 14px;
    }

    .elementor-location-header.scrolled .nav-actions .trl-call-wrap--mobile .trl-call-btn {
        background: var(--dark, #111111);
        border-color: var(--dark, #111111);
        color: #fff;
    }
}
