/* 
 * layout.css
 * Purpose: Grid system, Header, Footer, Main Containers
 */

.container {
    width: 90%;
    max-width: 1100px; /* Reduced from 1200px for tighter reading lines */
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* Increased side padding */
}

/* Header */
.page-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

/* Footer */
.page-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a,
.footer-col a:visited {
    color: #ffffff !important; /* Force white, override defaults */
    text-decoration: none;
    transition: all 0.3s var(--ease-out-smooth);
    display: inline-block;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--color-secondary) !important;
    transform: translateX(8px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

@media (max-width: 768px) {
    .nav-list, .main-nav .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Menu Active State */
    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem;
        gap: 0;
    }

    .nav-list.active li {
        width: 100%;
    }

    .nav-list.active .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav .btn.active {
        display: block; /* Show CTA in mobile menu if desired, or keep hidden */
        margin: 1rem;
        text-align: center;
    }
}
