/* --- Reset e Configurações Globais --- */
:root {
    --primary-color: #ffa800;
    /* Laranja vibrante */
    --secondary-color: #e69500;
    /* Laranja mais escuro para hover */
    --background-color: #f8f9fa;
    /* Fundo cinza claro */
    --dark-bg-color: #121212;
    /* Fundo escuro para seções de destaque */
    --text-color: #333;
    --light-text-color: #f1f1f1;
    --card-bg: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    /* Reduzido de 3rem para 2rem */
}

/* --- Header --- */
header {
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    position: relative;
}

.logo {
    width: 150px;
}

/* --- Botão Hamburger estilizado com 3 barrinhas --- */

.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* --- Seção Hero --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    color: var(--light-text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

#hero .container {
    max-width: 800px;
}

#hero h1 {
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary-large {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary-large:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Seções Padrão --- */
section {
    padding: 20px;
}

/* Seção Sobre Nós */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    font-size: 2.2rem;
}

.about-content h3 {
    list-style: none;
    margin-top: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.about-content i {
    color: var(--primary-color);
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* Seção de Benefícios */

#beneficios i {
    color: #ffa800;
}

/* Seção de Parceiros */
.partners-section {
    background-color: var(--background-color);
    padding: 20px;
    overflow: hidden;
    text-align: center;
}

.partners-section h2 {
    margin-bottom: 40px;
}

/* Carrossel */
.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-track {
    display: flex;
    width: calc(250px * 4);
    /* largura total (largura do item * quantidade) */
    animation: scroll 20s linear infinite;
}

.slide-track img {
    width: 150px;
    height: 150px;
    margin: 0 20px;
    transition: all 1.00s ease;
}

.slide-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Keyframes do movimento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Seção de Serviços --- */
#servicos {
    background: var(--background-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card i {
    font-size: 3rem;
    color: #ffa800;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Seção de Depoimentos --- */

#depoimentos {
    background-color: var(--background-color);
    padding: 20px;
    text-align: center;
}

.testimonial-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 2rem auto;
}

.testimonial-cards-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: auto;
}

.testimonial-card {
    flex: 0 0 100%;
    /* cada card ocupa 100% do container */
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    box-sizing: border-box;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--text-color);
}

/* Bolinhas / indicadores */
.dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* Seção de Perguntas */

.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    /* Linha divisória */
    padding: 20px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    /* Fonte um pouco menor para economizar espaço */
    font-weight: 600;
    color: #333;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    /* Para garantir consistência */
}

.faq-toggle-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    /* Ícone um pouco menor */
    font-weight: 300;
    transition: transform 0.3s ease;
    /* Transição para o ícone */
}

/* Esconde a resposta e adiciona a transição */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
    padding-top: 0;
}

.faq-answer p {
    margin-top: 10px;
    /* Espaçamento reduzido aqui também */
    line-height: 1.4;
    /* Espaçamento da linha um pouco mais justo */
    color: #555;
}

/* Classe para o estado ativo (quando a pergunta é clicada) */
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 10px;
    /* Espaçamento reduzido ao abrir */
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    /* Gira o ícone para um "x" */
}

/* --- Seção de Contato (CTA) --- */
#contato {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    text-align: center;
}

#contato h2 {
    color: var(--light-text-color);
}

#contato p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    background-color: #ffa800;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/*
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}
*/

/* Footer */

.footer {
    background-color: var(--dark-bg-color);
    padding: 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #888;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links i {
    font-size: 25px;
}

.social-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* --- Efeitos de Animação --- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsividade: tablets, até 768px --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    body {
        padding-top: 50px;
        /* reduz espaço do header fixo */
        font-size: 15px;
    }

    /* Header */
    header .container {
        flex-direction: row;
        /* mantém logo e botão alinhados */
        justify-content: space-between;
        align-items: center;
    }

    /* navegação escondida inicialmente */
    .nav {
        order: 3;
        width: 100%;
    }

    .nav-toggle {
        order: 2;
        margin-left: auto;
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        border-top: 1px solid #FFFFFF;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 0.5rem 1rem;
    }

    .nav-list a {
        color: #121212;
    }

    /* Hero */
    #hero {
        min-height: 70vh;
        padding: 3rem 1rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .btn-primary-large {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* Seção Sobre */
    .about-section .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-content h2 {
        text-align: center;
    }

    /* Cards de serviços */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Depoimentos */
    

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Responsividade: celulares menores, até 480px --- */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    body {
        font-size: 14px;
    }

    /* Botões */
    .btn-primary-large,
    .btn-whatsapp {
        width: 100%;
        /* botão ocupa a largura toda */
        justify-content: center;
        font-size: 1rem;
        padding: 12px;
    }

    /* Texto hero */
    #hero p {
        font-size: 0.95rem;
    }

    /* Cards de serviços menores */
    .card {
        padding: 1.5rem;
    }

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

    /* Depoimentos */
    

    /* Footer icons */
    .social-links i {
        font-size: 20px;
    }
}