/* ==========================================
RED CASTLE REALTY HEADER
========================================== */

header{
    background:#fff;
    position:sticky;
    top:0;
    z-index:9999;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.navbar{
    max-width:1400px;
    margin:0 auto;
    padding:15px 20px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    position:relative;
}

/* LOGO */

.logo img{
    height:90px;
    width:auto;
    display:block;
}

/* MENU */

.menu{
    display:flex;
    gap:30px;
    align-items:center;
}

.menu a{
    text-decoration:none;
    color:#111;
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    color:#c8102e;
}

/* PHONE BUTTON */

.call-btn{
    background:#c8102e;
    color:#fff;
    text-decoration:none;
    padding:12px 20px;
    border-radius:30px;
    font-weight:bold;
    white-space:nowrap;
}

.call-btn:hover{
    background:#a10c24;
}

/* HAMBURGER */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    color:#111;
}

/* MOBILE */

@media screen and (max-width:768px){

    .navbar{
        display:grid;
        grid-template-columns:auto 1fr auto;
        align-items:center;
        gap:10px;
    }

    .logo{
        justify-self:start;
    }

    .call-btn{
        justify-self:center;
        font-size:14px;
        padding:10px 14px;
    }

    .menu-toggle{
        display:block !important;
        justify-self:end;
    }

    nav.menu{
        display:none !important;

        position:absolute;
        top:100%;
        left:0;

        width:100%;

        background:#fff;

        flex-direction:column;

        padding:20px;

        box-shadow:0 10px 20px rgba(0,0,0,.15);

        z-index:99999;
    }

    nav.menu.active{
        display:flex !important;
    }

    nav.menu a{
        width:100%;
        padding:12px 0;
        border-bottom:1px solid #eee;
    }

    .logo img{
        height:65px;
    }

}

/* TABLET + DESKTOP */

@media screen and (min-width:769px){

    nav.menu{
        display:flex !important;
    }

    .menu-toggle{
        display:none !important;
    }

}
/* DROPDOWN MENU */

.menu{
display:flex;
align-items:center;
gap:25px;
}

.menu li{
list-style:none;
position:relative;
}

.dropdown-menu{
display:none;
position:absolute;
top:100%;
left:0;
min-width:260px;
background:#fff;
box-shadow:0 8px 25px rgba(0,0,0,.15);
border-radius:8px;
z-index:9999;
padding:0;
margin:0;
}

.dropdown-menu li{
width:100%;
}

.dropdown-menu li a{
display:block;
padding:14px 18px;
color:#111;
text-decoration:none;
border-bottom:1px solid #eee;
}

.dropdown-menu li:last-child a{
border-bottom:none;
}

.dropdown-menu li a:hover

.dropdown:hover .dropdown-menu{
display:block;
}
/* TEST DROPDOWN */

.menu li{
    position:relative;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:250px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    border-radius:8px;
    padding:0;
    margin:0;
    z-index:9999;
}

.dropdown-menu li{
    list-style:none;
}

.dropdown-menu li a{
    display:block;
    padding:12px 15px;
    color:#111;
    text-decoration:none;
    border-bottom:1px solid #eee;
}

.dropdown-menu li a:hover{
    background:#c8102e;
    color:#fff;
}

.dropdown:hover .dropdown-menu{
    display:block;
}