/* ===== RESET E CONFIGURAÇÕES PREMIUM ===== */
:root {
    /* Cores da Marca */
    --primary: #4A6CF7;
    --primary-dark: #3050d6;
    --primary-light: #6a89f9;
    --secondary: #F7B731;
    --secondary-dark: #e6a61c;
    --accent: #28C76F;
    --accent-dark: #20a858;
    
    /* Neutros Modernos */
    --dark: #1A1F36;
    --dark-light: #2A2E37;
    --gray-dark: #6C757D;
    --gray: #ADB5BD;
    --gray-light: #E9ECEF;
    --light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Gradientes Premium */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #764BA2 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #FF9A9E 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #5D9CEC 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    
    /* Sombras Elegantes */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.15);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.2);
    
    /* Bordas Suaves */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    
    /* Transições Fluidas */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset moderno */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Suporte para reduzir animações */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
}

/* Foco visível para acessibilidade */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Container responsivo */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER PREMIUM ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 0;
}

.header .container {
    padding: 0 32px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding var(--transition);
}

.header.scrolled .navbar {
    padding: 12px 0;
}

/* ===== LOGO NO CABEÇALHO ===== */

/* Logo wrapper simplificado */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 80px; /* Garantir espaço mínimo */
}

/* Logo PEQUENA no cabeçalho - APENAS IMAGEM */
.logo-image {
    height: 80px; /* Tamanho pequeno para o header */
    width: auto;
    transition: all var(--transition);
    filter: drop-shadow(0 2px 4px rgba(74, 108, 247, 0.2));
    opacity: 1;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(74, 108, 247, 0.3));
}

/* Logo no header quando scrolled */
.header.scrolled .logo-image {
    height: 50px; /* Um pouco menor no scroll */
}

/* Remover texto da logo no header */
.logo-text,
.logo-main,
.logo-tagline {
    display: none !important; /* Garantir que não apareça */
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-light);
    padding: 8px;
    border-radius: var(--radius-full);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link:focus::before {
    opacity: 1;
}

.nav-link.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.nav-link:hover i,
.nav-link:focus i {
    transform: scale(1.2);
}

/* Botão de Acesso */
.btn-access {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition);
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-access:hover::before,
.btn-access:focus::before {
    left: 100%;
}

.btn-access:hover,
.btn-access:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
}

.menu-toggle:hover,
.menu-toggle:focus {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.menu-toggle i {
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.menu-toggle.active i {
    transform: rotate(180deg);
}

/* ===== HERO SECTION PREMIUM ===== */
.hero {
    position: relative;
    padding: 180px 0 120px;
    margin-top: 90px;
    background: var(--gradient-hero);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ===== LOGO NO BODY/HERO ===== */

/* Logo MÉDIA no hero section */
.hero-logo {
    height: 420px; /* LOGO MÉDIA/GRANDE no body */
    width: auto;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.3s forwards;
}

.hero-logo:hover {
    animation: wave 1s ease-in-out;
}

/* Conteúdo do Hero */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-highlight {
    position: relative;
    display: inline-block;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-secondary);
    opacity: 0.3;
    border-radius: var(--radius-full);
    z-index: -1;
}

.highlight-bg {
    background: rgba(255, 255, 255, 0.15);
    padding: 0 16px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    padding: 0 40px;
    font-weight: 400;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '"';
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
    font-weight: 400;
}

.hero-subtitle::before {
    top: -10px;
    left: 0;
}

.hero-subtitle::after {
    bottom: -20px;
    right: 0;
}

/* Botões do Hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(14px, 2vw, 18px) clamp(30px, 4vw, 40px);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    min-width: min(200px, 100%);
    will-change: transform;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.btn i {
    font-size: 1.2rem;
}

/* ===== ESTATÍSTICAS PREMIUM ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transition: transform var(--transition-slow);
    transform-origin: left;
}

.stat-card:hover::before,
.stat-card:focus-within::before {
    transform: scaleX(1);
}

.stat-card:hover,
.stat-card:focus-within {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

.stat-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.stat-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.counter {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.counter::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
}

.stat-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-top: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Classes de animação */
.animate-fade-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-fade-in.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-logo {
        height: 100px; /* Ajuste da logo média para tablets */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 30px;
    }
    
    .stat-card {
        padding: 35px 25px;
    }
    
    .counter {
        font-size: 3.2rem;
    }
    
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 16px 0;
    }
    
    /* Logo pequena no cabeçalho mobile */
    .logo-image {
        height: 35px;
    }
    
    .header.scrolled .logo-image {
        height: 30px;
    }
    
    /* Menu Mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: var(--white);
        padding: 24px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        gap: 12px;
        z-index: 1001;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        justify-content: flex-start;
        border-radius: var(--radius);
        padding: 16px 20px;
        font-size: 1rem;
        color: var(--dark);
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: var(--white);
    }
    
    .btn-access {
        margin-left: 0;
        justify-content: center;
        margin-top: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 120px 0 60px;
        margin-top: 70px;
        min-height: auto;
    }
    
    .hero-logo {
        height: 80px; /* Logo média ajustada para mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 60px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .counter {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero-subtitle::before,
    .hero-subtitle::after {
        font-size: 2rem;
    }
    
    /* Logo muito pequena no header mobile */
    .logo-image {
        height: 30px;
    }
    
    .header.scrolled .logo-image {
        height: 25px;
    }
    
    /* Logo média ajustada para mobile pequeno */
    .hero-logo {
        height: 70px;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-card p {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .logo-image {
        height: 28px;
    }
}

/* ===== IMPRESSÃO ===== */
@media print {
    .header {
        position: static;
        background: white;
        border-bottom: 1px solid #ddd;
    }
    
    .hero {
        background: white !important;
        color: black;
        margin-top: 0;
        padding: 40px 0;
    }
    
    .hero-title,
    .counter,
    .stat-card p {
        color: black !important;
    }
    
    .btn,
    .menu-toggle {
        display: none;
    }
    
    .hero-stats {
        break-inside: avoid;
    }
    
    .hero-logo {
        filter: none !important;
        animation: none !important;
        height: 60px;
    }
}