/* ==========================================================================
   PREMIUM NAVIGATION - Inspired by Alvarado Therapy
   ========================================================================== */

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(135deg, #4A2C3D 0%, #5D3A4D 100%);
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
}

.announcement-bar a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 8px;
    transition: opacity 0.3s ease;
}

.announcement-bar a:hover {
    opacity: 0.85;
}

.announcement-bar .arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.announcement-bar a:hover .arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   MAIN HEADER - Premium Glassmorphism Design
   ========================================================================== */
.modern-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(93, 58, 77, 0.08) !important;
    box-shadow: 0 4px 30px rgba(93, 58, 77, 0.06) !important;
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    /* Fade-in on load */
    animation: headerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header hide/show on scroll */
.modern-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.modern-header.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Compact header when scrolled */
.modern-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 32px rgba(93, 58, 77, 0.1) !important;
}

.modern-header.is-scrolled .modern-header-container {
    padding: 8px 40px !important;
}

.modern-header.is-scrolled .site-branding .logo-container,
.modern-header.is-scrolled .site-branding .custom-logo-link {
    padding-top: 4px;
    padding-bottom: 4px;
}

.modern-header.is-scrolled .site-branding img {
    height: 70px !important;
    min-height: 70px !important;
}

/* When announcement bar is present, adjust sticky */
.has-announcement-bar .modern-header {
    top: 0;
}

.modern-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 48px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* ==========================================================================
   LOGO - Elevated Presence (significantly larger)
   ========================================================================== */
.site-branding {
    flex-shrink: 0;
}

.site-branding .logo-container,
.site-branding .custom-logo-link {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Force logo to be much larger */
.site-branding .custom-logo,
.site-branding img,
.site-branding .logo-container img,
.site-branding .custom-logo-link img,
.modern-header .site-branding img,
#masthead .site-branding img {
    height: 120px !important;
    width: auto !important;
    max-width: 320px !important;
    min-height: 120px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-branding .custom-logo:hover,
.site-branding img:hover {
    transform: scale(1.02);
}

.site-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #4A2C3D;
    text-decoration: none;
}

/* ==========================================================================
   NAVIGATION - Elegant Typography
   ========================================================================== */
.modern-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modern-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-menu > li {
    position: relative;
}

.modern-menu > li > a,
.modern-menu > .menu-item > a {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #4A4A4A !important;
    text-decoration: none !important;
    padding: 14px 22px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    position: relative;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Override base navigation.css styles */
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.modern-menu > li > a:focus,
.modern-menu > li > a:focus-visible,
.modern-menu > .menu-item > a:focus,
.modern-menu > .menu-item > a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Disable base navigation ::after underline */
.modern-menu > li > a::after,
.modern-menu > .menu-item > a::after {
    display: none !important;
    content: none !important;
}

/* Animated underline - using ::before to avoid conflict with dropdown arrow */
.modern-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(90deg, #5D3A4D, #8B5A7C);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    pointer-events: none;
}

/* Hover state - upward shift + underline + color */
.modern-menu > li > a:hover,
.modern-menu > .menu-item > a:hover {
    color: #5D3A4D !important;
    transform: translateY(-2px);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.modern-menu > li > a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active menu item - persistent underline */
.modern-menu > li.current-menu-item > a,
.modern-menu > li.current_page_item > a {
    color: #5D3A4D !important;
    font-weight: 600 !important;
}

.modern-menu > li.current-menu-item > a::before,
.modern-menu > li.current_page_item > a::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #5D3A4D, #8B5A7C);
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==========================================================================
   DROPDOWN INDICATOR - Chevron Arrow
   ========================================================================== */
.modern-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 4px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.modern-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translateY(2px);
}

/* ==========================================================================
   DROPDOWN SUBMENU
   ========================================================================== */
.modern-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(93, 58, 77, 0.15);
    padding: 12px 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
    border: 1px solid rgba(93, 58, 77, 0.08);
}

.modern-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.modern-menu .sub-menu li {
    margin: 0;
}

.modern-menu .sub-menu a {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #3D3D3D !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    display: block;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modern-menu .sub-menu a:hover {
    background: rgba(93, 58, 77, 0.08);
    color: #5D3A4D !important;
    padding-left: 20px !important;
}

/* ==========================================================================
   CTA BUTTON - Deep Eggplant/Plum
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-cta-btn {
    font-family: 'Sora', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #5D3A4D 0%, #4A2C3D 100%) !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(93, 58, 77, 0.25),
                0 0 0 1px rgba(93, 58, 77, 0.1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Gradient border glow */
.header-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(135deg, #8B5A7C, #5D3A4D, #D4A5BD, #5D3A4D);
    background-size: 300% 300%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner background */
.header-cta-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 48px;
    background: linear-gradient(135deg, #5D3A4D 0%, #4A2C3D 100%);
    z-index: -1;
    transition: background 0.4s ease;
}

/* Animated beam */
.header-cta-btn .beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: none;
}

.header-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(93, 58, 77, 0.4),
                0 0 40px rgba(139, 90, 124, 0.2) !important;
    color: #ffffff !important;
}

.header-cta-btn:hover::before {
    opacity: 1;
}

.header-cta-btn:hover::after {
    background: linear-gradient(135deg, #6D4A5D 0%, #5A3C4D 100%);
}

.header-cta-btn:hover .beam {
    animation: beamSweep 0.8s ease-out;
}

@keyframes beamSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-cta-btn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE MENU TOGGLE
   ========================================================================== */
.modern-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 2px;
    background: #4A2C3D;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-inner {
    position: relative;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Menu toggle active state */
.modern-menu-toggle[aria-expanded="true"] .hamburger-inner {
    background: transparent;
}

.modern-menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.modern-menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */
@media (max-width: 1024px) {
    .modern-header-container {
        padding: 15px 24px !important;
    }
    
    .modern-menu > li > a {
        padding: 10px 14px !important;
        font-size: 1rem !important;
    }
    
    .header-cta-btn {
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .modern-header-container {
        padding: 12px 20px !important;
    }
    
    .site-branding .custom-logo,
    .site-branding img {
        height: 70px !important;
        max-width: 200px !important;
    }
    
    .modern-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #F8F5F1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .modern-navigation.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    .modern-menu {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .modern-menu > li > a {
        font-size: 1.5rem !important;
        padding: 16px 24px !important;
    }
    
    .modern-menu .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        padding: 8px 0;
        min-width: auto;
    }
    
    .modern-menu .sub-menu a {
        font-size: 1.1rem !important;
        color: #5D3A4D !important;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    .modern-navigation .mobile-cta {
        display: inline-flex;
        margin-top: 24px;
    }
    
    .modern-menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================================== */
@media (max-width: 480px) {
    .announcement-bar {
        font-size: 0.75rem;
        padding: 8px 12px;
        line-height: 1.4;
    }
    
    .site-branding .custom-logo,
    .site-branding img {
        height: 60px !important;
        max-width: 180px !important;
    }
    
    .modern-menu > li > a {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   GOOGLE FONTS - Cormorant Garamond (Elegant Serif)
   ========================================================================== */
/* Font loaded via functions.php - fallback to Playfair Display */
