.av-header {
    width: 100%;
    position: relative;
    z-index: 999;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.av-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
}

.av-header.is-transparent {
    background-color: transparent !important;
}

.av-header.is-transparent.is-scrolled {
    background-color: #F7F5F0 !important; /* Default fallback, overridden by settings */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.av-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.av-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.av-header-logo img {
    display: block;
    height: auto;
    max-height: 100%;
}

.av-nav-menu {
    flex-grow: 1;
    display: flex;
    padding: 0 40px;
}

.av-nav-menu.align-center {
    justify-content: center;
}

.av-nav-menu.align-right {
    justify-content: flex-end;
}

.av-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.av-nav-item {
    position: relative;
}

.av-nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.av-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.av-nav-item:hover .av-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.av-dropdown-menu li {
    padding: 0;
}

.av-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #1A2E44;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.av-dropdown-menu a:hover {
    background: #F7F5F0;
    color: #C46D5E;
}

.av-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.av-btn {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.av-btn-secondary {
    background-color: transparent;
    border-color: #1A2E44;
    color: #1A2E44;
}

.av-btn-primary {
    /* Colors controlled via widget settings */
}

/* Mobile Menu */
.av-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.av-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.av-mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.av-mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.av-mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.av-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 100px;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 998;
    overflow-y: auto;
}

.av-mobile-menu.is-active {
    transform: translateY(0);
}

.av-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.av-mobile-nav-item {
    margin-bottom: 20px;
}

.av-mobile-nav-link {
    font-size: 24px;
    font-weight: 500;
    color: #1A2E44;
    text-decoration: none;
    display: block;
}

.av-mobile-dropdown {
    list-style: none;
    padding-left: 20px;
    margin-top: 15px;
}

.av-mobile-dropdown li {
    margin-bottom: 12px;
}

.av-mobile-dropdown a {
    color: #555;
    text-decoration: none;
    font-size: 18px;
}

.av-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 1024px) {
    .av-nav-menu {
        display: none;
    }
    .av-header-actions {
        display: none;
    }
    .av-mobile-menu-toggle {
        display: flex;
    }
}