@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Colors - SP Perícias Dark Theme */
    --primary: #D32F2F;        /* Main Red */
    --primary-light: #FF6659;
    --primary-dark: #9A0007;
    --bg-dark: #050A1A;        /* Deep Navy Blue */
    --bg-card: #0D1626;        /* Slightly lighter blue for cards */
    --accent-red: #B71C1C;
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-color: rgba(211, 47, 47, 0.2);
    
    /* Spacing */
    --section-padding: 80px 5%;
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.text-primary { color: var(--primary); }
.text-serif { font-family: 'Outfit', sans-serif; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(5, 10, 26, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark); /* Fundo azul escuro */
    background-image: linear-gradient(135deg, var(--bg-dark) 0%, #030712 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-images {
    display: flex;
    gap: 15px;
    flex: 1;
}

.hero-images img {
    width: calc(50% - 7.5px);
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 30%, #9CA3AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(211, 47, 47, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(211, 47, 47, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.badge i { color: var(--primary); font-size: 0.9rem; }

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Lead Capture Form */
.lead-capture {
    padding-top: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.lead-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(211, 47, 47, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.lead-form .form-group:last-of-type {
    grid-column: span 1;
}

.lead-form input, .lead-form select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

.lead-form button {
    grid-column: span 1;
}

.form-footer {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Cards & Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.problem-card {
    padding: 35px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    transition: 0.3s;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
}

.problem-card i {
    margin-bottom: 20px;
}

.problem-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Norms / Tech Resp */
.norms-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.validity-list {
    margin-top: 1.5rem;
}

.validity-item {
    padding: 12px 20px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 2px solid var(--primary);
    font-size: 0.95rem;
}

/* Assets Grid */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.asset-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
}

.asset-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.asset-box:hover img {
    transform: scale(1.08);
}

.asset-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    font-weight: 600;
}

/* Clients Section */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.client-item {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s transform;
    opacity: 0.8;
}

.client-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* FAQ */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: none;
    color: white;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    transition: 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: #050505;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Optimization */
@media (max-width: 992px) {
    .lead-form {
        grid-template-columns: 1fr 1fr;
    }
    .norms-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero .container {
        flex-direction: column;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-badges, .hero-btns, .auth-seals {
        justify-content: center !important;
    }
    .hero-images {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }
    
    .nav-links { display: none; }
    
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-content { margin: 0 auto; }
    
    .hero-badges, .hero-btns {
        justify-content: center;
    }
    
    .lead-form {
        grid-template-columns: 1fr;
    }
    
    .lead-form-container {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
