/* =========================================
   GLOBAL LAYOUT & NAVIGATION CONSISTENCY
   Ensures uniform navigation and content margins
   across all pages on aiadvisorlab.ai
   ========================================= */

/* ===== NAVIGATION BAR CONSISTENCY ===== */
.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background: var(--pure-white, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
}

.nav-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
}

/* Logo consistency */
.logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 12px !important;
}

.logo-image {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
}

.logo-text-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--deep-black, #1a1a1a) !important;
    line-height: 1.2 !important;
}

.tagline {
    font-size: 10px !important;
    color: var(--text-gray, #6b7280) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Navigation links consistency */
.nav-links {
    display: flex !important;
    gap: 28px !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nav-links a {
    color: var(--text-gray, #6b7280) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: color 0.3s ease !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
}

.nav-links a:hover {
    color: var(--professional-blue, #0078D4) !important;
    background: rgba(0, 120, 212, 0.05) !important;
}

.nav-links a.active {
    color: var(--professional-blue, #0078D4) !important;
    font-weight: 600 !important;
}

.nav-links .btn-nav-secondary {
    background: var(--professional-blue, #0078D4) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.nav-links .btn-nav-secondary:hover {
    background: #0056b3 !important;
    color: white !important;
}

/* ===== MAIN CONTENT MARGINS ===== */
.main-content {
    padding-top: 100px !important; /* Account for fixed nav */
    min-height: 100vh !important;
}

/* Container for all content */
.container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
}

/* Section spacing */
section {
    padding: 60px 0 !important;
}

section .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
}

/* Hero sections */
.hero-section .container {
    max-width: 1400px !important;
    padding: 0 60px !important;
    margin: 0 auto !important;
}

/* Content sections */
.content-section,
.portfolio-section,
.teams-overview,
.definition-section,
.journey-section,
.evidence-section,
.use-cases-section {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 60px !important;
}

/* Card grids */
.feature-grid,
.benefits-grid,
.teams-grid,
.category-grid,
.use-cases-grid {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Footer consistency */
.footer {
    background: var(--dark-bg, #1a1a1a) !important;
    color: white !important;
    padding: 60px 0 30px !important;
    margin-top: 80px !important;
}

.footer .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1600px) {
    .nav-container,
    .container,
    section .container,
    .hero-section .container {
        max-width: 1200px !important;
        padding: 0 40px !important;
    }
    
    .content-section,
    .portfolio-section,
    .teams-overview,
    .definition-section,
    .journey-section,
    .evidence-section,
    .use-cases-section {
        max-width: 1200px !important;
        padding: 40px !important;
    }
}

@media (max-width: 1200px) {
    .nav-container,
    .container,
    section .container,
    .hero-section .container {
        max-width: 1000px !important;
        padding: 0 30px !important;
    }
    
    .content-section,
    .portfolio-section,
    .teams-overview,
    .definition-section,
    .journey-section,
    .evidence-section,
    .use-cases-section {
        max-width: 1000px !important;
        padding: 30px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .nav {
        height: 70px !important;
    }
    
    .nav-container {
        padding: 0 20px !important;
    }
    
    .nav-links {
        display: none !important; /* Will be handled by mobile menu */
    }
    
    .nav-links.active {
        display: flex !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        gap: 10px !important;
    }
    
    /* Content adjustments */
    .main-content {
        padding-top: 80px !important;
    }
    
    .container,
    section .container,
    .hero-section .container {
        padding: 0 20px !important;
    }
    
    .content-section,
    .portfolio-section,
    .teams-overview,
    .definition-section,
    .journey-section,
    .evidence-section,
    .use-cases-section {
        padding: 20px !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .footer {
        padding: 40px 0 20px !important;
    }
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger-menu {
    display: none !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    gap: 4px !important;
}

.hamburger-menu span {
    width: 25px !important;
    height: 3px !important;
    background: var(--deep-black, #1a1a1a) !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
    }
}

/* ===== ENSURE PROPER SPACING FOR ALL ELEMENTS ===== */
h1, h2, h3, h4, h5, h6 {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

p {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Forms and cards should respect container widths */
.contact-form-wrapper,
.form-wrapper,
.card,
.team-card,
.use-case-card,
.executive-bio-card {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent full-width sprawl on large screens */
@media (min-width: 1920px) {
    .nav-container,
    .container,
    section .container,
    .hero-section .container {
        max-width: 1600px !important;
        padding: 0 80px !important;
    }
    
    .content-section,
    .portfolio-section,
    .teams-overview,
    .definition-section,
    .journey-section,
    .evidence-section,
    .use-cases-section {
        max-width: 1600px !important;
        padding: 80px !important;
    }
}