/* ---- Tokens da marca (variáveis CSS) ----
   Mude uma cor aqui e ela muda no site inteiro. */
:root {
  --map-peri: #460B8E;        /* roxo profundo — cor de destaque */
  --map-peri-dark: #350869;   /* roxo mais escuro p/ hover */
  --map-dark: #121518;        /* texto e títulos */
  --map-footer: #181c20;      /* fundo do rodapé */
  --map-gray: #7c7c7c;        /* texto secundário */
  --map-line: #e2e6ea;        /* bordas e divisórias */
  --map-soft: #eef2f6;        /* fundo de seções suaves */
}

/* ---- Base ---- */
body {
  font-family: "Nunito", sans-serif;
  color: var(--map-dark);
  line-height: 1.7;
}

h1, h2, h3, .display-font {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  color: var(--map-dark);
}

h4, h5, h6 {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
}

p { color: #3a3f44; }

/* Evita "viúvas" (palavra sozinha na última linha) em textos e títulos */
p, h1, h2, h3, h4, h5, h6, li { text-wrap: pretty; }

a { color: var(--map-peri); text-decoration: none; }
a:hover { color: var(--map-peri-dark); }

.text-muted-2 { color: var(--map-gray) !important; }
.bg-soft { background-color: var(--map-soft); }

/* ---- Botões ---- */
.btn-peri {
  background-color: var(--map-peri);
  border: 2px solid var(--map-peri);
  color: #fff;
  border-radius: 50rem;          /* bem arredondado, como o antigo */
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-peri:hover {
  background-color: var(--map-peri-dark);
  border-color: var(--map-peri-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #fff;
  border: 2px solid #fff;
  color: var(--map-dark);
  border-radius: 50rem;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-white:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--map-peri);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50rem;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-white:hover { background-color: #fff; color: var(--map-dark); }

/* Botões de valor (oferta pontual): três lado a lado, padding enxuto */
.btn-valor { padding-left: .5rem; padding-right: .5rem; }

.btn-outline-peri {
  border: 2px solid var(--map-peri);
  color: var(--map-peri);
  border-radius: 50rem;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-peri:hover { background-color: var(--map-peri); color: #fff; }

/* ---- Header / navbar ---- */
.navbar {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--map-line);
}
.navbar-brand img { height: 46px; }
.navbar .nav-link {
  color: var(--map-dark);
  font-weight: 600;
  margin: 0 .4rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--map-peri); }
.navbar .social-icons a { color: var(--map-dark); font-size: 1.1rem; margin-left: .8rem; }
.navbar .social-icons a:hover { color: var(--map-peri); }

/* ---- Seletor de idioma ---- */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .75rem;
}
.language-switcher a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--map-line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.language-switcher a:hover,
.language-switcher a.active {
  border-color: var(--map-peri);
  box-shadow: 0 .35rem .9rem rgba(18, 21, 24, .08);
  transform: translateY(-1px);
}
@media (max-width: 991.98px) {
  .language-switcher {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ---- Hero (com imagem de fundo + overlay roxo) ---- */
.hero {
  position: relative;
  background: url("../img/fotos/conferencia-hero-08.jpg") center/cover no-repeat;
  color: #fff;
  padding: 9rem 0 7rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* véu roxo um pouco mais leve em cima e mais forte embaixo (legibilidade do botão) */
  background: linear-gradient(rgba(70, 11, 142, 0.68), rgba(53, 8, 105, 0.82));
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); text-wrap: balance; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; }

/* Faixa curva embaixo do hero (igual ao site antigo) */
.hero-curve { display: block; line-height: 0; margin-top: -1px; }

/* Cabeçalho das páginas internas (menor, sem imagem) */
.page-hero {
  background-color: var(--map-peri);
  color: #fff;
  padding: 4.5rem 0;   /* espaço igual em cima e embaixo do título */
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 720px; margin: .5rem auto 0; }

/* ---- Seções ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { margin-bottom: 2.5rem; }

/* ---- Mais respiro no mobile ---- */
@media (max-width: 575.98px) {
  /* afasta o conteúdo das bordas da tela (padrão do Bootstrap é só 0.75rem) */
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ---- Cards ---- */
.card-map {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  display: flex;            /* coluna flex: permite colar o CTA no rodapé */
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-map:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.2rem 2.5rem rgba(18, 21, 24, 0.1);
}
.card-map .card-num {
  color: var(--map-peri);
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Padroniza a quebra dos textos: o botão/link final "cola" no rodapé do card,
   então os CTAs ficam alinhados mesmo quando um texto quebra em mais linhas. */
.card-map.text-center { align-items: center; }
/* !important para vencer o mt-2 do Bootstrap e colar o botão no rodapé do card */
.card-map .btn,
.card-map > a:last-child { margin-top: auto !important; }

/* ---- Números de destaque (estatísticas) ---- */
.stat-num {
  color: var(--map-peri);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: .25rem;
  white-space: nowrap;        /* o número nunca quebra em duas linhas */
}

/* Cartão de estatística: menos padding lateral para o número grande caber */
.stat-card { padding-left: 1rem; padding-right: 1rem; }

/* Ícone redondo de destaque */
.icon-circle {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(70, 11, 142, 0.12);
  color: var(--map-peri);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---- Esteira de fotos (slideshow que desliza sozinho) ----
   CSS puro, sem JavaScript. O truque: a faixa (.foto-track) tem DOIS conjuntos
   iguais de fotos e desliza até -50% (exatamente um conjunto). Quando chega lá,
   a posição é idêntica ao início, então o loop é invisível. */
.foto-marquee {
  overflow: hidden;
  /* desbota as fotos ao entrar e sair, nas duas bordas */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.foto-track {
  display: flex;
  width: max-content;            /* a faixa fica tão larga quanto a soma das fotos */
  animation: foto-scroll 80s linear infinite;
}
/* pausa ao passar o mouse, para a pessoa olhar uma foto */
.foto-marquee:hover .foto-track { animation-play-state: paused; }

/* Quando o JavaScript assume o controle (arraste + scroll), ele adiciona a
   classe .is-interactive. Aí desligamos a animação do CSS (quem move a faixa
   passa a ser o JS) e mostramos o cursor de "agarrar". */
.foto-marquee.is-interactive { cursor: grab; touch-action: pan-y; }
.foto-marquee.is-interactive.is-dragging { cursor: grabbing; }
.foto-marquee.is-interactive .foto-track { animation: none; }
/* enquanto arrasta, não deixa selecionar nem arrastar a imagem por engano */
.foto-marquee.is-interactive .foto-item img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

.foto-item {
  flex: 0 0 auto;
  width: clamp(190px, 42vw, 280px);
  height: clamp(190px, 42vw, 280px);   /* quadrado; muda aqui se quiser retangular */
  margin-right: 1rem;            /* espaço entre fotos (não usar gap: atrapalha o loop) */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .4rem 1.2rem rgba(18, 21, 24, .08);
}
.foto-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes foto-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* respeita quem prefere menos animação (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  .foto-track { animation: none; }
}

/* ---- Faixa de destaque (CTA escuro/peri) ---- */
.cta-band {
  background: linear-gradient(rgba(70, 11, 142,0.85), rgba(70, 11, 142,0.85)),
              url("../img/background-home.jpg") center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); }  /* texto claro sobre o roxo */

/* ---- Depoimentos ---- */
.testimonial {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  /* a troca de depoimento acontece com um fade suave (ver JS) */
  transition: opacity .45s ease;
}
/* o JS coloca esta classe no instante da troca: some, troca o texto, reaparece */
.testimonial.is-swapping { opacity: 0; }
.testimonial .who { font-weight: 700; }
.testimonial .where { color: var(--map-gray); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) {
  .testimonial { transition: none; }
}

/* ---- Listas com check ---- */
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; }
.list-check li::before {
  content: "\2713";                 /* ✓ */
  position: absolute; left: 0;
  color: var(--map-peri); font-weight: 700;
}

/* ---- Rodapé ---- */
.footer { background: var(--map-footer); color: #c8ccd0; }
.footer h6 { color: #fff; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; }
.footer a { color: #c8ccd0; }
.footer a:hover { color: #fff; }
.footer p { color: #c8ccd0; }  /* texto claro sobre o rodapé escuro */
.footer .footer-brand { font-family: "Outfit", sans-serif; color: #fff; font-size: 1.5rem; letter-spacing: 2px; }
.footer-bottom { background: #000; color: #9aa0a6; font-size: .9rem; }

/* ---- Selos de país clicáveis (Onde atuamos) ---- */
.pais-link {
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.pais-link:hover {
  color: var(--map-peri) !important;
  border-color: var(--map-peri) !important;
  transform: translateY(-2px);
}

/* ---- Grupos de CTA (dois botões lado a lado) ---- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;              /* mais espaço entre os botões lado a lado */
  margin-left: auto;
  margin-right: auto;
}
.cta-group > .btn { flex: 1 1 0; }   /* os dois ficam do mesmo tamanho no desktop */
@media (min-width: 576px) {
  .cta-group > .btn { white-space: nowrap; }  /* no desktop o texto não quebra dentro do botão */
}
@media (max-width: 575.98px) {
  .cta-group > .btn { flex-basis: 100%; }  /* no mobile empilha e ocupa a largura toda */
}

/* ---- Link com leve animação de subir + sublinhado no hover ---- */
.link-rise {
  display: inline-block;                 /* permite mover o link com transform */
  text-decoration: none;
  transition: transform .25s ease;
}
.link-rise:hover {
  transform: translateY(-4px);           /* sobe de leve ao passar o mouse */
  text-decoration: underline;
  text-underline-offset: 5px;            /* sublinhado um pouco afastado do texto */
}

/* Mais respiro no parágrafo de apoio do bloco CTA */
.lead-respiro {
  font-size: 1.1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FAQ (accordion) ajuste de cor ---- */
.accordion-button:not(.collapsed) {
  color: var(--map-peri);
  background-color: rgba(70, 11, 142, 0.08);
}
.accordion-button:focus { box-shadow: none; border-color: var(--map-line); }
