/* ========================================
   CRESCER RH - Main Stylesheet
   ======================================== */

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   SLIDESHOW PERSONALIZADO
   ======================================== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-text {
    opacity: 0;
    transform: translateY(8px);
    transition: all 1s ease-out;
}

.slide-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efeitos de hover para botões */
.btn-hero {
    position: relative;
    overflow: hidden;
}

.btn-hero::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-hero:hover::before {
    left: 100%;
}

/* Gradientes de texto */
.text-gradient-blue {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CONFIGURAÇÕES DA LOGO
   ======================================== */

/* ========================================
   ESTILOS PARA O HEADER E NAVEGAÇÃO
   ======================================== */
.nav-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f97316;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #f97316;
    transform: translateY(-1px);
}

/* Menu Mobile */
.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu .nav-link {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}
/* Logo no Header */
.logo-header {
    height: 3rem; /* 48px */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo no Footer */
.logo-footer {
    height: 2.5rem; /* 40px */
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Responsividade da Logo */
@media (max-width: 1024px) {
    .logo-header {
        height: 2.75rem; /* 44px */
        max-width: 180px;
    }
    
    .logo-footer {
        height: 2.25rem; /* 36px */
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .logo-header {
        height: 2.5rem; /* 40px */
        max-width: 160px;
    }
    
    .logo-footer {
        height: 2rem; /* 32px */
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-header {
        height: 2.25rem; /* 36px */
        max-width: 140px;
    }
    
    .logo-footer {
        height: 1.75rem; /* 28px */
        max-width: 100px;
    }
}

/* Efeitos visuais da Logo */
.logo-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.logo-hover:hover {
    opacity: 0.9;
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-hover:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Estado de carregamento da Logo */
.logo-loading {
    opacity: 0;
    transform: translateY(-10px);
}

.logo-loaded {
    opacity: 1;
    transform: translateY(0);
    animation: logoSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-2px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   COMPONENTES REUTILIZÁVEIS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #1e3a8a;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
}

/* ========================================
   CARROSSEL INFINITO (MARQUEE)
   ======================================== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
    will-change: transform;
}

/* Pausar animação ao passar o mouse */
.group:hover .animate-marquee {
    animation-play-state: paused;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 20s; /* Mais rápido no mobile */
    }
}
