/**
 * Header Navigation Styles
 * All Things Real Estate - Header Component CSS
 */

/* Header Specific Styles */
.main-header {
    background-color: #1a2b42;
    border-bottom: 1px solid #C29B40;
    padding: 0;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.main-header container {

    margin-left: 60px;
    margin-right: 60px;
    padding: 0;
}

.header-row {
    --bs-gutter-x: 20px;
    margin-left: 0;
    margin-right: 0;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: left;
    padding: 20px 0;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logo-icon img {
    width: auto;
    height: 60px;
    display: block;
}

.logo-text {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-link:hover .logo-text {
    color: #C29B40;
    transition: color 0.3s ease;
}

/* Navigation Section */
.nav-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.main-navigation {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.main-navigation a:hover {
    color: #C29B40;
}

.main-navigation a.active {
    color: #C29B40;
}

/* Phone Number Section */
.contact-section {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 30px;
}

.phone-icon {
    color: #ffffff;
    margin-right: 10px;
    font-size: 16px;
}

.phone-number {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 24px;
}

.phone-number:hover {
    color: #C29B40;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle:hover {
    color: #C29B40;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .header-container {
        margin-left: 30px;
        margin-right: 30px;
    }

    .main-navigation a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .contact-section {
        font-size: 16px;
        margin-left: 20px;
    }
}

@media (max-width: 991px) {
    .header-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    .nav-section {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #1a2b42;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid #C29B40;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-section.active {
        display: flex;
    }

    .main-navigation {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(194, 155, 64, 0.2);
        width: 100%;
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .contact-section {
        margin-top: 20px;
        margin-left: 0;
        padding-top: 20px;
        border-top: 1px solid rgba(194, 155, 64, 0.2);
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-header {
        min-height: 70px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon img {
        height: 55px;
    }

    .nav-section {
        top: 70px;
    }
}

@media (max-width: 576px) {
    .header-container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .main-header {
        min-height: 60px;
    }

    .logo-text {
        font-size: 10px;
    }

    .logo-icon img {
        height: 50px;
    }

    .contact-section {
        font-size: 14px;
    }

    .nav-section {
        top: 60px;
    }

    .main-navigation a {
        font-size: 14px;
        padding: 10px 0;
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-section.active {
    animation: slideDown 0.3s ease-out;
}

/* Ensure header stays on top */
.main-header {
    position: relative;
    z-index: 1000;
}

/* Optional: Sticky header functionality */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

/* Adjust body padding when header is sticky */
body.header-sticky {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body.header-sticky {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    body.header-sticky {
        padding-top: 60px;
    }
}