/* ==========================================================================
   VARIÁVEIS E TIPOGRAFIA
   ========================================================================== */
:root {
    --bg-black: #0B0B0B;
    --bg-dark: #141414;
    --bg-medium: #2A2A2A;
    --text-white: #FFFFFF;
    --text-muted: #D1D1D1;
    --accent-green: #2E7D5B; /* Verde Growth 7x */
    --whatsapp-green: #25D366;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   RESET E ESTILOS GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-center { text-align: center; }

/* ==========================================================================
   HEADER (LOGO CENTRALIZADA)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    white-space: nowrap;
}

.logo strong {
    color: var(--accent-green);
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #246548;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-medium);
    color: var(--text-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--bg-medium);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Botão WhatsApp com Pulsação */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1c2b22 0%, var(--bg-black) 80%);
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   CARROSSEL DE LOGOS (INFINITO)
   ========================================================================== */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 30s linear infinite;
}

.slide {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 150px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.5;
    transition: var(--transition);
}

.slide img:hover { opacity: 1; filter: grayscale(0%); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* ==========================================================================
   CARDS E CARROSSEL DE SERVIÇOS
   ========================================================================== */
.grid { display: grid; gap: 2rem; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background-color: var(--bg-dark);
    border: 1px solid var(--bg-medium);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover { border-color: var(--accent-green); transform: translateY(-5px); }

.carousel-container { width: 100%; overflow-x: auto; padding-bottom: 1rem; }
.carousel { display: flex; gap: 1.5rem; width: max-content; }
.service-card { width: 300px; }

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */
.custom-form {
    background-color: var(--bg-dark);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--bg-medium);
    max-width: 600px;
    margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-white); }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-black);
    border: 1px solid var(--bg-medium);
    color: white;
    border-radius: 4px;
}

/* ==========================================================================
   PÁGINA DE OBRIGADO
   ========================================================================== */
.thank-you-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon { font-size: 4rem; color: var(--accent-green); margin-bottom: 1rem; }
/* ==========================================================================
   RODAPÉ AJUSTADO
   ========================================================================== */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinha ambos os blocos pelo topo */
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-brand {
    flex: 1;
}

.footer-brand .logo {
    position: static; /* Remove a centralização absoluta para o rodapé */
    transform: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 380px;
    font-size: 0.95rem;
    margin: 0; /* Remove margens extras */
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha título e ícones à esquerda no desktop */
}

.footer-social h4 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-links a {
    color: var(--text-white);
    font-size: 1.6rem; /* Tamanho ajustado dos ícones */
    transition: var(--transition);
    line-height: 1;
}

.social-links a:hover {
    color: var(--accent-green);
    transform: translateY(-3px);
}

/* --- VERSÃO MOBILE --- */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center; /* Centraliza tudo no celular */
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social {
        align-items: center; /* Centraliza ícones no celular */
    }

    .footer-social h4 {
        margin-bottom: 1rem;
    }
}

.footer-bottom {
    border-top: 1px solid var(--bg-medium);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .logo { position: static; transform: none; }
    .header-content { justify-content: space-between; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .hero-buttons { flex-direction: column; }
}

/* ==========================================================================
   ESTILOS PÁGINA DE OBRIGADO
   ========================================================================== */
.thank-you-container {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.success-icon {
    font-size: 5rem;
    color: var(--accent-green);
    margin-bottom: 2rem;
    animation: scaleUp 0.5s ease-out;
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.thank-you-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.next-steps {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .next-steps {
        flex-direction: column;
    }
}

/* ==========================================================================
   BOTÃO WHATSAPP COM ANIMAÇÃO
   ========================================================================== */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Animação de pulsação para converter leads quentes */
.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.img-placeholder {
    height: 200px;
    background-color: var(--bg-black);
    border-bottom: 1px solid var(--bg-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--text-white);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Estilos Específicos do Card de Serviço */
.service-card {
    width: 320px; /* Largura fixa para manter o carrossel organizado */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    min-height: 450px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Faz o texto ocupar o espaço necessário e empurrar o preço para baixo */
}

.price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-medium);
}

/* Garante que o carrossel tenha scroll lateral suave no mobile e desktop */
.carousel-container {
    padding: 20px 0;
    cursor: grab;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--bg-medium);
    border-radius: 10px;
}

/* ==========================================================================
   AJUSTES DE MARGEM E RESPIRO (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Desgruda a Logo e o Botão das laterais da tela */
    .header-content {
        padding: 0 20px !important;
    }

    /* 2. Desgruda a caixa do formulário das bordas e ajusta o tamanho interno */
    .custom-form {
        padding: 2rem 1.5rem !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        width: auto !important;
    }

    /* 3. Garante que o título e o texto de descrição também tenham margem */
    .section-title, .form-description {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ajuste do Carrossel de Fotos */
.logo-slider {
    overflow: hidden;
    padding: 30px 0;
    background: transparent;
}

.logo-track {
    display: flex;
    width: calc(280px * 10); /* Ajuste: largura do slide * número total de slides */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 280px; /* Largura de cada foto no carrossel */
    padding: 0 15px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 280px; /* Altura fixa para manter o alinhamento */
    object-fit: cover; /* Faz a foto preencher o espaço sem esticar */
    border-radius: 12px;
    border: 1px solid var(--bg-medium);
    filter: none !important; /* Garante que a foto apareça com as cores originais */
    opacity: 1 !important;
    transition: transform 0.0s ease;
}

.slide img:hover {
    transform: scale(1.05);
    border-color: var(--accent-green);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 5)); } /* Metade do total de slides */
}