/* ========================================
   HOME — Hero, Serviços, Workflow, Stats, CTA
   ======================================== */

/* ========================================
   HERO
   ======================================== */

.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    font-family: var(--font);
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--highlight);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(1.44rem, 3.2vw, 2.56rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary);
    font-family: var(--font);
    margin-top: 0;
}

.hero-title .text-accent {
    color: var(--accent);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 8px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(255, 107, 53, 0.05));
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.02);
}

/* ========================================
   SEÇÕES GERAIS
   ======================================== */

section {
    padding: 100px 40px;
    position: relative;
    background: transparent;
    border: none;
    margin: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    font-family: var(--font);
    margin-top: 0;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   SERVIÇOS — GRID DE 3 COLUNAS
   ======================================== */

.services-section {
    background: var(--bg-soft);
    width: 100%;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 37, 64, 0.1), transparent);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-title {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font);
    margin-top: 0;
}

.service-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   SERVIÇOS — IMAGENS
   ======================================== */

.service-image-wrapper {
    margin: 16px 0 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 160px;
    display: block;
    width: 100%;
}

.service-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.06);
}

/* Ajuste no padding do card para acomodar a imagem */
.service-card {
    padding: 32px 32px 32px 32px;
}

/* ========================================
   WORKFLOW — GRID DE 4 COLUNAS
   ======================================== */

.workflow-section {
    background: var(--bg);
    width: 100%;
}

.workflow-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.workflow-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    opacity: 0.3;
    z-index: 0;
}

.workflow-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.workflow-number {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    color: var(--accent);
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-family: var(--font);
}

.workflow-step:hover .workflow-number {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.workflow-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    margin-top: 0;
    font-family: var(--font);
}

.workflow-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   STATS — GRID DE 4 COLUNAS
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary), #0d1f33);
    padding: 80px 40px;
    width: 100%;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.stat-item {
    display: block;
    width: 100%;
}

.stat-number {
    display: block;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: var(--highlight);
    margin-bottom: 8px;
    line-height: 1;
    font-family: var(--font);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========================================
   CTA — Opção 1: Máximo Contraste (CORRIGIDO)
   ======================================== */

.cta-section {
    background: rgb(6, 22, 42) !important;
    color: white !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .cta-title {
    color: rgb(255, 255, 255) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-family: var(--font);
    margin-top: 0;
}

.cta-section .cta-text {
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgb(148, 163, 184) !important;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary {
    background: rgb(255, 107, 53) !important;
    color: white !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    border: none;
}

.cta-section .btn-primary:hover {
    background: rgb(255, 140, 90) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white !important;
}

/* ========================================
   CTA — FORMULÁRIO INLINE
   ======================================== */

.cta-form-wrapper {
    max-width: 560px;
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.cta-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-form .form-group.full-width {
    grid-column: 1 / -1;
}

.cta-form label {
    color: rgb(148, 163, 184);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-form input,
.cta-form textarea {
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.cta-form textarea {
    min-height: 100px;
    resize: vertical;
}

.cta-form .btn-submit {
    grid-column: 1 / -1;
    padding: 16px 32px;
    background: rgb(255, 107, 53);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
}

.cta-form .btn-submit:hover {
    background: rgb(255, 140, 90);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVO — CTA FORMULÁRIO
   ======================================== */

@media (max-width: 768px) {
    .cta-form {
        grid-template-columns: 1fr;
    }

    .cta-form .form-group.full-width {
        grid-column: 1;
    }

    .cta-form .btn-submit {
        grid-column: 1;
    }
}


/* ========================================
   RESPONSIVO HOME
   ======================================== */

@media (max-width: 1024px) {
    .hero-section {
        gap: 40px;
    }
    
    .workflow-grid::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-img {
        height: 300px;
    }
    
    section {
        padding: 80px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .workflow-step {
        padding: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-number {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }
}