/**
 * Jade Tecnologia — Estilos customizados v2
 * Melhor contraste e legibilidade
 */

/* ========== Animações de scroll ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay para cards */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 100ms; }
.fade-in:nth-child(3) { transition-delay: 200ms; }
.fade-in:nth-child(4) { transition-delay: 300ms; }
.fade-in:nth-child(5) { transition-delay: 400ms; }
.fade-in:nth-child(6) { transition-delay: 500ms; }

/* ========== Hero — gradiente overlay ========== */
.hero-gradient {
    background: linear-gradient(135deg, #034d40 0%, #001a15 100%);
}

/* Garante legibilidade máxima no hero */
.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.hero-gradient p,
.hero-gradient .hero-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Banner hero: bloco de texto com fundo escuro protetor */
.hero-content {
    position: relative;
    z-index: 10;
}
.hero-content::after {
    content: '';
    position: absolute;
    inset: -2rem -1rem;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, transparent 70%);
    border-radius: 2rem;
    z-index: -1;
    pointer-events: none;
}

/* ========== Glass card ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========== Hover lift ========== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e2e8f0;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
    border-color: #056353;
}

/* ========== Badge de tecnologia ========== */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.tech-badge:hover {
    border-color: #056353;
    color: #056353;
    box-shadow: 0 6px 20px rgba(5, 99, 83, 0.15);
    transform: translateY(-3px);
}

/* ========== Gradiente de texto — mais claro ========== */
.text-gradient {
    background: linear-gradient(135deg, #034d40, #056353);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ========== Smooth scroll ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Focus visível ========== */
*:focus-visible {
    outline: 3px solid #056353;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== Seleção ========== */
::selection {
    background: #056353;
    color: white;
}

/* ========== Honeypot ========== */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ========== Melhorias de contraste ========== */

/* Cards de serviço — destaque no hover */
.service-card-icon {
    transition: all 0.3s ease;
}
.group:hover .service-card-icon {
    background: #056353 !important;
    color: white !important;
}

/* Seções alternadas com divisão visível */
.section-alt {
    background: #f1f5f9;
}

/* Form inputs — melhor visibilidade */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(5, 99, 83, 0.15) !important;
    border-color: #056353 !important;
}

/* Links em fundo escuro */
.on-dark-link {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.on-dark-link:hover {
    color: white;
}

/* Badge pulsando no hero */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Cards de dor/solução */
.dor-card {
    border-left: 3px solid #ef4444;
}
.solucao-card {
    border-left: 3px solid #056353;
}

/* Footer links mais visíveis */
footer a:hover {
    color: white !important;
}

/* Aumenta contraste de texto secundário */
.text-muted {
    color: #475569;
}
