:root {
    --bg: #f5f7fa;
    --primary: #0f3058;
    --accent: #2d5ba3;
    --orange: #FF6B35;
    --orange-light: #FF9E6D;
    --muted: #6c757d;
    --surface: rgba(255,255,255,0.95);
    --glass-border: rgba(15, 48, 88, 0.1);
    --glass-blur: 8px;
    --radius: 14px;
    --transition: 300ms cubic-bezier(.2,.9,.3,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    position: relative;
    padding-top: 60px;
}

body::after {
    content: "Desenvolvido por KHOLF INFORMÁTICA, Nós Aperfeiçoamos a Perfeição!";
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.7rem;
    color: rgba(15, 48, 88, 0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    font-style: italic;
}

.site-wrap {
    width: 94%;
    max-width: 1200px;
    margin: 20px auto;
}

/* ======================
   BANNER DE NOTÍCIAS FIXO NO TOPO
====================== */
.news-banner {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.news-container {
    display: flex;
    animation: scrollNews 60s linear infinite;
    white-space: nowrap;
    gap: 40px;
}

.news-item {
    display: inline-flex;
    align-items: center;
    padding: 0 25px;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.news-item:last-child {
    border-right: none;
}

.news-item i {
    color: var(--orange);
    margin-right: 10px;
    font-size: 1rem;
}

.news-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.news-item a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.news-status {
    display: inline-flex;
    align-items: center;
    padding: 0 25px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    flex-shrink: 0;
    font-style: italic;
}

.news-status i {
    margin-right: 8px;
    animation: spin 2s linear infinite;
}

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

@keyframes scrollNews {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.news-banner:hover .news-container {
    animation-play-state: paused;
}

/* ======================
   HERO COM TRANSIÇÃO DE IMAGENS DE FUNDO
====================== */
header.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 16px;
    margin: 20px 0;
}

/* TRANSIÇÃO DAS IMAGENS DE FUNDO */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.35;
    transition: opacity 1.5s ease-in-out;
    animation: float 20s infinite alternate ease-in-out;
}

.hero-bg-1 {
    background-image: url('../assets/img/logo_p.png');
    opacity: 0.35;
}

.hero-bg-2 {
    background-image: url('../assets/img/logo_s.png');
    opacity: 0;
}

@keyframes float {
    0% { transform: scale(1) translateY(0px); }
    100% { transform: scale(1.05) translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 48, 88, 0.7) 0%, rgba(45, 91, 163, 0.6) 100%);
    z-index: -2;
    border-radius: 16px;
}

.logo-wrap { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
    position: relative;
    z-index: 2;
}

/* ======================
   LOGO COM ENGRENAGENS REAIS E EFEITOS DE FAÍSCAS
====================== */
.logo-img {
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 4px solid var(--orange);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
    transition: all 0.5s ease;
}

/* Engrenagem Externa - com dentes reais */
.logo-img::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: 
        conic-gradient(
            var(--orange) 0deg 18deg,
            transparent 18deg 30deg,
            var(--orange) 30deg 48deg,
            transparent 48deg 60deg,
            var(--orange) 60deg 78deg,
            transparent 78deg 90deg,
            var(--orange) 90deg 108deg,
            transparent 108deg 120deg,
            var(--orange) 120deg 138deg,
            transparent 138deg 150deg,
            var(--orange) 150deg 168deg,
            transparent 168deg 180deg,
            var(--orange) 180deg 198deg,
            transparent 198deg 210deg,
            var(--orange) 210deg 228deg,
            transparent 228deg 240deg,
            var(--orange) 240deg 258deg,
            transparent 258deg 270deg,
            var(--orange) 270deg 288deg,
            transparent 288deg 300deg,
            var(--orange) 300deg 318deg,
            transparent 318deg 330deg,
            var(--orange) 330deg 348deg,
            transparent 348deg 360deg
        );
    border-radius: 50%;
    animation: rotateGear 25s linear infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

/* Engrenagem Interna - com dentes menores */
.logo-img::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: 
        conic-gradient(
            var(--accent) 0deg 22.5deg,
            transparent 22.5deg 45deg,
            var(--accent) 45deg 67.5deg,
            transparent 67.5deg 90deg,
            var(--accent) 90deg 112.5deg,
            transparent 112.5deg 135deg,
            var(--accent) 135deg 157.5deg,
            transparent 157.5deg 180deg,
            var(--accent) 180deg 202.5deg,
            transparent 202.5deg 225deg,
            var(--accent) 225deg 247.5deg,
            transparent 247.5deg 270deg,
            var(--accent) 270deg 292.5deg,
            transparent 292.5deg 315deg,
            var(--accent) 315deg 337.5deg,
            transparent 337.5deg 360deg
        );
    border-radius: 50%;
    animation: rotateGear 20s linear infinite reverse;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(45, 91, 163, 0.5));
}

@keyframes rotateGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efeito de BRILHO PULSANTE (energia sendo gerada) */
.logo-img {
    animation: energyGlow 2s ease-in-out infinite;
}

@keyframes energyGlow {
    0%, 100% {
        box-shadow: 
            0 15px 35px rgba(255, 107, 53, 0.3),
            0 0 20px rgba(255, 107, 53, 0.2),
            inset 0 0 20px rgba(255, 107, 53, 0.1);
    }
    50% {
        box-shadow: 
            0 15px 35px rgba(255, 107, 53, 0.5),
            0 0 40px rgba(255, 107, 53, 0.4),
            0 0 60px rgba(255, 215, 0, 0.3),
            inset 0 0 30px rgba(255, 107, 53, 0.2);
    }
}

/* FAÍSCAS - Partícula 1 */
.logo-wrap::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700, #FF6B35);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: spark1 3s ease-in-out infinite;
    box-shadow: 0 0 10px #FFD700;
    z-index: 10;
}

@keyframes spark1 {
    0%, 100% { 
        opacity: 0; 
        transform: translate(0, 0) scale(0);
    }
    10% { 
        opacity: 1; 
        transform: translate(5px, -5px) scale(1);
    }
    20% { 
        opacity: 0; 
        transform: translate(10px, -10px) scale(0);
    }
}

/* FAÍSCAS - Partícula 2 */
.logo-wrap::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #FFF, #FF6B35);
    border-radius: 50%;
    top: 25%;
    right: 20%;
    animation: spark2 2.5s ease-in-out infinite 0.5s;
    box-shadow: 0 0 8px #FFD700;
    z-index: 10;
}

@keyframes spark2 {
    0%, 100% { 
        opacity: 0; 
        transform: translate(0, 0) scale(0);
    }
    15% { 
        opacity: 1; 
        transform: translate(-8px, -3px) scale(1.2);
    }
    30% { 
        opacity: 0; 
        transform: translate(-15px, -8px) scale(0);
    }
}

/* RAIOS DE ENERGIA - Linha 1 */
.logo-img .logo-images-container::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #FFD700, transparent);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation: energyRay1 4s ease-in-out infinite;
    opacity: 0;
    box-shadow: 0 0 10px #FFD700;
}

@keyframes energyRay1 {
    0%, 100% { opacity: 0; height: 20px; }
    5% { opacity: 1; height: 50px; }
    10% { opacity: 0; height: 20px; }
}

/* RAIOS DE ENERGIA - Linha 2 */
.logo-img .logo-images-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, #FF6B35, transparent);
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    animation: energyRay2 3.5s ease-in-out infinite 1s;
    opacity: 0;
    box-shadow: 0 0 10px #FF6B35;
}

@keyframes energyRay2 {
    0%, 100% { opacity: 0; width: 20px; }
    7% { opacity: 1; width: 50px; }
    14% { opacity: 0; width: 20px; }
}

/* PARTÍCULAS VOANDO */
.logo-img:hover::before {
    animation: rotateGear 10s linear infinite, sparkFly 2s ease-out infinite;
}

@keyframes sparkFly {
    0% { 
        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) 
                drop-shadow(0 0 30px rgba(255, 107, 53, 0.6));
    }
    100% { 
        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    }
}

.logo-images-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    background: white;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.1),
        0 0 30px rgba(255, 107, 53, 0.3);
}

.logo-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-main {
    opacity: 1;
}

.logo-secondary {
    opacity: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(255, 107, 53, 0.4),
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 70px rgba(255, 107, 53, 0.3);
    border-color: var(--accent);
}

.logo-img:hover::before {
    border-color: var(--accent);
    animation-duration: 10s;
}

.logo-img:hover::after {
    border-color: var(--orange);
    animation-duration: 8s;
}

/* ======================
   TEXTO DO HERO
====================== */
header.hero h1 { 
    font-size: 2.8rem; 
    color: white; 
    font-weight: 800; 
    letter-spacing: 1px; 
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header.hero p.lead { 
    color: rgba(255,255,255,0.9); 
    font-size: 1.2rem; 
    max-width: 820px;
    font-weight: 300;
    margin-top: 10px;
}

header.hero p.sub-lead {
    color: var(--orange);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ======================
   NAVEGAÇÃO PRINCIPAL
====================== */
nav.main-nav { 
    display: flex; 
    justify-content: center; 
    margin-top: 36px;
    position: relative;
    z-index: 2;
}

nav.main-nav ul { 
    display: flex; 
    gap: 18px; 
    list-style: none; 
    align-items: center; 
    flex-wrap: wrap; 
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

nav.main-nav a {
    text-decoration: none; 
    color: white; 
    font-weight: 600; 
    padding: 10px 16px; 
    border-radius: 10px;
    transition: all var(--transition);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

nav.main-nav a:hover { 
    background: rgba(255,255,255,0.15); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav.main-nav a.active { 
    color: var(--orange); 
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 -2px 0 0 var(--orange);
}

nav.main-nav a.admin-link {
    background: linear-gradient(45deg, var(--orange), var(--orange-light));
    color: white;
    font-weight: 700;
}

nav.main-nav a.admin-link:hover {
    background: linear-gradient(45deg, var(--orange-light), var(--orange));
    transform: translateY(-2px) scale(1.05);
}

/* Section default styling */
section { padding: 40px 0; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { 
    display: inline-block; 
    padding-bottom: 10px; 
    position: relative;
    font-size: 2rem;
    color: var(--primary);
}

.section-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 8px;
}

.section-title h2::after { 
    content: ""; 
    display: block; 
    height: 4px; 
    width: 90px; 
    margin: 8px auto 0; 
    border-radius: 3px; 
    background: linear-gradient(90deg, var(--orange), rgba(255, 107, 53, 0.7)); 
}

/* ======================
   SOBRE NÓS SECTION
====================== */
.about-section {
    background: linear-gradient(135deg, rgba(15, 48, 88, 0.9) 0%, rgba(30, 74, 130, 0.9) 100%), url('assets/img/foto1.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    padding: 40px 0;
}

.about-preview {
    text-align: center;
    padding: 30px;
}

.about-preview p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 25px;
    color: rgba(255,255,255,0.95);
}

.show-about-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.show-about-btn:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.show-about-btn i {
    margin-right: 8px;
}

.about-full-content {
    padding: 40px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.about-highlight {
    background: rgba(255, 107, 53, 0.2);
    border-left: 4px solid var(--orange);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.about-highlight p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.about-highlight i {
    color: var(--orange);
    margin-right: 10px;
}

.back-about-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.back-about-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.back-about-btn i {
    margin-right: 8px;
}

/* ======================
   SERVIÇOS - CARDS ALINHADOS
====================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.card {
    background: white;
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(15, 48, 88, 0.15);
    border-color: var(--accent);
}

.card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 2.5rem;
}

.card h3 i {
    color: var(--orange);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ======================
   CONTATO - LAYOUT HORIZONTAL
====================== */
.contact-section {
    background: white;
    border-radius: 16px;
    padding: 50px 0;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.contact-item-horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 2px solid var(--glass-border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item-horizontal::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    transition: width 0.3s ease;
}

.contact-item-horizontal.whatsapp::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-item-horizontal.instagram::before {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

.contact-item-horizontal.maps::before {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.contact-item-horizontal.email::before {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.contact-item-horizontal:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.contact-item-horizontal:hover::before {
    width: 100%;
    opacity: 0.08;
}

.contact-icon-horizontal {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-icon-horizontal {
    transform: scale(1.1) rotate(5deg);
}

.contact-item-horizontal.whatsapp .contact-icon-horizontal {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.contact-item-horizontal.instagram .contact-icon-horizontal {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
    color: white;
}

.contact-item-horizontal.maps .contact-icon-horizontal { 
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
}

.contact-item-horizontal.email .contact-icon-horizontal { 
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
}

.contact-text-horizontal {
    flex: 1;
}

.contact-text-horizontal strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 700;
}

.contact-text-horizontal p {
    margin: 5px 0;
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.contact-text-horizontal small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-hint-horizontal {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-hint-horizontal i {
    font-size: 1rem;
}

/* ======================
   MODAL MODERNO
====================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 48, 88, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--glass-border);
    text-align: center;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--orange);
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--orange);
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content > p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.modal-features {
    margin: 30px 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--bg);
    border-radius: 12px;
    border-left: 4px solid var(--orange);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

.feature-item i {
    color: var(--orange);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--primary);
    font-weight: 500;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

.modal-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    margin: 25px auto;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(15, 48, 88, 0.2);
    max-width: 90%;
}

.modal-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin: 25px auto;
    max-width: 90%;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(15, 48, 88, 0.1);
}

.benefit-item i {
    color: var(--orange);
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

/* ======================
   BOTÕES FLUTUANTES
====================== */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 48, 88, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(15, 48, 88, 0.6);
}

.back-to-top i {
    color: white;
    font-size: 1.5rem;
}

/* WHATSAPP À ESQUERDA */
.whatsapp-robot {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9998;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-robot:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-robot i {
    color: white;
    font-size: 2.2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ROBÔ DE IA À DIREITA */
.ai-robot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(15, 48, 88, 0.4);
    cursor: pointer;
    z-index: 9998;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ai-robot:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(15, 48, 88, 0.6);
    animation: none;
}

.ai-robot i {
    color: white;
    font-size: 2.2rem;
}

/* CHAT DE IA */
.ai-chat {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    border: 3px solid var(--glass-border);
}

.ai-chat.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-close {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.ai-chat-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg);
}

.ai-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
}

.ai-message.user {
    background: var(--accent);
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message.bot {
    background: white;
    color: var(--primary);
    border: 2px solid var(--glass-border);
}

.ai-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.ai-input-area {
    padding: 15px;
    background: white;
    border-top: 2px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.ai-input-area input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-input-area input:focus {
    border-color: var(--accent);
}

.ai-input-area button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(15, 48, 88, 0.3);
}

/* ======================
   FOOTER
====================== */
footer { 
    background: white;
    border-radius: 16px 16px 0 0;
    margin-top: 40px; 
    padding: 40px 28px; 
    text-align: center; 
    color: var(--muted);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-inner { 
    display: flex; 
    justify-content: space-around; 
    gap: 30px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    margin-bottom: 30px;
}

.footer-brand {
    text-align: center;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-slogan p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-slogan i {
    color: var(--orange);
    margin-right: 5px;
}

.footer-contact,
.footer-social {
    text-align: left;
}

.footer-contact h4,
.footer-social h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-contact p {
    color: var(--muted);
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--orange);
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0;
}

.footer-bottom strong {
    color: var(--primary);
}

.footer-dev {
    color: var(--orange) !important;
    font-weight: 600 !important;
}

.footer-dev i {
    margin-right: 5px;
}

/* ======================
   ANIMAÇÕES
====================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 980px) {
    nav.main-nav ul { gap: 12px; }
    .logo-img { width: 180px; height: 180px; }
    .logo-images-container { width: 130px; height: 130px; }
    .contact-grid-horizontal { grid-template-columns: 1fr; }
    header.hero { min-height: 400px; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    header.hero h1 { font-size: 2.2rem; }
    header.hero p.lead { font-size: 1rem; }
    nav.main-nav ul { flex-direction: column; gap: 6px; width: 100%; }
    
    .contact-grid-horizontal { grid-template-columns: 1fr; }
    
    .contact-item-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-text-horizontal {
        text-align: center;
    }
    
    .footer-inner { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center;
    }
    
    .footer-contact,
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .news-container { animation: scrollNews 40s linear infinite; }
    .news-item { padding: 0 15px; font-size: 0.85rem; }
    .news-status { display: none; }
    
    .whatsapp-robot, .back-to-top, .ai-robot { 
        bottom: 20px; 
        width: 65px;
        height: 65px;
    }
    .whatsapp-robot { left: 20px; }
    .ai-robot { right: 20px; }
    .back-to-top { bottom: 110px; right: 20px; }
    
    .ai-chat {
        width: 90%;
        right: 5%;
        bottom: 110px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    header.hero h1 { font-size: 1.9rem; }
    .section-title h2 { font-size: 1.6rem; }
    .services-grid { grid-template-columns: 1fr; }
    
    .news-banner { padding: 12px 0; }
    .news-container { animation: scrollNews 30s linear infinite; }
    .news-item { font-size: 0.8rem; padding: 0 10px; }
    
    .whatsapp-robot, .back-to-top, .ai-robot { 
        width: 55px; 
        height: 55px; 
    }
    .whatsapp-robot i, .ai-robot i { font-size: 1.8rem; }
    .back-to-top i { font-size: 1.2rem; }
    
    .contact-icon-horizontal {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .ai-chat {
        width: 95%;
        right: 2.5%;
        height: 400px;
    }
}
