/* ===== Subtexto estilizado do menu Contato ===== */
.contato-subtexto {
  font-size: 1.18rem;
  color: #3a4a5d;
  background: linear-gradient(90deg, #f8f9fa 80%, #e7f1ff 100%);
  border-left: 4px solid var(--brand-primary);
  padding: 18px 24px 18px 20px;
  margin-bottom: 38px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 12px rgba(16,108,180,0.06);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.contato-info .contato-fachada {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(16,108,180,0.10);
  display: block;
  object-fit: cover;
}
/* ===== Contato: formulário + info ===== */
.contato-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 32px;
}
.contato-flex .contact-form {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 520px;
}
.contato-info {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(16,108,180,0.06);
  padding: 32px 28px 24px 28px;
  font-size: 17px;
  color: var(--text-secondary);
}
.contato-info h2 {
  font-size: 22px;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.contato-info p {
  margin-bottom: 16px;
}
.contato-info a {
  color: var(--brand-primary);
  text-decoration: none;
  word-break: break-all;
}
.contato-mapa {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .contato-flex {
    flex-direction: column;
    gap: 28px;
  }
  .contato-info {
    max-width: 100%;
    padding: 20px 12px 14px 12px;
  }
}
/* ====================================================================
   Design System: Moderno & Ousado
   ==================================================================== */

:root {
  --brand-primary: #106CB4;
  --brand-dark: #0a2540;
  --brand-light: #f8f9fa;
  --accent-turquoise: #0A2541; /* acento profundo (substitui turquesa) */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --surface-primary: #ffffff;
  --surface-secondary: #f8f9fa;
  --border-primary: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --border-radius: 12px;
  --gutter-left: 144px; /* respiro fixo para conteúdo ancorado à esquerda */
  --gutter-right-header: var(--gutter-left); /* simétrico à logo */
}

/* ====================================================================
   Reset e Base
   ==================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--surface-secondary);
  color: var(--text-primary);
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto; /* recentraliza o bloco */
  padding: 0 24px; /* respiro lateral */
}

.container-wide {
  max-width: 1320px;
}


/* Aplicar gutter apenas no herói */
.hero .container {
  margin: 0; /* remove centralização só no herói */
  padding-left: var(--gutter-left);
  padding-right: 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  min-height: 100vh; /* use min-height em vez de height */
  height: auto; /* permita que o conteúdo determine a altura */
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  position: relative;
  padding: 0;
  margin: 0;
  scroll-margin-top: 88px; /* evita título sob o header ao navegar por âncora */
}

/* No herói, alinhar o container à esquerda da seção */
.hero { align-items: flex-start; }

h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

/* ====================================================================
   Header
   ==================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px; /* acompanha logos maiores */
}

/* Alinha o header com o gutter do conteúdo principal */
.site-header .container {
  max-width: none; /* ocupa toda a largura */
  width: 100%;
  margin: 0; /* remove centralização do header */
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right-header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 22px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Dropdown Serviços */
.menu-item.has-submenu { position: relative; }
.submenu-toggle {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none; /* aparência de link */
  display: inline-block; /* para padding funcionar igual aos <a> */
}
.submenu-toggle:hover { color: var(--text-primary); background-color: var(--surface-secondary); }
.menu-item.has-submenu .submenu-toggle[aria-expanded="true"] { color: var(--brand-primary); background-color: #e7f1ff; }
.menu-item:hover > .submenu, .menu-item.open > .submenu { display: block; }
.submenu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  min-width: 260px;
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 200;
}
.submenu li { list-style: none; }
.submenu a { display:block; padding:10px 12px; color: var(--text-secondary); border-radius: 8px; }
.submenu a:hover { background: var(--surface-secondary); color: var(--text-primary); }

.nav a:hover {
  color: var(--text-primary);
  background-color: var(--surface-secondary);
}

.nav a.active {
  color: var(--brand-primary);
  background-color: #e7f1ff;
}

.nav a.btn-primary {
    color: #fff;
    background-color: var(--brand-primary);
}

.nav a.btn-primary:hover {
  color: #fff;
  background-color: #106CB4;
}

.hamb {
  display: none;
}

/* ====================================================================
   Hero Section
   ==================================================================== */

.hero {
  background-color: var(--brand-dark);
  color: var(--brand-light);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* alinha à esquerda */
  justify-content: flex-start; /* posiciona mais acima */
  padding-top: clamp(64px, 14vh, 160px); /* sobe o bloco de texto */
}

/* Canvas de fundo discreto no herói */
.hero {
  position: relative;
  overflow: hidden;
  /* herda display:flex de section; alinha conteúdo no topo */
  justify-content: flex-start;
}
.hero .bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.22; /* discreto */
}
.hero .hero-inner { position: relative; z-index: 1; }

.hero-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 800px;
}


.hero-copy p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 600px;
}

/* ====================================================================
   Banner Carousel (abaixo do header)
   ==================================================================== */

.banner-carousel {
  position: relative;
  max-width: 100%; 
  margin: 0 auto; 
  margin-top: 0;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10,37,65,0.15);
  z-index: 5;
  min-height: auto;
}

.banner-thumbs {
  overflow: hidden;
  display: flex;
  margin: 0;
  padding: 0;
}
.thumb-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.thumb {
  flex: 0 0 auto; 
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 480px;
}
.banner-thumbs,
.thumb-track,
.thumb {
  height: 320px;
}
.thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%); /* Gradient only from bottom */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.thumb:hover::after {
    opacity: 1;
}

.thumb-overlay {
  position: absolute; /* This is the key fix */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 20px 20px 30px; /* Added more padding to the bottom */
  width: 100%; /* Take full width for centering text */
  transition: transform 0.3s ease;
}

.thumb:hover .thumb-overlay {
    transform: translateY(-5px);
}

.thumb-overlay h3 {
  font-size: clamp(20px, 3vw, 24px); /* Slightly smaller font size */
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  margin: 0;
  line-height: 1.3;
}

.banner-carousel .thumb:hover {
  transform: scale(1.02);
  z-index: 2;
}

.banner-carousel .thumb:hover .tag {
  transform: translateY(-4px);
  background: rgba(16,108,180,0.95);
}

/* 2. Remover as sombras brancas nas laterais */
.banner-carousel::before,
.banner-carousel::after {
  display: none; 
}

.banner-carousel [data-slider] {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 16px 4px;
}

.banner-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  min-height: clamp(140px, 22vh, 220px);
  display: none;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #fff;
}

.banner-content h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
}

.banner-content p {
  max-width: 720px;
  color: rgba(255,255,255,0.9);
}

.banner-carousel .slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.banner-carousel .slider-prev,
.banner-carousel .slider-next {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.banner-carousel .slider-prev:hover,
.banner-carousel .slider-next:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,0.5);
}

.banner-carousel .slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.banner-carousel .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.banner-carousel .dot.active {
  background: #fff;
}

.actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

/* No herói, empilhar botões verticalmente e alinhar à esquerda */
.hero .actions { flex-direction: row; align-items: center; gap: 12px; }

@media (max-width: 768px) {
  .hero .actions { flex-direction: column; align-items: flex-start; }
}

.hero .hero-copy { text-align: left; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #106CB4;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background-color: #fff;
  color: var(--brand-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* visual glass + sutil sombra na cor da marca */
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 6px 18px rgba(16,107,185,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: floaty 3s ease-in-out infinite;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scroll-indicator::before {
  content: '';
  width: 12px;
  height: 12px;
  border-left: 2.5px solid var(--text-primary);
  border-bottom: 2.5px solid var(--text-primary);
  transform: rotate(-45deg);
}

/* halo suave padrão */
.scroll-indicator::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,107,185,0.18), rgba(16,107,185,0));
  filter: blur(8px);
  z-index: -1;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 8px 22px rgba(16,107,185,0.24);
}

.hero .scroll-indicator {
  border-color: #fff;
  bottom: 128px; /* mais para cima apenas no herói */
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 24px rgba(16,107,185,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: floaty 3s ease-in-out infinite; /* override do bounce */
  left: 50%; transform: translateX(-50%);
}

.hero .scroll-indicator::before {
  border-color: #fff;
  width: 12px;
  height: 12px;
  border-width: 3px; /* seta mais marcada */
}

/* halo suave atrás do botão do herói */
.hero .scroll-indicator::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,107,185,0.25), rgba(16,107,185,0));
  filter: blur(10px);
  z-index: -1;
}

.hero .scroll-indicator:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  border-color: rgba(255,255,255,0.35);
}

.hero .scroll-indicator:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(16,107,185,0.45), 0 8px 24px rgba(16,107,185,0.25);
}

@keyframes floaty {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ====================================================================
   Cards & Grids
   ==================================================================== */

.grid-3, .grid-4 {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  margin: 0; /* alinhado ao início */
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}
.card ul {
  margin: 12px 0 0 18px;
  padding: 0;
}
.card ul li { margin: 6px 0; }
.card h4 { font-size: 14px; margin-top: 12px; color: var(--text-secondary); }

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* ====================================================================
   Outras Seções
   ==================================================================== */

.trust ul { list-style: none; }
.trust .badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  justify-content: flex-start; /* alinhar à esquerda */
    margin: 32px 0;
}
.trust .badges li {
    background-color: var(--surface-primary);
    border: 1px solid var(--border-primary);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

/* Grade e cards da seção "Por que escolher" */
.grid-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.benefit-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  padding: 18px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card h3 { margin: 0 0 4px; font-size: 18px; }
.benefit-card p { margin: 0; color: var(--text-secondary); }
/* Hover: destaca borda e título na cor da marca */
.trust .benefit-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.trust .benefit-card:hover h3 { color: var(--brand-primary); }
/* Variante quando a seção tem acento turquesa */
.trust.accent-turquoise .benefit-card:hover { border-color: var(--accent-turquoise); }
.trust.accent-turquoise .benefit-card:hover h3 { color: var(--accent-turquoise); }
/* Ícone no card */
.benefit-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--brand-primary);
  background: #e7f1ff;
}
.benefit-icon svg { width: 22px; height: 22px; }
/* Espaçamento quando há ícone */
.benefit-icon + h3 { grid-column: 2; }
.benefit-icon ~ p { grid-column: 2; }
@media (max-width: 768px){
  .grid-benefits { grid-template-columns: 1fr; }
}

/* Lead e destaques de confiança na seção Trust */
.trust .section-lead {
  color: var(--text-secondary);
  margin: 6px 0 14px;
  max-width: 760px;
}
/* (removido) blocos resumidos de destaques de confiança */

/* Canvas lateral para a seção "Por que escolher" (lado esquerdo) */
.trust { position: relative; overflow: hidden; }
.trust > *:not(.scroll-indicator):not(.bg-canvas-left):not(.bg-canvas-right) { position: relative; z-index: 2; }
.trust .scroll-indicator { z-index: 2; }
.trust .bg-canvas-left{
  position: absolute; inset: 0 auto 0 0;
  width: min(32vw, 480px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9; /* ligeiramente mais presente que no herói */
}
@media (max-width: 992px){ .trust .bg-canvas-left{ display: none; } }

.stats .stat {
    background-color: var(--surface-primary);
    border-radius: var(--border-radius);
    padding: 24px;
  text-align: left;
    border: 1px solid var(--border-primary);
}
.trust .trust-stats { margin-top: 12px; }
.trust .trust-stats h3 { font-size: 20px; margin: 8px 0 12px; }
.trust .trust-stats .stats { margin-top: 8px; }

.stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand-primary);
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
}

.cta-banner {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 48px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-banner .cta-content {
    flex: 1;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

.cta-banner .cta-image {
    flex-shrink: 0;
}


.cta-banner .cta-image img {
    display: block;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}

#cta {
  overflow: hidden;
}

#cta > .container {
  position: relative;
  z-index: 2;
}

#cta .bg-canvas-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34vw, 520px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}


/* ====================================================================
   Nossos Serviços – destaque e hierarquia
   ==================================================================== */

#o-que-fazemos { 
  height: auto; 
  justify-content: flex-start; 
}

/* Estilos para a seção de destaque */
.services-highlight {
  background-color: var(--surface-secondary);
  padding: 140px 0;
  min-height: auto;
}

.services-highlight h2 {
  text-align: center;
  margin-bottom: 48px;
}

#o-que-fazemos .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas por padrão */
  gap: 16px; /* Gap menor */
}

#o-que-fazemos .service-card {
  padding: 24px; /* Padding menor para não espremer */
}

#o-que-fazemos > *:not(.scroll-indicator):not(.bg-canvas-right):not(.bg-canvas-left) { 
  position: relative; 
  z-index: 2; 
}


/* Removido o acento SVG à direita; manter apenas o canvas */
#o-que-fazemos { position: relative; overflow: hidden; }

/* Centralizar o indicador de rolagem na seção Nossos Serviços */
#o-que-fazemos .scroll-indicator {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  z-index: 2;
}

/* Canvas geométrico: laterais e versão fundo total */
#o-que-fazemos .bg-canvas-right{
  position: absolute; inset: 0 0 0 auto; /* cola na direita */
  width: min(34vw, 520px);
  height: 100%;
  z-index: 1; /* acima dos fundos, abaixo do conteúdo */
  pointer-events: none;
}
/* Esquerda */
#o-que-fazemos .bg-canvas-left{
  position: absolute; inset: 0 auto 0 0; /* cola na esquerda */
  width: min(22vw, 360px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* removido fundo total */
@media (max-width: 992px){
  #o-que-fazemos .bg-canvas-right{ display: none; }
  #o-que-fazemos .bg-canvas-left{ display: none; }
  /* fundo total pode continuar visível em mobile; manter ativo */
}

/* variante com acento geométrico à esquerda */
#o-que-fazemos.accent-left::before{
  content: '';
  position: absolute; inset: 0 auto 0 0; /* cola na esquerda */
  width: min(34vw, 520px);
  background:
    radial-gradient(60% 60% at 30% 40%, rgba(16,107,185,0.18), rgba(16,107,185,0) 65%),
    radial-gradient(40% 40% at 0% 80%, rgba(10,37,64,0.22), rgba(10,37,64,0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(16,107,185,0.25)' stroke-width='0.6'%3E%3Cpath d='M0 50 L50 0 L100 50 L50 100 Z'/%3E%3Cpath d='M0 25 L50 75 L100 25'/%3E%3Cpath d='M25 0 L75 50 L25 100'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: left center, left bottom, left top;
  background-size: auto, auto, 240px 240px;
  filter: blur(0px);
  z-index: 0; pointer-events: none;
}
/* Sem fallback de acento em mobile quando apenas canvas é usado */

/* Painel azul opcional atrás da grade (ligue com .blue-panel no section) */
#o-que-fazemos.blue-panel .services-grid{ position: relative; padding: 18px; border-radius: 16px; }
#o-que-fazemos.blue-panel .services-grid::before{
  content: '';
  position: absolute; inset: 0; z-index: 0; border-radius: 16px;
  background: var(--brand-dark); /* mesmo azul do herói */
  box-shadow: 0 20px 40px rgba(10,37,64,0.35); /* sombra ajustada ao tom do herói */
}
#o-que-fazemos.blue-panel .service-card{ background: var(--brand-primary); border-color: rgba(255,255,255,0.28); border-left-color: #fff; }
#o-que-fazemos.blue-panel .service-card h3, 
#o-que-fazemos.blue-panel .service-card h4, 
#o-que-fazemos.blue-panel .service-card .card-link{ color: #fff; }
#o-que-fazemos.blue-panel .service-card p,
#o-que-fazemos.blue-panel .service-card li{ color: rgba(255,255,255,0.88); }
#o-que-fazemos.blue-panel .list-check li::before{ color: #fff; }
#o-que-fazemos.blue-panel .chips .chip{ background: rgba(255,255,255,0.16); color: #fff; }
#o-que-fazemos.blue-panel .diff-box{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
#o-que-fazemos.blue-panel .diff-box .badge{ background: rgba(255,255,255,0.22); color: #fff; }
#o-que-fazemos.blue-panel .services-grid > *{ position: relative; z-index: 1; }
#o-que-fazemos.blue-panel .collapsible.is-collapsed::after{
  background: linear-gradient(180deg, rgba(16,107,185,0), rgba(16,107,185,0.4));
}
/* garantir contraste dos ícones no painel azul */
#o-que-fazemos.blue-panel .card-icon { color: #fff; }
/* leve feedback no hover do link dentro do card azul */
#o-que-fazemos.blue-panel .service-card .card-link:hover { opacity: .9; }

/* Overrides quando o painel azul usa acento turquesa */
#o-que-fazemos.blue-panel.accent-turquesa .chips .chip { background: rgba(10,37,65,0.18); color: #fff; }
#o-que-fazemos.blue-panel.accent-turquesa .list-check li::before { color: var(--accent-turquoise); }
#o-que-fazemos.blue-panel.accent-turquesa .diff-box .badge { background: var(--accent-turquoise); color: #0a2540; }
#o-que-fazemos.blue-panel.accent-turquesa .service-card { border-left-color: var(--accent-turquoise); }

.card.service-card {
  border-left: 4px solid var(--brand-primary);
  background: linear-gradient(180deg, rgba(16,107,185,0.04), rgba(255,255,255,0));
  padding: 20px;
}

.card.service-card h3 {
  margin-bottom: 8px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: #e7f1ff; color: var(--brand-primary);
  padding: 4px 10px; border-radius: 999px;
}

/* Permitir chips como links, mantendo aparência de chip */
.chip[href] { text-decoration: none; }
.chip[href]:hover { filter: brightness(0.98); }

.list-check { list-style: none; margin: 10px 0 0; padding: 0; }
.list-check li { position: relative; padding-left: 22px; margin: 4px 0; font-size: 14.5px; }
.list-check li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--brand-primary);
  font-weight: 700; line-height: 1.4;
}

.diff-box { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--border-primary); border-radius: 10px; background: #fff; }
.diff-box .badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand-primary); padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.diff-box ul { list-style: none; margin: 6px 0 0; padding: 0; }
.diff-box li { position: relative; padding-left: 16px; margin: 4px 0; color: var(--text-secondary); }
.diff-box li::before { content: '•'; position: absolute; left: 0; top: 0; color: var(--brand-primary); }

/* Colapsável para listas longas */
.collapsible { position: relative; }
.collapsible.is-collapsed .collapsible-inner { max-height: 120px; overflow: hidden; }
.collapsible.is-collapsed::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 36px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.92));
}
.collapsible .reveal-toggle {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brand-primary); text-decoration: none; cursor: pointer;
}
.collapsible .reveal-toggle:hover { text-decoration: underline; }

/* Media queries para responsividade da grade de serviços */
@media (max-width: 1200px) {
  #o-que-fazemos .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas para tablets */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #o-que-fazemos .services-grid {
    grid-template-columns: 1fr; /* 1 coluna para celulares */
  }
}

/* ====================================================================
   Footer
   ==================================================================== */

.main-footer {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    padding: 48px 0;
}

.main-footer a {
    color: var(--brand-light);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-content p, .footer-content li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 32px;
    padding-top: 32px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .dev-link {
  color: white !important;
  font-weight: 700 !important;
}

.list-unstyled { list-style: none; }

/* ====================================================================
   Formulários
   ==================================================================== */

.contact-form {
    display: grid;
    gap: 24px;
    max-width: 720px;
  margin: 32px 0 0; /* não centraliza automaticamente */
}

.contact-form label {
    font-weight: 500;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    background-color: var(--surface-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    margin-top: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.contact-form .hp {
    display: none;
}

/* ====================================================================
   WhatsApp Flutuante
   ==================================================================== */

.wp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
}

.wp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
  width: 52px;
  height: 52px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s ease;
    animation: pulse 2s infinite;
}

.wp-float a:hover {
    transform: scale(1.1);
}

.wp-float svg {
  width: 34px;
  height: 34px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ====================================================================
   Botão Voltar ao Topo (posicionado acima do WhatsApp)
   ==================================================================== */

.to-top-float {
  position: fixed;
  right: 24px;
  bottom: 88px; /* 24px + 52px + 12px de respiro acima do WhatsApp */
  z-index: 101; /* levemente acima do WhatsApp */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top-float button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.to-top-float button:hover {
  transform: translateY(-2px);
  background-color: #106CB4;
}

.to-top-float svg {
  width: 20px;
  height: 20px;
}

/* ====================================================================
   Testimonials Section
   ==================================================================== */

.testimonials {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,37,65,0.02), rgba(16,108,180,0.05) 50%, rgba(10,37,65,0.02));
}
.testimonials .bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.testimonials::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(700px 320px at -10% 20%, rgba(16,108,180,0.10), transparent 60%),
    radial-gradient(620px 360px at 110% 80%, rgba(10,37,65,0.10), transparent 60%);
  opacity: .55;
}
.testimonials > .container { position: relative; z-index: 2; }
.testimonials h2 { margin-bottom: 22px; color: #0A2541; }

/* ====================================================================
   Página Sobre
   ==================================================================== */

.page-sobre .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Reset do espaçamento excessivo das seções genéricas nesta página */
.page-sobre section {
    min-height: auto;
    height: auto;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-sobre .about-hero {
    padding-top: 0;
    padding-bottom: 2rem;
    text-align: center;
}

.page-sobre .about-hero h1 {
    color: var(--brand-dark);
}

.page-sobre .experience-highlight {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e7f1ff;
    color: var(--brand-primary);
    border-radius: 8px;
    font-weight: 600;
}

.page-sobre .history-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.page-sobre .history-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-sobre .history-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.page-sobre .history-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--brand-dark);
}

.page-sobre .values-section {
    background-color: var(--surface-primary);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
}

.page-sobre .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.page-sobre .value-card {
    padding: 1.5rem;
    border-left: 4px solid var(--brand-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.page-sobre .value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--brand-dark);
}

.page-sobre .value-card h3 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.page-sobre .value-card ul {
    list-style: none;
    padding-left: 0;
}

.page-sobre .value-card ul li {
    margin-bottom: 0.5rem;
}

.page-sobre .structure-section,
.page-sobre .clients-section {
    text-align: center;
}

.page-sobre .section-lead {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
}

.page-sobre .structure-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-sobre .structure-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-sobre .structure-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.page-sobre .client-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-sobre .client-logos-container img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.page-sobre .client-logos-container img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Ajustes para telas menores */
@media (max-width: 992px) {
    .page-sobre .history-layout {
        grid-template-columns: 1fr;
    }
    .page-sobre .history-image {
        order: -1; /* Imagem vem antes do texto em mobile */
    }
}
@media (max-width: 768px) {
    .page-sobre .structure-gallery {
        grid-template-columns: 1fr;
    }
    .page-sobre .client-logos-container {
        gap: 2rem;
    }
}

.page-sobre .cta-section-sobre {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    margin-bottom: 0;
}

.page-sobre .cta-section-sobre h2 {
    color: #fff;
}

.page-sobre .cta-section-sobre .section-lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ====================================================================
   Seção de Serviços em Destaque (Home)
   ==================================================================== */
.featured-services {
  padding: 80px 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.featured-services .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.featured-services .section-header h2 {
  font-size: 36px;
  color: var(--color-headings);
  margin-bottom: 12px;
}

.featured-services .section-header p {
  font-size: 18px;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-image {
  flex: 1 1 50%;
  min-width: 50%; /* Prevent shrinking */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(10, 37, 65, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(10, 37, 65, 0.25);
}

.service-content {
  flex: 1 1 50%;
}

/* Alterna o layout: imagem à direita */
.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-row:nth-child(even) .service-content {
  text-align: right;
}

.service-row:nth-child(even) .service-content .btn {
  justify-content: flex-end; /* Alinha ícone no botão */
}

.service-content .service-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-content h3 {
  font-size: 28px;
  color: var(--color-headings);
  margin-bottom: 16px;
}

.service-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* Responsividade */
@media (max-width: 992px) {
  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
  }

  .service-image,
  .service-row:nth-child(even) .service-image {
    height: 300px; /* Altura fixa para a imagem no mobile */
    width: 100%;
  }

  .service-content,
  .service-row:nth-child(even) .service-content {
    width: 100%;
    padding: 0;
    text-align: left; /* Sempre alinhado à esquerda no mobile */
  }
  
  .service-row:nth-child(even) .service-content .btn {
    justify-content: flex-start;
  }
}

/* ====================================================================
   Estilos para Cards de Serviço Destacados
   ==================================================================== */

.services-highlight .service-card {
    background-color: #186CAF;
    color: #ffffff; /* Cor de texto padrão para branco */
    border-left-color: #ffffff; /* Mudar a cor da borda para combinar */
}

.services-highlight .service-card h3,
.services-highlight .service-card .card-link,
.services-highlight .service-card .card-icon,
.services-highlight .service-card .reveal-toggle,
.services-highlight .service-card .list-check li::before {
    color: #ffffff;
}

.services-highlight .service-card .list-check li {
    color: rgba(255, 255, 255, 0.9); /* Um pouco de transparência para o texto secundário */
}

.services-highlight .service-card .chip {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.services-highlight .service-card .diff-box {
    background: #0A2541;
    border-color: rgba(255, 255, 255, 0.25);
}

.services-highlight .service-card .diff-box li {
    color: #ffffff;
}

.services-highlight .service-card .diff-box .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.services-highlight .service-card .diff-box li::before {
    color: #ffffff;
}

.services-highlight .service-card .collapsible.is-collapsed::after {
    background: linear-gradient(180deg, rgba(24, 108, 175, 0), #186CAF);
}

/* Garantir logos lado a lado e centralizadas na seção clientes-e-parceiros */
#clientes-e-parceiros .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px; /* espaço entre as logos */
  flex-wrap: wrap;
  margin: 32px 0 0 0;
}

#clientes-e-parceiros .logos img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10,37,65,0.10);
  padding: 16px 24px;
  transition: transform .3s, box-shadow .3s;
}

#clientes-e-parceiros .logos img:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 36px rgba(16,108,180,0.16);
}

#clientes-e-parceiros h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  width: 100%;
}
#clientes-e-parceiros .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 48px;
}

/* Fundo moderno e discreto para a seção clientes-e-parceiros */
#clientes-e-parceiros {
  position: relative;
  background:
    linear-gradient(120deg, #1067AD, #0A2540 100%);
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 64px;
}

#clientes-e-parceiros::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 160px;
  background:
    url("data:image/svg+xml,%3Csvg width='1920' height='160' viewBox='0 0 1920 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q480 0 960 80 T1920 80 V160 H0 V80Z' fill='%230A2540' fill-opacity='0.16'/%3E%3Cpath d='M0 120 Q480 60 960 120 T1920 120 V160 H0 V120Z' fill='%231067AD' fill-opacity='0.13'/%3E%3C/svg%3E") top center repeat-x;
  z-index: 0;
  pointer-events: none;
  transform: scaleY(-1);
}

#clientes-e-parceiros::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background:
    url("data:image/svg+xml,%3Csvg width='1920' height='160' viewBox='0 0 1920 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q480 0 960 80 T1920 80 V160 H0 V80Z' fill='%230A2540' fill-opacity='0.16'/%3E%3Cpath d='M0 120 Q480 60 960 120 T1920 120 V160 H0 V120Z' fill='%231067AD' fill-opacity='0.13'/%3E%3C/svg%3E") bottom center repeat-x;
  z-index: 0;
  pointer-events: none;
}

/* Garante que o conteúdo fique acima do fundo */
#clientes-e-parceiros .container,
#clientes-e-parceiros h2,
#clientes-e-parceiros .logos {
  position: relative;
  z-index: 1;
}

.section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: absolute;
  left: 0;
  z-index: 2;
  pointer-events: none;
}
.section-divider-top {
  top: 0;
  transform: translateY(-100%);
}
.section-divider-bottom {
  bottom: 0;
  transform: translateY(100%) scaleY(-1);
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

#por-que-escolher {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Centraliza verticalmente */
  align-items: center;       /* Centraliza horizontalmente */
  min-height: 80vh;          /* Ajuste conforme o espaço desejado */
  padding: 64px 0;
  position: relative;
}

#por-que-escolher h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 32px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0A2540;
}

#resultados .stats.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

#resultados .stat {
  background: #186CAE;
  color: #fff;
  border-radius: 14px;
  padding: 32px 18px 22px 18px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(24,108,174,0.10);
  transition: transform .2s, box-shadow .2s;
}

#resultados .stat-value {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

#resultados .stat-label {
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.92;
}

#resultados .stat:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(24,108,174,0.18);
}

@media (max-width: 900px) {
  #resultados .stats.grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  #resultados .stats.grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Seção combinada: Clientes + Depoimentos */
#clientes-e-depoimentos {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
  background-color: #f0f4f8;
  background-image:
    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='%230A2541' fill-opacity='0.06'%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"),
    radial-gradient(circle at 95% 15%, rgba(10, 37, 65, 0.18), transparent 40%),
    radial-gradient(circle at 5% 85%, rgba(10, 37, 65, 0.18), transparent 40%);
}

#clientes-e-depoimentos .container {
  position: relative;
  z-index: 1;
}

#clientes-e-depoimentos h2 {
  color: #0A2541;
  text-align: center;
  margin: 0 0 18px;
}

#clientes-e-depoimentos .section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  color: #4a586a;
}

/* Bloco de clientes (grade de logos) */
#clientes-e-depoimentos .clients-block { margin-bottom: 44px; }
#clientes-e-depoimentos .logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}
#clientes-e-depoimentos .logo-item {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(10,37,65,0.08), 0 0 0 1px rgba(16,108,180,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
#clientes-e-depoimentos .logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10,37,65,0.14), 0 0 0 1px rgba(16,108,180,0.14);
}
#clientes-e-depoimentos .logo-item img {
  max-width: 160px; max-height: 70px; object-fit: contain; display: block;
  filter: grayscale(.6); opacity: .9; transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
#clientes-e-depoimentos .logo-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* Bloco de depoimentos (usa seu carrossel existente) */
#clientes-e-depoimentos .testimonials-block { margin-top: 10px; }
#clientes-e-depoimentos .testimonial-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 24px;
  margin-top: 8px;
  background: transparent; /* sem full-bleed para não quebrar layout */
  border-radius: 12px;
}
#clientes-e-depoimentos .testimonial-track { display: flex; gap: 22px; padding: 6px 0; will-change: transform; }
#clientes-e-depoimentos .testimonial-card {
  flex: 0 0 280px; max-width: 280px; min-height: 170px;
  background: #fff; border-radius: 12px; padding: 20px 18px;
  box-shadow: 0 12px 28px rgba(10,37,65,0.12), 0 0 0 1px rgba(16,108,180,0.15);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
#clientes-e-depoimentos .testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(10,37,65,0.18), 0 0 0 1px rgba(16,108,180,0.2); }
#clientes-e-depoimentos .testimonial-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: #1d2a3b; font-style: italic; }
#clientes-e-depoimentos .testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
#clientes-e-depoimentos .testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(10,37,65,0.15); }
#clientes-e-depoimentos .testimonial-author span { font-size: 15px; font-weight: 600; color: #0A2541; }

@media (max-width: 992px) {
  #clientes-e-depoimentos { padding: 56px 0 68px; }
  #clientes-e-depoimentos .logo-item { height: 96px; }
  #clientes-e-depoimentos .logo-item img { max-width: 140px; max-height: 60px; }
}
@media (max-width: 576px) {
  #clientes-e-depoimentos .logos-grid { gap: 18px; }
  #clientes-e-depoimentos .logo-item { height: 88px; }
  #clientes-e-depoimentos .logo-item img { max-width: 120px; max-height: 50px; }
  #clientes-e-depoimentos .testimonial-card { flex-basis: 260px; max-width: 260px; }
}

/* ====================================================================
   Responsividade Geral
   ==================================================================== */

@media (max-width: 992px) {
  /* --- Cabeçalho --- */
  .site-header .container {
    padding-left: 24px;
    padding-right: 24px;
    --gutter-left: 24px; /* Override for header */
  }

  .nav {
    display: none;
    position: fixed;
    top: 72px; /* Altura do header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
  }

  .nav.open {
    display: flex;
    transform: translateX(0);
  }

  .nav a {
    font-size: 20px;
    padding: 16px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .nav .btn-primary {
      margin-top: 24px;
  }

  .hamb {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
  }
  
  .hamb span {
      display: block;
      width: 100%;
      height: 3px;
      background: var(--text-primary);
      border-radius: 3px;
      transition: transform 0.3s, opacity 0.3s;
  }
  
  .hamb[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }
  .hamb[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
  }
  .hamb[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }


  /* --- Hero Section --- */
  .hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .hero-copy h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
  
  .hero-copy p {
    font-size: 16px;
    max-width: 90%;
  }
  
  .hero .scroll-indicator {
      bottom: 64px;
  }

  /* --- Esconder Canvas Laterais --- */
  .trust .bg-canvas-left,
  #o-que-fazemos .bg-canvas-right,
  #cta .bg-canvas-right {
    display: none;
  }
  
  section {
      min-height: auto;
      padding: 64px 0;
  }
  
  .hero {
      min-height: 80vh;
      padding: 0;
  }
}

@media (max-width: 768px) {
  h2 {
      font-size: 28px;
  }

  /* --- Banner Carousel on Mobile --- */
  .banner-carousel {
    padding: 0;
    min-height: 0;
    height: 300px;
  }

  .banner-carousel.is-mobile-slider .banner-thumbs {
    overflow: hidden;
  }

  .banner-carousel.is-mobile-slider .thumb-track {
    height: 100%;
  }

  .banner-carousel.is-mobile-slider .thumb {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    margin-right: 0;
  }

  .banner-carousel.is-mobile-slider .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      aspect-ratio: unset;
  }

  /* --- CTA Section --- */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  
  .cta-banner .cta-content {
    text-align: center;
    align-items: center;
  }
  
  .cta-banner .cta-image {
    margin-bottom: 24px;
  }
  
  .cta-banner .cta-image img {
      max-width: 200px;
  }

  /* --- Grid de Benefícios --- */
  .grid-benefits {
      grid-template-columns: 1fr;
  }
  
  /* --- Logos de Parceiros --- */
  #clientes-e-parceiros .logos img {
      max-width: 240px;
      padding: 12px 18px;
  }
  
  /* --- Clientes e Depoimentos Carrossel --- */
  #clientes-e-depoimentos .logos-grid,
  #clientes-e-depoimentos .testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 24px; /* Aumenta o espaçamento */
    padding: 0 24px; /* Adiciona padding para ver o início/fim */
  }
  
  #clientes-e-depoimentos .logos-grid::-webkit-scrollbar,
  #clientes-e-depoimentos .testimonial-track::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  #clientes-e-depoimentos .logo-item,
  #clientes-e-depoimentos .testimonial-card {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  #clientes-e-depoimentos .logo-item {
    width: 70%;
  }

  #clientes-e-depoimentos .testimonial-card {
    width: 80vw; /* Ocupa 80% da largura da tela */
    max-width: 400px; /* Limita a largura máxima */
  }

  #clientes-e-depoimentos .logos-grid.autoscroll {
    overflow-x: hidden;
    scroll-snap-type: none;
  }
}

/* Dots for Mobile Banner Carousel */
.banner-carousel .slider-dots {
    display: none;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.banner-carousel.is-mobile-slider .slider-dots {
    display: flex;
}

@media (max-width: 576px) {
    /* --- Header --- */
    .site-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* --- Hero --- */
    .hero .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero .actions .btn {
        text-align: center;
    }
    
    /* --- Stats --- */
    #resultados .stats.grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    #resultados .stat {
        padding: 16px;
    }
    
    #resultados .stat-value {
        font-size: 2rem;
    }
    
    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* Dropdown Serviços */
.menu-item.has-submenu { position: relative; }
.submenu-toggle {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none; /* aparência de link */
  display: inline-block; /* para padding funcionar igual aos <a> */
}
.submenu-toggle:hover { color: var(--text-primary); background-color: var(--surface-secondary); }
.menu-item.has-submenu .submenu-toggle[aria-expanded="true"] { color: var(--brand-primary); background-color: #e7f1ff; }
.menu-item:hover > .submenu, .menu-item.open > .submenu { display: block; }
.submenu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  min-width: 260px;
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 200;
}
.submenu li { list-style: none; }
.submenu a { display:block; padding:10px 12px; color: var(--text-secondary); border-radius: 8px; }
.submenu a:hover { background: var(--surface-secondary); color: var(--text-primary); }

/* ====================================================================
   Página de Serviços - Grade
   ==================================================================== */

.services-list-section {
  padding: 80px 0;
  background-color: var(--surface-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-grid-card {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; /* Add border-color transition */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.service-grid-card:hover {
  transform: translateY(-6px); /* A bit more lift */
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary); /* Highlight with brand color */
}

.service-grid-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-grid-card:hover .card-image img {
  transform: scale(1.05);
}

.service-grid-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-grid-card .service-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-grid-card .service-card-title a {
  text-decoration: none;
  color: inherit;
}

.service-grid-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.service-grid-card .card-link {
  display: inline-block;
  margin-top: auto;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px; /* Make it more button-like */
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.service-grid-card .card-link:hover {
    background-color: var(--brand-primary);
    color: #fff;
    text-decoration: none;
}

/* Hero da página de serviços */
.servicos-hero {
    position: relative; /* Necessário para o overlay */
    padding: 80px 0;
    min-height: 40vh; /* Altura menor */
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/imgservicos/arcompi-frente.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.servicos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 37, 64, 0.7); /* Overlay escuro com 70% de opacidade */
    z-index: 1;
}

.servicos-hero .container {
    position: relative;
    z-index: 2;
}

.servicos-hero-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: #fff;
}

.servicos-hero-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ====================================================================
   Banner Fixo para Desktop
   ==================================================================== */
@media (min-width: 993px) {
  .banner-carousel .thumb-track[data-slider] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* Remove gap */
    transform: none !important;
    padding: 0 !important; /* Remove padding */
    max-width: none !important; /* Override max-width to fill the screen */
    margin: 0 !important; /* Override margin */
  }

  .banner-carousel .thumb-track[data-slider] > .thumb {
    display: block !important;
    width: auto !important;
    height: auto;
  }

  .banner-carousel .thumb-track[data-slider] > .thumb:nth-child(n+5) {
      display: none !important;
  }

  .banner-carousel .slider-controls {
    display: none !important;
  }
}