/* Estilos personalizados para FR CreaTech LTDA */

/* Variáveis CSS para cores baseadas na logo */
:root {
    --primary-blue: #0066FF;
    --accent-yellow: #FFB800;
    --dark-gray: #4A5568;
    --light-gray: #F7FAFC;
    --white: #FFFFFF;
    --blue-light: #E6F3FF;
}

/* Reset e configurações 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: var(--dark-gray);
    padding-top: 0; /* Garante que não há padding que interfira com o header fixo */
}

/* Header fixo */
#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent; /* Inicia transparente */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transform: translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header com fundo branco quando em scroll */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

/* Garantir que o header nunca seja escondido */
#main-header * {
    pointer-events: auto;
}

/* Estilo para o container do header */
#main-header nav {
    transition: all 0.4s ease;
}

/* Ajustar padding quando em scroll */
#main-header.scrolled nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Estilos para elementos do menu - garantir visibilidade em fundo transparente */
#main-header .logo-text {
    color: var(--primary-blue);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.4s ease;
}

#main-header.scrolled .logo-text {
    text-shadow: none;
}

#main-header .menu-link {
    color: var(--dark-gray);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

#main-header.scrolled .menu-link {
    text-shadow: none;
}

#main-header .menu-icon {
    color: var(--primary-blue);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: filter 0.4s ease;
}

#main-header.scrolled .menu-icon {
    filter: none;
}

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

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

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

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004ACC 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #E6A700 100%);
}

/* Efeitos de hover personalizados */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Botões personalizados */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #004ACC;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: var(--accent-yellow);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #E6A700;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.3);
}

/* Cards com efeitos especiais */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Ícones animados */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-container:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Formulário estilizado */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

/* Seções com parallax */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .mobile-padding {
        padding: 16px;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
}

/* Estados de carregamento */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Acessibilidade */
.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;
}

/* Focus states aprimorados */
.focus-visible:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Transições suaves */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sombras personalizadas */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Elementos decorativos */
.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.decoration-square {
    width: 12px;
    height: 12px;
    background: var(--accent-yellow);
    border-radius: 2px;
    position: absolute;
    animation: float 5s ease-in-out infinite reverse;
    transform: rotate(45deg);
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
