:root {
    --preto: #212121;
    --branco: #f2f2f2;
    --verde-escuro: #089590;
    --verde-claro: #6adbd9;
    --cinza: #e6e4e4;
    --texto-cinza: #979696;
}

@font-face {
    font-family: 'Magistral';
    src: url('assets/fonts/Magistral-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'LT Amber';
    src: url('assets/fonts/LT Amber Regular.otf') format('opentype');
    font-weight: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--branco);
    color: var(--preto);
    line-height: 1.6;
}

/* Estilos para a barra de progresso do Toast */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    animation: toast-countdown 5s linear forwards;
}

@keyframes toast-countdown {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Header */
.navbar {
    background: transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--verde-escuro);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 0;
    color: white !important;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--preto) !important;
    transform: translateY(-2px);
}




.btn-header {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-login:hover {
    background-color: white;
    color: var(--verde-escuro);
}

.btn-financeiro {
    background-color: var(--preto);
    border: 2px solid var(--preto);
    color: white;
}

.btn-financeiro:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-suporte {
    background-color: white;
    border: 2px solid white;
    color: var(--verde-escuro);
}

.btn-suporte:hover {
    background-color: transparent;
    color: white;
}

/* Altera a cor das linhas do ícone "hambúrguer" para branco */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.custom-toggler-branco {
  border-color: rgba(255, 255, 255, 0.2);
}
.navbar-toggler:focus{
    box-shadow: none;
}


/* Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: relative;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3); 
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 60px;
    height: 5px;
    border-radius: 0;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
    flex: initial;
    position: relative;
    overflow: hidden;
}

/* A barra de progresso em si, criada com um pseudo-elemento */
.carousel-indicators button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: translateX(0);
}

/* Quando o indicador está ativo, aplicamos a animação */
.carousel-indicators .active::after {
    animation-name: carousel-timer;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* A animação que move a barra da direita para a esquerda */
@keyframes carousel-timer {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.7;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Systems Section */
.systems-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--preto);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--texto-cinza);
}

.system-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.system-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.system-card .card-body {
    padding: 2rem;
}

.system-card .card-title {
    color: var(--verde-escuro);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-conhecer {
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro));
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-conhecer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, var(--cinza));
}

.about-text h3 {
    color: var(--verde-escuro);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--verde-escuro);
    font-weight: bold;
}

.about-images img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-item {
    border: 1px solid var(--cinza);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background-color: var(--branco);
    padding: 1.5rem;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--preto);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--cinza);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-answer.show {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

/* Estilo geral da seção de Suporte Remoto */
.suporte-remoto-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, var(--cinza));
}

.suporte-remoto-section h3 {
    color: var(--verde-escuro);
    font-weight: 700;
}

/* Estiliza a lista de passos das instruções */
.support-steps .icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-claro);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Estiliza a caixa que contém o formulário */
.support-form-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.support-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Estiliza o campo de input do código */
.support-form-container .form-control {
    font-size: 2rem;
    letter-spacing: 0.5em;
    font-weight: 700;
    border-width: 2px;
    border-color: var(--cinza);
    transition: all 0.3s ease;
}

.support-form-container .form-control:focus {
    border-color: var(--verde-escuro);
    box-shadow: 0 0 0 0.25rem rgba(8, 149, 144, 0.25);
}

/* Estiliza o botão de conectar, usando o mesmo padrão do botão "Conhecer Mais" */
.btn-conectar {
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro));
    border: none;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-conectar:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    color: white;
}

/* Define o espaçamento e o fundo da nova seção E-NOVIDADES */
.e-novidades-section {
    padding: 20px 0;
    background-color: #fff;
}

/* Estiliza o container do formulário com sombra e bordas arredondadas */
.novidades-form-container {
    background-color: var(--branco);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--cinza);
}

/* Estiliza o container do ícone, criando um círculo colorido */
.novidades-icon-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro));
    color: white;
    box-shadow: 0 10px 25px rgba(8, 149, 144, 0.3);
}


/* Footer */
.footer {
    background: linear-gradient(135deg, var(--preto), #333);
    color: white;
    padding: 150px 0 80px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo img {
    height: 100px;
    width: auto;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--verde-claro);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--texto-cinza);
}

/* Janela de chat estilo WhatsApp */
.whatsapp-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
    overflow: hidden;
    z-index: 1000;
    animation: fadeInUp 0.6s ease;
}

.whatsapp-chat .chat-header {
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-chat .chat-body {
    padding: 10px;
    font-size: 13px;
    max-height: 240px;
    overflow-y: auto;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estrutura das mensagens */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.msg-row.client {
    justify-content: flex-end;
}

.msg-row.support {
    justify-content: flex-start;
}

/* Balões */
.msg {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 70%;
    line-height: 1.3;
    font-size: 13px;
}

.msg-support {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-bottom-left-radius: 4px;
}

.msg-client {
    background: #dcf8c6;
    color: #333;
    border-bottom-right-radius: 4px;
}

/* Avatares */
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Bolinha de digitando */
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ddd;
    width: auto;
}

.typing-bubble span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite;
}

.typing-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animações */
@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-out {
    animation: fadeOutDown 1s forwards;
}
@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}



/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro));
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 100vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 100vh;
        min-height: 500px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
    }
    
    .btn-header {
        margin: 0.25rem;
        width: 100%;
    }

    .navbar-brand img {
        height: 35px;
    }

    .footer-logo img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        min-height: 450px;
    }
    
    .carousel-item {
        min-height: 450px;
    }

    .carousel-content h1 {
        font-size: 2rem !important;
    }

    .carousel-content .lead {
        font-size: 1rem;
    }
}