/* Shared mobile layout and contact actions. */
.rev_slider_wrapper {
    aspect-ratio: 1170 / 620;
    max-height: 620px;
    background: #252e35 url('../images/optimized/slider-1.webp') center center / cover no-repeat;
}

.rev_slider {
    background-color: transparent !important;
}

@media (max-width: 1024px) {
    .rev_slider_wrapper { aspect-ratio: 1024 / 620; }
}

@media (max-width: 778px) {
    .rev_slider_wrapper { aspect-ratio: 778 / 560; }
}

@media (max-width: 480px) {
    .rev_slider_wrapper { aspect-ratio: 480 / 460; }
}

.header-area .logo-bar .logo img {
    height: auto;
}

.parallex-button .btn {
    max-width: 100%;
    white-space: normal;
}

.contact-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    right: calc(24px + env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
}

.contact-actions .contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 24px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.contact-actions .contact-action .fa {
    font-size: 22px;
}

.contact-actions .contact-action-phone {
    display: none;
    background: #f43438;
}

.contact-actions .contact-action-whatsapp {
    background: #128c7e;
}

.contact-actions .contact-action:hover {
    filter: brightness(.92);
}

.contact-actions .contact-action:focus-visible,
.navigation-2 .navbar-toggle:focus-visible,
.navigation-2 .navbar-nav a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    html {
        scroll-padding-bottom: 80px;
        scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .top-bar .left-text {
        display: none;
    }

    .top-bar .nav-right {
        display: flex;
        justify-content: center;
        float: none !important;
        margin: 0;
    }

    .top-bar .nav-right > li {
        float: none;
    }

    .top-bar .nav-right > li > a {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 24px;
        white-space: nowrap;
    }

    .header-area .logo-bar {
        padding: 18px 0;
    }

    .header-area .logo-bar .logo {
        float: none;
        text-align: center;
    }

    .header-area .logo-bar .logo img {
        width: 255px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .header-area .logo-bar .information-content {
        display: flex;
        justify-content: center;
        float: none;
        margin-top: 8px;
    }

    .header-area .logo-bar .info-box {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        float: none;
        margin: 0;
        padding: 0;
    }

    .header-area .logo-bar .header-email,
    .header-area .logo-bar .info-box div.text {
        display: none;
    }

    .header-area .logo-bar .info-box .icon {
        position: static;
        font-size: 22px;
        line-height: 28px;
    }

    .header-area .logo-bar .info-box a.location {
        font-size: 18px;
        line-height: 28px;
    }

    .navigation-2 .navbar-toggle {
        min-width: 44px;
        min-height: 44px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .navigation-2 #main-navigation.in {
        max-height: 60vh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .navigation-2 #main-navigation .navbar-nav > li > a,
    .navigation-2 #main-navigation .navbar-nav .dropdown-menu > li > a {
        min-height: 44px;
        height: auto;
        padding: 12px 20px;
        line-height: 1.4 !important;
        white-space: normal;
    }

    .form-control {
        font-size: 16px;
    }

    .rev_slider .hero-caption {
        text-align: left !important;
    }

    .rev_slider .hero-action a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 112px !important;
        min-height: 48px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .contact-actions {
        right: 0;
        bottom: 0;
        left: 0;
        gap: 8px;
        padding: 8px 12px;
        padding-right: calc(12px + env(safe-area-inset-right));
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        padding-left: calc(12px + env(safe-area-inset-left));
        border-top: 1px solid #e5e5e5;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
    }

    .contact-actions .contact-action {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        border-radius: 4px;
        box-shadow: none;
    }

    .contact-actions .contact-action-phone {
        display: inline-flex;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navigation-2 .navbar-header {
        float: none;
    }

    .navigation-2 .navbar-toggle {
        display: block;
    }

    .navigation-2 .navbar-collapse.collapse {
        display: none !important;
    }

    .navigation-2 .navbar-collapse.collapse.in {
        display: block !important;
    }

    .navigation-2 .navbar-nav,
    .navigation-2 .navbar-nav > li {
        float: none !important;
    }

    .navigation-2 .navbar-nav > li.hidden-sm {
        display: block !important;
    }

    .navigation-2 .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}
