/* ==========================================================================
   RS INVESTIMENTOS S.A. — Sistema de Design
   Referência visual: capa1.jpeg (documento executivo corporativo)
   
   Paleta exata:
     • Azul-marinho escuro:  #1B2E4B  (texto, títulos, logo)
     • Cinza-azulado claro:  #F0F4F8  (fundo superior da capa)
     • Branco puro:          #FFFFFF
     • Linha/borda sutil:    #C8D0DC
     • Vermelho institucional: #9B1C1C  (marcadores de aviso)
     • Dourado discreto:     #B8974A  (marcador legal)
   ========================================================================== */

/* ─── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #E8EEF5;
    color: #1B2E4B;
    min-height: 100dvh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── A CAPA DE PÁGINA INTEIRA COM A TEXTURA OFICIAL ─────────────────── */
.page-cover {
    width: 100%;
    min-height: 100dvh;
    background-color: #EFF3F8;
    background-image: url('img/capa_fundo.jpg?v=20261014');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: clamp(45px, 9vh, 90px);
    position: relative;
    user-select: none;
    box-shadow: none;
}

@media (max-aspect-ratio: 1/1) {
    .page-cover {
        background-size: contain;
        background-position: center 36%;
        justify-content: flex-end;
        padding-bottom: clamp(35px, 8vh, 65px);
    }
}

/* ─── ZONA DE CTA — botão aviso ─────────────────────────────────────── */
.cover-cta-zone {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

/* Botão de aviso institucional */
.aviso-trigger {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 3px;
    padding: 12px 24px 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(155, 28, 28, 0.45);
    border-radius: 4px;
    cursor: pointer;
    color: #7F1D1D;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(27, 46, 75, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-align: left;
    max-width: 480px;
}

.aviso-trigger:hover {
    background: #FFFFFF;
    border-color: #9B1C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155, 28, 28, 0.20), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.aviso-trigger:active {
    transform: translateY(0);
}

.aviso-trigger__icon {
    grid-row: 1 / 3;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #9B1C1C;
    border-radius: 3px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.aviso-trigger__icon svg {
    width: 16px;
    height: 16px;
}

.aviso-trigger__label {
    grid-row: 1;
    grid-column: 2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9B1C1C;
    line-height: 1.2;
}

.aviso-trigger__sub {
    grid-row: 2;
    grid-column: 2;
    font-size: 0.75rem;
    font-weight: 400;
    color: #4A5568;
    line-height: 1.3;
}

.aviso-trigger__arrow {
    grid-row: 1 / 3;
    grid-column: 3;
    font-size: 1.1rem;
    color: #9B1C1C;
    transition: transform 0.22s ease;
    line-height: 1;
}

.aviso-trigger:hover .aviso-trigger__arrow {
    transform: translateX(3px);
}


/* ==========================================================================
   DRAWER — Painel lateral deslizante do comunicado oficial
   ========================================================================== */

/* Overlay translúcido */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 28, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Painel do drawer */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 620px;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.32, 0, 0.15, 1);
    box-shadow:
        -4px 0 24px rgba(0, 0, 0, 0.12),
        -1px 0 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

/* Cabeçalho fixo do drawer */
.drawer-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #1B2E4B;
    color: #FFFFFF;
    border-bottom: 2px solid #B8974A;
}

.drawer-head__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-head__shield {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    flex-shrink: 0;
}

.drawer-head__name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    line-height: 1.2;
}

.drawer-head__cnpj {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.drawer-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-close:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    color: #FCA5A5;
}

/* Corpo rolável do drawer */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 36px 36px 24px;
    scroll-behavior: smooth;
}

/* Scrollbar refinada */
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb {
    background: #C8D0DC;
    border-radius: 2px;
}
.drawer-body::-webkit-scrollbar-thumb:hover { background: #9AACBD; }

/* ─── CABEÇALHO DO COMUNICADO ───────────────────────────────────────── */
.notice-header {
    margin-bottom: 32px;
}

.notice-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #9B1C1C;
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
    margin-bottom: 14px;
}

.notice-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 600;
    color: #1B2E4B;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.notice-lead {
    font-size: 0.92rem;
    line-height: 1.72;
    color: #374151;
    font-weight: 400;
}

.notice-lead strong {
    color: #1B2E4B;
    font-weight: 600;
}

/* ─── LINHA DIVISÓRIA ────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(to right, #C8D0DC 0%, transparent 100%);
    margin: 28px 0;
}

/* ─── SEÇÕES DO COMUNICADO ───────────────────────────────────────────── */
.notice-section {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 0 18px;
    margin-bottom: 28px;
}

.notice-section__marker {
    border-radius: 2px;
    align-self: stretch;
}

.marker--red  { background: #9B1C1C; }
.marker--navy { background: #1B2E4B; }
.marker--gold { background: #B8974A; }

.notice-section__content {
    /* vazio — o conteúdo vai aqui */
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 10px;
}

.section-body {
    font-size: 0.9rem;
    line-height: 1.72;
    color: #374151;
}

.section-body strong {
    color: #1B2E4B;
    font-weight: 600;
}

/* ─── LISTA DE SINAIS DE FRAUDE ──────────────────────────────────────── */
.fraud-signals {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fraud-signals li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0 12px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #374151;
    align-items: start;
}

.signal-icon {
    font-size: 1.1rem;
    color: #1B2E4B;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
}

.fraud-signals li strong {
    color: #1B2E4B;
    font-weight: 600;
}

/* ─── NOTA JURÍDICA DESTACADA ────────────────────────────────────────── */
.legal-note {
    margin-top: 14px;
    padding: 14px 16px;
    background: #F8F8F4;
    border-left: 3px solid #B8974A;
    font-size: 0.87rem;
    line-height: 1.65;
    color: #4B4630;
    font-style: italic;
}

.legal-note strong {
    color: #2C2517;
    font-style: normal;
    font-weight: 600;
}

/* ─── CANAIS OFICIAIS ────────────────────────────────────────────────── */
.channels-section {
    margin-bottom: 32px;
}

.channels-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 6px;
}

.channels-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 18px;
    line-height: 1.5;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.channel-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    padding: 14px 18px;
    background: #FFFFFF;
    transition: background 0.15s ease;
}

.channel-item:not(:last-child) {
    border-bottom: 1px solid #E2E8F0;
}

.channel-item:hover {
    background: #FAFBFC;
}

.channel-item__role {
    grid-row: 1;
    grid-column: 1;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 2px;
}

.channel-item__email {
    grid-row: 2;
    grid-column: 1;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1B2E4B;
    letter-spacing: 0.01em;
}

.channel-item__actions {
    grid-row: 1 / 3;
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy, .btn-mail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-copy {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.btn-copy:hover {
    background: #E2E8F0;
    color: #1B2E4B;
    border-color: #CBD5E1;
}

.btn-copy.copied {
    background: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
}

.btn-mail {
    background: #1B2E4B;
    color: #FFFFFF;
    border: 1px solid #1B2E4B;
}

.btn-mail:hover {
    background: #0F1D2E;
    border-color: #0F1D2E;
}

/* ─── RODAPÉ DO DRAWER ───────────────────────────────────────────────── */
.drawer-foot {
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
    margin-top: 8px;
}

.drawer-foot p {
    font-size: 0.74rem;
    color: #94A3B8;
    line-height: 1.6;
    font-style: italic;
}

/* ─── DOCUMENTO FORMAL (corpo do comunicado) ─────────────────────────── */
.notice-document {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.doc-paragraph {
    font-size: 0.925rem;
    line-height: 1.80;
    color: #374151;
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.doc-paragraph strong {
    color: #1B2E4B;
    font-weight: 600;
}

.doc-link {
    color: #1B2E4B;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doc-link:hover {
    color: #2563EB;
}

/* Bloco de assinatura — estilo cartório/documento oficial */
.doc-signature {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-location {
    font-size: 0.9rem;
    color: #374151;
    font-style: italic;
}

.doc-signee {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-signee__rule {
    width: 160px;
    height: 1px;
    background: #1B2E4B;
    margin-bottom: 8px;
}

.doc-signee strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1B2E4B;
    letter-spacing: 0.02em;
}

.doc-signee span {
    font-size: 0.78rem;
    color: #64748B;
}


/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #1B2E4B;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 860px) {
    .drawer {
        max-width: 100%;
    }

    .drawer-body {
        padding: 24px 20px 20px;
    }
}

@media (max-width: 600px) {
    .aviso-trigger {
        grid-template-columns: 28px 1fr auto;
        column-gap: 10px;
        padding: 10px 14px;
        max-width: calc(100% - 24px);
    }

    .aviso-trigger__icon {
        width: 28px;
        height: 28px;
    }

    .aviso-trigger__label {
        font-size: 0.72rem;
    }

    .aviso-trigger__sub {
        font-size: 0.7rem;
    }
}

    .channel-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .channel-item__actions {
        grid-row: 3;
        grid-column: 1;
        margin-top: 8px;
    }
}


/* ==========================================================================
   PRINT — versão para impressão do comunicado (documento oficial)
   ========================================================================== */
@media print {
    body {
        background: #FFFFFF !important;
        padding: 0;
    }

    .page-cover,
    .drawer-overlay,
    .toast,
    .drawer-head__actions {
        display: none !important;
    }

    .drawer {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .drawer-body {
        overflow: visible !important;
        padding: 32px !important;
    }

    .notice-title {
        font-size: 1.8rem !important;
    }

    .channel-item__actions {
        display: none !important;
    }

    .channel-item__email::after {
        content: attr(data-email);
    }

    .drawer-foot p {
        font-size: 0.7rem;
    }

    a { text-decoration: none; }
}
