﻿/*
webpro-nav.css
Styles for universal top nav and mobile nav menu.
Used across all pages (home + interior).
*/

/* === GLOBAL STYLES (apply to all screen sizes unless overridden) === */
.webpro-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    transition: all 0.3s ease;
}

    .webpro-header .top-bar {
        font-size: 1rem;
        color: #fff;
        padding: 0.4rem 1.5rem;
        width: 100%;
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: background-color 0.3s ease;
    }

        .webpro-header .top-bar a,
        .webpro-header .top-bar .text-muted,
        .webpro-header .top-bar i,
        .webpro-header .top-bar svg {
            color: #fff !important;
        }

            .webpro-header .top-bar a:hover {
                color: #00a0dd !important;
            }

.hdr-phone {
    margin-left: 4rem;
}

.container-1240 {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* === NAVBAR MAIN ROW === */
.webpro-header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: transparent !important;
    box-shadow: none;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* === DESKTOP MENU SPACING === */
.webpro-header .navbar-nav {
    gap: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}


/* === DROPDOWN MENU ANIMATION === */
.webpro-header .dropdown-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

    .webpro-header .dropdown-menu.show {
        opacity: 1;
        transform: translateY(0);
    }

/* === NAVBAR LINKS === */
.webpro-header .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

    .webpro-header .navbar-nav .nav-link:hover,
    .webpro-header .navbar-nav .nav-link:focus,
    .webpro-header .navbar-nav .nav-link.active {
        color: #00a0dd;
    }

/* === BRAND LOGO === */
.webpro-header .navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.8rem;
    transition: padding 0.3s ease;
}

    .webpro-header .navbar-brand img.logo {
        max-height: 60px;
        transition: transform 0.3s ease;
        display: block;
    }

.webpro-header.scrolled .navbar-brand img.logo {
    transform: scale(0.7); /* Uniform scale */
}



/* === DESKTOP NAV WRAPPER === */
@media (min-width: 992px) {
    .webpro-nav-wrapper {
        max-width: 1240px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #webproNav {
        text-align: center;
    }

        #webproNav .nav-link {
            padding: 0.5rem 0;
        }

    .webpro-header #webproNav .topbar-mobile {
        display: none !important;
    }

    .webpro-header .top-bar {
        display: flex !important;
        align-items: center;
    }

        .webpro-header .top-bar .container-1240 {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100%;
        }

    .webpro-header .dropdown-menu {
        position: absolute;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 0.25rem;
        min-width: 10rem;
    }

        .webpro-header .dropdown-menu.show {
            display: block;
        }

    .webpro-header .dropdown-toggle::after {
        margin-left: 0.5rem;
    }
}

/* === MOBILE & TABLET (≤991.98px) === */
@media (max-width: 991.98px) {
    .webpro-header .top-bar {
        display: none !important;
    }


    .webpro-header .navbar {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        background-color: rgba(0, 0, 0, 0.85) !important;
        box-shadow: none;
        transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    }
  
    .webpro-header .navbar-nav .nav-link,
    .webpro-header .navbar-collapse .nav-link {
        color: #fff;
        text-align: left;
        padding: 0.375rem 0;
        width: 100%;
    }

        .webpro-header .navbar-nav .nav-link:hover,
        .webpro-header .navbar-collapse .nav-link:hover {
            color: #00a0dd;
        }

    .webpro-header .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.85);
        padding: 1rem 1.25rem 2.5rem 1.25rem;
        width: 100%;
        max-width: none;
        left: 0;
        position: absolute;
        top: 100%;
        margin-top: -0.1rem;
    }

        .webpro-header .navbar-collapse.show {
            display: flex !important;
            flex-direction: column;
        }

        .webpro-header .navbar-collapse .navbar-nav {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            padding-left: 0;
            order: 1;
        }

        .webpro-header .navbar-collapse .dropdown-menu {
            position: static;
            background-color: transparent;
            border: none;
            box-shadow: none;
            width: 100%;
            margin-left: 0;
            transform: none !important;
            /* Animation setup */
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            padding: 0; /* prevent pop-in padding during animation */
            transition: max-height 0.4s ease, opacity 0.3s ease;
        }

            .webpro-header .navbar-collapse .dropdown-menu.show {
                /* Animate open */
                opacity: 1;
                max-height: 300px; /* adjust if more items added */
                padding-top: 0.25rem;
            }

        /* Individual submenu items */
        .webpro-header .navbar-collapse .dropdown-item {
            text-align: left;
            width: 100%;
            padding: 0.25rem 1.25rem;
            font-size: 0.9rem;
            color: white !important;
            transition: color 0.2s ease;
        }

            /* Optional hover effect for mobile submenu links */
            .webpro-header .navbar-collapse .dropdown-item:hover {
                color: #00a0dd !important;
            }


    .webpro-header .navbar-collapse.show .topbar-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        padding-left: 0;
        width: 100%;
        order: 2;
    }

    .webpro-header .topbar-mobile .call-info {
        margin-top: 0.5rem;
    }

    .webpro-header .topbar-mobile .social-icons a i {
        color: #fff !important;
    }

    .hdr-phone {
        margin-left: 0rem;
    }

    .webpro-header .navbar-brand img.logo {
        height: auto;
        width: auto;
        max-height: 32px;
        transition: transform 0.3s ease, max-height 0.3s ease;
        display: block;
    }

    .webpro-header.scrolled .navbar-brand img.logo {
        transform: scale(0.9); /* Subtle uniform scale */
    }
}





/* === HAMBURGER STYLING === */
.webpro-header .navbar-toggler {
    margin-left: auto;
    border: none;
    outline: none;
    box-shadow: none;
}

    .webpro-header .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='30' height='30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
    }

    .webpro-header .navbar-toggler:focus {
        outline: 1px solid rgba(255, 255, 255, 0.2);
        outline-offset: -4.5px;
        box-shadow: none;
    }


/* === SCROLLED HEADER STYLES (DESKTOP ONLY) === */
@media (min-width: 992px) {
    .webpro-header.scrolled {
        background-color: rgba(0, 0, 0, 0.65) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

        .webpro-header.scrolled .top-bar {
            display: none !important; /* hide top bar on scroll for desktop only */
        }

        .webpro-header.scrolled .navbar {
            background-color: transparent !important; /* remove sticky background from navbar */
            box-shadow: none !important;
            padding-top: 0.25rem;
            padding-bottom: 0.25rem;
        }

        .webpro-header.scrolled .navbar-brand {
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;
        }
        .webpro-header.scrolled .navbar {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

            .webpro-header.scrolled .navbar .navbar-brand {
                padding-top: 0 !important;
                padding-bottom: 0 !important;
            }

            .webpro-header.scrolled .navbar .navbar-nav .nav-link {
                padding-top: 0.5rem !important;
                padding-bottom: 0.5rem !important;
            }


}


