/* ============================================
   1. VARIÁVEIS E SETUP (IDENTIDADE VISUAL)
   ============================================ */
:root {
    /* Cores da Marca */
    --primary: #58334E;   /* Roxo Profundo FIGS */
    --secondary: #F4B731; /* Amarelo/Dourado FIGS */

    /* Variações para Contraste */
    --primary-dark: #3E2236;
    --secondary-hover: #E0A018;
    --text-on-primary: #FFFFFF;
    --text-on-secondary: #3E2236; /* Roxo bem escuro para ler no amarelo */

    /* Neutros */
    --bg-body: #FDFBFE;
    --bg-surface: #FFFFFF;
    --text-main: #1E121D;
    --text-light: #555555;
    --border: rgba(88, 51, 78, 0.15);

    /* Efeitos */
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, #2A1022 100%);
    --shadow-sm: 0 4px 6px rgba(88, 51, 78, 0.05);
    --shadow-lg: 0 20px 40px rgba(88, 51, 78, 0.15);
    --radius-md: 16px;

    /* Tipografia */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   2. UTILITÁRIOS GERAIS
   ============================================ */
.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    font-weight: 700; 
    color: var(--primary); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); }

.hidden { display: none !important; }
.full-width { width: 100%; }

/* ============================================
   3. BOTÕES (LEGIBILIDADE MÁXIMA)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700; /* Texto mais grosso para leitura */
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Botão Principal: Amarelo com Texto Roxo Escuro */
.btn-primary {
    background-color: var(--secondary);
    color: var(--text-on-secondary);
    box-shadow: 0 4px 15px rgba(244, 183, 49, 0.4);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 183, 49, 0.6);
}

/* Botão Outline: Borda Branca (Hero) -> Vira Branco no Hover */
.btn-outline {
    background: rgba(255,255,255,0.1); /* Leve fundo para destacar do vídeo */
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: #FFFFFF;
    color: var(--primary);
    border-color: #FFFFFF;
}

/* Botão Light: Fundo Branco com Borda */
.btn-light {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn-light:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ============================================
   4. NAVBAR
   ============================================ */
.nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.nav-brand {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-brand img {
    height: 50px;
    width: auto;  
    object-fit: contain;
    transition: 0.3s;
}

.nav-brand:hover img {
    transform: scale(1.05);
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800; color: var(--primary);
    text-decoration: none; letter-spacing: -1px;
}
.nav-brand span { color: var(--secondary); }

.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-menu a {
    text-decoration: none; color: var(--text-main); font-weight: 600;
    transition: 0.3s; font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--primary); }

/* Botão CTA do Menu */
.nav-cta {
    background: var(--primary) !important;
    color: #FFFFFF !important; /* Texto branco no fundo roxo */
    padding: 10px 24px; border-radius: 50px; font-weight: 700 !important;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.nav-cta:hover { 
    background: var(--secondary) !important; 
    color: var(--text-on-secondary) !important; 
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle .bar { width: 25px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; }

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding-top: 80px;
}

.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(88, 51, 78, 0.85), rgba(30, 18, 29, 0.9));
    z-index: -1;
}

.hero-content { z-index: 1; max-width: 900px; animation: fadeInUp 1s ease; padding: 0 20px; }

.badge-hero {
    display: inline-block; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3); padding: 8px 20px;
    border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; margin-bottom: 25px; color: var(--secondary);
    letter-spacing: 1px;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.gradient-text {
    background: linear-gradient(to right, var(--secondary), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.95; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 0.8rem; opacity: 0.8; animation: bounce 2s infinite;
}

/* ============================================
   6. FEATURES
   ============================================ */
.features { padding: 60px 0; margin-top: -60px; position: relative; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }

.feature-card {
    background: var(--bg-surface); padding: 30px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-lg); transition: 0.3s;
    border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.feature-card i {
    font-size: 2rem; color: var(--secondary); margin-bottom: 20px;
    background: rgba(244, 183, 49, 0.1); width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-left: auto; margin-right: auto;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }

/* ============================================
   7. SERVIÇOS
   ============================================ */
.services { padding: 100px 0; background: var(--bg-body); }

.services-highlight { margin-bottom: 50px; }
.highlight-card {
    background: var(--primary); color: #fff; border-radius: var(--radius-md);
    padding: 50px; display: flex; align-items: center; justify-content: space-between;
    gap: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
    transition: 0.3s;
}
.highlight-card:hover { transform: scale(1.01); box-shadow: 0 25px 50px rgba(88, 51, 78, 0.3); }

.highlight-content { z-index: 2; max-width: 600px; text-align: left; }
.highlight-content h3 { color: #fff; font-size: 2.2rem; margin-bottom: 15px; }
.highlight-content p { color: rgba(255,255,255,0.9); margin-bottom: 25px; font-size: 1.1rem; }
.highlight-content .tag {
    background: var(--secondary); color: var(--text-on-secondary); padding: 5px 15px;
    border-radius: 20px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
    margin-bottom: 15px; display: inline-block;
}

.check-list { list-style: none; margin-bottom: 30px; }
.check-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 500; }
.check-list li i { color: var(--secondary); }

.highlight-visual {
    font-size: 10rem; color: rgba(255,255,255,0.05); position: absolute;
    right: -20px; bottom: -20px; transform: rotate(-15deg);
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.service-item {
    background: var(--bg-surface); padding: 30px; border-radius: var(--radius-md);
    border: 1px solid var(--border); transition: 0.3s; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative;
}
.service-item:hover {
    border-color: var(--secondary); transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}
.service-item i {
    font-size: 2.5rem; color: var(--primary); margin-bottom: 20px;
    transition: 0.3s;
}
.service-item:hover i { color: var(--secondary); transform: scale(1.1); }
.service-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-item p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; }

.learn-more {
    font-size: 0.9rem; font-weight: 700; color: var(--secondary-hover); /* Cor mais escura para leitura */
    display: flex; align-items: center; gap: 5px; opacity: 0; transform: translateY(10px);
    transition: 0.3s;
}
.service-item:hover .learn-more { opacity: 1; transform: translateY(0); }

/* ============================================
   8. PLANOS
   ============================================ */
.plans { padding: 100px 0; background: var(--bg-surface); }

.toggle-container {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 50px;
    background: #F2EFF2; padding: 5px; border-radius: 50px;
    width: fit-content; margin-left: auto; margin-right: auto;
}
.toggle-btn {
    padding: 12px 30px; border-radius: 40px; border: none; background: transparent;
    cursor: pointer; font-weight: 600; color: var(--text-light); transition: 0.3s;
}
.toggle-btn.active {
    background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(88, 51, 78, 0.2);
}

.plans-grid { display: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.plans-grid.active { display: grid; animation: fadeIn 0.5s ease; }

.plan-card {
    background: #F9F5F8; padding: 40px 30px; border-radius: var(--radius-md);
    text-align: center; border: 1px solid transparent; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}
.plan-card:hover { background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--border); }

.plan-card.featured {
    background: #FFFCF5; border: 2px solid var(--secondary); transform: scale(1.05); z-index: 2;
}
.plan-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.plan-card .badge {
    background: #E0D8DE; color: var(--primary); padding: 5px 15px;
    border-radius: 20px; font-weight: 600; font-size: 0.8rem; margin-bottom: 15px; display: inline-block;
}
.plan-card.featured .badge-popular {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--secondary); color: var(--text-on-secondary); padding: 5px 20px;
    border-radius: 20px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
}

.plan-card .price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; opacity: 0.8; }

.plan-card ul { list-style: none; margin: 20px 0 30px; text-align: left; width: 100%; }
.plan-card ul li {
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-main);
}
.plan-card ul li i { color: var(--secondary); margin-top: 4px; flex-shrink: 0; }

/* ============================================
   9. FERRAMENTAS & PORTFÓLIO
   ============================================ */
.tools-section { padding: 60px 0; background: #F2EFF2; border-top: 1px solid var(--border); }
.tools-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }

.tool-btn {
    background: #fff; border: 1px solid var(--primary); padding: 12px 20px;
    border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--primary);
    transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.tool-btn:hover { background: var(--primary); color: #fff; }

.portfolio { padding: 100px 0; background: var(--bg-body); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.video-card {
    aspect-ratio: 9/16; background: #000; border-radius: var(--radius-md);
    position: relative; overflow: hidden; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.video-card:hover { transform: scale(1.02); }
.play-icon { font-size: 3rem; color: #fff; opacity: 0.8; z-index: 2; }
.video-card p { position: absolute; bottom: 15px; left: 15px; color: #fff; font-weight: 600; z-index: 2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* ============================================
   10. ORÇAMENTO
   ============================================ */
.budget { padding: 100px 0; background: var(--gradient-hero); color: #fff; }
.budget-container {
    max-width: 900px; margin: 0 auto; background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px); padding: 60px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-wrapper label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
.input-wrapper input, .input-wrapper textarea {
    width: 100%; padding: 14px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.95); font-family: var(--font-body); color: var(--text-main);
}
.input-wrapper input:focus, .input-wrapper textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(244, 183, 49, 0.5); }

.services-selection { background: rgba(0,0,0,0.2); padding: 25px; border-radius: 15px; margin-bottom: 25px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.chk-box { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.chk-box input { width: 18px; height: 18px; accent-color: var(--secondary); }

.smart-suggestion {
    background: var(--secondary); color: var(--text-on-secondary); padding: 15px;
    border-radius: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px;
    animation: slideUp 0.5s ease;
}
.smart-suggestion span { font-weight: 800; text-decoration: underline; }

/* ============================================
   11. FOOTER
   ============================================ */
footer { background: #150c14; color: #888; padding: 80px 0 30px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.footer-brand h3 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.footer-brand span { color: var(--secondary); }
.socials { margin-top: 20px; display: flex; gap: 15px; }
.socials a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; text-decoration: none; transition: 0.3s;
}
.socials a:hover { background: var(--secondary); color: var(--text-on-secondary); }
.footer-links a { display: block; color: #888; text-decoration: none; margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 30px; }

/* ============================================
   12. MODAL (DETALHES SERVIÇOS E FERRAMENTAS)
   ============================================ */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 18, 29, 0.8); backdrop-filter: blur(8px);
    z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff; padding: 40px; border-radius: 20px; width: 100%; max-width: 600px;
    position: relative; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease;
}
.modal-close {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-light); cursor: pointer;
}
.modal-close:hover { color: var(--primary); }

/* Estilos específicos para o conteúdo do modal de serviço */
.service-modal-content h3 { color: var(--primary); margin-bottom: 15px; }
.service-modal-content ul { list-style: none; text-align: left; }
.service-modal-content ul li { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; color: var(--text-main); }

/* ============================================
   13. ANIMAÇÕES & RESPONSIVIDADE
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 80px; left: 0; width: 100%; background: #fff;
        flex-direction: column; padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
    .nav-cta.desktop-only { display: none; }
    .mobile-only { display: block; }

    .hero h1 { font-size: 2.5rem; }
    .highlight-card { flex-direction: column; text-align: center; padding: 30px; }
    .highlight-visual { display: none; }

    .form-group-row { grid-template-columns: 1fr; }
    .tools-wrapper { flex-direction: column; text-align: center; }
    .tools-buttons { justify-content: center; }

    /* Centralização Mobile */
    .container { text-align: center; }
    .service-item { align-items: center; }
    .plan-card ul { text-align: left; } /* Mantém lista alinhada à esquerda para leitura */
    .plan-card ul li { justify-content: flex-start; }
    .check-list li { justify-content: center; }
}

@media (min-width: 769px) {
    .mobile-only { display: none; }
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25D366; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999;
    transition: 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
