@import url('base.css');

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 4px;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 247, 250, 0.92);
    backdrop-filter: blur(12px);
    z-index: -1;
}

.site-header .shell {
    padding: 12px 24px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    gap: 12px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

.nav-link {
    padding: 8px 12px;
    color: var(--muted);
    font-weight: 600;
    border-radius: 10px;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(0, 103, 184, 0.08);
}

.cta {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cta.solid {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 103, 184, 0.3);
    border: none;
}

.cta.ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: #ffffff;
}

.cta.ghost.light {
    background: #f7f8fa;
}

.cta.inline {
    padding: 0;
    border: none;
    color: var(--accent);
    font-weight: 700;
}

.cta:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle .icon-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 999px;
}

.nav-toggle .icon-close span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transform-origin: center;
}

.nav-toggle .icon-close span:first-child {
    transform: rotate(45deg);
}

.nav-toggle .icon-close span:last-child {
    transform: rotate(-45deg);
    margin-top: -2px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle.open .icon-burger {
    display: none;
}

.nav-toggle.open .icon-close {
    display: block;
}

@media (max-width: 720px) {
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-actions {
        width: 100%;
        display: none;
        flex-direction: column;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        gap: 10px;
    }

    .nav-actions.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .brand {
        flex: 1 1 auto;
    }
}
