/* =============================================================================
   Public navigation + footer styles (Phase 5 — shared header/footer snippets)
   All selectors use the "pn-" prefix to avoid collisions with existing inline
   CSS on public pages and with Tailwind utility classes used by blog.php.
   ============================================================================= */

.pn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pn-header--over-hero {
    background: rgba(255, 255, 255, 0.0);
    border-bottom: 0;
}

.pn-header--over-hero .pn-nav-link,
.pn-header--over-hero .pn-brand {
    color: #ffffff;
}

.pn-header--over-hero .pn-cta--login {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.pn-header--over-hero .pn-cta--login:hover {
    background: rgba(255, 255, 255, 0.28);
}

.pn-header--over-hero .pn-cta--primary {
    background: #ffffff;
    color: #3367d6;
}

.pn-header--over-hero .pn-cta--primary:hover {
    background: #f8fafc;
}

.pn-header--over-hero .pn-burger-bar {
    background: #ffffff;
}

.pn-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pn-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #4285F4;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    flex-shrink: 0;
}

.pn-brand:hover { opacity: 0.85; }

.pn-brand-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.pn-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.pn-nav-link {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pn-nav-link:hover { color: #0f172a; }

.pn-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.pn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pn-cta--login {
    background: transparent;
    color: #4285F4;
    border-color: #cbd5e1;
}

.pn-cta--login:hover {
    background: #f8fafc;
    border-color: #4285F4;
}

.pn-cta--primary {
    background: #4285F4;
    color: #ffffff;
}

.pn-cta--primary:hover {
    background: #3367d6;
}

/* Hamburger toggle (CSS-only checkbox-hack) */
.pn-burger-toggle {
    display: none;
}

.pn-burger {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
}

.pn-burger-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pn-burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

@media (max-width: 900px) {
    .pn-burger {
        display: inline-flex;
        order: 2;
    }

    .pn-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1.5rem 1.25rem;
        gap: 0.25rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .pn-burger-toggle:checked ~ .pn-nav {
        max-height: 600px;
    }

    .pn-burger-toggle:checked ~ .pn-burger .pn-burger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .pn-burger-toggle:checked ~ .pn-burger .pn-burger-bar:nth-child(2) {
        opacity: 0;
    }
    .pn-burger-toggle:checked ~ .pn-burger .pn-burger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .pn-nav-link, .pn-cta {
        padding: 0.7rem 0;
        font-size: 1rem;
        color: #1e293b;
    }

    .pn-cta-group {
        margin-left: 0;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .pn-cta {
        text-align: center;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    /* On the over-hero variant, the dropdown still needs a solid background
       for legibility against the hero gradient. */
    .pn-header--over-hero .pn-nav {
        background: rgba(15, 23, 42, 0.97);
    }

    .pn-header--over-hero .pn-nav-link,
    .pn-header--over-hero .pn-cta--login {
        color: #ffffff;
    }
}

/* =============================================================================
   Public footer
   ============================================================================= */

.pn-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0 2rem;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #64748b;
}

.pn-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .pn-footer-inner {
        grid-template-columns: 1fr 1fr 2fr;
        align-items: start;
    }
}

.pn-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pn-footer-logo {
    color: #4285F4;
    font-weight: 700;
    font-size: 1.4rem;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.pn-footer-copy {
    font-size: 0.85rem;
    color: #94a3b8;
}

.pn-footer-company {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pn-footer-company img {
    width: 36px;
    height: auto;
    border-radius: 6px;
}

.pn-footer-company-name {
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.pn-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    align-items: center;
}

.pn-footer-link {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pn-footer-link:hover { color: #4285F4; }

/* Push the body content area down so the sticky header doesn't overlap.
   Pages applying the over-hero variant should NOT add this — the hero
   already provides its own top padding. Add the .pn-has-sticky-header
   class on the <body> on those pages where the offset is needed. */
.pn-has-sticky-header {
    /* No-op marker class — page-specific top padding lives in each page's
       own CSS where it interacts with the existing layout. */
}
