/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Navegação desktop */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 550;
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: width .25s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-cta {
    white-space: nowrap;
}

/* Botão mobile */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    transition: .2s;
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.menu-icon {
    display: block;
}

/* =========================================
   MENU MOBILE
   ========================================= */

.mobile-nav-overlay {
    display: none;
}

.mobile-nav-head {
    display: none;
}

.mobile-nav-title {
    font-weight: 700;
    color: var(--ink);
}

.mobile-nav-close {
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
}

.mobile-nav-cta {
    display: none;
}

/* =========================================
   BOTÕES
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(10, 79, 158, .14);
}

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

.btn-ghost {
    border: 1px solid #cfd8e3;
    background: var(--white);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, .28);
}

.btn-light:hover {
    color: #8ec4ff;
    border-color: #8ec4ff;
}

/* =========================================
   ETIQUETAS
   ========================================= */

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* =========================================
   CARTÕES
   ========================================= */

.card {
    height: 100%;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: .2s;
}

.card:hover {
    border-color: #c3d9f2;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card h3 {
    margin: 14px 0 8px;
    font-size: 1.15rem;
}

.card p {
    font-size: .95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 650;
}

.card-dark {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
}

.card-dark h3 {
    color: var(--white);
}

.card-dark p {
    color: #b7c4d5;
}

.card-dark .tag {
    background: rgba(10, 79, 158, .25);
    color: #8ec4ff;
}

.card-dark .card-link {
    color: #8ec4ff;
}

/* =========================================
   RODAPÉ
   ========================================= */

.site-footer {
    padding: 40px 0;
    background: #101828;
    color: #98a6b8;
    font-size: .9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand p {
    margin-top: 6px;
    color: #98a6b8;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-legal {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* =========================================
   FORMULÁRIOS
   ========================================= */

.contact-form {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-field label {
    font-size: .84rem;
    font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #d0d9e4;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.35;
    transition: .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 79, 158, .1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: .9rem;
}

.form-consent input {
    margin-top: 3px;
}

.btn-submit {
    width: 100%;
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 12px;
    font-size: .92rem;
    font-weight: 650;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--error);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   DESKTOP — a partir de 900px
   ========================================= */

@media (min-width: 900px) {
    .header-inner {
        padding: 18px 0;
    }

    .brand-logo {
        height: 44px;
        max-width: 200px;
    }

    .header-cta {
        display: inline-flex;
    }

    .menu-toggle {
        display: none;
    }

    /* Menu desktop horizontal */
    .main-nav {
        position: static;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .main-nav a {
        padding: 6px 0;
        border: 0;
        font-weight: 550;
        color: var(--muted);
    }

    .mobile-nav-head,
    .mobile-nav-close {
        display: none;
    }

    .mobile-nav-cta {
        display: none;
    }

    .mobile-nav-overlay {
        display: none;
    }
}

/* =========================================
   MOBILE — até 899px
   ========================================= */

@media (max-width: 899px) {
    .header-cta {
        display: none;
    }

    /* Overlay */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(16, 24, 40, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .mobile-nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Menu lateral */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(340px, 88%);
        padding: 24px;
        background: var(--white);
        border-left: 1px solid var(--line);
        box-shadow: -20px 0 60px rgba(16, 24, 40, .16);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
        font-weight: 600;
        color: var(--ink);
    }

    .main-nav a:last-of-type {
        border-bottom: 0;
    }

    .main-nav a::after {
        display: none;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .mobile-nav-cta {
        display: inline-flex;
        margin-top: 22px;
        text-align: center;
    }
}

/* Bloqueia scroll quando menu está aberto */
body.menu-open {
    overflow: hidden;
}

/* =========================================
   RESPONSIVO EXTRA
   ========================================= */

@media (max-width: 480px) {
    .brand-logo {
        height: 32px;
        max-width: 150px;
    }

    .btn {
        padding: 9px 16px;
    }

    .contact-form {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}