/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --cor-primaria: #6B4C9A;
    --cor-secundaria: #8B6BB7;
    --cor-destaque: #6B4C9A;
    --cor-texto: #333333;
    --cor-texto-claro: #666666;
    --cor-fundo: #F8FAFC;
    --cor-branco: #FFFFFF;
    --cor-sombra: rgba(0, 0, 0, 0.1);
    --cor-rodape: #0F172A;
    --gradiente-hero: linear-gradient(135deg, #6B4C9A 0%, #8B6BB7 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-texto);
    line-height: 1.6;
    background-color: var(--cor-fundo);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--cor-primaria);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--cor-destaque);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    background-color: var(--cor-destaque);
    color: var(--cor-branco);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--cor-sombra);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--cor-branco);
    box-shadow: 0 5px 20px var(--cor-sombra);
    box-sizing: border-box;
}

header.scrolled {
    background-color: var(--cor-branco);
    box-shadow: 0 5px 20px var(--cor-sombra);
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo img {
    height: 105px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item {
    margin-left: 0;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--cor-primaria);
}

.nav-link:hover {
    color: var(--cor-destaque);
}

.btn-contato {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

/* Hero Section */
.hero {
    background: var(--gradiente-hero);
    color: var(--cor-branco);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.4s;
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}

/* Sobre Section */
.sobre {
    background-color: var(--cor-branco);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sobre-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.sobre-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cor-destaque);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
}

.sobre-img {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden;
}

.sobre-img.visible {
    opacity: 1;
    transform: translateX(0);
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    height: 250px;
    padding: 20px;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(to top, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 8px 8px 0 0;
    height: 0;
    animation: growBar 1.5s ease-out forwards;
    animation-delay: var(--delay);
    position: relative;
    box-shadow: 0 -5px 15px rgba(107, 76, 154, 0.3);
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px 8px 0 0;
}

@keyframes growBar {
    from {
        height: 0;
    }
    to {
        height: var(--height);
    }
}

.growth-arrow {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 4rem;
    color: var(--cor-primaria);
    opacity: 0;
    animation: fadeInArrow 1s ease-out forwards;
    animation-delay: 1.5s;
}

.growth-arrow i {
    filter: drop-shadow(0 5px 10px rgba(107, 76, 154, 0.3));
    animation: bounceArrow 2s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
    }
    to {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.sobre-img i {
    font-size: 8rem;
    color: var(--cor-primaria);
    opacity: 0.7;
}

/* Empresas Section */
.empresas {
    background-color: var(--cor-fundo);
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.empresa-card {
    background-color: var(--cor-branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--cor-sombra);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.empresa-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.empresa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.empresa-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--cor-fundo);
}

.empresa-logo img {
    max-height: 60px;
    max-width: 80%;
}

#nova-viva-card .empresa-logo img {
    max-height: 48px;
}

#valsa-card .empresa-logo img {
    max-height: 84px;
}

#ag-card .empresa-logo img {
    max-height: 78px;
}

.empresa-content {
    padding: 30px;
}

.empresa-content h3 {
    color: var(--cor-primaria);
    margin-bottom: 15px;
}

.empresa-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.highlight {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--cor-destaque);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.empresa-services {
    list-style: none;
    margin-bottom: 25px;
}

.empresa-services li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.empresa-services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cor-destaque);
    font-weight: bold;
}

.empresa-link {
    color: var(--cor-destaque);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.empresa-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.empresa-link:hover i {
    transform: translateX(5px);
}

/* Diferenciais Section */
.diferenciais {
    background-color: var(--cor-branco);
    width: 100%;
    box-sizing: border-box;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.diferencial-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.diferencial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.diferencial-card:hover {
    background-color: var(--cor-fundo);
    transform: translateY(-5px);
}

.diferencial-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.diferencial-icon i {
    font-size: 1.8rem;
    color: var(--cor-destaque);
}

/* Contato Section */
.contato {
    background-color: var(--cor-fundo);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contato-form {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contato-form.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
}

.contato-info {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.contato-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--cor-destaque);
}

.social-links {
    display: flex;
    margin-top: 40px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--cor-destaque);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--cor-rodape);
    color: var(--cor-branco);
    padding: 60px 0 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: 100%;
    box-sizing: border-box;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--cor-branco);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cor-destaque);
}

.lgpd {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
/* iPad Pro e tablets grandes em landscape */
@media (max-width: 1366px) and (min-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    /* Tablet específico */
    .empresas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .container {
        padding: 0 30px;
        max-width: 100%;
    }
    
    .navbar {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .empresas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 100px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .sobre-content,
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    .sobre-img {
        height: 300px;
        order: -1;
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .empresas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contato-info {
        margin-top: 40px;
    }
    
    .container {
        padding: 0 25px;
        max-width: 100%;
    }
    
    .footer-logo img {
        height: 65px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
        transform: scale(1.4);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--cor-branco);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .navbar {
        justify-content: space-between;
        gap: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .btn-contato {
        margin-left: 0;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .empresas-grid,
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
    
    .chart-container {
        gap: 8px;
        height: 180px;
    }
    
    .chart-bar {
        width: 25px;
    }
    
    .growth-arrow {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .chart-container {
        gap: 6px;
        height: 150px;
    }
    
    .chart-bar {
        width: 20px;
    }
    
    .growth-arrow {
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }
    
    .footer-logo img {
        height: 50px;
    }
}