/*
==============================================
Enhanced Header & Button Styles
Professional Design for Uncontested Divorce NYC
==============================================
*/

/* ========================================
   1. IMPROVED HEADER STYLES
   ======================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-bar {
    background: #223555;
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 2px solid #b89b5e;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span,
.top-bar-right span {
    margin-right: 25px;
    display: inline-block;
}

.top-bar i {
    color: #b89b5e;
    margin-right: 8px;
}

.main-navigation {
    background: #ffffff;
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* ========================================
   2. ENHANCED NAVIGATION MENU
   ======================================== */

.primary-menu-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

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

.primary-menu > li > a {
    color: #223555;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-transform: capitalize;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: #ffffff;
    background: #223555;
}

/* ========================================
   3. IMPROVED HEADER CTA BUTTON
   ======================================== */

.header-cta {
    margin-left: 15px;
}

.header-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.header-cta .cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.header-cta .cta-button:hover:before {
    left: 0;
}

.header-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: #ffffff !important;
}

.header-cta .cta-button i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   4. MOBILE MENU TOGGLE
   ======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle-bar {
    display: block;
    width: 30px;
    height: 3px;
    background: #223555;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ========================================
   5. ENHANCED HERO SECTION BUTTONS
   ======================================== */

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.btn-style-one {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #223555 0%, #2c5282 100%);
    color: #ffffff !important;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(34, 53, 85, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-style-one:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 53, 85, 0.4);
    background: linear-gradient(135deg, #2c5282 0%, #223555 100%);
    border-color: #b89b5e;
    color: #ffffff !important;
}

.btn-style-phone {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    background: #ffffff;
    color: #223555 !important;
    border: 3px solid #ffffff;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-style-phone:hover {
    transform: translateY(-3px);
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.btn-style-phone i {
    font-size: 18px;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

/* ========================================
   6. TRUST BADGE & GUARANTEE
   ======================================== */

.trust-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-checkmark {
    display: inline-block;
    background: #27ae60;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    margin-right: 10px;
    font-size: 13px;
    font-weight: bold;
}

.guarantee-text {
    margin-top: 35px;
    font-size: 14px;
    opacity: 0.95;
}

.guarantee-text p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guarantee-text i {
    color: #27ae60;
    font-size: 16px;
}

/* ========================================
   7. TRUST POINTS STYLING
   ======================================== */

.trust-points {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-point i {
    color: #27ae60;
    font-size: 18px;
    background: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   8. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .primary-menu-container {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .primary-menu > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    .primary-menu-container.active {
        display: flex;
    }
    
    .primary-menu {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    
    .primary-menu > li {
        width: 100%;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .primary-menu > li > a {
        padding: 20px;
        font-size: 18px;
    }
    
    .header-cta {
        margin: 30px 0 0 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .top-bar-left span,
    .top-bar-right span {
        display: block;
        margin: 5px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-style-one,
    .btn-style-phone {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .trust-points {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   9. ADDITIONAL POLISH
   ======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Header shadow on scroll */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Focus states for accessibility */
.cta-button:focus,
.btn-style-one:focus,
.btn-style-phone:focus,
.primary-menu > li > a:focus {
    outline: 3px solid #b89b5e;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 15px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
