/* =====================================================================
   CSS da página inicial / console (lumikit.php)

   Este CSS vale SÓ para esta página. Veio de um bloco <style> dentro do
   PHP e foi para cá em 30/07/2026 — mas na primeira tentativa foi parar
   no lumikit-paginas.css (global), e seletores genéricos daqui
   (.header-2, .slide, .section-title, .modal-header…) vazaram para o
   site inteiro e desalinharam o logo do cabeçalho.

   Por isso o arquivo é carregado CONDICIONALMENTE, só quando esta
   página é a que está sendo exibida (ver o <head> do index.php).

   Se precisar de uma regra em MAIS de uma página, o lugar dela é o
   lumikit-paginas.css — e o seletor tem que ser específico o bastante
   para não pegar carona em outra página.
   ===================================================================== */

/* ========== MODERN MIDDLE SECTION ========== */
        /* Banner principal com imagens em cycling */
        .hero-banner {
            position: relative;
            width: 100%;
            height: 85vh;
            min-height: 520px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .bg-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            filter: brightness(0.65);
        }

        .slide.active {
            opacity: 1;
        }

        .banner-content {
            position: relative;
            z-index: 10;
            max-width: 900px;
            padding: 0 24px;
            color: white;
            text-shadow: 0 2px 15px rgba(0,0,0,0.3);
        }

        .banner-content h1 {
            font-size: 8rem;
            font-weight: 800;
            margin-bottom: 2rem;
            letter-spacing: -0.02em;
            color: white;
        }

        .banner-content p {
            font-size: 3rem;
            font-weight: 500;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

        .banner-tag {
            background: rgb(51, 255, 0);
            display: inline-block;
            padding: 0.6rem 1.8rem;
            border-radius: 50px;
            font-weight: 600;
            color: #0a1a2a;
            font-size: 2rem;
        }

        /* Seção dos 4 quadrados - layout em grade com 2 por linha */
        .services-section {
            max-width: 1280px;
            margin: 4rem auto;
            padding: 0 32px;
        }

        .section-title {
            text-align: center;
            font-size: 3rem;
            font-weight: 700;
            color: #0a1a2a;
            margin-bottom: 3rem;
            color: #666666;
        }

        /* Grid: exatamente 2 colunas em telas grandes, responsivo */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        /* Em telas menores, vira 1 coluna */
        @media (max-width: 780px) {
            .cards-grid {
                grid-template-columns: 1fr;
                gap: 1.8rem;
            }
        }

        .service-card {
            position: relative;
            border-radius: 28px;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: box-shadow 0.4s ease;
            will-change: transform;
        }

        /* Container interno que vai escalar no hover */
        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            transform: scale(1);
            transform-origin: center center;
        }

        /* No hover do card, escala o inner (imagem + texto juntos) */
        .service-card:hover .card-inner {
            transform: scale(1.08);
        }

        /* O fundo de slideshow ocupa 100% do inner */
        .card-bg-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .card-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.2s ease-in-out;
        }

        .card-slide.active {
            opacity: 1;
        }

        /* Overlay do texto também escala junto pois está dentro do card-inner */
        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent);
            padding: 2rem 1.5rem 1.8rem;
            z-index: 5;
            color: white;
            text-align: center;
            transition: background 0.3s ease;
            pointer-events: none;
        }

        .service-card:hover .card-overlay {
            background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 100%);
        }

        .card-overlay h3 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 0.6rem;
            letter-spacing: -0.5px;
            color: white;
        }

        .card-overlay p {
            font-size: 1.5rem;
            opacity: 0.9;
            font-weight: 500;
        }

        .card-icon {
            font-size: 2.2rem;
            margin-bottom: 0.8rem;
            color: rgb(51, 255, 0);
        }

        /* ========== MODAL MODERN STYLES ========== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.2s ease;
        }

        .modal-overlay.active {
            visibility: visible;
            opacity: 1;
        }

        .modal-container {
            background: #000000;
            border-radius: 2rem;
            width: 90%;
            max-width: 500px;
            padding: 2rem 1.8rem 2rem 1.8rem;
            box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
            transform: scale(0.95);
            transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            text-align: center;
            position: relative;
        }

        .modal-overlay.active .modal-container {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #f0f2f5;
            padding-bottom: 0.8rem;
        }

        .modal-header h3 {
            font-size: 1.8rem;
            font-weight: 700;
            color: rgb(51, 255, 0);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .modal-header h3 i {
            color: rgb(51, 255, 0);
            font-size: 1.6rem;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: #6c7a8a;
            transition: 0.2s;
            line-height: 1;
        }

        .close-modal:hover {
            color: rgb(51, 255, 0);
            transform: rotate(90deg);
        }

        .modal-options {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin: 1.8rem 0 1rem;
        }

        .modal-option-btn {
            background: #f8f9fc;
            border: 1px solid #e2e8f0;
            border-radius: 60px;
            padding: 1rem 1.2rem;
            font-size: 1.5rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.25s;
            color: #1e2f5e;
        }

        .modal-option-btn i {
            font-size: 1.5rem;
            color: rgb(51, 255, 0);
        }

        .modal-option-btn:hover {
            background: #0a1a2a;
            border-color: #0a1a2a;
            color: white;
            transform: translateY(-3px);
        }

        .modal-option-btn:hover i {
            color: rgb(51, 255, 0);
        }

        .modal-footer-note {
            margin-top: 1.5rem;
            font-size: 0.75rem;
            color: #7f8c8d;
            border-top: 1px solid #edf2f7;
            padding-top: 1rem;
        }

        /* Responsivo para o banner */
        @media (max-width: 800px) {
            .banner-content h1 {
                font-size: 3rem;
            }
            .banner-content p {
                font-size: 2rem;
            }
            .hero-banner {
                height: 70vh;
                min-height: 450px;
            }
            .nav-container {
                flex-direction: column;
                gap: 0.8rem;
            }
            .card-overlay h3 {
                font-size: 1.6rem;
            }
            .modal-container {
                padding: 1.5rem;
            }
            .modal-header h3 {
                font-size: 1.5rem;
            }
        }


        .service-card {
            border-radius: 28px;
            overflow: hidden;
        }
        .card-inner {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 28px;
            overflow: hidden;
            backface-visibility: hidden;
        }
        .card-bg-slideshow, .card-overlay {
            border-radius: inherit;
        }
        /* transição suave para o scale */
        .service-card:hover {
            box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.4);
        }
        .modal-option-btn {
            cursor: pointer;
            user-select: none;
        }
        .close-modal {
            cursor: pointer;
            transition: transform 0.2s, color 0.2s;
        }
        .card-overlay {
            transition: background 0.3s ease;
        }
