:root {
  --app-primary: #384960; /* nova cor predominante */
  --app-primary-hover: #2f3a4d; /* tom levemente mais escuro para hover */
  --app-secondary: #384960; /* secundária igual à predominante conforme solicitado */
  --accent: #ff6e24; /* cor de destaque secundária (laranja) - corrigido para #ff6e24 */
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  padding-top: 70px;
  color: #000000; /* textos em fundos claros conforme solicitado */
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar.navbar-dark {
  background-color: var(--app-secondary) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* destacar o botão Solicitar Demonstração no header escuro apenas com texto laranja */
.navbar.navbar-dark .btn-light {
  color: var(--accent);
  background: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Navbar clara (header branco) */
.navbar.navbar-light {
  background: #ffffff;
}
.navbar.navbar-light .navbar-brand,
.navbar.navbar-light .nav-link {
  color: var(--app-primary);
}
.navbar.navbar-light .nav-link:hover {
  color: var(--app-primary-hover);
}
.navbar.navbar-light .navbar-toggler {
  border-color: rgba(56,73,96,0.08);
}

/* Translucent / blurred navbar when scrolled */
.navbar {
  transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
.navbar.navbar-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link {
  color: var(--app-primary);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--app-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--app-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(56, 73, 96, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--app-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 73, 96, 0.30);
}

.btn-outline-primary {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: #ffffff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(56, 73, 96, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 73, 96, 0.06);
  color: var(--app-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 73, 96, 0.08);
}

.hero-section h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--accent); /* título do hero em laranja */
}

.hero-section .lead {
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.8;
}

.hero-section img {
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Wrapper responsivo para vídeo no hero (16:9) */
.hero-media-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: #000; /* placeholder enquanto o vídeo carrega */
}

.hero-media-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stats Section */
.stats-section {
  background: var(--app-primary);
  color: white;
  padding: 3rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 500;
}

/* Client Logos */
.client-logo {
  height: 50px;
  margin: 20px;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

/* Cards on dark stats-section (clients adapted to dark layout) */
.stats-section .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.stats-section .card .card-body {
  color: #ffffff;
}
.stats-section .card small.text-white-50,
.stats-section p.text-white-50 {
  color: rgba(255,255,255,0.75) !important;
}
.stats-section .display-6 {
  color: var(--accent);
}
.stats-section h3 {
  color: #ffffff;
}
.stats-section .btn-accent {
  box-shadow: 0 6px 14px rgba(255,110,36,0.14);
}

/* Feature Cards */
.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--app-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(56, 73, 96, 0.18);
}

.feature-card .fa-3x {
  color: var(--accent); /* ícones da seção de funcionalidades em laranja */
}

/* Garantir que os ícones na seção de features fiquem em acento mesmo com utilitários bootstrap */
#features .feature-card .fa-3x {
  color: var(--accent);
}

/* Títulos principais em várias seções definidos para o acento laranja */
#features .fw-bold, .solutions-section-enhanced h2, #testimonials h2, #contact h2 {
  color: var(--accent);
}

/* Título principal da seção de soluções (mais específico para evitar efeitos colaterais) */
.solutions-section-enhanced h2 {
  color: var(--accent);
}

/* utilitário: texto/ícone em acento (força com specificity) */
.text-accent {
  color: var(--accent) !important;
}

/* Para a seção de features: manter ícones em acento, mas títulos e descrições em cor primária */
#features .feature-card .card-title,
#features .feature-card .card-text {
  color: var(--app-primary) !important;
}


/* Solutions Section */
.solutions-section-enhanced {
  background: #ffffff;
  padding: 80px 0 !important;
}

.solution-badge {
  display: inline-block;
  background: #ffffff; /* fundo branco */
  color: var(--app-primary); /* texto com a cor primária */
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--app-primary);
}

.solution-card-premium {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
}

.solution-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--app-primary);
}

.solution-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--app-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card-premium:hover::before {
  opacity: 1;
}

.solution-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card-premium:hover .solution-image-wrapper img {
  transform: scale(1.05);
}

.solution-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: var(--app-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(56, 73, 96, 0.18);
  z-index: 2;
}

.solution-content-wrapper {
  padding: 50px;
}

@media (max-width: 991px) {
  .solution-content-wrapper {
    padding: 40px 30px;
  }
}

.solution-category {
  display: inline-block;
  background: #f8f9fa;
  color: var(--app-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.benefit-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(3px);
  background: white;
  border-color: rgba(56, 73, 96, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent); /* ícones de benefício usam o acento laranja */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.benefit-text {
  flex: 1;
}

.benefit-text strong {
  display: block;
  color: var(--app-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.benefit-text p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.other-industries-card {
  background: var(--app-primary);
  color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(56, 73, 96, 0.14);
  position: relative;
  overflow: hidden;
}

.other-industries-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.other-industries-card h4 {
  color: white;
}

.other-industries-card .btn-outline-primary {
  border-color: white;
  color: white;
  font-weight: 600;
}

.other-industries-card .btn-outline-primary:hover {
  background: white;
  color: var(--app-primary);
  border-color: white;
}

/* garantir que o texto abaixo do título fique branco */
.other-industries-card p,
.other-industries-card .lead,
.other-industries-card .mb-0 {
  color: #ffffff !important;
}

/* btn-accent: botão utilitário para CTAs secundários que precisam do laranja */
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
}
.btn-accent:hover {
  background: #d6972f; /* tom ligeiramente mais escuro para hover */
  transform: translateY(-2px);
}

/* Outline do botão de login no header (variante primária) */
.btn-outline-app {
  color: var(--app-primary);
  border: 1px solid var(--app-primary);
  background: transparent;
}
.btn-outline-app:hover {
  background: var(--app-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Botão com fundo branco + borda primária (usado nas soluções) */
.btn-white-outline {
  background: #ffffff;
  color: var(--app-primary);
  border: 1px solid var(--app-primary);
}
.btn-white-outline:hover {
  background: #f8f9fa;
  color: var(--app-primary-hover);
  transform: translateY(-2px);
}

.solution-card {
  transition: all 0.3s ease;
}

.solution-card img {
  transition: transform 0.5s ease;
}

.solution-card:hover img {
  transform: scale(1.05);
}

/* Testimonials */
#testimonials {
  background: #fafafa;
}

.testimonial-card-new {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem 2rem 2rem;
  height: 100%;
  position: relative;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
}

.testimonial-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quote-icon {
  background: var(--app-primary);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2rem;
  right: 2rem;
  box-shadow: 0 2px 8px rgba(56, 73, 96, 0.14);
}

.testimonial-card-new .card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-top: 2rem;
}

/* CTA Section */
.cta-section {
  background: var(--app-primary);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* botão dentro da CTA com texto laranja */
.cta-section .btn-light {
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  border: none;
}

/* Contact Section */
#contact {
  padding: 5rem 0;
}

#contact .card {
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
}

#contact .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

#contact .form-control:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(56, 73, 96, 0.08);
}

#contact textarea.form-control {
  resize: none;
}

/* Footer */
footer {
  background-color: var(--app-secondary);
  color: #cbd5e0;
}

footer h5, footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

footer a {
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: white;
  transform: translateX(5px);
}

footer .fab {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

footer .fab:hover {
  color: var(--app-primary);
  transform: translateY(-3px);
}

/* Footer small brand image (used in legal links area) */
.footer-sm-logo {
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* Seção: Onde atuamos (migrado de inline styles em landing.blade.php) */
.where-we-work .card {
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.where-we-work .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(16,24,40,0.08);
}
.where-we-work .card-body {
  padding: 1.25rem;
}
.where-we-work .card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: var(--app-primary);
  margin-right: .75rem;
  flex-shrink: 0;
}
.where-we-work .card-icon i {
  color: var(--app-primary);
}
.where-we-work h3 {
  color: #ffffff;
}
.where-we-work .where-list li {
  margin-bottom: .35rem;
}
.where-we-work .where-list {
  color: #ffffff;
  opacity: 0.92;
}
@media (max-width:767px){
  .where-we-work .card-body { padding: 1rem; }
}

/* Utilitários usados para remover atributos style inline */
.maxw-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.maxw-760 { max-width: 760px; margin-left: auto; margin-right: auto; }
.box-200-radius { height: 200px; border-radius: 8px; }
.lh-160 { line-height: 1.6 !important; }
.footer-icon-primary { color: var(--app-primary) !important; }

/* Policy page specific improvements */
.policy-page {
  padding-top: 90px; /* offset para navbar fixa */
  padding-bottom: 60px;
  color: #1f2937;
}
.policy-page .container {
  max-width: 920px;
}
.policy-page h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.policy-page p.lead {
  font-size: 1.05rem;
  color: #4b5563;
}
.policy-page section {
  margin-bottom: 1.5rem;
}
.policy-page h2 {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: .5rem;
}

.policy-page h2.text-accent {
  margin-top: 1.5rem; /* aumentar um pouco o margin-top para destacar */
}
.policy-page h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}
.policy-toc ul { padding-left: 1rem; }
.policy-toc ul li { margin-bottom: .35rem; }

/* Policy TOC cards (replace sticky TOC with responsive card grid) */
.policy-toc .card {
  height: 120px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  border: 1px solid rgba(16,24,40,0.04);
}
.policy-toc .card .card-body {
  padding: 0.75rem 0.75rem;
}
.policy-toc .card a { color: inherit; display: block; width: 100%; height: 100%; }
.policy-toc .card .card-title { font-size: 0.95rem; font-weight:700; }
.policy-toc .card .card-sub { font-size: 0.85rem; color: #6b7280; }

@media (max-width: 767px) {
  .policy-page { padding-top: 110px; }
  .policy-toc .card { height: 100px; }
}
