/* =========================================
   VARIÁVEIS E GERAL
   ========================================= */
:root {
    --primary-color: #2c3e50; /* Azul Escuro */
    --accent-color: #e67e22;  /* Laranja */
    --whatsapp-green: #25D366;
    --light-bg: #f4f4f4;
}

html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar em links */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* =========================================
   CABEÇALHO (HEADER)
   ========================================= */
header {
    background: #fff;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* =========================================
   HERO (CAPA + SLIDER)
   ========================================= */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* O Slider de Fundo */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* Máscara Escura */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

/* Botão Principal (CTA) */
.btn-hero {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.6);
}

.btn-hero:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.4);
}

/* =========================================
   SEÇÃO: COMO FUNCIONA
   ========================================= */
.how-it-works {
    padding: 50px 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px auto;
}

/* =========================================
   SEÇÃO: DIFERENCIAIS (FEATURES)
   ========================================= */
.features {
    padding: 50px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    background-color: white;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: block;
}

/* =========================================
   SEÇÃO: GALERIA
   ========================================= */
.gallery {
    padding: 50px 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.gallery h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* =========================================
   SEÇÃO: INSTAGRAM
   ========================================= */
.instagram-feed {
    padding: 50px 5%;
    text-align: center;
    background-color: #fff;
}

.widget-container {
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   SEÇÃO: CLIENTES
   ========================================= */
.clients {
    padding: 40px 5%;
    text-align: center;
    background: white;
}

.clients-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    font-weight: bold;
    color: #7f8c8d;
    font-size: 1.2rem;
}

/* =========================================
   SEÇÃO: FAQ (Dúvidas)
   ========================================= */
.faq {
    padding: 50px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

details {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    background-color: #eee;
    list-style: none;
}

summary:hover {
    background-color: #e0e0e0;
}

details p {
    padding: 15px;
    margin: 0;
    border-top: 1px solid #ddd;
}

/* =========================================
   RODAPÉ E BOTÃO FLUTUANTE
   ========================================= */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000; /* Fica acima de tudo */
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* =========================================
   RESPONSIVO (CELULAR)
   ========================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-hero {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .clients-list {
        font-size: 1rem;
        gap: 15px;
    }
}

/* =========================================
   SEÇÃO QUEM SOMOS E LOCAL
   ========================================= */
.about-location {
    padding: 60px 5%;
    background-color: white;
    border-top: 1px solid #eee;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Lado do Texto */
.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* Lado da Localização (Caixa Destacada) */
.location-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-bg); /* Fundo cinza claro */
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color); /* Detalhe laranja */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.location-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.location-box .highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.location-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.location-details li {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Botão Transparente (Outline) */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Ajuste para celular */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Um embaixo do outro no celular */
    }
}

/* =========================================
   SEÇÃO: DEPOIMENTOS (ATUALIZADO)
   ========================================= */
.testimonials {
    padding: 60px 5%;
    background-color: var(--primary-color); 
    color: white;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
    color: white; 
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: white;
    color: #333; 
    padding: 25px;
    border-radius: 10px;
    max-width: 350px;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: left;
    position: relative;
    /* Adicionei transição suave no card também */
    transition: transform 0.3s ease; 
    overflow: visible; /* Garante que o clips não seja cortado */
}

/* Animação: O card sobe levemente ao passar o mouse */
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* O triângulo "balão de fala" */
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
    display: block;
    width: 0;
}

.stars {
    color: #f1c40f; 
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.client-name {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    font-size: 0.9rem;
}

/* --- ESTILO POLAROID + CLIPS + 40PX --- */

.cursor-pointer {
    cursor: pointer;
}

.polaroid-clip {
    position: absolute;
    top: -15px;
    right: -10px;
    /* Tamanho total: 40px imagem + 4px padding esquerda + 4px padding direita = 48px */
    width: 48px; 
    padding: 4px 4px 12px 4px; /* Borda branca estilo polaroid */
    background: #fff;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
    transform: rotate(6deg);
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ao passar o mouse no CARD, a foto fica reta e dá zoom */
.testimonial-card:hover .polaroid-clip {
    transform: rotate(0deg) scale(1.1);
}

.polaroid-clip img {
    width: 100%; /* Preenche os 40px calculados */
    height: 40px; /* Garante que seja quadrada */
    object-fit: cover;
    display: block;
    border: 1px solid #eee;
}

/* O Clips (Rose Gold) */
.polaroid-clip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 22px;
    border: 2px solid #b76e79; /* Cor Rose Gold */
    border-radius: 10px;
    background: transparent;
    z-index: 11;
}

/* O Papel atrás do clips (para dar ilusão 3D) */
.polaroid-clip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: #fff;
    z-index: 12;
}

/* =========================================
   LIGHTBOX (JANELA DE ZOOM)
   ========================================= */

.lightbox-overlay {
    position: fixed;
    z-index: 9999; /* Fica acima do menu e do whats */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fundo preto transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Não bloqueia cliques quando invisível */
    transition: opacity 0.3s ease;
}

.lightbox-overlay.ativo {
    opacity: 1;
    pointer-events: auto;
}

/* Container da Imagem Grande (Estilo Polaroid Gigante) */
.lightbox-content.polaroid-big {
    background: #fff;
    padding: 15px 15px 50px 15px; /* Padding maior embaixo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 90%;
    max-height: 90%;
    
    /* Começa um pouco menor para animar */
    transform: scale(0.9) rotate(0deg); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.ativo .lightbox-content.polaroid-big {
    transform: scale(1);
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 70vh;
    display: block;
    border: 1px solid #eee;
}

/* Botão de Fechar (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #bbb;
}