/* ==============================================
   DESIGN SYSTEM - ENCANTOS DA FÉ
   Sistema de Design Reutilizável
   ============================================== */

:root {
    /* CORES PRIMÁRIAS */
    --color-black: #0a0a0a;
    --color-dark: #1d1d1f;
    --color-graphite: #2c2c2e;
    --color-dark-gray: #3a3a3c;
    
    /* CORES SECUNDÁRIAS */
    --color-gray: #86868b;
    --color-light-gray: #d1d1d6;
    --color-ultra-light: #f2f2f7;
    --color-white: #ffffff;
    
    /* DOURADO (ACCENT) */
    --color-gold: #c9a961;
    --color-gold-dark: #9d7e3a;
    --color-gold-light: #e6d4a8;
    --color-gold-pale: #f5ebd4;
    
    /* AZUL INSTITUCIONAL */
    --color-blue-dark: #1e3a8a;
    --color-blue: #2563eb;
    
    /* GRADIENTES */
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    --gradient-gold-hover: linear-gradient(135deg, var(--color-gold-dark) 0%, #8a6b2d 100%);
    --gradient-graphite: linear-gradient(135deg, var(--color-dark) 0%, var(--color-graphite) 100%);
    --gradient-blue: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
    --gradient-overlay-dark: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    
    /* SOMBRAS */
    --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.10);
    --shadow-lg: 0 12px 48px rgba(10, 10, 10, 0.15);
    --shadow-xl: 0 20px 64px rgba(10, 10, 10, 0.20);
    --shadow-gold: 0 8px 24px rgba(201, 169, 97, 0.25);
    
    /* BLUR */
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    
    /* BORDER RADIUS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* TRANSIÇÕES */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ESPAÇAMENTOS */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

/* ==============================================
   COMPONENTES - HEADER
   ============================================== */

.header-component {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

/* Header não é mais fixo */
/* Removido position: fixed */

/* Logo no header */
.header-component .logo-link img {
    max-height: 64px;
    width: auto;
}

/* Nav links */
.header-component .nav-link {
    position: relative;
    padding-bottom: 4px;
}

.header-component .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-base);
}

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

/* Mobile menu */
.mobile-menu-panel {
    max-height: 100vh;
    overflow-y: auto;
}

/* ==============================================
   COMPONENTES - BOTÕES
   ============================================== */

/* Botão Primário (Dourado) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

.btn-primary i {
    margin-right: 0.5rem;
}

/* Botão Secundário (Dourado com borda) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--gradient-gold);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary i {
    margin-right: 0.5rem;
}

/* Botão Terciário (Outline escuro) */
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid var(--color-graphite);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-tertiary:hover {
    background: var(--color-graphite);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tamanhos de Botões */
.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

/* Botão Full Width */
.btn-block {
    width: 100%;
    display: flex;
}

/* ==============================================
   COMPONENTES - CARDS
   ============================================== */

/* Card Glass (Glassmorphism) */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card-glass:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Card Institucional (Azul Header + Branco Body) */
.card-institucional {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.card-institucional:hover {
    box-shadow: var(--shadow-xl);
}

.card-institucional-header {
    background: var(--gradient-blue);
    padding: var(--spacing-lg);
    text-align: center;
}

.card-institucional-header h3 {
    color: var(--color-white);
    margin: 0;
}

.card-institucional-body {
    padding: var(--spacing-md);
}

/* Card Estrutura (Cinza claro) */
.card-estrutura {
    background: linear-gradient(135deg, var(--color-ultra-light) 0%, var(--color-white) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid rgba(209, 209, 214, 0.3);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.card-estrutura:hover {
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   COMPONENTES - BADGES E INDICADORES
   ============================================== */

/* Badge Status Online */
.badge-online {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.badge-online-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Trust Indicator */
.trust-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-indicator-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--blur-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-md);
}

.trust-indicator-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trust-indicator-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==============================================
   COMPONENTES - SCROLL INDICATOR
   ============================================== */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==============================================
   COMPONENTES - SEÇÕES
   ============================================== */

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

/* Section Divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin: var(--spacing-md) auto;
}

/* ==============================================
   COMPONENTES - HERO SECTION
   ============================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay-dark);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    height: 6rem;
    width: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
    color: var(--color-gold);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.hero-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* ==============================================
   UTILITÁRIOS - RESPONSIVIDADE
   ============================================== */

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-logo {
        height: 8rem;
    }
}

/* ==============================================
   UTILITÁRIOS - ANIMAÇÕES
   ============================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* ==============================================
   UTILITÁRIOS - TEXTOS
   ============================================== */

.text-gold {
    color: var(--color-gold);
}

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

.text-shadow-strong {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* ==============================================
   UTILITÁRIOS - BACKGROUNDS
   ============================================== */

.bg-gradient-gold {
    background: var(--gradient-gold);
}

.bg-gradient-graphite {
    background: var(--gradient-graphite);
}

.bg-gradient-blue {
    background: var(--gradient-blue);
}
