.site-body {
    margin: 0;
    background: var(--azul-010);
    color: var(--azul-700);
    font-family: var(--font-base);
}

.site-container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    background: var(--azul-escuro);
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 49, 86, 0.85);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-bottom: none;
    backdrop-filter: blur(10px);
}

.site-nav,
.site-brand,
.site-menu,
.hero-actions,
.footer-inner {
    display: flex;
    align-items: center;
}

.site-nav {
    width: min(1220px, calc(100% - 2rem));
    min-height: 76px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    gap: .65rem;
    color: #fff;
    text-decoration: none;
}

.site-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-brand span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.site-brand small {
    display: block;
    color: var(--azul-200);
    font-size: .72rem;
    font-weight: 400;
}

.site-menu {
    gap: 1.25rem;
}

.site-menu-toggle {
    display: none;
}

.site-menu a {
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 400;
}

.site-menu a:hover,
.site-menu .gold {
    color: #fff;
}

.site-login-dropdown {
    position: relative;
}

.site-login-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #fff;
    border-radius: 8px;
    background: var(--azul);
    color: #fff;
    font-size: .92rem;
    font-weight: 400;
    padding: .35rem .7rem;
}

.site-login-toggle:hover,
.site-login-toggle:focus {
    border-color: #fff;
    color: #fff;
    outline: none;
}

.site-login-menu {
    min-width: 180px;
    border-color: var(--azul-050);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 49, 86, .08);
    font-size: .9rem;
}

.site-login-menu .dropdown-item {
    display: flex;
    align-items: center;
    color: var(--azul-600);
    font-weight: 400;
}

.site-login-menu .dropdown-item:hover,
.site-login-menu .dropdown-item:focus {
    background: var(--azul-025);
    color: var(--azul);
}

.site-hero {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(0, 34, 59, 0.88) 0%, rgba(0, 78, 128, 0.9) 100%), url('/assets/logo/hero_visual.png') no-repeat center center / cover;
    padding: 8.5rem 0 5.5rem;
}

.hero-grid,
.access-grid,
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: 2.3rem;
    align-items: center;
}

.site-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--azul);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 720px;
    margin: .7rem 0 1rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.hero-copy p {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.04rem;
    font-weight: 300;
    line-height: 1.78;
    margin: 0;
}

.hero-actions {
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.65rem;
}

.site-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--azul-100);
    border-radius: 8px;
    padding: .65rem .95rem;
    color: var(--azul-600);
    background: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

.site-btn.primary {
    color: #fff;
    border-color: var(--azul);
    background: var(--azul);
}

.site-btn.gold-btn {
    color: var(--azul-600);
    border-color: var(--azul-100);
    background: var(--azul-025);
}

.site-btn.whatsapp {
    color: var(--cor-success);
    border-color: rgba(30, 107, 60, .25);
    background: #f1fbf4;
}

.hero-board {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 49, 86, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
    padding: 1rem;
}

.board-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: .2rem .1rem .85rem;
}

.board-label span {
    font-size: .74rem;
    font-weight: 400;
}

.board-label strong {
    color: #ffffff;
    font-size: .96rem;
    font-weight: 600;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding-top: .9rem;
}

.board-grid article {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(0, 34, 59, 0.5);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    padding: .9rem;
}

.board-grid i {
    color: var(--azul);
    font-size: 1.35rem;
}

.board-grid small {
    color: var(--azul-200);
    font-weight: 400;
}

.board-grid strong {
    color: #ffffff;
    font-size: .94rem;
    font-weight: 500;
}

.site-section {
    padding: 4rem 0;
}

.access-section,
.about-section,
.solutions-section,
.flow-section {
    background: var(--azul-escuro);
    position: relative;
}

.site-hero .site-eyebrow,
.solutions-section .site-eyebrow,
.flow-section .site-eyebrow {
    color: var(--azul);
}

.solutions-section .section-heading h2,
.flow-section .section-heading h2,
.about-section .about-grid h2 {
    color: #ffffff;
}

.solutions-section .section-heading p,
.flow-section .section-heading p,
.about-section .about-grid p {
    color: rgba(255, 255, 255, 0.7);
}

.access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-card,
.system-card,
.flow-grid article,
.about-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 49, 86, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .45);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.access-card:hover,
.system-card:hover,
.flow-grid article:hover,
.about-panel:hover {
    transform: scale(1.025) translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.25);
}

.access-card,
.system-card,
.flow-grid article {
    padding: 1.2rem;
}

.card-tag {
    color: var(--azul);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.access-card h2,
.section-heading h2,
.about-grid h2 {
    color: #ffffff;
    font-weight: 500;
}

.access-card h2 {
    margin: .65rem 0 .55rem;
    font-size: 1.18rem;
}

.access-card p,
.section-heading p,
.system-card p,
.about-grid p,
.flow-grid span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.72;
}

.access-card a {
    color: var(--azul);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.access-card a:hover {
    color: #ffffff;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.45rem;
}

.section-heading h2,
.about-grid h2 {
    margin: .45rem 0 .55rem;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.system-card {
    min-height: 210px;
}



.system-card i,
.flow-grid i {
    color: var(--azul);
    font-size: 1.45rem;
}

.system-card h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: .8rem 0 .45rem;
}

.about-panel {
    display: grid;
    gap: .7rem;
    padding: 1.15rem;
}

.about-panel span {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.about-panel i {
    color: var(--azul);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.flow-grid article {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.flow-grid strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.site-footer {
    color: var(--azul-100);
    background: var(--azul-escuro);
    border-top: 0;
    box-shadow: inset 0 14px 26px rgba(0, 0, 0, .08);
    padding: 1.2rem 0;
}

.footer-inner {
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    margin-left: 1rem;
}

@media (max-width: 980px) {

    .site-nav,
    .site-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .system-grid,
    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header {
        position: sticky;
    }

    .site-nav {
        min-height: auto;
        flex-direction: column;
        padding: .9rem 0;
        transition: padding .25s ease;
    }

    .site-brand img {
        width: 58px;
        height: 58px;
    }

    .site-brand span {
        font-size: 1.15rem;
    }

    .site-brand small {
        font-size: .8rem;
    }

    .site-menu {
        width: 100%;
        gap: .8rem;
    }

    .site-menu a {
        font-size: .84rem;
    }

    .site-header.scrolled .site-nav {
        min-height: 64px;
        flex-direction: row;
        flex-wrap: wrap;
        padding: .4rem 0;
    }

    .site-header.scrolled .site-brand img {
        width: 42px;
        height: 42px;
    }

    .site-header.scrolled .site-brand span {
        font-size: .92rem;
    }

    .site-header.scrolled .site-brand small {
        font-size: .68rem;
    }

    .site-menu-toggle {
        width: 42px;
        height: 42px;
        display: none;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        border: 1px solid rgba(255, 255, 255, .42);
        border-radius: 8px;
        background: rgba(0, 34, 59, .45);
        color: #fff;
        font-size: 1.45rem;
    }

    .site-header.scrolled .site-menu-toggle {
        display: inline-flex;
    }

    .site-header.scrolled .site-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .45rem 0 .3rem;
    }

    .site-header.scrolled.menu-open .site-menu {
        display: flex;
    }

    .site-header.scrolled .site-menu > a {
        width: 100%;
        padding: .65rem .75rem;
        border-radius: 7px;
        font-size: .92rem;
    }

    .site-header.scrolled .site-menu > a:hover,
    .site-header.scrolled .site-menu > a:focus {
        background: rgba(255, 255, 255, .08);
    }

    .site-header.scrolled .site-login-dropdown,
    .site-header.scrolled .site-login-toggle {
        width: 100%;
    }

    .site-header.scrolled .site-login-toggle {
        justify-content: space-between;
        min-height: 42px;
        padding: .55rem .75rem;
    }

    .site-header.scrolled .site-login-menu {
        width: 100%;
    }

    .site-hero {
        padding: 3rem 0;
    }

    .hero-actions,
    .site-btn {
        width: 100%;
    }

    .site-btn {
        justify-content: center;
    }

    .access-grid,
    .system-grid,
    .flow-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .hero-board {
        display: none;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner a {
        display: block;
        margin: .35rem 0 0;
    }
}

/* Chat Widget Styles */
.site-chat-launcher {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 58px;
    padding: .45rem 1rem .45rem .48rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #20b975;
    box-shadow: 0 12px 28px rgba(19, 126, 77, .32);
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-chat-launcher:hover { background: #159a5e; box-shadow: 0 16px 32px rgba(19, 126, 77, .4); transform: translateY(-2px); }
.site-chat-launcher-icon, .chat-widget-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 1.35rem; }
.site-chat-launcher-copy { display: grid; gap: .05rem; line-height: 1.2; }
.site-chat-launcher-copy strong { font-size: .88rem; }
.site-chat-launcher-copy small { color: rgba(255,255,255,.82); font-size: .7rem; }
.site-chat-shortcut { cursor: pointer; }
.site-chat-shortcut:focus-visible { outline: 3px solid #20b975; outline-offset: 3px; }

.chat-widget {
    position: fixed;
    bottom: 5.9rem;
    right: 1.35rem;
    width: 370px;
    height: 510px;
    background: #fff;
    border: 1px solid rgba(0, 49, 86, .1);
    border-radius: 18px;
    box-shadow: 0 22px 58px rgba(0, 34, 59, .26);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(22px) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-widget-header {
    background: linear-gradient(135deg, #159a5e, #20b975);
    border-bottom: 0;
    padding: 0.95rem 1.15rem;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-widget-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.chat-widget-close:hover {
    color: #ffffff;
}

.chat-title-area { display: flex; align-items: center; }
.chat-widget-avatar { width: 36px; height: 36px; font-size: 1.12rem; }
.chat-online { color: rgba(255,255,255,.84); font-size: .7rem; }
.chat-online i { color: #c9ffe3; font-size: .48rem; vertical-align: .08rem; }

.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem;
    overflow-y: auto;
}
#chatConversationArea {
    padding: 0 !important;
}

.chat-welcome-msg {
    color: var(--azul-600);
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.chat-widget-body .form-label { color: var(--azul-600) !important; font-size: .76rem; font-weight: 600; }
.chat-widget-body .form-control { color: var(--azul-700) !important; background: #f7fafc !important; border-color: #d9e5ed !important; border-radius: 9px; }
.chat-widget-body .form-control:focus { box-shadow: 0 0 0 .2rem rgba(32,185,117,.15); border-color: #20b975 !important; }
.chat-widget-body .chat-submit-btn { border: 0; border-radius: 9px; background: #159a5e; }
.chat-widget-body .chat-submit-btn:hover { background: #107a49; }
.chat-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.chat-contact-actions .btn { font-size: .78rem; white-space: nowrap; }
.chat-whatsapp-btn { border: 1px solid #c8e9d8; border-radius: 9px; color: #107a49; background: #effbf4; }
.chat-whatsapp-btn:hover { color: #fff; background: #159a5e; border-color: #159a5e; }
.chat-contact-hint { display: block; margin-top: .8rem; color: var(--azul-500); font-size: .7rem; }
.chat-form-feedback { margin-top: .8rem; padding: .55rem .65rem; border-radius: 8px; color: #9c2934; background: #fff0f1; font-size: .74rem; }

/* Chat message thread styles */
.chat-messages-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    background: #f7fafc;
}

/* Modern scrollbar for chat messages */
.chat-messages-list::-webkit-scrollbar {
    width: 6px;
}
.chat-messages-list::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages-list::-webkit-scrollbar-thumb {
    background: #c8d6df;
    border-radius: 3px;
}
.chat-messages-list::-webkit-scrollbar-thumb:hover {
    background: #9fb6c4;
}

.chat-msg {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg.agent {
    align-self: flex-start;
}

.chat-msg.system {
    align-self: center;
    max-width: 100%;
}

.chat-msg-content {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.chat-msg.user .chat-msg-content {
    background: var(--azul);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-msg.agent .chat-msg-content {
    background: #ffffff;
    color: var(--azul-700);
    border-bottom-left-radius: 2px;
    border: 1px solid #dce7ee;
}

.chat-msg.system .chat-msg-content {
    background: transparent;
    color: var(--azul-500);
    text-align: center;
    font-size: 0.78rem;
    font-style: italic;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #dce7ee;
    background: #fff;
    padding: 0.8rem 1.25rem 1.25rem 1.25rem;
}

.chat-input-area input {
    flex: 1;
    background: #f7fafc;
    border: 1px solid #d9e5ed;
    border-radius: 9px;
    padding: 0.45rem 0.75rem;
    color: var(--azul-700);
    font-size: 0.86rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: #20b975;
}

.chat-input-area button {
    background: #159a5e;
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-input-area button:hover {
    background: #0087c2;
}

@media (max-width: 480px) {
    .site-chat-launcher { right: .9rem; bottom: .9rem; padding-right: .8rem; }
    .chat-widget {
        width: calc(100% - 30px);
        height: min(560px, calc(100vh - 104px));
        bottom: 5.4rem;
        right: 15px;
    }
    .chat-contact-actions { grid-template-columns: 1fr; }
}
