@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
#navbar {
    width: 100%;
    background-color: rgba(87, 152, 42, 0.5) !important;
    color: #eee;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 15px 15px 0;
    z-index: 10;
}

#navbar-container {
    width: 80%;
    max-width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 11;
    white-space: nowrap;
}

#navbar-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding-left: 200px;
}

#navbar-items li {
    margin-left: 20px;
}

#navbar-items a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

#navbar-items a:hover {
    color: #ddd;
}

#navbar h2 {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

.menu-toggle,
.mobile-menu {
    display: none;
}

/* Botão */
.btn {
    display: inline-block;
    padding: 15px 60px;
    font-size: 1.1rem;
    text-transform: uppercase;
    background: #111;
    color: #eee;
    border-radius: 5px;
    transition: background 500ms ease;
}

.btn:hover {
    cursor: pointer;
    background: #000;
}

/* INICIO */
#inicio {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    background: url(https://fssolucoesflorestais.com.br/img/showcase.jpg) no-repeat center center/cover;
}

#inicio-container {
    text-align: center;
}

#inicio-container h2 {
    font-size: 2.5rem;
}

#inicio-container p {
    font-size: 1.2rem;
    padding: 7px 0;
}

/* Clients */
#clients {
    width: 100%;
    background: #eee;
    color: #111;
    padding: 50px;
}

#clients-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    padding: 15px;
}

.client {
    display: inline-block;
    width: 25%;
}

/* Features */
#features {
    width: 100%;
    background: #222;
    color: #eee;
    padding: 50px;
}

#features-container {
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 50px;
}

.feature {
    display: flex;
    flex-direction: column;
    background: #333;
    padding: 20px;
    border-radius: 5px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
#footer {
    width: 100%;
    background-color: rgba(87, 152, 42, 0.5);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-social ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.footer-social ul li {
    display: inline-block;
}

.footer-social ul li a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social ul li a:hover {
    color: #ddd;
}

.footer-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ddd;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 15px auto;
    width: 80%;
}

.footer-copyright {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Estilos para o botão flutuante */
.whatsapp-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    transition: opacity 0.3s ease;
}

.whatsapp-text {
    background: rgba(255, 255, 255, 0.74);
    padding: 10px 15px;
    border-radius: 6px;
    margin-left: 10px;
    color: #075e54;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Estilos da caixa de diálogo */
.whatsapp-dialog {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.dialog-header {
    background: #075e54;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.company-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.header-text h3 {
    margin: 0;
    font-size: 16px;
}

.status {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    margin-right: 5px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
}

.dialog-content {
    padding: 15px;
    background-color: #ECE5DD;
}

/* Estilo do balão de mensagem */
.message-balloon {
    position: relative;
    background-color: #DCF8C6;
    color: #000000;
    padding: 10px 15px;
    margin: 0 0 10px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Parte em negrito */
.message-balloon .bold {
    font-weight: bold;
}

/* Cauda à esquerda */
.message-balloon::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #DCF8C6;
    left: -8px;
    top: 10px;
}

/* Estilo dos ícones no segundo balão */
.whatsapp-emoji {
    vertical-align: middle;
    margin-right: 8px;
}

.handshake-emoji {
    width: 80px;
    height: 34px;
}

.wink-emoji {
    width: 35px;
    height: 35px;
}

/* Indicador de digitação */
.typing-indicator {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Campo de texto ajustado */
#user-name {
    width: 100%;
    padding: 12px;
    /* Aumentado de 8px para 12px */
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    /* Aumentado de tamanho implícito para 16px */
    height: 48px;
    /* Altura maior para facilitar a interação */
}

/* Botão Enviar ajustado */
.send-btn {
    background: #075e54;
    color: white;
    border: none;
    padding: 12px 20px;
    /* Aumentado de 8px 15px para 12px 20px */
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    /* Adicionado para consistência */
}

.send-btn:hover {
    background: #054d44;
}

/* Responsividade */
@media (max-width: 768px) {
    #inicio {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
    }

    #navbar-items {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1100;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: 0.3s;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: rgba(51, 51, 51, 0.8);
        z-index: 1050;
        transition: right 0.3s ease;
    }

    .mobile-menu.active {
        right: 0;
    }

    .close-menu {
        display: block;
        font-size: 30px;
        color: #fff;
        text-align: right;
        padding: 10px 20px;
        cursor: pointer;
    }

    #mobile-navbar-items {
        list-style: none;
        padding: 20px;
        margin: 0;
    }

    #mobile-navbar-items li {
        margin: 20px 0;
    }

    #mobile-navbar-items a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
    }

    #mobile-navbar-items a:hover {
        color: #ddd;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
        text-align: center;
        white-space: nowrap;
        font-size: 26px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .footer-brand,
    .footer-social,
    .footer-contact {
        width: 100%;
    }

    .footer-social ul {
        justify-content: center;
    }
}