/* ===== Variáveis Globais ===== */
:root {
    --primary-red: #D10A14;      /* Vermelho levemente suavizado (menos estourado) */
    --primary-dark: #111111;     /* Preto base */
    --text-dark: #333333;        /* Texto padrão */
    --text-light: #666666;       /* Texto suave */
    --bg-light: #F7F8F9;         /* Fundo cinza bem claro (suavizado) */
    --bg-white: #FFFFFF;         /* Fundo branco para cards */
    --bg-body: #FAFAFA;          /* Off-white para a página inteira diminuir o cansaço visual */
    --bg-dark-grey: #1C1C1C;     /* Fundo das estatísticas/portfólio */
    --whatsapp-green: #25D366;   /* Verde WhatsApp */
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-body); /* Aplicado off-white */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Helpers */
.text-center { text-align: center; }
.text-red { color: var(--primary-red); }
.text-white { color: var(--bg-white); }
.text-green { color: var(--whatsapp-green); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-dark); }
.bg-red { background-color: var(--primary-red); }
.mt-40 { margin-top: 40px; }
.font-bold { font-weight: 700; }

.subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
}

/* ===== Botões ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #B00810;
}

.btn-green {
    background-color: var(--whatsapp-green);
    color: var(--bg-white);
}

.btn-green:hover {
    background-color: #1EBE5A;
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: #000;
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-red);
}

.btn-white:hover {
    background-color: #F0F0F0;
}

.btn-gold {
    background-color: #FFB300;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
}

.btn-gold:hover {
    background-color: #E6A200;
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.6);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

/* Animações Modernas */
.breathe-icon {
    animation: breathe 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

/* ===== Header & Menu Mobile ===== */
#main-header {
    background-color: var(--bg-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

#logo-img {
    height: 55px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Menu Mobile Escondido por padrão */
.mobile-nav {
    display: none;
    background-color: var(--bg-white);
    border-top: 1px solid #EEE;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
}

.mobile-nav ul {
    flex-direction: column;
    gap: 15px;
    display: flex;
}

.mobile-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #F4F4F4;
}

/* Quando ativo via JS */
.mobile-nav.active {
    display: block;
}

/* ===== Hero Section ===== */
.mobile-hero-logo {
    display: none;
}

.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 250px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 100%);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text-box {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: #E0E0E0;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-logo-large {
    display: none;
}

@keyframes float-3d-neon {
    0% { transform: perspective(1000px) rotateY(-20deg) translateY(0); filter: drop-shadow(0 10px 25px rgba(209, 10, 20, 0.5)); }
    50% { transform: perspective(1000px) rotateY(-20deg) translateY(-15px); filter: drop-shadow(0 25px 40px rgba(209, 10, 20, 0.9)); }
    100% { transform: perspective(1000px) rotateY(-20deg) translateY(0); filter: drop-shadow(0 10px 25px rgba(209, 10, 20, 0.5)); }
}

@media (min-width: 1200px) {
    .hero-logo-large {
        display: block;
        animation: float-3d-neon 4s ease-in-out infinite;
    }
    .hero-logo-large img {
        height: 350px;
        border-radius: 10px;
    }
}

/* ===== Stats Strip ===== */
.stats-strip {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.stats-container {
    background-color: var(--bg-dark-grey);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat-item {
    text-align: center;
    color: var(--bg-white);
    flex: 1;
}

.stat-item i {
    font-size: 2.5rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-red);
    margin-bottom: 15px;
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #AAA;
}

.stat-separator {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.1);
}

/* ===== Serviços ===== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.icon-red {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}
.icon-red::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-red);
    border-radius: 50%;
    top: -5px;
    right: -5px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== Portfólio ===== */
.portfolio-section {
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.portfolio-filters .filter-btn {
    background-color: transparent;
    color: var(--bg-white);
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background-color: var(--primary-red);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.portfolio-item.hidden {
    display: none;
}

/* ===== Clientes Parceiros (Marquee Infinito Automático) ===== */
.partners {
    padding: 80px 0;
    overflow: hidden; /* Importante para não dar scroll lateral */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Fades nas pontas para suavizar a entrada/saída */
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 30px; /* Espaço entre as logos */
    animation: scroll-marquee 20s linear infinite; /* Rápido e infinito */
}

.logo-box {
    width: 200px;
    height: 90px;
    background: var(--bg-white);
    border: 1px solid #eaeaea;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.logo-box h4 {
    font-size: 1rem;
    color: var(--primary-dark);
}

.logo-box img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

/* Animação que faz rolar metade do container para criar o loop perfeito */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* ===== Como Funciona ===== */
.process {
    padding: 100px 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    border-top: 2px dashed #ddd;
    z-index: 1;
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-body);
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-red);
}

.step-num {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.process-step h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Sobre Nós ===== */
.about {
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== CTA Strip (Ajuste de Cor para não estourar) ===== */
.cta-strip {
    padding: 60px 0;
    /* Reduz a intensidade do vermelho usando o linear-gradient em vez da cor pura */
    background: linear-gradient(135deg, var(--primary-red) 0%, #A5000A 100%);
}

.cta-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.cta-text h2 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* ===== Footer Simplificado ===== */
footer {
    background-color: var(--primary-dark);
    color: #ccc;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Simplificado para 2 colunas grandes */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    animation: float-3d-neon 4s ease-in-out infinite;
}

.brand-col p {
    max-width: 400px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.social-icons a:hover {
    background: var(--primary-red);
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.work-hours-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinhado à direita no desktop */
    text-align: right;
}

.work-hours-col p {
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
}

/* ===== MEDIA QUERIES OTIMIZADAS PARA MOBILE ===== */

/* Tablets em diante */
@media (max-width: 1024px) {
    .stats-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    .stat-separator { display: none; }
    .stat-item { flex: 0 0 calc(50% - 15px); }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .cta-container { flex-direction: column; text-align: center; gap: 30px; }
}

/* Celulares padrão */
@media (max-width: 768px) {
    /* Header Mobile */
    .main-nav, .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .header-container { height: 75px; }
    #logo-img { height: 45px; }

    
    /* Remover cabeçalho no mobile */
    #section-header, .mobile-nav { display: none !important; }
    
    /* Mostrar a logo no hero */
    .mobile-hero-logo {
        display: block;
        margin: 0 auto 30px auto;
        height: 70px;
        border-radius: 8px;
        filter: drop-shadow(0 0 20px rgba(209, 10, 20, 0.7)); /* Efeito de letreiro iluminado neon */
    }

    /* Hero Mobile - Ajuste do padding sem o header fixo */
    .hero { 
        padding-top: 50px; 
        padding-bottom: 120px; 
        text-align: center; 
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }
    
    /* Stats Mobile */
    .stats-container {
        padding: 30px 20px;
        flex-direction: column;
        gap: 40px;
    }
    .stat-item { flex: 1; width: 100%; }
    
    /* Global Section Paddings */
    .services, .portfolio-section, .partners, .process, .about, .cta-strip {
        padding: 60px 0;
    }
    
    /* Typography Mobile */
    .section-header h2 { font-size: 1.8rem; margin-bottom: 30px; }
    
    /* Grids Mobile */
    .services-grid { grid-template-columns: 1fr; }
    
    /* Portfólio Filtros Mobile */
    .portfolio-filters { gap: 10px; margin-bottom: 30px; }
    .portfolio-filters .filter-btn { padding: 6px 12px; font-size: 0.85rem; }
    
    /* Marquee Mobile (Removemos borda borrada que fica ruim no celular) */
    .marquee-container::before, .marquee-container::after { display: none; }
    .logo-box { width: 150px; height: 70px; }

    /* Processo Timeline Mobile */
    .process-timeline { flex-direction: column; gap: 40px; }
    .process-line { display: none; }
    
    /* Sobre Mobile */
    .about-container { flex-direction: column; text-align: center; }
    
    /* Footer Mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .work-hours-col { align-items: center; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-bottom-flex { flex-direction: column; text-align: center; gap: 10px; }
}


    /* Botões 100% de largura no mobile para não amassar */
    .hero-buttons { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 15px !important; 
        width: 100% !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
    }
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .btn { width: 100%; }
}


/* Efeito de borda neon rotativa Premium (Efeito Cobrinha) */
.btn-neon-border {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: #0B4A20 !important; /* Cor de fundo da pista da cobrinha (verde escuro) */
    z-index: 1;
}

.btn-neon-border::before {
    content: '';
    position: absolute;
    top: -500px; left: -500px; right: -500px; bottom: -500px;
    margin: auto;
    width: 1000px; height: 1000px;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 75%, var(--whatsapp-green) 90%, #FFF 100%);
    animation: rotate-border 2s linear infinite;
    z-index: -2;
}

.btn-neon-border::after {
    content: '';
    position: absolute;
    inset: 3px; /* Espessura do rastro da cobrinha */
    background: var(--whatsapp-green);
    border-radius: 2px;
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-neon-border:hover::after {
    background: #1EBE5A;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===== Lightbox Portfólio ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
}
.lightbox-content {
    margin: auto;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}
@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}
.lightbox-close:hover {
    color: var(--primary-red);
}
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    z-index: 2;
}
.lightbox-next {
    right: 20px;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--primary-red);
    background-color: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-content { width: 95%; height: 70vh; margin-top: 10vh; }
    .lightbox-close { top: 15px; right: 20px; font-size: 35px; }
}
