/* ===========================
   ENHANCED PREMIUM HEADER STYLING
   =========================== */

/* Header with glassmorphism effect */
.site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(26, 64, 82, 0.08) !important;
    box-shadow: 0 4px 20px rgba(26, 64, 82, 0.08) !important;
    transition: all 0.3s ease;
}

/* Header on scroll - enhanced shadow */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 30px rgba(26, 64, 82, 0.12) !important;
}

/* Header container padding */
.header-container {
    padding: 16px 0 !important;
    transition: padding 0.3s ease;
}

/* Logo styling with hover effect */
.site-logo a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.site-logo a:hover {
    transform: scale(1.03);
}

.site-logo img {
    transition: filter 0.3s ease;
    filter: brightness(1);
}

.site-logo a:hover img {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(219, 167, 70, 0.3));
}

/* Navigation links with underline effect */
.main-nav a,
.nav-menu a {
    position: relative;
    color: #1a4052 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    padding: 8px 4px;
    transition: color 0.3s ease;
}

.main-nav a::after,
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dba746, #b3782a);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.nav-menu a:hover,
.main-nav .current-menu-item a,
.nav-menu .current-menu-item a {
    color: #dba746 !important;
}

.main-nav a:hover::after,
.nav-menu a:hover::after,
.main-nav .current-menu-item a::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Enhanced buttons with gradient and shadow */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-header {
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Contact button - outline style */
.btn-header.btn-cart {
    background: transparent !important;
    color: #1a4052 !important;
    border: 2px solid #1a4052 !important;
}

.btn-header.btn-cart:hover {
    background: #1a4052 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 64, 82, 0.25) !important;
}

/* View Properties button - gradient primary */
.btn-header.btn-cta {
    background: linear-gradient(135deg, #1a4052, #0f2a36) !important;
    color: #ffffff !important;
    border: 2px solid #1a4052 !important;
    box-shadow: 0 4px 15px rgba(26, 64, 82, 0.2) !important;
}

.btn-header.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-header.btn-cta:hover {
    background: linear-gradient(135deg, #dba746, #b3782a) !important;
    border-color: #dba746 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 167, 70, 0.35) !important;
}

.btn-header.btn-cta:hover::before {
    left: 100%;
}

/* Mobile menu toggle with animation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1a4052;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #dba746;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile navigation enhancement */
.mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(26, 64, 82, 0.15);
}

.mobile-nav.active {
    border-top: 3px solid #dba746;
}

.mobile-menu a {
    color: #1a4052 !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu .current-menu-item a {
    color: #dba746 !important;
    background: rgba(219, 167, 70, 0.08);
    border-left-color: #dba746;
}

/* Dropdown menu enhancement */
.sub-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 64, 82, 0.1) !important;
    box-shadow: 0 12px 40px rgba(26, 64, 82, 0.15) !important;
}

.sub-menu a {
    padding: 10px 20px !important;
    border-left: 3px solid transparent;
}

.sub-menu a:hover {
    background: rgba(219, 167, 70, 0.08);
    border-left-color: #dba746 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-buttons {
        display: none;
    }
}

@media (min-width: 993px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Subtle animation on page load */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header {
    animation: headerSlideDown 0.5s ease-out;
}

/* Add subtle glow effect on hover for interactive elements */
.header-buttons .btn-header,
.main-nav a,
.site-logo a {
    position: relative;
}

/* Accessibility enhancements */
.btn-header:focus,
.main-nav a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #dba746;
    outline-offset: 3px;
}