:root {
  /* Nova Paleta de Azuis */
  --primary: #0a2540;       /* Azul marinho muito escuro (Texto principal, fundos fortes) */
  --secondary: #293353;     /* Azul royal fechado (Subtítulos, elementos secundários) */
  --accent: #3b82f6;        /* Azul vibrante (Botões principais, destaques ativos) */
  --accent-light: #93c5fd;  /* Azul céu claro (Hovers, elementos decorativos leves) */
  
  /* Variações de Fundo e Neutros ajustados para azul */
  --light: #f0f7ff;         /* Azul gelo curtíssimo (Fundos de seção leves) */
  --dark: #041120;          /* Quase preto azulado (Texto forte) */
  --gray: #475569;          /* Cinza azulado (Texto secundário) */
  --border: #e0e7ff;        /* Azul pálido para bordas */
  --white: #ffffff;
  
  /* UI Elements */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(10, 37, 64, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); line-height: 1.7; background: var(--white); overflow-x: hidden; }

/* Barra de Idioma */
.lang-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--primary); z-index: 1000; padding: 8px 0; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.lang-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 20px; flex-wrap: wrap; }
.lang-btn { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 6px 16px; border-radius: 20px; cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: all 0.3s ease; }
.lang-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.lang-label { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-right: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* Hero Section - Gradiente Atualizado */
/* 1. Assegura que a secção hero serve de contentor de posicionamento */
.hero { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  color: white; 
  padding: 100px 30px 60px; 
  position: relative; /* CRUCIAL */
  overflow: hidden;   /* CRUCIAL: impede que o vídeo transborde da secção */
  background: #0a2540; 
}

/* 2. Força o vídeo a cobrir toda a área do hero por baixo de tudo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 3. Camada de sombreamento/overlay sobre o vídeo para legibilidade do texto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.65);
  z-index: 1;
}

/* 4. Garante que todos os elementos textuais, logos e botões ficam na camada superior */
.hero > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}
/* Força a imagem de fallback a comportar-se como o vídeo de fundo */
/* Garante que a imagem de fallback cobre o ecrã inteiro se o vídeo falhar no mobile */
.hero-video img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(160deg, #0a2540 0%, #1e40af 50%, #3b82f6 100%); color: white; padding: 100px 30px 60px; position: relative; overflow: hidden; }*/
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%); pointer-events: none; }
.hero-logo { width: 380px; max-width: 85%; margin-bottom: 35px; filter: brightness(1.1) contrast(1.1); position: relative; z-index: 2; }
.hero-badge { background: var(--glass); backdrop-filter: blur(10px); padding: 8px 28px; border-radius: 50px; font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.25); position: relative; z-index: 2; color: var(--accent-light); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; line-height: 1.2; position: relative; z-index: 2; text-shadow: 0 2px 20px rgba(0,0,0,0.3); max-width: 800px; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.9; margin-bottom: 40px; max-width: 600px; position: relative; z-index: 2; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }

/* Botões */
.btn { padding: 14px 36px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; border: none; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }
.btn-primary:hover { background: #60a5fa; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.scroll-indicator { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
.scroll-indicator svg { width: 30px; height: 30px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 2; }
.hero-footer { position: absolute; bottom: 25px; left: 0; right: 0; text-align: center; font-size: 0.78rem; opacity: 0.5; z-index: 2; }

/* Seções Gerais */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 30px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary); margin-bottom: 16px; text-align: center; }
.section-subtitle { text-align: center; color: var(--gray); max-width: 700px; margin: 0 auto 50px; font-size: 1.05rem; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h3 { color: var(--secondary); font-size: 1.3rem; margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 14px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.pillar { background: linear-gradient(135deg, var(--light) 0%, #e0f2fe 100%); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; text-align: center; transition: all 0.3s ease; }
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.1); }
.pillar-icon { font-size: 1.8rem; margin-bottom: 8px; color: var(--accent); } /* Ícone agora é azul */
.pillar-title { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.about-visual { background: linear-gradient(135deg, #0a2540 0%, #1e40af 100%); border-radius: 20px; padding: 40px; color: white; text-align: center; position: relative; overflow: hidden; }
.about-visual::before { content: ''; position: absolute; top: -30%; right: -20%; width: 70%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); }
.about-visual h4 { color: var(--accent-light); font-size: 1.1rem; margin-bottom: 20px; position: relative; z-index: 1; }
.stats-row { display: flex; justify-content: space-around; gap: 20px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent-light); display: block; }
.stat-label { font-size: 0.78rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }



/* Serviços */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: white; border: 2px solid var(--border); border-radius: 16px; padding: 32px 26px; transition: all 0.35s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--accent)); transform: scaleX(0); transition: transform 0.35s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--accent-light); box-shadow: 0 12px 40px rgba(30, 64, 175, 0.08); transform: translateY(-5px); }
.service-icon { font-size: 2.2rem; margin-bottom: 16px; color: var(--secondary); } /* Ícone azul */
.service-title { font-weight: 700; color: var(--primary); font-size: 1.05rem; margin-bottom: 10px; }
.service-desc { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }
.service-features { list-style: none; margin: 16px 0 0 0; padding: 0; }
.service-features li { padding: 5px 0; font-size: 0.85rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.service-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* Metodologia */
.method-timeline { position: relative; padding-left: 40px; }
.method-timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--secondary), var(--accent-light)); border-radius: 3px; }
.method-phase { position: relative; margin-bottom: 36px; background: var(--light); border-radius: 14px; padding: 28px 28px 28px 56px; border: 1px solid var(--border); }
.method-phase::before { content: attr(data-num); position: absolute; left: -28px; top: 28px; width: 40px; height: 40px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; border: 4px solid white; box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3); }
.method-phase-title { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 6px; }
.method-phase-week { display: inline-block; background: var(--secondary); color: white; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; margin-bottom: 12px; }
.method-phase-desc { color: var(--gray); font-size: 0.93rem; }
.method-phase-desc ul { margin: 8px 0 0 18px; }
.method-phase-desc li { margin-bottom: 5px; }

/* Entregáveis */
.deliver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.deliver-card { background: white; border: 2px solid var(--border); border-radius: 14px; padding: 26px 24px; transition: all 0.3s ease; }
.deliver-card:hover { border-color: var(--accent-light); box-shadow: 0 8px 28px rgba(30, 64, 175, 0.06); }
.deliver-icon { font-size: 1.6rem; margin-bottom: 12px; color: var(--accent); }
.deliver-title { font-weight: 700; color: var(--primary); font-size: 1rem; margin-bottom: 10px; }
.deliver-desc { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

/* Riscos (Mantendo semântica de cores, mas suavizando com tons azulados nos fundos) */
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.risk-card { padding: 22px 24px; border-radius: 14px; border: 2px solid; transition: all 0.3s ease; }
.risk-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.risk-card.high { background: #fff5f5; border-color: #fc8181; } /* Mantido vermelho para alerta */
.risk-card.medium { background: #fffbeb; border-color: #fbbf24; } /* Amarelo ajustado */
.risk-card.low { background: #f0fdf4; border-color: #86efac; } /* Verde ajustado */
.risk-card.mitigated { background: var(--light); border-color: var(--accent-light); } /* Azul para mitigado */
.risk-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px; }
.risk-card.high .risk-label { color: #c53030; }
.risk-card.medium .risk-label { color: #b45309; }
.risk-card.low .risk-label { color: #166534; }
.risk-card.mitigated .risk-label { color: var(--secondary); }
.risk-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--dark); }
.risk-desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 10px; }
.risk-mitigation { font-size: 0.82rem; color: var(--secondary); font-weight: 600; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ROI Section */
.roi-section { background: linear-gradient(135deg, var(--light) 0%, #e0f2fe 100%); border-radius: 20px; padding: 50px 40px; margin: 30px 0; border: 1px solid var(--border); }
.roi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.roi-item { background: white; border-radius: 14px; padding: 28px 22px; text-align: center; border: 1px solid var(--border); transition: all 0.3s ease; }
.roi-item:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1); transform: translateY(-4px); }
.roi-metric { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.roi-label { font-size: 0.88rem; color: var(--gray); font-weight: 500; }
.roi-change { font-size: 0.78rem; color: var(--secondary); margin-top: 6px; font-weight: 600; }

/* Preços */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; align-items: start; }
.pricing-card { background: white; border: 2px solid var(--border); border-radius: 18px; padding: 36px 28px; text-align: center; position: relative; transition: all 0.35s ease; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(10, 37, 64, 0.1); border-color: var(--accent-light); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(180deg, #f0f7ff 0%, white 60%); transform: scale(1.03); box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; padding: 5px 18px; border-radius: 20px; text-transform: uppercase; }
.pricing-name { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 12px; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin: 10px 0; }
.pricing-price span { font-size: 0.9rem; color: var(--gray); font-weight: 400; }
.pricing-desc { font-size: 0.88rem; color: var(--gray); margin: 14px 0 20px; min-height: 40px; }
.pricing-features { list-style: none; text-align: left; font-size: 0.88rem; margin-top: 18px; }
.pricing-features li { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; color: var(--gray); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--accent); font-weight: 700; }
.pricing-features .cross { color: #cbd5e0; }
.pricing-card .btn { width: 100%; margin-top: 25px; padding: 12px; }
.pricing-card.featured .btn { background: var(--primary); }
.pricing-card.featured .btn:hover { background: var(--secondary); }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; text-align: center; padding: 80px 30px; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -40%; right: -15%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); }
.cta-section h2 { color: white; border: none; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 30px; font-size: 1.05rem; position: relative; z-index: 1; color: var(--accent-light); }
.cta-section .btn-primary { background: var(--white); color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.cta-section .btn-primary:hover { background: var(--accent-light); color: var(--primary); transform: translateY(-2px); }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { color: var(--secondary); margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-icon { font-size: 1.3rem; margin-top: 2px; color: var(--accent); }
.contact-detail strong { color: var(--primary); display: block; margin-bottom: 2px; }
.contact-detail span { color: var(--gray); font-size: 0.92rem; }
.contact-form { background: var(--white); border-radius: 16px; padding: 32px; border: 1px solid var(--border); box-shadow: 0 10px 30px var(--glass-dark); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.3s; background: #fcfdfe; color: var(--dark); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; background: var(--accent); color: white; border: none; padding: 14px; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); }
.form-submit:hover { background: var(--secondary); transform: translateY(-1px); box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); text-align: center; padding: 30px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer a { color: var(--accent-light); text-decoration: none; opacity: 0.8; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* Boxes de Informação */
.info-box { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 18px 0; }
.info-box-title { font-weight: 700; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-box-title svg { color: var(--accent); }

/* Responsividade e Animações */
@media (max-width: 768px) { .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; } 
  .pillars { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 30px; }
  .pricing-card.featured { transform: none; margin-top: 10px; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .section { padding: 50px 20px; }
  .hero { padding-top: 120px; }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none; }
.fade-in.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.clickable-stat { cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; padding: 10px; border-radius: 6px; }
.clickable-stat:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px);}
.stat-hint { display: block; font-size: 0.75rem; color: #90cdf4; margin-top: 5px; opacity: 0.8; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #fff; color: #333; padding: 30px; width: 90%; max-width: 450px; border-radius: 8px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #333; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: #2563eb; color: #ffffff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: #1d4ed8; transform: translateY(-3px); }

.compact-pricing-table {width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; border: 1px solid #e2e8f0; /* Opcional: rebordo exterior à tabela */ }
.compact-pricing-table thead tr { background-color: #f7fafc; border-bottom: 2px solid #e2e8f0; color: #2d3748; }
.compact-pricing-table th { padding: 6px 7px; border-right: 1px solid #e2e8f0; }
.compact-pricing-table th:last-child { border-right: none; }
.compact-pricing-table tbody tr { border-bottom: 1px solid #e2e8f0; /* Linha horizontal mais nítida entre linhas */ }
.compact-pricing-table td { padding: 6px 7px; color: #4a5568; }
.compact-pricing-table .service-name { border-right: 1px solid #e2e8f0; /* Linha vertical visível em todas as linhas da tabela */ font-weight: 500; color: #2d3748; width: 40%; }