/**
 * MODERN MOTION PACKAGE
 * Desktop-only animations and visual enhancements
 * 
 * Safe to remove without breaking layout.
 */

@media (min-width: 992px) {

    /* 1. HERO & TEXT ENTRANCE ANIMATIONS */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate3d(0, 30px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    .hero h2, .page-content h1 {
        animation: fadeInUp 0.8s ease-out forwards;
    }

    .hero p, .page-content .content-body {
        animation: fadeInUp 0.8s ease-out 0.2s forwards; /* Slight delay */
        opacity: 0; /* Start hidden for animation */
        animation-fill-mode: forwards;
    }

    /* 2. CARD LEVITATION & INTERACTION */
    .category-card, .pro-card, .testimonial-card, .service-item {
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth apple-like transition */
    }

    .category-card:hover, .pro-card:hover, .testimonial-card:hover, .service-item:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Deeper shadow */
        border-color: rgba(30, 136, 229, 0.3);
    }

    /* Icon Zoom on Card Hover */
    .category-card:hover .category-icon i,
    .service-item:hover i {
        transform: scale(1.15) rotate(5deg);
        transition: transform 0.4s ease;
        color: #1E88E5; /* Primary Blue */
    }

    /* 3. MODERN BUDGET BLOCK */
    .budget-card {
        background: linear-gradient(270deg, #1565C0, #1E88E5, #42A5F5);
        background-size: 600% 600%;
        animation: gradientFlow 15s ease infinite;
    }

    @keyframes gradientFlow {
        0% { background-position: 0% 50% }
        50% { background-position: 100% 50% }
        100% { background-position: 0% 50% }
    }

    .btn-budget {
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .btn-budget:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    /* 4. INSTITUTIONAL PAGES MAKEOVER */
    .page-institutional .page-content {
        max-width: 100%;
        background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    }

    .page-institutional .content-body {
        background: #fff;
        padding: 50px; /* Mais espaço interno */
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.03);
        font-size: 1.1rem; /* Better readability */
        line-height: 1.8;
        color: #374151; /* Modern Gray */
        max-width: 1200px; /* Aumentado de 900px para preencher o container */
        margin: 0 auto;
    }

    /* Aumentando a especificidade para garantir que sobrescreva o content.css */
    .page-institutional .proaqui-content h1 {
        font-weight: 800;
        font-size: 2.5rem;
        letter-spacing: -1px;
        margin-bottom: 20px !important; /* Ajustado para compensar a subida do traço */
        position: relative;
        display: block;
        text-align: left;
        color: #1a202c;
    }

    /* Decorative underline for titles */
    .page-institutional .proaqui-content h1::after {
        content: '';
        position: absolute;
        bottom: -8px; /* Subiu de -15px para -8px (mais perto do título) */
        left: 0; /* Alinhado a esquerda */
        transform: none; /* Remove a centralização */
        width: 60px;
        height: 4px;
        background: #90CAF9;
        border-radius: 2px;
    }

    /* 5. SEARCH BOX GLOW */
    .search-box {
        transition: box-shadow 0.4s ease;
    }
    
    .search-box:hover {
        box-shadow: 0 15px 40px rgba(30, 136, 229, 0.15); /* Blueish glow */
    }
}
