/* ========================================
   Shared Components — Header, Footer, Nav
   Patrineo Landing Page
   ======================================== */

/* ========================================
   Header / Nav
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo-icon-img { width: 28px; height: 28px; }
.logo-patri { color: var(--fg); }
.logo-neo { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    padding: 0;
    margin: 0;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-fg);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ========================================
   Buttons (shared)
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
}
.btn-primary:hover {
    background: #0ea472;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}
.btn-full { width: 100%; justify-content: center; }

/* ========================================
   Mobile Menu Button
   ======================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Mobile Nav
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-fg);
}
.mobile-nav a:hover { color: var(--fg); }

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-seo .footer-top {
    grid-template-columns: 1fr auto auto;
    gap: 64px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 16px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.footer-social a {
    display: flex;
    color: var(--muted-fg);
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--muted-fg);
}

/* ========================================
   Responsive — Header & Footer
   ======================================== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav .btn { display: none; }
    .header-seo .nav .btn { display: inline-flex; font-size: 0.8125rem; padding: 8px 16px; }
    .mobile-menu-btn { display: flex; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
