:root {
  /* Paleta oficial - Manual da Marca Conextri */
  --navy: #001028;       /* Azul Institucional */
  --navy-dark: #000a1a;
  --blue-btn: #345796;   /* Azul Estratégico */
  --blue-btn-dark: #28437a;
  --olive: #6a7660;      /* Verde Orgânico */
  --olive-dark: #565f4e;
  --terracotta: #ad7568; /* Terracota Humano */
  --terracotta-dark: #8f5f54;
  --gray-bg: #eeeeee;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-700.woff2') format('woff2');
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #333;
}

h1, h2, h3, h4, .display-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}

a {
  text-decoration: none;
}

/* ===== Header ===== */
.site-header .navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header .nav-link {
  color: var(--navy);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.site-header .nav-link:hover {
  color: var(--terracotta);
}

/* ===== Buttons ===== */
.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 2rem;
}
.btn-navy.btn-sm {
  padding: 0.55rem 1.75rem !important;
  font-size: 0.75rem !important;
}
.btn-navy:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

.btn-blue {
  background-color: var(--blue-btn);
  border-color: var(--blue-btn);
  color: #fff;
  font-weight: 500;
  border-radius: 2rem;
}
.btn-blue:hover {
  background-color: var(--blue-btn-dark);
  border-color: var(--blue-btn-dark);
  color: #fff;
}

.btn-green {
  background-color: var(--olive);
  border-color: var(--olive);
  color: #fff;
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 2rem;
}
.btn-green:hover {
  background-color: var(--olive-dark);
  border-color: var(--olive-dark);
  color: #fff;
}

.btn-outline-pill {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
}
.btn-outline-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-light-pill {
  background-color: #fff;
  color: var(--navy);
  border-radius: 2rem;
  padding: 0.65rem 1.75rem;
  font-weight: 500;
  border: none;
}
.btn-light-pill:hover {
  background-color: #f0f0f0;
  color: var(--navy);
}

.btn-gray-dark {
  background-color: #555555;
  border-color: #555555;
  color: #fff;
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 2rem;
}
.btn-gray-dark:hover {
  background-color: #3d3d3d;
  border-color: #3d3d3d;
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-bottom: -70px;
}

.hero-photo-wrap {
  position: relative;
  height: 100%;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-accent {
  width: 48px;
  height: 4px;
  background: var(--terracotta);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3.25rem;
  color: var(--olive);
}

/* ===== Banda de destaque (arte "conectamos" fornecida pelo marketing) ===== */
.highlight-band {
  background-color: var(--olive);
  position: relative;
}

/* aspect-ratio (em vez de height fixo) mantém a proporção da imagem em
   qualquer largura de tela. background-position bottom garante que o corte
   do cover aconteça só por cima, nunca nas laterais — a palavra "conectamos"
   nunca perde as pontas. */
.highlight-band .band-bg {
  aspect-ratio: 16 / 5;
  background-image: url("/images/conectamos-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.highlight-band .band-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Sobre / Pessoas no centro da estratégia ===== */
.about-section {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Prende a coluna da foto à base da linha (em vez de esticar com o resto do
   .row) pra ela sempre encostar no fim da seção, não importa a altura do
   texto ao lado. */
.about-photo-col {
  align-self: flex-end;
}

.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(140px, 15vw, 260px);
  z-index: 5;
  pointer-events: none;
}

.about-section h2 {
  color: var(--blue-btn);
  font-size: 2.25rem;
}

.about-section p {
  font-size: 1.5rem;
  color: #000;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* ===== Soluções ===== */
.solutions-section {
  padding: 3rem 0 4rem;
  background: #fff;
}

.solutions-section h2 {
  color: var(--blue-btn);
}

.solution-card {
  border: 1px solid var(--blue-btn);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.solution-card p {
  font-weight: 400;
  color: #000;
}

/* ===== Processo de contratação (diálogo abaixo do card) ===== */
.process-dialog {
  position: relative;
  background-color: var(--terracotta);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  /* No desktop os 3 cards ficam lado a lado; o diálogo (que no HTML vem logo
     depois do card 1, para funcionar certo no mobile empilhado) é reordenado
     visualmente pra depois dos 3 cards só com CSS, sem JS. */
  .process-dialog {
    order: 4;
  }
}

.process-dialog-arrow {
  position: absolute;
  top: -16px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid var(--terracotta);
}

/* Diálogo do card 3 (NR-1, o último da linha) — mesma seta, só espelhada
   pra apontar pra ele em vez do card 1. */
.process-dialog-arrow--right {
  left: auto;
  right: 60px;
}

.process-dialog-subtitle {
  color: #fff;
  font-weight: 400;
  font-size: 1.1rem;
}

.process-dialog .btn-light-pill {
  color: var(--terracotta);
}

.process-dialog .btn-light-pill:hover {
  color: var(--terracotta-dark);
}

.process-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.process-item .icon-circle {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

/* Card 2 fica no meio da linha, então a seta aponta pro centro em vez da
   borda esquerda/direita usada nos diálogos dos cards 1 e 3. */
.process-dialog-arrow--center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.training-panel {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  color: #fff;
  background-color: var(--terracotta);
  border-radius: 1.25rem;
  padding: 2.75rem 1.75rem 1.75rem;
}

.training-panel-tab {
  position: absolute;
  top: -20px;
  left: 1.5rem;
  background: #fff;
  border: 2px solid var(--terracotta);
  border-radius: 2rem;
  padding: 0.4rem 1.25rem;
  line-height: 1.25;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--terracotta);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.training-panel-tab strong {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
}

.training-panel ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}

.training-panel li {
  margin-bottom: 0.75rem;
}

.training-panel li:last-child {
  margin-bottom: 0;
}

/* ===== Por que escolher / CTA duas colunas ===== */
.why-choose .col-blue-light {
  background-color: var(--blue-btn);
  color: #fff;
  padding: 2.5rem 3rem;
}

.why-choose .col-blue-dark {
  background-color: var(--navy);
  color: #fff;
  padding: 2.5rem 3rem;
}

.why-choose h2 {
  color: #fff;
}

.why-choose ul {
  list-style: none;
  padding: 0;
}

.why-choose ul li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
}

.why-choose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

/* ===== Nossa forma de atuar ===== */
.approach-section {
  background-color: var(--olive);
  color: #fff;
  padding: 4rem 0;
}

.approach-section h2 {
  color: #fff;
  margin-bottom: 3rem;
}

.approach-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

.approach-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 0;
}

.approach-step {
  flex: 0 0 80px;
  width: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.approach-step img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
}

.approach-step span {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ===== Vamos conversar ===== */
.talk-section {
  padding: 0;
  background: #fff;
}

.talk-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.talk-photo {
  flex: 0 0 38%;
  max-width: 38%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.talk-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  outline: none;
}

.talk-card-wrap {
  flex: 1 1 62%;
  max-width: 62%;
  box-sizing: border-box;
  padding: 0 1.5rem 0 0;
  /* Puxa o card 1-2px por baixo da foto pra fechar a fresta de arredondamento
     do flexbox; z-index mais baixo que .talk-photo garante que é a foto que
     cobre essa sobreposição, não o card. */
  margin: 0 0 0 -11px;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .talk-card-wrap {
    padding: 0 3rem 0 0;
  }
}

.talk-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--olive);
  border-left: none;
  border-radius: 0 1.5rem 1.5rem 0;
  padding: clamp(2.5rem, 6vw, 6rem);
  margin: 0;
}

@media (max-width: 767.98px) {
  .talk-flex {
    flex-direction: column;
  }

  .talk-photo,
  .talk-card-wrap {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .talk-photo img {
    height: auto;
  }

  .talk-card-wrap {
    height: auto;
    margin: 0;
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .talk-card {
    /* Empilhado não há foto ao lado pra "encostar", então fecha a borda
       nos quatro lados. */
    border-left: 2px solid var(--olive);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 6vw, 2.5rem) clamp(1rem, 4.5vw, 1.75rem);
  }

  .talk-card p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

.talk-card h2 {
  color: var(--blue-btn);
}

.talk-card p {
  color: #000;
}

.btn-contact-cta {
  display: inline-flex;
  align-items: center;
  background: var(--olive);
  color: #fff;
  border-radius: 1.75rem;
  padding: 0.4rem 1.75rem 0.4rem 0.4rem;
  font-weight: 500;
  text-decoration: none;
}

.btn-contact-cta:hover {
  background: var(--olive-dark);
  color: #fff;
}

.btn-contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  border: 2px solid #fff;
  overflow: hidden;
}

.btn-contact-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== Formulário de contato ===== */
.contact-section {
  padding: 4rem 0;
}

.contact-form-card {
  background-color: var(--gray-bg);
  border-radius: 1rem;
  padding: 2.5rem;
}

.contact-section .form-control {
  border-radius: 0.75rem;
  border: none;
  padding: 0.75rem 1rem;
  transition: box-shadow 0.15s ease;
}

.contact-section .form-control:hover,
.contact-section .form-control:focus {
  border: none;
  box-shadow: 0 0 0 2px var(--blue-btn);
}

.contact-section label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.contact-section .form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0;
}

.contact-section .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0.3em;
  border: 1px solid var(--blue-btn);
  accent-color: var(--blue-btn);
  cursor: pointer;
}

.contact-section .form-check-input:focus {
  border-color: var(--blue-btn);
  box-shadow: 0 0 0 2px rgba(52, 87, 150, 0.25);
}

.contact-section .form-check-label {
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.contact-section .form-check-label a {
  color: var(--blue-btn);
  text-decoration: none;
}

.contact-section .form-check-label a:hover {
  text-decoration: underline;
}

/* ===== Modal Política de Privacidade ===== */
.privacy-policy-body h6 {
  color: var(--blue-btn);
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.privacy-policy-body h6:first-of-type {
  margin-top: 0.5rem;
}

.privacy-policy-body p,
.privacy-policy-body ul {
  font-size: 0.95rem;
  color: #333;
}

.privacy-policy-body ul {
  padding-left: 1.25rem;
}

.privacy-policy-body li {
  margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #fff;
  color: var(--navy);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--navy);
}

.footer-links a:hover {
  color: var(--blue-btn);
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

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

.icon-badge:hover {
  opacity: 0.8;
}

.icon-map { color: #e53e3e; }

.footer-bottom {
  background-color: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsivo ===== */
@media (max-width: 991.98px) {
  .hero {
    /* Empilhado (foto em cima, texto e botão embaixo), a faixa verde não deve
       sobrepor o botão "Solicitar diagnóstico" no fim da coluna de texto. */
    margin-bottom: 0;
  }

  .hero-photo-wrap {
    height: auto;
  }

  .hero-photo-img {
    height: auto;
    /* clamp() em vez de valor fixo, pra escalar suavemente com a largura da
       tela em vez de saltar de repente no breakpoint. */
    max-height: clamp(220px, 45vw, 380px);
  }

  .why-choose .col-navy,
  .why-choose .col-olive {
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 1.5rem);
  }

  /* Empilhada, a foto ocupa a largura toda da tela (não mais metade) — a
     onda ficaria desproporcional a essa altura, então some nesse breakpoint. */
  .section-wave {
    display: none;
  }

  .approach-steps {
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 8vw, 3.5rem);
  }

  .approach-steps::before {
    display: none;
  }

  /* position:relative (não absolute) faz o rótulo ocupar espaço real no
     fluxo, evitando sobrepor o ícone seguinte. display:inline-block encolhe
     a caixa para o tamanho do próprio texto, necessário para o
     left:50% + translateX(-50%) centralizar corretamente um texto mais
     largo que o ícone. */
  .approach-step span {
    position: relative;
    display: inline-block;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  /* Empilhados, os dois botões precisam de mais espaço livre acima do texto
     "conectamos" do que a proporção 16:5 (usada nas telas maiores) permite —
     volta pra proporção exata da foto, que deixa mais folga. */
  .highlight-band .band-bg {
    aspect-ratio: 1200 / 483;
  }

  .highlight-band .band-actions .d-flex {
    gap: 0.5rem;
  }

  .highlight-band .band-actions .btn {
    display: block;
    width: 100%;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
  }
}
