/**
 * Tema Global - DocCerto
 * Inclui cores e estrutura base do Website
 */

:root {
    /* Cores Principais DocCerto */
    --dc-blue: #005696;
    --dc-green: #59AE4F;

    /* Tons Secundários DocCerto */
    --dc-blue-dark: #003F6F;
    --dc-blue-light: #E1F5FE;
    --dc-green-dark: #2E6F25;
    --dc-green-light: #C8E6C9;

    /* Cores Neutras DocCerto */
    --dc-white: #FFFFFF;
    --dc-gray-text: #444444;
    --dc-gray-dark: #095F44;
    --dc-gray-bg: #F5F5F5;

    /* Variáveis Estruturais (Herdadas do Layout) */
    --ws-accent: var(--dc-blue);
    --ws-accent-dark: var(--dc-blue-dark);
    --ws-accent-soft: var(--dc-blue-light);
    --ws-text: var(--dc-gray-text);
    --ws-text-muted: #6b7785;
    --ws-border: #e2e8f0;
    --ws-bg-soft: var(--dc-gray-bg);
    --ws-shadow: 0 10px 30px rgba(0, 86, 150, 0.08);
    --ws-shadow-strong: 0 14px 34px rgba(0, 86, 150, 0.12);
    --ws-gradient: linear-gradient(135deg, var(--dc-blue) 0%, var(--dc-blue-dark) 55%, var(--dc-green) 100%);
}

/* =========================================
   RESETS E ESTRUTURA GERAL
========================================= */
body {
    background-color: var(--dc-white) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important;
    color: var(--ws-text);
}

main {
    width: 100%;
}

.public-site-main {
    padding-top: 92px;
}

.container {
    width: 100% !important;
    max-width: 1240px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

/* Utilitários DocCerto */
.text-primary { color: var(--dc-blue) !important; }
.bg-primary { background-color: var(--dc-blue) !important; }
.text-success { color: var(--dc-green) !important; }
.bg-success { background-color: var(--dc-green) !important; }
.bg-light { background-color: var(--dc-gray-bg) !important; }

/* =========================================
   BOTÕES
========================================= */
.btn-primary {
    background-color: var(--dc-blue) !important;
    border-color: var(--dc-blue) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: var(--dc-blue-dark) !important;
    border-color: var(--dc-blue-dark) !important;
}

.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    transition: all .2s ease;
}

.ws-btn-ghost {
    background: transparent;
    color: var(--ws-text-muted);
}
.ws-btn-ghost:hover {
    background: var(--ws-bg-soft);
    color: var(--ws-text);
}

.ws-btn-primary {
    background: var(--ws-gradient);
    color: #fff;
    box-shadow: 0 0 28px rgba(0, 86, 150, 0.22);
}
.ws-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 38px rgba(0, 86, 150, 0.28);
}

/* =========================================
   NAVBAR (CABEÇALHO)
========================================= */
.ws-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--ws-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow .2s ease, background-color .2s ease;
}

.ws-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.ws-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.ws-nav-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ws-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.ws-logo img {
    height: 34px;
    width: auto;
    display: block;
}

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

.ws-nav-links a {
    color: var(--ws-text-muted);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    transition: color .15s ease;
}
.ws-nav-links a:hover {
    color: var(--ws-text);
}

.ws-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* =========================================
   MENU MOBILE
========================================= */
.ws-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ws-border);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.ws-menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ws-text);
    border-radius: 999px;
    transition: .2s ease;
}

.ws-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #fff;
    padding: 16px 18px 24px;
    flex-direction: column;
}
.ws-mobile-menu.open {
    display: flex;
}

.ws-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ws-border);
    margin-bottom: 12px;
}

.ws-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--ws-border);
    background: var(--ws-bg-soft);
    color: var(--ws-text);
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ws-mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ws-mobile-links a {
    display: block;
    padding: 12px 8px;
    border-radius: 10px;
    color: var(--ws-text);
    text-decoration: none;
    font-weight: 600;
}
.ws-mobile-links a:hover {
    background: var(--ws-bg-soft);
}

.ws-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

body.ws-no-scroll {
    overflow: hidden !important;
}

/* =========================================
   FOOTER (RODAPÉ)
========================================= */
.ws-footer {
    margin-top: auto;
    border-top: 1px solid var(--ws-border);
    background: #fff;
    padding: 64px 0 28px;
}
.ws-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 34px;
    margin-bottom: 36px;
}
.ws-footer-brand .ws-logo {
    margin-bottom: 14px;
}
.ws-footer-brand p {
    margin: 0 0 16px;
    color: var(--ws-text-muted);
    max-width: 340px;
    line-height: 1.6;
}

.ws-social-links {
    display: flex;
    gap: 12px;
}
.ws-social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    background: var(--ws-bg-soft);
    color: var(--ws-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.ws-social-links a:hover {
    color: var(--dc-blue);
    border-color: rgba(0, 86, 150, .3);
    background: rgba(0, 86, 150, .06);
}
.ws-social-links svg {
    width: 18px;
    height: 18px;
}

.ws-footer-links h4 {
    margin: 0 0 14px;
    color: var(--ws-text);
    font-size: .85rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ws-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ws-footer-links a {
    color: var(--ws-text-muted);
    text-decoration: none;
    font-size: .95rem !important;
    transition: color .15s ease;
}
.ws-footer-links a:hover {
    color: var(--ws-text);
}

.ws-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--ws-border);
}
.ws-footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: .88rem;
}
.ws-lgpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
========================================= */
@media (max-width: 991.98px) {
    .ws-nav-links,
    .ws-nav-actions {
        display: none;
    }
    .ws-menu-toggle {
        display: inline-flex;
    }
    .public-site-main {
        padding-top: 82px;
    }
    .ws-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ws-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .ws-wrap {
        padding: 0 16px;
    }
    .ws-nav-inner {
        min-height: 70px;
    }
    .ws-logo img {
        height: 30px;
    }
    .ws-footer {
        padding: 44px 0 22px;
    }
    .ws-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 22px;
    }
    .ws-footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .ws-footer-brand p {
        max-width: 100%;
    }
    .ws-social-links {
        justify-content: center;
    }
    .ws-footer-links {
        text-align: center;
    }
    .ws-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.auth-form {}