/* =====================================
   ADEHYEE PROPERTIES - NEW RESPONSIVE NAVBAR
===================================== */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: whitesmoke;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.main-navbar,
.main-navbar * {
    box-sizing: border-box;
}

.main-navbar {
    width: 100%;
    max-width: 1500px;
    min-height: 88px;
    margin: 0 auto;
    padding: 12px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* BRAND */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #ffffff;
    text-decoration: none;
}

.nav-brand img {
    display: block;
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f0c75e;
}

.brand-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-details strong {
    color: black;
    font-size: 36px;
    line-height: 1.2;
    font-family: serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.brand-details small {
    color: black;
    font-size: 13px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

/* DESKTOP NAVIGATION */

.nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: block;
    padding: 10px 8px;
    color: blue;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    font-family: sans-serif;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: #f0c75e;
}

/* LOGIN AND REGISTER */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-login,
.nav-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.nav-login {
    border: 1px solid #ffffff;
    color: black;
    background: #FAF9F6;
}

.nav-login:hover {
    background: black;
    color: azure;
}

.nav-register {
    background: #f0c75e;
    border: 1px solid #f0c75e;
    color: #173d2c;
}

.nav-register:hover {
    background: black;
    border-color: #ffffff;
    color: azure;
}

/* HAMBURGER BUTTON */

.nav-toggle {
    display: none;
    width: 45px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    border-radius: 3px;
    background: black;
    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

.nav-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* TABLETS AND MOBILE */

@media (max-width: 1100px) {
    .main-navbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 4%;
    }

    .nav-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-content {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px 0 8px;
    }

    .nav-content.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        font-weight: border;
        background: white;
        text-align: center;
    }

    .nav-list a {
        padding: 14px 10px;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: black;
        font-family: sans-serif;
        font-weight: 700;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .nav-login,
    .nav-register {
        width: 100%;
        min-height: 46px;
    }
}

/* SMALL PHONES */

@media (max-width: 480px) {
    .main-navbar {
        padding: 10px 12px;
    }

    .nav-brand {
        gap: 8px;
        min-width: 0;
        max-width: calc(100% - 55px);
    }

    .nav-brand img {
        width: 44px;
        height: 44px;
    }

    .brand-details {
        min-width: 0;
    }

    .brand-details strong {
        font-size: 15px;
    }

    .brand-details small {
        font-size: 9px;
        line-height: 1.4;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-content {
        padding-top: 10px;
    }
}