/**
 * Layout Styles - Header, Footer, Sections
 * 
 * @package Asivo
 * @version 1.0.0
 */

/* ================================
   Site Structure
   ================================ */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* ================================
   Header
   ================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 24px 0;
    background: transparent;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 60px;
    border-radius: 999px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

/* Logo Badge */
.logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: var(--font-bold);
    font-family: var(--font-headline);
    color: #FFFFFF;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
}

.logo-badge:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
    transform: scale(1.05);
}

/* Pill Navigation */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    width: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li,
.nav-item {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 400;
}

.nav-list li:hover,
.nav-item:hover {
    color: #FFFFFF;
}

.nav-list li.current-menu-item,
.nav-item.active {
    color: #FFFFFF;
    font-weight: 500;
}

.nav-list a {
    color: inherit;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: all 0.3s ease;
}

.nav-list a:hover {
    color: #FFFFFF;
}

/* Contact CTA Button */
.nav-cta {
    padding: 12px 28px;
    border-radius: 999px;
    background: #4F46E5;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #00D1FF;
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.6);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
}

.menu-toggle__line {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-bar {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-dark-bg);
        border-bottom: 1px solid var(--color-card-border);
        padding: var(--space-4);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-radius: 0;
    }
    
    .nav-bar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--color-card-border);
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-3);
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-3);
        text-align: center;
    }
}

/* ================================
   Footer
   ================================ */

.site-footer {
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-card-border);
    padding-top: var(--space-10);
    padding-bottom: var(--space-6);
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand {
    max-width: 400px;
}

.footer-title {
    font-size: var(--text-2xl);
    font-family: var(--font-headline);
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.footer-tagline {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.footer-nav__title {
    font-size: var(--text-base);
    font-family: var(--font-headline);
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.footer-nav__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav__menu li {
    margin-bottom: var(--space-2);
}

.footer-nav__menu a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-nav__menu a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-cta__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-card-border);
    font-size: var(--text-sm);
    font-family: var(--font-ui);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

/* ================================
   Contact Section
   ================================ */

.section--contact {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(0, 209, 255, 0.05));
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    margin: var(--space-8) var(--container-padding);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.contact__description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}
