/* Professional Legal Header Styles */

/* Top Contact Bar */
.top-contact-bar {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    position: relative;
    font-family: var(--font-primary);
}

.top-contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.top-contact-info {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: nowrap;
}

.top-contact-link,
.top-contact-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    transition: var(--transition-elegant);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-contact-link:hover {
    color: var(--primary-gold);
    transform: translateY(-1px);
}

.top-contact-link i,
.top-contact-hours i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-gold);
}

.top-contact-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-contact-badge i {
    font-size: 1rem;
}

/* Main Header - moved to trust bar section above */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

/* Professional Logo and Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1001;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-elegant);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.logo-container {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-elegant);
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--primary-gold);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition-quick);
}

.logo-seal {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-subtle);
}

.logo-seal::after {
    content: '✓';
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-credentials {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.separator {
    color: var(--primary-gold);
    font-weight: bold;
}

/* Professional Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
    padding: 16px 0;
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-elegant);
    letter-spacing: 0.3px;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-underline {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-gold));
    border-radius: 2px;
    transition: var(--transition-elegant);
}

.nav-link:hover {
    color: var(--primary-navy);
    transform: translateY(-1px);
}

.nav-link:hover .nav-underline {
    width: 100%;
}

.nav-link.active .nav-underline {
    width: 100%;
}

/* Professional Dropdown */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition-elegant);
    color: var(--primary-gold);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-navy);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    padding: 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-elegant);
    border: 1px solid rgba(30, 58, 95, 0.08);
    overflow: hidden;
}

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

.dropdown-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 20px 24px;
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
}

.dropdown-header h4 {
    margin: 0 0 4px 0;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.dropdown-header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: var(--primary-gold);
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-elegant);
    border-left: 4px solid transparent;
}

.dropdown-item:hover {
    background: rgba(30, 58, 95, 0.04);
    border-left-color: var(--primary-gold);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Professional CTA Buttons */
.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Desktop CTA - visible by default */
.desktop-cta {
    display: flex;
}

/* Mobile CTA - hidden by default */
.mobile-cta-section {
    display: none;
}

.mobile-cta-header {
    display: none;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-elegant);
    border: 2px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.cta-btn.consultation {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-gold);
}

.cta-btn.consultation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-gold) 100%);
}

.cta-btn.contact {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.cta-btn.contact:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.cta-btn.consultation:hover .btn-glow {
    left: 100%;
}

/* Trust Indicators Bar */
.trust-bar {
    background: rgba(30, 58, 95, 0.02);
    border-top: 1px solid rgba(30, 58, 95, 0.08);
    padding: 16px 0;
    transition: var(--transition-elegant);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-elegant);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    font-family: var(--font-primary);
    padding-bottom: 52px; /* Space for trust bar */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px) saturate(200%);
    padding-bottom: 0; /* Remove trust bar space when scrolled */
}

.header.scrolled .trust-bar,
.header.scrolled .top-contact-bar,
.header.scrolled .brand-credentials,
.header.scrolled .logo-container {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.header.scrolled .brand-info {
    padding-top: 0;
    padding-bottom: 0;
}

.header.scrolled .nav-brand {
    min-height: 0;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--primary-gold);
    font-size: 1rem;
}

/* Professional Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: var(--transition-quick);
    border: 2px solid var(--primary-navy);
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(30, 58, 95, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary-navy);
    margin: 3px 0;
    transition: var(--transition-elegant);
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger.active {
    background: var(--primary-navy);
}

.hamburger.active .hamburger-line {
    background: var(--white);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(30, 58, 95, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-gold));
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

/* Professional Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 36px;
    }
    
    .trust-indicators {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .top-contact-info {
        gap: 24px;
    }
    
    .nav-menu {
        gap: 28px;
    }
    
    .cta-btn .btn-text {
        display: none !important;
    }
    
    /* Start reducing header height on tablets */
    .header {
        padding-bottom: 30px; /* Reduced from 52px */
    }
}

@media (max-width: 768px) {
    .top-contact-bar {
        padding: 10px 0;
    }
    
    .top-contact-content {
        justify-content: center;
        text-align: center;
    }
    
    .top-contact-badge {
        display: none;
    }
    
    .trust-bar {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar {
        padding: 16px 0;
    }
    
    /* Remove header bottom padding on mobile since trust bar is hidden */
    .header {
        padding-bottom: 0 !important;
    }
    
    /* Ensure consistent header height from the start */
    .header.scrolled {
        padding-bottom: 0; /* This was already correct but emphasizing */
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        box-shadow: var(--shadow-strong);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        border-top: 1px solid rgba(30, 58, 95, 0.1);
        gap: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 20px 0;
        justify-content: space-between;
        font-size: 1.1rem;
    }
    
    .nav-underline {
        bottom: 0;
        height: 2px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(30, 58, 95, 0.02);
        margin-top: 12px;
        border-radius: 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: 1px solid rgba(30, 58, 95, 0.1);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 400px;
    }
    
    .dropdown-header {
        padding: 16px 20px;
    }
    
    .dropdown-item {
        padding: 16px 20px;
        border-left: none;
        border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Hide desktop CTA on mobile */
    .desktop-cta {
        display: none !important;
    }
    
    /* Show mobile CTA section */
    .mobile-cta-section {
        display: block !important;
        width: 100%;
        border-top: 2px solid var(--primary-gold);
        margin-top: 24px;
        padding-top: 24px;
        border-bottom: none;
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.02) 0%, rgba(201, 169, 97, 0.01) 100%);
        border-radius: 12px;
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .mobile-cta-header {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        color: var(--primary-navy);
        font-weight: 600;
        font-size: 1rem;
        justify-content: center;
    }
    
    .mobile-cta-header i {
        color: var(--primary-gold);
        font-size: 1.2rem;
    }
    
    .mobile-cta-section .nav-cta {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .mobile-cta-section .cta-btn {
        width: 100%;
        justify-content: center;
        height: auto;
        padding: 18px 24px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        transition: var(--transition-elegant);
    }
    
    .mobile-cta-section .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
    
    .mobile-cta-section .cta-btn.consultation {
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
        color: var(--white);
        border: 2px solid var(--primary-gold);
    }
    
    .mobile-cta-section .cta-btn.contact {
        background: transparent;
        color: var(--primary-navy);
        border: 2px solid var(--primary-navy);
    }
    
    .mobile-cta-section .cta-btn.contact:hover {
        background: var(--primary-navy);
        color: var(--white);
    }
    
    /* Show button text on mobile CTA buttons */
    .mobile-cta-section .cta-btn .btn-text {
        display: inline !important;
        font-weight: 600;
    }
    
    .brand-text {
        font-size: 1.6rem;
    }
    
    .logo-container {
        width: 55px;
        height: 55px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    /* Hide credentials on mobile for cleaner look */
    .brand-credentials {
        display: none !important;
    }
    
    /* Optional: Hide logo on tablets too - uncomment if needed */
    /*
    .logo-container {
        display: none !important;
    }
    
    .nav-brand {
        gap: 0 !important;
    }
    */
}

@media (max-width: 480px) {
    .top-contact-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .brand-credentials {
        font-size: 0.7rem;
    }
    
    /* Hide logo container on very small screens for maximum space */
    .logo-container {
        display: none !important;
    }
    
    /* Adjust nav-brand gap when logo is hidden */
    .nav-brand {
        gap: 0 !important;
    }
    
    /* Center brand info when logo is hidden */
    .brand-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    /* Optional: Hide subtitle on very small screens for even cleaner look */
    /*
    .brand-subtitle {
        display: none !important;
    }
    */
    
    .nav-menu {
        padding: 24px 16px;
    }
    
    /* Ensure header has proper height on very small screens */
    .header {
        padding-bottom: 0 !important;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .nav-link {
        padding: 16px 0;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        margin-left: -16px;
        margin-right: -16px;
    }
    
    .mobile-cta-section .cta-btn {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}