/* Public layout styles — base_public.html.twig */

:root {
    --snapped-primary: #18407C;
    --snapped-primary-hover: #143866;
    --snapped-accent: #E74A3E;
    --snapped-accent-hover: #d43d31;
    --snapped-text: #4a5568;
    --snapped-text-muted: #6b7280;
    --snapped-light-grey: #F5F5FD;
    --snapped-brand: #ef2f07;
    --snapped-brand-hover: #d92a06;
    --snapped-line: #e2e6ee;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
}

.container {
    max-width: 1400px;
}

a {
    color: var(--snapped-primary);
}

a:hover {
    color: var(--snapped-primary-hover);
}

.btn-primary {
    background-color: var(--snapped-accent);
    border-color: var(--snapped-accent);
}

.btn-primary:hover {
    background-color: var(--snapped-accent-hover);
    border-color: var(--snapped-accent-hover);
}

.alert {
    margin-bottom: 0;
    border-radius: 0;
}

/* Topbar */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--snapped-line);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.brand img {
    height: 36px;
    width: auto;
    display: block;
}

.topbar .nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
    flex-wrap: wrap;
}

.topbar .nav a {
    color: var(--snapped-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar .nav a:hover {
    color: var(--snapped-brand);
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.cta {
    background: var(--snapped-brand);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.cta:hover {
    background: var(--snapped-brand-hover);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--snapped-line);
    border-radius: 10px;
    background: #ffffff;
    padding: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    flex-direction: column;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--snapped-text);
    border-radius: 999px;
    margin: 3px 0;
}

.menu-panel {
    display: none;
}

@media (max-width: 900px) {
    .topbar__inner {
        min-height: 72px;
        padding: 14px 16px;
        gap: 14px;
    }

    .topbar .nav {
        display: none;
    }

    .actions {
        display: flex;
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .menu-panel {
        display: block;
        position: fixed;
        inset: 73px 0 0 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .topbar.open .menu-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        border-top: 1px solid var(--snapped-line);
    }

    .menu-panel__inner {
        padding: 14px 16px 18px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-height: 100%;
    }

    .menu-panel a {
        color: var(--snapped-text);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        padding: 6px 4px;
        transition: color 0.2s ease, border-color 0.2s ease;
        border-bottom: 1px solid transparent;
    }

    .menu-panel a:hover {
        color: var(--snapped-brand);
        border-bottom-color: #eef1f5;
    }

    .menu-panel a:last-child {
        border-bottom: none;
    }

    .menu-panel__cta {
        margin-top: 14px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background: var(--snapped-brand);
        color: #ffffff !important;
        border-radius: 10px;
        padding: 10px 28px;
        font-size: 16px;
        font-weight: 600;
        width: auto;
        align-self: flex-start;
        border-bottom: none !important;
    }

    .menu-panel__cta:hover {
        background: var(--snapped-brand-hover);
        color: #ffffff !important;
    }
}

/* Footer */
.footer {
    background: #f8fafc;
    padding: 56px 24px 40px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.footer .logo img {
    height: 40px;
}

.footer .copyright {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.footer .footer-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer .footer-nav a {
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.18s ease;
}

.footer .footer-nav a:hover {
    color: #ff5a1f;
}

.footer .social {
    display: flex;
    gap: 12px;
}

.footer .social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: #0f172a;
    transition: all 0.18s ease;
}

.footer .social a:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.footer .social svg {
    fill: currentColor;
}
