nav {
    position: fixed;
    top: 0px;
    left: 0px;
    margin-top: 0px;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;

    width: 100%;
    z-index: 50;
    background: rgba(20, 18, 12, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);

    /* Home: transparent over the hero, like before */
    .on-home & {
        position: absolute;
        margin-top: 2rem;
        padding-top: 0rem;
        padding-bottom: 0rem;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;

        @media (max-width: 768px) {
            margin-top: 3rem;
        }
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;

        .nav-left {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 20px;

            @media (max-width: 768px) {
                display: none;
            }
        }

        .nav-medium {
            display: flex;
            justify-content: center;
            align-items: center;


            img {
                width: 180px;
                object-fit: contain;
                filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
                transition: width 0.3s ease;

                @media (max-width: 768px) {
                    width: 110px;
                }
            }

            .on-home & img {
                width: 300px;

                @media (max-width: 768px) {
                    width: 120px;
                }
            }

            &:hover {
                opacity: 0.85;
            }

            @media (max-width: 768px) {
                justify-content: center;
            }
        }

        .nav-right {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 30px;

            @media (max-width: 768px) {
                display: none;
            }

        }

        .menu {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 5px;
            color: #fff;

            span {
                display: flex;
                justify-content: center;
                align-items: flex-start;
                font-weight: bold;
            }

            &:hover {
                cursor: pointer;
                opacity: 0.5;
            }
        }

        .phone {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 5px;
            color: #fff;

            span {
                display: flex;
                justify-content: center;
                align-items: flex-start;
                font-weight: bold;
            }

            &:hover {
                cursor: pointer;
                opacity: 0.5;
            }
        }

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

        .nav-left a,
        .nav-right a {
            color: #fff;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
            text-decoration: none;
            position: relative;
            padding-bottom: 4px;
            transition: color 0.25s ease-in-out;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 2px;
                border-radius: 2px;
                background: var(--primary-color);
                transform: scaleX(0);
                transform-origin: left;
                transition: transform 0.25s ease-in-out;
            }

            &:hover {
                cursor: pointer;
                text-decoration: none;
                color: #fff;

                &::after {
                    transform: scaleX(1);
                }
            }

            @media (max-width: 768px) {
                display: none;
            }
        }
    }
}
