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

body {
    /* font-family: Arial, Helvetica, sans-serif; */
    line-height: 1.6;
    padding-top: 100px;
}

.montserrat-font {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.google-sans-font {
  font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 0;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "ROND" 0;
}

.bold {
  font-weight: 900;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-header {
    max-height: 90px;
    transition: 0.3s;
}

.logo-header.scrolled {
    max-height: 60px;
}

.servico {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.servico img {
    width: 20%;
    max-width: 350px;
    border-radius: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    /* background: linear-gradient(90deg, rgba(202, 247, 239, 0.9), rgba(31,41,55,0.9)); */
    background: linear-gradient(90deg, rgba(29, 42, 60, 0.9), rgba(42, 96, 181, 0.9));
    /* background: linear-gradient(90deg, rgba(31,41,55,0.9), rgba(59,130,246,0.9)); */
    /* background: linear-gradient(90deg, rgba(31,41,55,0.9), rgba(77, 202, 185, 0.9)); */
    backdrop-filter: blur(6px);
    color: white;
    transition: 0.3s;
}

.navbar.scrolled {
    padding: 2px 40px;
    background: rgba(59, 83, 117, 0.95);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.hero {
    height: 120vh;
    /* background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d'); */
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('./images/ergonomia_hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 100%;
    padding: 0 20px;
    margin-top: -200px;
}

.hero h1 {
    font-size: 48px;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
}

.hero button {
    padding: 12px 25px;
    border: none;
    background: #3b82f6;
    color: white;
    margin-top: 20px;
    cursor: pointer;
}

.section {
    padding: 80px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contato {
    padding: 60px 40px;
    text-align: center;
}

.contato form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    gap: 12px;
}

.contato input,
.contato textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.contato textarea {
    min-height: 120px;
}

.contato button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1f2937;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.contato button:hover {
    background: #3b82f6;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Section base */
.clientes {
    padding: 60px 20px;
    background: #f9fafb;
    text-align: center;
}

.clientes h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #111827;
}

/* Container de logos */
.clientes-logos {
    display: flex;
    flex-wrap: wrap;
    /* permite quebrar em múltiplas linhas */
    justify-content: center;
    gap: 40px;
    align-items: center;
}

/* Logos */
.clientes-logos img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover suave */
.clientes-logos img:hover {
    transform: scale(1.1);
}

/* Responsivo: telas pequenas */
@media (max-width: 600px) {
    .clientes-logos {
        gap: 20px;
        overflow-x: auto;
        /* scroll horizontal */
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .clientes-logos img {
        flex: 0 0 auto;
        /* impede que a imagem quebre a linha */
    }
}

footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
}

.card {
    flex: 1 1 200px;
    background: #f3f4f6;
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 1s ease, box-shadow 1s ease;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* ANIMAÇÃO SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(150px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card:active {
    transform: scale(0.96);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    /* espaço entre ícone e título */
    height: 25%;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.descricao-card {
    height: 50%;
}

.card-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #3b82f6;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Faz o botão ficar redondo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-button img:hover {
    transform: scale(1.1);
    /* Efeito de aumentar ao passar o mouse */
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 5px;
        background: linear-gradient(90deg, rgba(29, 42, 60, 0.9), rgba(42, 96, 181, 0.9));
    }

    .logo-header {
        max-height: 70px;
    }

    .servico {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        height: 100vh;
    }

    .hero-content img {
        max-width: 100%;
        height: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
        max-width: 600px;
        margin: 10px auto 0;
    }

    .section {
        padding: 60px 0;
    }

}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Fundo semi-transparente */
    background-color: rgba(0, 0, 0, 0.4);

    /* Blur do que está atrás */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* suporte Safari */

    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: rgba(255, 255, 255, 0.8);
    /* leve transparência */
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.modal-content img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 8px;
}

#modal-titulo {
    margin: 0;
}

/* descrição embaixo ocupando tudo */
#modal-descricao {
    margin-top: 15px;
    color: #444;
}

#fechar-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}