/* ===== VERA LIMA - PSICÓLOGA SISTÊMICA ===== */
/* Design System e CSS Aprimorado */

/* === VARIÁVEIS CSS === */
:root {
    /* Cores principais */
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-green: #10b981;
    --primary-gray: #1f2937;
    --secondary-gray: #6b7280;
    --light-gray: #f9fafb;
    --accent-red: #ef4444;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transições */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Bordes */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-gray);
    background: #ffffff;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* === TIPOGRAFIA APRIMORADA === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--primary-gray);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* === NAVEGAÇÃO === */
.nav-link {
    position: relative;
    transition: var(--transition-normal);
    font-weight: 300;
    letter-spacing: 0.025em;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 1px;
}

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

.nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* === HEADER MELHORADO === */
header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

header:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

/* === BOTÕES MODERNOS === */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.btn-primary::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: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-gray);
    border: 1.5px solid rgba(107, 114, 128, 0.3);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === CARDS MODERNOS === */
.card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(59, 130, 246, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover::before {
    opacity: 1;
}

/* === SEÇÕES COM GRADIENTES === */
.section-gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* === HERO SECTION MELHORADA === */
.hero-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.hero-badge:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 24rem;
    margin: 2.5rem auto;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

/* === FOTO PROFISSIONAL === */
.photo-container {
    position: relative;
    width: 16rem;
    height: 20rem;
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.photo-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.photo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: var(--transition-normal);
}

.photo-container:hover::after {
    opacity: 1;
}

/* === ESPECIALIZATIONS === */
.specialty-card {
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transform: rotate(45deg);
    transition: var(--transition-slow);
    opacity: 0;
}

.specialty-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.specialty-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.2);
}

.specialty-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.specialty-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: var(--transition-normal);
}

.specialty-card:hover .specialty-icon::before {
    opacity: 1;
}

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

/* === FAQ SECTION === */
.faq-item {
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    transition: var(--transition-normal);
}

.faq-item:hover::before {
    height: 60%;
}

/* === FORMULÁRIO MODERNO === */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1.5px solid rgba(107, 114, 128, 0.3);
    background: rgba(107, 114, 128, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(107, 114, 128, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: rgba(156, 163, 175, 0.8);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: -0.5rem;
    background: #374151;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(156, 163, 175, 0.9);
    border-radius: 4px;
}

/* === WHATSAPP BUTTON PREMIUM === */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.whatsapp-btn {
    position: relative;
    width: 4rem;
    height: 4rem;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.whatsapp-btn:hover::before {
    opacity: 1;
}

.whatsapp-pulse {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 1rem;
    background: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(31, 41, 55, 0.95);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* === ELEMENTOS DECORATIVOS === */
.floating-element {
    position: fixed;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.floating-element:nth-child(1) {
    animation: float-1 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation: float-2 10s ease-in-out infinite;
}

.floating-element:nth-child(3) {
    animation: float-3 12s ease-in-out infinite;
}

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

@keyframes float-2 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-15px) rotate(-180deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(90deg); }
    50% { transform: translate(10px, -20px) rotate(180deg); }
    75% { transform: translate(-5px, -15px) rotate(270deg); }
}

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

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

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

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

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

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

/* === SCROLLBAR PERSONALIZADA === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    :root {
        --border-radius: 0.375rem;
        --border-radius-lg: 0.5rem;
        --border-radius-xl: 0.75rem;
        --border-radius-2xl: 1rem;
    }
    
    .hero-stats {
        max-width: 20rem;
        gap: 1rem;
    }
    
    .photo-container {
        width: 14rem;
        height: 18rem;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .floating-element {
        display: none;
    }
    
    .specialty-card {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 18rem;
    }
    
    .hero-stat {
        padding: 0.75rem;
    }
}

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

@media (prefers-color-scheme: dark) {
    .dark-support {
        --primary-gray: #f9fafb;
        --secondary-gray: #e5e7eb;
        --light-gray: #1f2937;
    }
}

/* === ESTADOS DE FOCO === */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === LOADING STATES === */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === UTILITÁRIOS === */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.hover-lift:hover {
    transform: translateY(-4px);
}
