/**
 * Corporate Consulting - Custom Styles
 * Versão PHP com Tailwind CSS
 */

/* Configuração do Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variáveis CSS customizadas */
:root {
    --primary-color: hsl(224, 71%, 20%);
    --secondary-color: hsl(280, 60%, 45%);
    --accent-color: hsl(45, 93%, 58%);
    --gradient-hero: linear-gradient(135deg, hsl(224, 71%, 20%) 0%, hsl(280, 60%, 35%) 100%);
    --shadow-elegant: 0 10px 40px -10px hsl(224, 71%, 20% / 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
}

/* Animações */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth scroll para links */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Nav active state */
.nav-link {
    color: #1f2937; /* gray-800 */
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    color: #1e3a8a; /* blue-900 */
}
.nav-link.is-active {
    color: #1e3a8a; /* blue-900 */
    border-color: #f59e0b; /* amber-500 */
    font-weight: 600;
}

/* Estilos para o header fixo */
header {
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para cards com hover */
.card-hover {
    transition: var(--transition-smooth);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
}

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, hsl(224, 71%, 20%) 0%, hsl(280, 60%, 45%) 100%);
}

.gradient-secondary {
    background: linear-gradient(90deg, hsl(280, 60%, 45%) 0%, hsl(280, 70%, 55%) 100%);
}

/* Botões customizados */
.btn-primary {
    background: linear-gradient(135deg, hsl(224, 71%, 20%) 0%, hsl(280, 60%, 45%) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px -5px hsl(224, 71%, 20% / 0.5);
    transform: translateY(-2px);
}

/* Estilos para formulários */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(224, 71%, 20%);
    box-shadow: 0 0 0 3px hsl(224, 71%, 20% / 0.1);
}

/* Toast notification */
#toast {
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade adicional */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading spinner (opcional) */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: hsl(224, 71%, 20%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para seções */
section {
    scroll-margin-top: 80px;
}

/* Overlay para imagens */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hsl(224, 71%, 20% / 0.9) 0%, hsl(280, 60%, 35% / 0.8) 100%);
}

/* Estilos para ícones Lucide */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Customização do scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: hsl(224, 71%, 20%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(280, 60%, 45%);
}
