:root {
    --bg-dark: #111820; 
    --bg-light: #f4f6f9;
    --gold: #d4af37; 
    --gold-hover: #b5952f;
    --silver: #e0e0e0; 
    --text-dark: #333333;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--text-light); color: var(--text-dark); line-height: 1.6; user-select: none; overflow-x: hidden; }

/* OTIMIZAÇÃO: Renderiza as seções apenas quando chegam na tela */
#servicos, #diferenciais, #parceiros, #diagnostico, footer { content-visibility: auto; contain-intrinsic-size: 500px; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }

.section-title { text-align: center; font-size: clamp(2rem, 5vw, 2.5rem); color: var(--bg-dark); margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; width: 60px; height: 4px; background-color: var(--gold); display: block; margin: 10px auto 0; border-radius: 2px; }
.sub-title-gold { color: var(--gold); font-size: clamp(1.5rem, 4vw, 1.8rem); margin-bottom: 15px; }

/* Botões */
button, .btn-nav, .btn-secondary, .btn-primary { cursor: pointer; font-weight: 600; border: none; border-radius: 5px; transition: var(--transition); text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background-color: var(--gold); color: var(--bg-dark); padding: 15px 30px; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { background-color: var(--gold-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-light); border: 2px solid var(--gold); padding: 13px 30px; font-size: 1.1rem; }
.btn-secondary:hover { background-color: var(--gold); color: var(--bg-dark); }

/* Header */
header { background-color: var(--bg-dark); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { height: 60px; width: auto; object-fit: contain; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--silver); text-decoration: none; font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.btn-nav { background-color: var(--gold); color: var(--bg-dark) !important; padding: 10px 20px; }
.menu-toggle { display: none; color: var(--gold); font-size: 1.8rem; cursor: pointer; }

/* Hero - OTIMIZADO COM IMAGEM MAIS LEVE */
#hero { background: linear-gradient(rgba(17, 24, 32, 0.9), rgba(17, 24, 32, 0.9)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1280&q=60') center/cover; min-height: 100vh; display: flex; align-items: center; text-align: center; color: var(--text-light); padding-top: 90px; }
.hero-content h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 20px; color: var(--silver); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); line-height: 1.2; }
.hero-content p { font-size: clamp(1rem, 3vw, 1.2rem); margin-bottom: 40px; color: var(--silver); }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Seção 3D Flutuante */
.section-3d { background-color: var(--bg-dark); padding: 60px 0; overflow: hidden; }
.floating-logo-3d { max-width: 100%; width: 350px; height: auto; filter: drop-shadow(0px 20px 30px rgba(212, 175, 55, 0.4)); animation: float 4s ease-in-out infinite; object-fit: contain; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* Diferenciais e Textos */
.about-content { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #555; }
.diferenciais-list { list-style: none; max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.diferenciais-list li { margin-bottom: 15px; display: flex; align-items: center; }
.diferenciais-list i { color: var(--gold); font-size: 1.5rem; margin-right: 15px; flex-shrink: 0; }
.cta-box { background: var(--bg-light); padding: 30px; border-radius: 10px; border-left: 5px solid var(--gold); }

/* Serviços */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--text-light); padding: 40px 20px; border-radius: 10px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--gold); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.service-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

/* Carrossel Infinito - VELOCIDADE AJUSTADA PARA 80 SEGUNDOS */
.carousel-wrapper { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.partners-carousel { display: flex; gap: 20px; width: max-content; animation: scrollCarousel 80s linear infinite; }
.partners-carousel:hover { animation-play-state: paused; }

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.partner-card { width: 280px; background: var(--text-light); border-radius: 10px; padding: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.partner-banner { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 15px; border: 1px solid #eee; }
.btn-partner { background-color: #25D366; color: white; padding: 12px; border-radius: 5px; text-decoration: none; font-weight: bold; display: block; margin-top: 10px; font-size: 0.95rem; }
.btn-partner.shopee { background-color: #ee4d2d; }
.btn-partner.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-partner.address { background-color: var(--bg-dark); color: var(--gold); cursor: default; }

/* Formulário */
.form-container { max-width: 600px; margin: 0 auto; background: var(--bg-light); padding: 40px; border-radius: 10px; }
.input-group { margin-bottom: 20px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; outline: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--gold); }
.btn-block { width: 100%; }

/* WhatsApp Flutuante */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; width: 60px; height: 60px; line-height: 60px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1000; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe57; color: #fff; }

/* Footer & Cookies */
footer { background-color: var(--bg-dark); color: var(--silver); padding-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 20px; object-fit: contain; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--silver); text-decoration: none; display: block; margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 20px 0; background-color: #0a0f14; font-size: 0.9rem; }
.dev-credit { margin-top: 10px; }
.dev-credit a { color: var(--gold); text-decoration: none; font-weight: bold; transition: var(--transition); }
.dev-credit a:hover { color: var(--text-light); }

.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: var(--bg-dark); color: var(--silver); padding: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 1500; transition: bottom 0.5s ease; box-shadow: 0 -5px 15px rgba(0,0,0,0.5); }
.cookie-banner.show { bottom: 0; }
.btn-cookie { background-color: var(--gold); color: var(--bg-dark); padding: 10px 20px; }

/* Modal de Conversão (Google Ads) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 32, 0.85); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--text-light); padding: 40px 30px; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; position: relative; transform: translateY(-30px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-top: 5px solid var(--gold); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; cursor: pointer; color: #aaa; transition: var(--transition); line-height: 1; }
.close-modal:hover { color: var(--bg-dark); transform: scale(1.1); }
.modal-icon-large { font-size: 4.5rem; color: #25D366; margin-bottom: 10px; filter: drop-shadow(0px 5px 10px rgba(37, 211, 102, 0.3)); }

/* Responsividade Mobile */
@media (max-width: 768px) {
    .nav-links { position: absolute; top: 90px; left: -100%; flex-direction: column; background-color: var(--bg-dark); width: 100%; text-align: center; transition: 0.3s; padding: 20px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.3); }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    .menu-toggle { display: block; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; line-height: 55px; font-size: 32px; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
    .form-container { padding: 20px; }
}