/* ------------------- */
/* RESET & FONTES      */
/* ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --color-gold: #D4AF37;
    --color-green: #25D366;
    --color-dark: #111111;
    --color-light: #FFFFFF;
    --color-text: #333333;
    --color-bg: #F9F9F9;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden; /* Evita barra de rolagem horizontal devido a animações */
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
    color: var(--color-light);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ------------------- */
/* BOTÃO CTA WHATSAPP  */
/* ------------------- */
.btn-whatsapp {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-light) !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}

/* ------------------- */
/* DOBRA 1: HERO       */
/* ------------------- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/bg-hero.jpg') no-repeat center center/cover;
    color: var(--color-light);
    padding: 2rem 1.5rem;
}

.hero .logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    mix-blend-mode: screen; /* Aplica o modo exclusion */
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 700px;
    color: var(--color-light);
    margin: 1rem auto 2.5rem;
}

.hero-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    max-width: 900px;
}

.hero-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-gold);
    backdrop-filter: blur(5px);
    flex: 1 1 200px; /* Flex-grow, flex-shrink, flex-basis */
    display: flex; /* Para alinhar ícone e texto */
    align-items: center;
    gap: 0.5rem;
    /* Adicionado para a transição suave */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nova regra de hover adicionada */
.hero-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-card .icon-check {
    color: var(--color-green); /* Cor para o ícone de check */
    font-size: 1.2rem;
}

/* ------------------- */
/* DOBRA 2: SLIDER     */
/* ------------------- */
.slider-section {
    background-color: var(--color-bg);
}

/* Estilos básicos para o Swiper */
.swiper-container {
    width: 100%;
    max-width: 800px; /* Adicionado para limitar a largura do slider */
    height: 450px;
    margin: 0 auto 2rem; /* Centraliza e adiciona espaço abaixo */
    border-radius: 8px;
    overflow: hidden; /* Garante que as imagens do slider fiquem dentro do container arredondado */
}

.swiper-container img, .swiper-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-gold) !important;
}

.swiper-pagination-bullet-active {
    background: var(--color-gold) !important;
}

/* ------------------- */
/* DOBRA 3: FEATURES   */
/* ------------------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.features-content h2 {
    text-align: left;
}

.features-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ------------------- */
/* DOBRA 4: TESTIMONIALS*/
/* ------------------- */
.testimonials {
    background-color: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.testimonial-card {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--color-gold);
}

.testimonial-card p {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card strong {
    color: var(--color-dark);
}

.testimonials .center-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ------------------- */
/* DOBRA 5: GARANTIA   */
/* ------------------- */
.guarantee {
    background-color: var(--color-dark);
    color: var(--color-light);
    position: relative; /* Para posicionar elementos internos, se necessário */
}

.guarantee h2, .guarantee h3 {
    color: var(--color-light);
}

.guarantee-icon {
    font-size: 4rem; /* Tamanho do emoji */
    display: block;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite ease-in-out; /* Aplica a animação */
    width: fit-content; /* Ajusta a largura ao conteúdo */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ------------------- */
/* DOBRA 6: FORM       */
/* ------------------- */
.form-section form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: grid;
    gap: 1rem;
}

.form-section input, .form-section textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-section button[type="submit"] {
    background-color: var(--color-gold);
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-section button[type="submit"]:hover {
    background-color: #c49a2a;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* ------------------- */
/* DOBRA 7: FAQ        */
/* ------------------- */
.faq {
    background-color: var(--color-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove a seta padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Safari */
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item div {
    padding-top: 1rem;
    color: #555;
}

/* ------------------- */
/* RODAPÉ              */
/* ------------------- */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 2rem 1.5rem;
}

/* ------------------- */
/* MEDIA QUERIES (MOBILE) */
/* ------------------- */
@media (max-width: 767px) {
    /* Controle de tipografia mobile */
    h1 { 
        font-size: 2rem; 
        line-height: 1.1;
    }
    
    h2 { 
        font-size: 1.5rem; 
        margin-bottom: 1.5rem;
    }
    
    h3 { 
        font-size: 1rem; 
        max-width: 100%;
    }
    
    /* Seções com padding otimizado */
    section { 
        padding: 3rem 1rem; 
    }
    
    /* Hero otimizado para mobile */
    .hero {
        padding: 1.5rem 1rem;
        min-height: 100vh;
    }
    
    .hero .logo {
        width: 120px;
        margin-bottom: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1rem;
        margin: 1rem auto 2rem;
    }
    
    /* Hero cards empilhados em mobile */
    .hero-cards {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .hero-card {
        flex: 1 1 100%;
        padding: 0.8rem;
        text-align: left;
    }
    
    /* Swiper otimizado para mobile */
    .swiper-container {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    /* Ocultar setas do Swiper em mobile */
    .swiper-button-next, 
    .swiper-button-prev {
        display: none;
    }
    
    /* Paginação mais visível em mobile */
    .swiper-pagination {
        bottom: 10px !important;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    /* Botão WhatsApp otimizado para touch */
    .btn-whatsapp {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Tamanho mínimo para touch */
        width: 100%;
        max-width: 280px;
        margin: 0 auto; /* Centraliza o botão */
        display: block; /* Garante que seja um elemento de bloco */
    }
    
    /* Features em coluna única */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-content h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .features-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    /* Centralizar CTA da seção features */
    .features-content {
        text-align: center;
    }
    
    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Centralizar CTA dos testimonials */
    .center-cta {
        text-align: center;
    }
    
    /* Garantia mobile */
    .guarantee-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    /* Formulário mobile */
    .form-section form {
        margin: 1.5rem auto 0;
        gap: 0.8rem;
    }
    
    .form-section input, 
    .form-section textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .form-section button[type="submit"] {
        padding: 1.2rem;
        min-height: 48px;
        font-size: 1rem;
        margin: 0 auto; /* Centraliza o botão do formulário */
        display: block;
        width: 100%;
        max-width: 280px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center; /* Centraliza os botões dentro do container */
    }
    
    /* Garantir que os botões dentro de form-buttons sejam centralizados */
    .form-buttons .btn-whatsapp {
        margin: 0 auto;
    }
    
    /* FAQ mobile */
    .faq-container {
        padding: 0 0.5rem;
    }
    
    .faq-item {
        padding: 1.2rem 0;
    }
    
    .faq-item summary {
        font-size: 1rem;
        padding: 0.5rem 0;
        min-height: 48px;
    }
    
    .faq-item summary::after {
        font-size: 1.3rem;
    }
    
    .faq-item div {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Container mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ------------------- */
/* MEDIA QUERIES (DESKTOP) */
/* ------------------- */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    section { padding: 6rem 2rem; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-buttons {
        flex-direction: row;
    }
    .form-buttons button {
        flex: 1;
    }
}
