/* Theme Name: Staf Aromas Theme
Description: Estilos personalizados para Landing Page Staf Aromas
*/

/* --- 1. Reset e Variáveis --- */
:root {
    --primary-color: #4CAF50; /* Verde principal */
    --primary-dark: #45a049;
    --staf-green: #4A703C;    /* Verde Oliva da Marca */
    --secondary-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --text-color: #555;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.text-white { color: var(--white); }

/* --- 2. Tipografia e Botões --- */
.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    color: var(--secondary-color); 
}

.bg-dark .section-title { color: var(--white); }

.btn { 
    padding: 12px 25px; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
    transition: 0.3s; 
    font-weight: 600;
}

.btn-primary { background: var(--primary-color); color: var(--white); border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- 3. Header --- */
.site-header { 
    padding: 15px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    background: var(--white); 
    z-index: 1000; 
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-weight: 700; font-size: 1.5rem; color: var(--staf-green); text-decoration: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { margin-left: 25px; }
.main-nav a { text-decoration: none; color: var(--secondary-color); font-weight: 600; transition: 0.3s; }
.main-nav a:hover { color: var(--primary-color); }

/* --- 4. Hero Slider --- */
.hero-section { height: 600px; position: relative; }
.heroSwiper { width: 100%; height: 100%; }
.heroSwiper .swiper-slide { 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}
.heroSwiper .overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: rgba(0,0,0,0.4); 
}
.slide-content { position: relative; z-index: 2; color: var(--white); text-align: center; padding: 0 20px; }
.slide-content h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.slide-content .slide-excerpt { font-size: 1.2rem; max-width: 800px; margin: 0 auto; }

/* --- 5. Serviços (Ícones Arredondados) --- */
.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}
.service-item { text-align: center; flex: 1; min-width: 250px; }
.service-icon {
    width: 100px;
    height: 100px;
    background: var(--staf-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    transition: 0.3s;
}
.service-item:hover .service-icon { transform: scale(1.1); background: var(--primary-color); }

/* --- 6. Equipe --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.member-photo-wrapper { 
    width: 200px; height: 200px; margin: 0 auto 20px; 
    overflow: hidden; border-radius: 50%; 
    border: 5px solid var(--staf-green); 
}
.member-photo { width: 100%; height: 100%; object-fit: cover; }
.member-name { margin-bottom: 5px; color: var(--secondary-color); font-size: 1.3rem; }
.member-role { color: var(--primary-color); font-weight: 500; }

/* --- 7. Blog Carrossel --- */
.blog-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); height: 100%; }
.blog-img-wrap { height: 220px; overflow: hidden; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.08); }
.blog-body { padding: 25px; }
.blog-body h3 { margin-top: 0; font-size: 1.25rem; line-height: 1.4; }
.blog-body a { text-decoration: none; color: var(--secondary-color); transition: 0.3s; }
.blog-body a:hover { color: var(--primary-color); }

/* --- 8. Contato e Mapa --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form-wrapper input, 
.contact-form-wrapper textarea { 
    width: 100%; padding: 12px; margin-bottom: 20px; 
    border-radius: 5px; border: 1px solid #444; background: #2a2a2a; color: #fff;
}
.address-box { margin-bottom: 30px; font-size: 1.1rem; }
.map-placeholder { 
    height: 300px; border-radius: 10px; overflow: hidden; 
    border: 2px solid var(--staf-green); 
}

/* --- 9. Footer Corrigido --- */
.site-footer { 
    background: #111; 
    color: #eee; 
    padding: 40px 0; 
    border-top: 4px solid var(--staf-green);
}
.footer-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.footer-social { display: flex; gap: 15px; }
.footer-social a { 
    color: var(--white); 
    background: rgba(255,255,255,0.1);
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.footer-social a:hover { background: var(--primary-color); transform: translateY(-3px); }

/* --- 10. WhatsApp Flutuante --- */
.whatsapp-float { 
    position: fixed; 
    width: 65px; height: 65px; 
    bottom: 30px; right: 30px; 
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50px; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    z-index: 9999; 
    transition: 0.3s; 
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }
.whatsapp-float svg { fill: currentColor; }

/* --- 11. Responsivo --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-section { height: 450px; }
    .footer-flex { flex-direction: column; text-align: center; gap: 25px; }
    .main-nav { display: none; }
    .section-title { font-size: 2rem; }
}

/* --- Estilos dos Serviços (Ícones Redondos) --- */

.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.service-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

/* O Círculo Verde */
.service-icon {
    width: 100px;          /* Largura do círculo */
    height: 100px;         /* Altura do círculo */
    background-color: var(--primary-color); /* Cor de fundo verde */
    border-radius: 50%;    /* Deixa redondo */
    display: flex;         /* Flexbox para centralizar o ícone dentro */
    align-items: center;   /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    margin: 0 auto 20px;   /* Centraliza o bloco na página e dá margem inferior */
    border: 4px solid #fff; /* Borda branca interna (opcional, estilo equipe) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra leve */
}

/* O Ícone dentro do círculo */
.service-icon i {
    color: #fff;         /* Cor do ícone branca */
    font-size: 40px;     /* TAMANHO DO ÍCONE (Aumente aqui se quiser maior) */
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 1. Garante que o slider tenha altura e um fundo escuro de reserva */
.heroSwiper .swiper-slide {
    height: 80vh; /* Altura de 80% da tela */
    min-height: 500px;
    background-color: #333; /* Fundo cinza escuro (caso a imagem falhe) */
    background-size: cover;
    background-position: center;
    position: relative;
    
    /* Centraliza tudo (substitui o d-flex do bootstrap se falhar) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 2. Cria uma película escura sobre a imagem para o texto ler melhor */
.heroSwiper .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sombra preta 50% transparente */
    z-index: 1;
}

/* 3. Garante que o texto fique ACIMA da película e visível */
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff !important; /* Força o texto a ser branco */
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Força a cor e visibilidade das setas do blog */
.blogSwiper .swiper-button-next,
.blogSwiper .swiper-button-prev {
    color: #28a745 !important; /* Verde */
    font-weight: bold;
    background: rgba(255,255,255,0.8); /* Fundo branco semitransparente */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Garante que fique por cima da imagem */
    top: 50%;
    transform: translateY(-50%);
}

.blogSwiper .swiper-button-next::after,
.blogSwiper .swiper-button-prev::after {
    font-size: 20px !important; /* Tamanho do ícone */
}

/* Espaçamento lateral para as setas não cobrirem o texto */
.blogSwiper {
    padding-left: 50px;
    padding-right: 50px;
}

.blogSwiper .swiper-button-prev { left: 0; }
.blogSwiper .swiper-button-next { right: 0; }

/* --- 1. Arruma o Layout (Formulário na Esquerda, Mapa na Direita) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide em 2 partes iguais */
    gap: 50px; /* Espaço entre o formulário e o mapa */
    align-items: start;
}

/* --- 2. Estiliza os Campos de Texto (Input e Textarea) --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px; /* Deixa o campo mais alto e confortável */
    margin-bottom: 20px; /* Espaço entre um campo e outro */
    border: none;
    border-radius: 8px; /* Cantos arredondados */
    background-color: #ffffff; /* Fundo BRANCO para contraste */
    color: #333; /* Letra escura dentro do campo */
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Remove a linha azul de seleção padrão do navegador */
.wpcf7 input:focus, 
.wpcf7 textarea:focus {
    outline: none;
    border: 2px solid #28a745; /* Borda verde ao clicar */
}

/* --- 3. Estiliza o Botão de Enviar --- */
.wpcf7 input[type="submit"] {
    background-color: #28a745; /* Verde */
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px; /* Botão arredondado */
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto; /* Não deixa esticar a tela toda */
}

.wpcf7 input[type="submit"]:hover {
    background-color: #218838; /* Verde mais escuro ao passar o mouse */
    transform: translateY(-2px); /* Efeito de "subir" levemente */
}

/* --- 4. Ajuste dos Títulos (Labels) --- */
.wpcf7 label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #fff; /* Garante que o texto "Seu nome" fique branco */
}

/* --- 5. Responsivo (No celular, fica um embaixo do outro) --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Vira uma coluna só */
        gap: 30px;
    }
}

/* --- Estilos das Redes Sociais no Contato --- */

.contact-socials {
    margin-top: 30px; /* Espaço para separar do mapa */
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Linha fina separadora */
}

.contact-socials h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.social-icons-wrapper {
    display: flex;
    gap: 15px; /* Espaço entre os botões */
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    background-color: #333; /* Fundo cinza escuro inicial */
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%; /* Faz ficar redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse (Hover) */
.social-btn:hover {
    transform: translateY(-5px); /* Sobe um pouquinho */
    border-color: transparent;
    color: #fff;
}

/* Cores específicas de cada rede ao passar o mouse */
.social-btn.facebook:hover { background-color: #3b5998; }
.social-btn.instagram:hover { background-color: #e1306c; }
.social-btn.whatsapp:hover { background-color: #25d366; }
.social-btn.youtube:hover { background-color: #ff0000; }

/* Estilo do Crédito do Desenvolvedor */
.dev-credit {
    font-size: 0.85rem; /* Um pouco menor que o texto normal */
    margin-top: 5px;
    opacity: 0.8;
}

.dev-credit a {
    color: var(--staf-green); /* Usa a cor verde da marca */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.dev-credit a:hover {
    color: #fff; /* Fica branco ao passar o mouse */
    text-decoration: underline;
}
/* --- RESPONSIVO (MOBILE) --- */
@media (max-width: 768px) {
    
    /* 1. Ajuste do Slider Hero */
    .hero-section { 
        height: 100vh; /* Ocupa a altura da tela do celular para caber tudo */
        min-height: 500px; /* Garante um tamanho mínimo */
    }
    
    .slide-content h1 { 
        font-size: 1.8rem; /* Diminui muito o título (era 3.5rem) */
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .slide-content .slide-excerpt { 
        font-size: 0.95rem; /* Diminui o texto de descrição */
        line-height: 1.4;
        margin-bottom: 20px;
        display: block; /* Garante que apareça */
    }
    
    .slide-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Ajuste das setas do slider para não ficarem em cima do texto */
    .swiper-button-next, .swiper-button-prev {
        display: none; /* Opcional: Esconder setas no mobile para limpar a visão */
    }

    /* 2. Menu Gaveta (Estilo) */
    .mobile-menu-btn {
        display: block; /* Mostra o botão hambúrguer */
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela */
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 20px;
        transition: 0.3s ease;
        z-index: 1000;
        display: block; /* Garante que a div exista, mas fora da tela */
    }

    .main-nav.active {
        right: 0; /* Traz para dentro da tela */
    }

    .main-nav ul {
        flex-direction: column; /* Links um embaixo do outro */
        align-items: center;
    }

    .main-nav li {
        margin: 20px 0;
    }
}

/* Ocultar botão mobile no Desktop */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}