/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS (Cores alinhadas à identidade visual)
   ========================================================================== */
:root {
    --bg-dark: #121214;
    --bg-light-dark: #1a1a1e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-muted: #a4a4a8;
    
    /* Cores extraídas da logo */
    --purple: #5d3a89;
    --green: #2ca45c;
    --blue-piscina: #13aab0;
    --whatsapp-color: #25d366;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-color); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   EFEITOS DE ANIMAÇÃO DE ENTRADA (FADE-IN DISPARADO PELO SCROLL)
   ========================================================================== */
.fade-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION EM DUAS COLUNAS (ADAPTADA COM AFASTAMENTO DA BORDA)
   ========================================================================== */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    background: radial-gradient(circle at 50% 30%, rgba(93, 58, 137, 0.2), transparent 60%); 
    padding: 80px 0;
}

/* Container que organiza as duas colunas */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* Espaço seguro entre a imagem e o texto */
    width: 100%;
}

/* Lado da Imagem (Afastada da borda esquerda pelo padding do container) */
.hero-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-tech-img {
    width: 100%;
    max-width: 450px; /* Controla o tamanho limite do seu PNG */
    height: auto;
    display: block;
    object-fit: contain;
    animation: floatAnimation 4s ease-in-out infinite; /* Efeito de flutuação */
}

/* Lado do Conteúdo Textual */
.hero-content-side { 
    flex: 1.2;
    text-align: left;
}

.logo-area { 
    font-family: 'Fira Code', monospace; 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.logo-text { color: var(--blue-piscina); }
.code-operator { color: var(--green); }

.hero-content-side h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    letter-spacing: -1px; 
    line-height: 1.2;
}

.gradient-text { 
    background: linear-gradient(45deg, var(--blue-piscina), var(--green)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero-content-side p { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
}

/* Alinha os botões à esquerda na seção Hero */
.hero-content-side .cta-buttons {
    justify-content: flex-start;
}

/* Animação suave para valorizar o elemento sem fundo */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   COMPONENTES: BOTÕES
   ========================================================================== */
.cta-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
}

.btn { 
    padding: 15px 30px; 
    border-radius: 8px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
}

.btn-primary { 
    background-color: var(--blue-piscina); 
    color: #fff; 
    box-shadow: 0 0 15px rgba(19, 170, 176, 0.4); 
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 0 25px rgba(19, 170, 176, 0.7); 
}

.btn-secondary { 
    border: 2px solid var(--purple); 
    background: transparent; 
    color: #fff; 
}

.btn-secondary:hover { 
    background-color: var(--purple); 
    transform: translateY(-3px); 
}

/* ==========================================================================
   SEÇÃO DE SERVIÇOS & CARDS (GLASSMORPHISM E CONTROLE DE ÍCONES COMPACTADOS)
   ========================================================================== */
.services, .process, .faq, .contact { 
    padding: 100px 0; 
}

.services h2, .process h2, .faq h2, .contact h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 10px; 
}

.subtitle { 
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 60px; 
}

.code-char { 
    color: var(--green); 
    font-family: 'Fira Code', monospace; 
}

.grid-services { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-bottom: 60px; 
}

.card { 
    background: var(--card-bg); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 16px; 
    padding: 40px 30px; 
    backdrop-filter: blur(10px); 
    transition: transform 0.3s ease, border-color 0.3s ease; 
}

.card:hover { transform: translateY(-10px); }
.card-purple:hover { border-color: var(--purple); box-shadow: 0 10px 30px rgba(93, 58, 137, 0.2); }
.card-green:hover { border-color: var(--green); box-shadow: 0 10px 30px rgba(44, 164, 92, 0.2); }
.card-blue:hover { border-color: var(--blue-piscina); box-shadow: 0 10px 30px rgba(19, 170, 176, 0.2); }

/* Container estrutural para compactação e padronização das imagens dos cards */
.card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    height: 200px; /* Área vertical fixa para manter textos alinhados */
}

.card-service-img {
    height: 200px; /* Tamanho exato e compacto baseado no card 03 */
    width: auto;  /* Evita que a imagem fique distorcida ou esticada */
    object-fit: contain;
    display: block;
}

.card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.tech-tag { font-family: 'Fira Code', monospace; font-size: 0.8rem; background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 4px; color: var(--text-muted); }

/* ==========================================================================
   DASHBOARD DE PERFORMANCE E ROI (GRÁFICO DE LINHAS INTEGRADO)
   ========================================================================== */
.dashboard-box {
    max-width: 900px !important;
    text-align: left !important;
    padding: 30px !important;
    margin: 0 auto 80px;
}

.dash-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.kpi-card:hover { transform: translateY(-5px); }
.kpi-title { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.kpi-value { font-size: 1.8rem; font-weight: 800; }

.kpi-card.card-purple { border-left: 4px solid #a855f7; }
.kpi-card.card-purple .kpi-value { color: #a855f7; }
.kpi-card.card-blue { border-left: 4px solid var(--blue-piscina); }
.kpi-card.card-blue .kpi-value { color: var(--blue-piscina); }
.kpi-card.card-green { border-left: 4px solid var(--green); }
.kpi-card.card-green .kpi-value { color: var(--green); }

.chart-line-container {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.svg-chart {
    width: 100%;
    height: auto;
    display: block;
}

.animated-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: filter 0.3s;
}

.animated-line.start-animation {
    animation: drawLine 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawLine {
    from { stroke-dashoffset: 600; }
    to { stroke-dashoffset: 0; }
}

.chart-line-container:hover .animated-line {
    filter: drop-shadow(0 4px 12px rgba(19, 170, 176, 0.8));
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CARROSSEL INFINITO DE LANDING PAGES
   ========================================================================== */
.carousel-section { 
    text-align: center; 
    margin-top: 60px; 
}

.carousel-section h3 { 
    font-size: 1.8rem; 
    margin-bottom: 8px; 
}

.carousel-subtitle { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 40px; 
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.carousel-container::before, .carousel-container::after {
    content: ""; height: 100%; width: 150px; position: absolute; z-index: 2; pointer-events: none;
}
.carousel-container::before { left: 0; top: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.carousel-container::after { right: 0; top: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.carousel-track {
    display: flex;
    gap: 30px;
    width: calc(300px * 8 + 30px * 8); 
    animation: scrollInfinite 25s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4 - 30px * 4)); } 
}

.lp-card {
    width: 300px;
    flex-shrink: 0;
    text-align: left;
}

.lp-card h4 { font-size: 1.1rem; margin-top: 12px; margin-bottom: 4px; }
.lp-card p { font-size: 0.85rem; color: var(--text-muted); }

.lp-mockup {
    height: 200px;
    background-size: cover;
    background-position: top center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s;
}

.img-lp1 { background-image: url('images/radarrolamentos.png'); }
.img-lp2 { background-image: url('images/toldosecoberturas.png'); }
.img-lp3 { background-image: url('images/sombreadoresbrasilia.png'); }
.img-lp4 { background-image: url('https://images.unsplash.com/photo-1559526324-4b87b5e36e44?auto=format&fit=crop&w=600&q=80'); }

.lp-card:hover .lp-mockup {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--blue-piscina);
    cursor: pointer;
}

.lp-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 12, 28, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
    text-decoration: none;
    color: #ffffff;
}

.lp-overlay span {
    font-size: 0.9rem; font-weight: 600; padding: 8px 16px;
    border: 1px solid #fff; border-radius: 20px; transform: translateY(10px);
    transition: transform 0.3s;
}

.lp-card:hover .lp-overlay { opacity: 1; }
.lp-card:hover .lp-overlay span { transform: translateY(0); }

/* ==========================================================================
   METODOLOGIA / PROCESSOS
   ========================================================================== */
.process { background-color: var(--bg-light-dark); }
.process-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.step { text-align: center; }
.step-number { width: 50px; height: 50px; background: var(--purple); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; margin: 0 auto 20px; border: 2px solid var(--blue-piscina); }
.step h4 { margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* ==========================================================================
   FAQ & SEÇÃO DE CONTATO
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 40px auto 0; }
.faq-item { background: var(--card-bg); padding: 25px; border-radius: 12px; border-left: 4px solid var(--green); }
.faq-item h4 { margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.contact { background-color: var(--bg-light-dark); text-align: center; }
.contact p { color: var(--text-muted); margin-bottom: 30px; }

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.contact-form input, .contact-form textarea { background: var(--bg-dark); border: 1px solid rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 8px; color: #fff; font-family: inherit; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-piscina); outline: none; }
.contact-form button { align-self: center; }

/* Botão WhatsApp abaixo do formulário */
.btn-whatsapp-form {
    background-color: transparent;
    border: 2px solid rgba(37, 211, 102, 0.4);
    color: var(--whatsapp-color);
    align-self: center;
    width: 100%;
    max-width: 400px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-whatsapp-form:hover {
    background-color: rgba(37, 211, 102, 0.08);
    border-color: var(--whatsapp-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   BOTÃO FIXO DO WHATSAPP (CANTO INFERIOR DIREITO)
   ========================================================================== */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.3s, background-color 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   RODAPÉ (MAIN FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #0b0b0d;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.main-footer strong { color: #fff; }
.footer-tag { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--green); }

/* ==========================================================================
   RESPONSIVIDADE INTELIGENTE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 968px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-content-side { text-align: center; }
    .hero-content-side .cta-buttons { justify-content: center; }
    .hero-content-side h1 { font-size: 2.5rem; }
    .floating-tech-img { max-width: 320px; }
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; gap: 10px; }
    .chart-labels { font-size: 0.65rem; }
    .carousel-container::before, .carousel-container::after { width: 50px; }
    .footer-content { flex-direction: column; text-align: center; }
    
    .whatsapp-fixed { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .whatsapp-icon { width: 28px; height: 28px; }
}