nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 3rem;
    position: relative;
    transition: all 0.3s ease;

    /* Scrolled header style */
    &.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 90;
        backdrop-filter: blur(5px);
    }
}

.logo {
    width: 178.09px;
    height: 62px;
    z-index: 2;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 35px;
    justify-content: end;
    align-items: center;

    a {
        color: black;
        text-decoration: none;
        font-size: 14px;
        height: 15px;
        display: flex;
        align-items: center;
        transition: opacity 0.3s ease;

        &:hover {
            opacity: 0.7;
        }
    }
}

.call-button {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 15px;
    background-color: black;
    border-radius: 21px;
    padding: 1.5rem 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;

    .phone-icon {
        width: 29px;
        height: 29px;
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
            width: 21px;
            height: 21px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
    }

    .call-text {
        color: white;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }

    &:hover {
        background-color: #333;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile menu styles */
.menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    display: none;

    .toggler {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 102;
        cursor: pointer;
        width: 50px;
        height: 50px;
        opacity: 0;

        &:checked+.hamburger>div {
            transform: rotate(135deg);
        }

        /* Turns Lines Into X */
        &:checked+.hamburger>div:before,
        &:checked+.hamburger>div:after {
            top: 0;
            transform: rotate(90deg);
        }

        /* Rotate On Hover When Checked */
        &:checked:hover+.hamburger>div {
            transform: rotate(225deg);
        }

        /* Show Menu */
        &:checked~.mobile-menu {
            visibility: visible;
            opacity: 1;
        }
    }

    .hamburger {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 101;
        width: 50px;
        height: 50px;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        transition: background 0.3s ease;

        /* Hamburger Line */
        >div {
            position: relative;
            width: 100%;
            height: 2px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;

            /* Hamburger Lines - Top & Bottom */
            &:before,
            &:after {
                content: '';
                position: absolute;
                z-index: 101;
                top: -10px;
                width: 100%;
                height: 2px;
                background: inherit;
                transition: all 0.4s ease;
            }

            /* Moves Line Down */
            &:after {
                top: 10px;
            }
        }
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    transition: all 0.4s ease;
    z-index: 99;
}

.mobile-menu-inner {
    text-align: center;
    width: 100%;
    max-width: 90%;
    max-height: 100%;
    padding: 30px 0;
    transition: opacity 0.4s ease;

    ul {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            margin: 20px 0;

            a {
                color: #fff;
                font-size: 1.5rem;
                text-decoration: none;
                transition: color 0.3s ease, transform 0.3s ease;
                display: block;
                padding: 15px;

                &:hover {
                    color: #ccc;
                    transform: translateY(-3px);
                }
            }
        }
    }
}

.mobile-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #fff;
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 200px;

    svg {
        width: 20px;
        height: 20px;
    }

    &:hover {
        background-color: #eee;
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    nav {
        grid-template-columns: auto auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-wrap {
        display: block;

        .hamburger,
        .toggler {
            position: fixed;
            top: 20px;
            right: 20px;
        }
    }

    nav.scrolled .menu-wrap {

        .hamburger,
        .toggler {
            top: 15px;
        }
    }
}

@media (max-width: 576px) {
    nav {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;

        &.scrolled {
            padding-top: 0.8rem;
            padding-bottom: 0.8rem;
        }
    }

    .logo {
        width: 140px;
        height: 50px;
    }

    .menu-wrap {
        .hamburger {
            top: 15px;
            right: 15px;
            width: 45px;
            height: 45px;
        }

        .toggler {
            top: 15px;
            right: 15px;
            width: 45px;
            height: 45px;
        }
    }

    nav.scrolled .menu-wrap {

        .hamburger,
        .toggler {
            top: 10px;
        }
    }

    .mobile-menu-inner ul li {
        margin: 15px 0;

        a {
            font-size: 1.3rem;
            padding: 10px;
        }
    }
}
