/* NAVBAR */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.nav-normal {
    background-color: var(--bg-navbar);
}

.nav-home {
    /* background-color: black; */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav-home .nav-links li {
    color: white !important;
}

.nav-home-img {
    width: 100px;
}

.nav-links {
    display: flex;
    gap: 21px;
    margin: 0;
}

.nav-links {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
}

.nav-links li {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-active {
    font-weight: 500;
    border-bottom: 2px solid currentColor;
    padding-bottom: 3px;
}

/* FOOTER */

footer {
    background-image: url(../assets/images/footer-bg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    color: white;
    padding-top: 90px;
    padding-bottom: 10px;
}

footer h6 {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-underline-offset: 3px;
}

@media (min-width:990px) {
    footer {
        background-position: top;
    }
}

footer ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul a {
    text-decoration: none;
    color: inherit;
    font-weight: 100;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-head {
    text-align: center;
}

@media (min-width:1100px) {
    .footer-head p {
        width: 60%;
        margin: auto;
        padding-bottom: 1rem;
    }
}

.footer-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 20px ;
    margin-top: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-socials img {
    transition: all 0.3s;
    cursor: pointer;
}

.footer-socials img:hover {
    transform: translateY(-3px);
}

.copyright {
    display: flex;
    justify-content: space-between;
    padding-top: 9px;
}

.copyright a{
    text-decoration: none;
    color: inherit;
}

/* --- ADDED TRANSITIONS & HOVER STATES FOR DESKTOP NAVBAR --- */
.nav-links li {
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-links li:hover {
    color: var(--secondary-color);
}

/* --- MOBILE DRAWER & HAMBURGER MENU STYLES --- */

/* HAMBURGER BTN */
.hamburger-btn {
    display: none;
    background: white;
    /* filter: brightness(1) invert(); */
    border-radius: 12px;
    border: none;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger-btn img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.hamburger-btn:hover img {
    transform: scale(1.1);
}

/* MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1050; /* Above regular content and Bootstrap navbar */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* DRAWER HEADER */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-logo {
    height: 40px;
    width: auto;
}

.drawer-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close-btn img {
    width: 24px;
    height: 24px;
    /* filter: brightness(0) invert(1);  */
    /* Turns close.svg SVG to pure white for perfect contrast on dark drawer */
    transition: transform 0.2s ease;
}

.drawer-close-btn:hover img {
    transform: rotate(90deg);
}

/* DRAWER LINKS */
.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-links a {
    text-decoration: none;
}

.drawer-links li {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-links li:hover {
    color: var(--text-orange-color);
    padding-left: 6px;
}

.drawer-links .drawer-active {
    color: var(--text-orange-color);
    font-weight: 600;
    border-left: 3px solid var(--text-orange-color);
    padding-left: 8px;
}

/* DRAWER ACTIONS */
.drawer-actions {
    margin-top: auto; /* Push Get a Quote CTA to bottom */
}

.drawer-actions .nav-btn-style {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--btn-orange-color); /* Bright premium orange highlight for mobile CTA button */
    border-radius: 50px;
}

/* DRAWER OVERLAY */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px); /* Premium blur effect on the background behind active drawer */
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- MOBILE RESPONSIVENESS AND MEDIA QUERIES --- */

/* TABLETS AND PHONES */
@media (max-width: 1100px) {
    /* Hide desktop navbar elements */
    .nav-links {
        display: none !important;
    }
    
    .nav-btn-style {
        display: none !important;
    }
    
    /* Show hamburger icon */
    .hamburger-btn {
        display: flex;
    }

    /* Footer Responsive layout */
    .footer-body {
        flex-direction: column;
        gap: 36px;
        text-align: center;
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 60px;
        width: 100%;
    }

    .footer-logos {
        justify-content: center;
        width: 100%;
    }

    .footer-socials {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* MOBILE PHONES */
@media (max-width: 767px) {
    .footer-head h2 {
        font-size: 28px;
    }
    
    .footer-head p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 575px) {
    .footer-links {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .copyright {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
        padding-top: 15px;
    }
}