/* ==========================================================================
   UNITED FINS - SINGLE NAVIGATION BAR STYLES (FIXED TOP)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BODY PADDING FOR FIXED NAVBAR
   -------------------------------------------------------------------------- */

body {
    padding-top: 70px; /* Prevents content from hiding under fixed navbar */
}

/* --------------------------------------------------------------------------
   NAVIGATION CONTAINER
   -------------------------------------------------------------------------- */

.uf-nav-container-2025 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(15px, 2vw, 25px);
    position: relative;
}

/* --------------------------------------------------------------------------
   SINGLE UNIFIED NAVIGATION BAR - FIXED TOP
   -------------------------------------------------------------------------- */

.uf-navbar-section-2025 {
    background: linear-gradient(90deg, #2d1b69 0%, #3b499b 30%, #4a5bb5 70%, #5a6bc5 100%);
    padding: clamp(12px, 2vh, 18px) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(45, 27, 105, 0.2);
}

/* --------------------------------------------------------------------------
   LOGO / BRAND
   -------------------------------------------------------------------------- */

.uf-brand-wrapper-2025 {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    flex-shrink: 0;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: transform 0.3s ease;
}

.uf-brand-wrapper-2025:hover {
    transform: scale(1.03);
    text-decoration: none !important;
}

.uf-brand-wrapper-2025:focus,
.uf-brand-wrapper-2025:active,
.uf-brand-wrapper-2025:visited {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

.uf-brand-icon-2025 {
    width: clamp(32px, 6vw, 42px);
    height: clamp(32px, 6vw, 42px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.uf-brand-text-2025 {
    color: white;
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Remove ALL underlines from logo */
.uf-brand-wrapper-2025:hover .uf-brand-text-2025,
.uf-brand-wrapper-2025:focus .uf-brand-text-2025,
.uf-brand-wrapper-2025:active .uf-brand-text-2025,
.uf-brand-wrapper-2025:visited .uf-brand-text-2025 {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* --------------------------------------------------------------------------
   DESKTOP NAVIGATION MENU
   -------------------------------------------------------------------------- */

.uf-nav-list-2025 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 25px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.uf-nav-list-item-2025 {
    position: relative;
    display: flex;
    justify-content: center;
}

.uf-nav-link-2025 {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(13px, 2vw, 15px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(8px, 1.2vw, 12px) clamp(12px, 2vw, 18px);
    white-space: nowrap;
    border-radius: 8px;
    position: relative;
}

.uf-nav-link-2025:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.uf-nav-link-2025:active {
    transform: translateY(0);
}

.uf-dropdown-icon-2025 {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.uf-nav-list-item-2025:hover .uf-dropdown-icon-2025 {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   DESKTOP DROPDOWN MENU
   -------------------------------------------------------------------------- */

.uf-dropdown-panel-2025 {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px;
    min-width: 220px;
    max-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 10002;
}

.uf-nav-list-item-2025:hover .uf-dropdown-panel-2025 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.uf-dropdown-option-2025 {
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
}

.uf-dropdown-option-2025:last-child {
    margin-bottom: 0;
}

.uf-dropdown-option-2025:hover {
    background: rgba(59, 73, 155, 0.12);
    transform: translateX(3px);
}

.uf-dropdown-option-2025:active {
    transform: translateX(0);
}

.uf-dropdown-text-2025 {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.uf-dropdown-option-2025:hover .uf-dropdown-text-2025 {
    color: #3b499b;
}

/* --------------------------------------------------------------------------
   CONTACT BUTTON
   -------------------------------------------------------------------------- */

.uf-contact-btn-2025 {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: clamp(12px, 2vw, 14px);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.uf-contact-btn-2025::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.uf-contact-btn-2025:hover {
    color: #2d1b69;
    border-color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
}

.uf-contact-btn-2025:hover::before {
    left: 100%;
}

.uf-contact-btn-2025:active {
    transform: translateY(0) scale(1.01);
}

/* --------------------------------------------------------------------------
   MOBILE MENU TOGGLE BUTTON - CLEAN HAMBURGER ONLY
   -------------------------------------------------------------------------- */

.uf-mobile-toggle-2025 {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 0;
    position: fixed;
    right: 20px;
    top: 18px;
    z-index: 10001;
    box-shadow: none;
    backdrop-filter: none;
    transition: opacity 0.2s ease;
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
    align-items: center;
}

.uf-hamburger-line-2025 {
    width: 28px;
    height: 3px;
    background: #c0b419;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* ==========================================================================
   RESPONSIVE: MOBILE & TABLET
   ========================================================================== */

@media (max-width: 991px) {
    /* Adjust body padding for mobile navbar height */
    body {
        padding-top: 65px;
    }

    /* Hide desktop nav and contact button on mobile */
    .uf-nav-list-2025,
    .uf-contact-btn-2025 {
        display: none !important;
    }

    /* Show mobile toggle - NO BACKGROUND */
    .uf-mobile-toggle-2025 {
        display: flex;
    }

    /* Hamburger Animation - Clean Lines Only */
    .uf-mobile-toggle-2025.uf-menu-open-2025 .uf-hamburger-line-2025:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .uf-mobile-toggle-2025.uf-menu-open-2025 .uf-hamburger-line-2025:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .uf-mobile-toggle-2025.uf-menu-open-2025 .uf-hamburger-line-2025:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile Logo Adjustments */
    .uf-brand-wrapper-2025 {
        padding-left: 8px;
    }

    .uf-brand-icon-2025 {
        width: 38px !important;
        height: 38px !important;
        border-radius: 6px;
    }

    .uf-brand-text-2025 {
        font-size: 0.95rem !important;
        margin-left: 0.5rem;
    }

    /* Mobile Navigation Menu */
    .uf-nav-list-2025 {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: min(90vw, 400px);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 12px;
        padding: 80px 20px 30px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: 6px 0 40px rgba(0, 0, 0, 0.2);
        border-right: 4px solid #3b499b;
        border-radius: 0 25px 25px 0;
        overflow-y: auto;
    }

    .uf-nav-list-2025.uf-mobile-active-2025 {
        transform: translateX(0);
    }

    .uf-nav-list-item-2025 {
        width: 100%;
        flex: none;
        margin-bottom: 0;
    }

    .uf-nav-link-2025 {
        font-size: 17px;
        padding: 18px 20px;
        font-weight: 700;
        border-radius: 14px;
        width: 100%;
        min-height: 60px;
        background: linear-gradient(135deg, rgba(59, 73, 155, 0.10) 0%, rgba(59, 73, 155, 0.16) 100%);
        border: 2px solid rgba(59, 73, 155, 0.22);
        text-align: center;
        color: #2d3748;
        box-shadow: 0 4px 15px rgba(59, 73, 155, 0.12);
        transition: all 0.3s ease;
    }

    .uf-nav-link-2025:hover,
    .uf-nav-link-2025:active {
        background: linear-gradient(135deg, rgba(59, 73, 155, 0.14) 0%, rgba(59, 73, 155, 0.20) 100%);
        color: #3b499b;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 73, 155, 0.18);
    }

    /* Mobile Business Dropdown */
    .uf-business-dropdown-2025.uf-dropdown-expanded-2025 {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .uf-business-dropdown-2025.uf-dropdown-expanded-2025 .uf-nav-link-2025 {
        flex: 0 0 110px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        min-height: 260px;
        width: 110px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .uf-business-dropdown-2025 .uf-dropdown-icon-2025 {
        transition: all 0.4s ease;
    }

    .uf-business-dropdown-2025.uf-dropdown-expanded-2025 .uf-dropdown-icon-2025 {
        writing-mode: horizontal-tb;
        transform: rotate(270deg);
        margin-left: 0;
        margin-top: 8px;
        font-size: 13px;
    }

    .uf-business-dropdown-2025 .uf-dropdown-panel-2025 {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 18px;
        background: rgba(59, 73, 155, 0.06);
        border-radius: 18px;
        border: 2px solid rgba(59, 73, 155, 0.15);
        box-shadow: inset 0 3px 12px rgba(59, 73, 155, 0.12);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .uf-business-dropdown-2025.uf-dropdown-expanded-2025 .uf-dropdown-panel-2025 {
        flex: 1;
        margin: 0;
        max-height: 260px;
        overflow-y: auto;
        display: block !important;
        animation: ufSlideInRight2025 0.4s ease-out forwards;
    }

    .uf-business-dropdown-2025 .uf-dropdown-option-2025 {
        margin-bottom: 10px;
        padding: 14px 18px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        font-size: 15px;
        border: 2px solid rgba(59, 73, 155, 0.2);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .uf-business-dropdown-2025 .uf-dropdown-option-2025:last-child {
        margin-bottom: 0;
    }

    .uf-business-dropdown-2025 .uf-dropdown-text-2025 {
        font-weight: 600;
        color: #2d3748;
        font-size: 15px;
        text-align: center;
    }
}

@media (max-width: 479px) {
    /* Adjust body padding for smaller mobile screens */
    body {
        padding-top: 60px;
    }

    .uf-nav-list-2025 {
        width: min(95vw, 360px);
        padding: 75px 16px 25px;
    }

    .uf-mobile-toggle-2025 {
        right: 16px;
        top: 16px;
    }

    .uf-brand-icon-2025 {
        width: 36px !important;
        height: 36px !important;
    }

    .uf-brand-text-2025 {
        font-size: 0.9rem !important;
    }
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */

@keyframes ufSlideInRight2025 {
    from {
        opacity: 0;
        transform: translateX(-15px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & FOCUS STATES
   -------------------------------------------------------------------------- */

.uf-mobile-toggle-2025:focus-visible,
.uf-contact-btn-2025:focus-visible,
.uf-nav-link-2025:focus-visible,
.uf-dropdown-option-2025:focus-visible,
.uf-brand-wrapper-2025:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .uf-nav-link-2025,
    .uf-contact-btn-2025,
    .uf-dropdown-option-2025,
    .uf-mobile-toggle-2025 {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
