﻿/*=========================================================================*/
/* 0. TOKENS & UTILITÁRIOS GERAIS                                          */
/*=========================================================================*/
:root {
    --clr-primary: #7a32ff;
    --clr-secondary: #ec4899;
    --clr-accent: #00c6ff;
    --clr-light: #ffffff;
    --clr-dark: #0d0d0d;
    --radius: .75rem;
    --shadow-sm: 0 4px 10px rgba(0,0,0,.15);
    --shadow-md: 0 6px 18px rgba(0,0,0,.25);
    --transition: .3s ease;
    --max-w: 1200px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--clr-dark);
}

/* Helpers reutilizados */
.highlight {
    background: linear-gradient(45deg, var(--clr-secondary), var(--clr-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

    .animate.visible {
        opacity: 1;
        transform: none;
    }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 3rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: var(--clr-light);
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-cta:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.btn-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.cta-group {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/*=========================================================================*/
/* 1. LAYOUT / SECTION (COMPARTILHADO)                                     */
/*=========================================================================*/
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--clr-light);
    color: var(--clr-dark);
}

.section-dark {
    background: var(--clr-dark);
    color: var(--clr-light);
}

.section-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
}

.container-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    opacity: 0.85;
}

/*=========================================================================*/
/* 2. HERO                                                                 */
/*=========================================================================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(107,33,168,.35) 0%, transparent 60%), radial-gradient(circle at 70% 70%, rgba(14,165,233,.30) 0%, transparent 60%), linear-gradient(180deg, var(--clr-dark) 0%, #111 100%);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(10,10,10,.7), rgba(10,10,10,.3));
        z-index: -1;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/*=========================================================================*/
/* 3. PÚBLICO IDEAL                                                        */
/*=========================================================================*/
.needs-list {
    list-style: none;
    padding: 0;
}

    .needs-list li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

        .needs-list li i {
            color: var(--clr-primary);
            font-size: 1.25rem;
        }

/*=========================================================================*/
/* 4. SERVIÇOS                                                             */
/*=========================================================================*/
.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-service {
    background: var(--clr-light);
    color: var(--clr-dark);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

    .card-service:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
    }

    .card-service h3 {
        font-family: var(--font-primary);
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .card-service p {
        font-size: 1rem;
        opacity: 0.85;
    }

.icon-benefit {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

/*=========================================================================*/
/* 5. PORTFÓLIO – CAROUSEL                                                 */
/*=========================================================================*/
.carousel-infinite {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-carousel 20s linear infinite;
}

.carousel-slide {
    display: flex;
    gap: 1rem;
}

    .carousel-slide img {
        width: 280px;
        height: auto;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        object-fit: cover;
    }

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/*=========================================================================*/
/* 6. PROCESSO / TIMELINE                                                  */
/*=========================================================================*/
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent));
    }

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

    .process-step:nth-child(even) .process-step-content {
        margin-left: auto;
        margin-right: 2rem;
        text-align: left;
    }

    .process-step:nth-child(odd) .process-step-content {
        margin-right: auto;
        margin-left: 2rem;
        text-align: right;
    }

.process-step-marker {
    background: var(--clr-primary);
    color: var(--clr-light);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.125rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.process-step-content {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 45%;
    box-shadow: var(--shadow-sm);
}

    .process-step-content h3 {
        font-family: var(--font-primary);
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .process-step-content p {
        font-size: 0.875rem;
        opacity: 0.85;
    }

/*=========================================================================*/
/* 7. CREDIBILIDADE                                                        */
/*=========================================================================*/
.credibility-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cred-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

    .cred-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
    }

.cred-icon {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: var(--clr-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.cred-item h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.cred-item p {
    font-size: 0.875rem;
    opacity: 0.85;
}

/*=========================================================================*/
/* 8. DEPOIMENTOS                                                          */
/*=========================================================================*/
.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote {
    background: var(--clr-light);
    color: var(--clr-dark);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    text-align: center;
}

    .quote::before {
        content: "“";
        font-size: 4rem;
        font-family: var(--font-primary);
        color: var(--clr-primary);
        position: absolute;
        top: -1rem;
        left: 1rem;
        opacity: 0.2;
    }

    .quote p {
        font-size: 1rem;
        font-style: italic;
        margin-bottom: 1rem;
    }

.author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-primary);
}

/*=========================================================================*/
/* 9. CONTATO                                                              */
/*=========================================================================*/
.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: var(--clr-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

    .form-group input:focus {
        outline: none;
        border-color: var(--clr-primary);
        box-shadow: 0 0 0 3px rgba(107,33,168,.2);
    }

    .form-group input::placeholder {
        color: rgba(255,255,255,.5);
    }

.btn-cta {
    justify-self: center;
}

/*=========================================================================*/
/* 10. CTA FIXO                                                            */
.fixed-cta {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

@media (max-width: 768px) {
    .fixed-cta .btn-wa {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/*=========================================================================*/
/* 11. BOTÃO WHATSAPP                                                     */
/*=========================================================================*/
.btn-wa {
    display: #0284ff;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    background: #25d366;
    color: var(--clr-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
}

    .btn-wa:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

    .btn-wa.invert {
        background: var(--clr-light);
        color: #25d366;
    }

    .btn-wa i {
        font-size: 1.25rem;
    }

/*=========================================================================*/
/* 12. MEDIA QUERIES                                                      */
/*=========================================================================*/
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .hero__title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero__subtitle {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }

    .services-grid,
    .credibility-grid,
    .testimonials-grid {
        grid-template-columns: 2fr;
    }

    .process-timeline {
        text-align: left;
    }

        .process-timeline::before {
            left: 0.1rem;
        }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }

        .process-step:nth-child(even) .process-step-content,
        .process-step:nth-child(odd) .process-step-content {
            margin: 0.5rem 0 0 0.3rem;
            text-align: left;
            width: 100%;
        }

    .process-step-marker {
        left: 0;
        transform: none;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .carousel-slide img {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .btn-cta, .btn-wa {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .form-group input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

.form-error {
    color: var(--clr-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-feedback {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

    .form-feedback.success {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

    .form-feedback.error {
        background: rgba(236, 72, 153, 0.1);
        color: var(--clr-secondary);
    }

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}