:root {
  --dark-blue: #dbdfeb;
  --light-blue: #3A7DFF;
  --light-blue-bg: #F0F5FF;
  --white: #FFFFFF;
  --dark-gray: #0A2240;
  --light-gray: #F4F4F4;
  --green: #00be19;
  --true-white: #FFFFFF;
  --true-black: #000000;
  --border-blue: #667c96;

  --font-family: 'Poppins', sans-serif;
  --header-height: 4.5rem;
}

/* ==================== VARIÁVEIS - MODO ESCURO ==================== */
.dark-mode {
  --dark-blue: #0A2240;
  --light-blue: #4C9BFF;
  --light-blue-bg: #0a2240;
  --white: #121212;
  --dark-gray: #E0E0E0;
  --light-gray: #ffffff;
  --green: #00be19;
  --true-white: #FFFFFF;
  --true-black: #000000;
  --border-blue: #0055b6;
}

/* ===== Base cross-browser (sem reset pesado) ===== */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  /* sem margem padrão do navegador */
  line-height: 1.5;
  /* leitura consistente */
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .6em;
  /* repõe margens previsíveis em títulos */
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

/* repõe espaçamento entre parágrafos */

ul,
ol {
  margin: 0 0 1em 1.25rem;
  /* recuo + espaçamento padrão de listas */
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #3A7DFF;
  outline-offset: 2px;
}

:focus {
  outline: none;
}

/* se você já usa focus-visible acima */

body {
  margin: 0;
  background-color: var(--dark-blue);
  font-family: var(--font-family);
  transition: background-color 0.3s ease;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === LOGO FIXA NO FUNDO (marca d’água) === */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url("LogoC_transparente_final.png") no-repeat center center;
  background-size: 80%;
  opacity: 0.2;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

header {
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#darkModeToggle {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: url("moon.png") no-repeat center/cover;
  border: none;
  cursor: pointer;
  background-color: transparent;
}

.dark-mode #darkModeToggle {
  background: url("sun.png") no-repeat center/cover;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: bold;
  font-size: 16px;
}

nav ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-height);
}

/* === LOGO DO CABEÇALHO (tamanho próprio) === */
.logo-menu {
  height: 80px;
  width: auto;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--header-height));
  text-align: center;
}

.hero-text {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  max-width: 800px;
  line-height: 1.3;
}

.content-box {
  background-color: var(--white);
  color: var(--dark-gray);
  margin: 20px auto;
  padding: 20px;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Empurrar "Área do cliente" para a direita */
nav ul {
  align-items: center;
}

nav ul .cta-right {
  margin-left: auto;
}

/* Estilo do botão dourado */
#btnAreaCliente {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #C9A227;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  background: var(--white);
  color: var(--dark-gray);
  width: min(90vw, 600px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 24px 24px 28px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--dark-gray);
}

.popup-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.popup-content p {
  margin: 12px 0;
  line-height: 1.4;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #f4f4f4;
  color: var(--true-black);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.store-btn:hover {
  background: var(--light-blue);
  color: #ffffff;
}

.store-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.popup-footer {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 16px;
}

.popup-footer a {
  color: var(--light-blue);
  font-weight: 600;
  text-decoration: none;
}

.popup-footer a:hover {
  text-decoration: underline;
}

.popup-content h3,
.popup-content p {
  text-align: center;
}

h3 {
  font-size: large;
}

.Apple-Logo {
  width: 100px;
  height: 30px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

body {
  padding-top: var(--header-height);
}

/* No topo: mostrar só o botão de dark mode */
.header--only-dark {
  background: transparent;
  box-shadow: none;
}

.header--only-dark #darkModeToggle {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

/* nunca esconda o nav por display:none */
.header--only-dark nav {
  display: block !important;
}

/* Fades */
nav ul,
.logo-menu {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.header--only-dark nav ul,
.header--only-dark .logo-menu {
  opacity: 0;
  pointer-events: none;
}

.header--only-dark nav {
  display: block !important;
}

header .logo-menu {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.header--only-dark .logo-menu {
  opacity: 0;
  pointer-events: none;
  display: inline-block !important;
}

/* underline animado em TODOS os links do menu (desktop + mobile) */
nav ul li:not(.brand-mobile):not(.cta-right)>a {
  position: relative;
}

nav ul li:not(.brand-mobile):not(.cta-right)>a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--light-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

nav ul li:not(.brand-mobile):not(.cta-right)>a:hover::after,
nav ul li:not(.brand-mobile):not(.cta-right)>a:focus-visible::after {
  transform: scaleX(1);
}

/* Triad */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.triad-item {
  background: var(--light-blue-bg);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 16px;
  color: var(--dark-gray);
}

.triad-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.triad-item p {
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Responsivo Triad */
@media (max-width: 600px) {
  .triad {
    grid-template-columns: 1fr;
  }
}

/* Hover triad */
.triad-item {
  transition: transform .25s ease, box-shadow .25s ease;
  transform-origin: center;
  position: relative;
  will-change: transform;
}

.triad-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* spacing content */
.content-box {
  margin: 20px auto 10px;
}

.content-box+.content-box {
  margin-top: 10px;
}

/* Galeria / História */
.content-box--galeria h2,
.content-box--galeria .historia p {
  text-align: center;
}

.galeria {
  position: relative;
  margin-top: 16px;
}

.galeria-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.galeria-track {
  display: flex;
  transition: transform .4s ease;
}

.galeria-track img {
  width: 100%;
  flex: 0 0 100%;
  display: block;
}

/* Botões galeria (base) */
.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .4);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.galeria-btn.prev {
  left: 8px;
}

.galeria-btn.next {
  right: 8px;
}

.galeria-btn:hover {
  background: rgba(0, 0, 0, .55);
}

/* Título “História” estilo “Sobre” */
.content-box .intro,
.content-box--galeria h2 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

/* Texto da história */
.historia-box {
  background: var(--light-blue);
  color: var(--white);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.historia-box p {
  line-height: 1.6;
  min-height: calc(1em * 1.6 * 5);
  margin: 0;
}

/* Galeria maior, sem cortar */
.galeria-viewport {
  max-width: 960px;
  height: clamp(320px, 50vh, 520px);
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 10px;
}

.galeria-track {
  display: flex;
  transition: transform .4s ease;
  height: 100%;
}

.galeria-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Botões galeria (estilizados) */
.galeria-btn {
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(10, 34, 64, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 2;
}

.galeria-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(10, 34, 64, .35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}

.galeria-btn.prev {
  left: 20px;
}

.galeria-btn.next {
  right: 20px;
}

.galeria-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

.galeria-btn.prev::before {
  background-image: url("setaesquerda.png");
}

.galeria-btn.next::before {
  background-image: url("setadireita.png");
}

.dark-mode .galeria-btn.prev::before {
  background-image: url("setaesquerdabranca.png");
}

.dark-mode .galeria-btn.next::before {
  background-image: url("setadireitabranca.png");
}

/* Métricas */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 0;
}

.stat {
  background: var(--light-blue-bg);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--dark-gray);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-blue);
  line-height: 1.1;
}

.stat-label {
  margin-top: 6px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.content-box--galeria .historia {
  margin-bottom: 10px;
}

.content-box--galeria .intro {
  margin-top: 10px;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

.triad-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.content-box:first-of-type {
  margin-top: 40px;
}

.content-box .triad {
  margin-top: 24px;
}

.triad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  min-height: 220px;
  padding-top: 12px;
}

.triad-icon {
  display: block;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  flex: 0 0 56px;
  margin: 0 0 6px 0;
}

.triad-title {
  margin: 0 0 6px 0;
}

.triad-item p {
  margin: 0;
  line-height: 1.4;
}

/* Nossos Serviços */
.services .intro {
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--light-blue-bg);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 16px;
  color: var(--dark-gray);
  min-height: 140px;
}

.service-title {
  margin: 0 0 8px;
  font-weight: 600;
  text-transform: none;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 240px;
  padding: 22px 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  transform-origin: center;
  will-change: transform;
  position: relative;
}

.service-card:hover,
.service-card:focus-within {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 200px;
  }
}

/* Seção full (contato) */
.content-box--full {
  max-width: none;
  width: 100%;
  border-radius: 0;
  padding: 28px 24px;
}

.content-box--full .full-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.full-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === LOGO DO RODAPÉ (classe base, será sobrescrita com seletor mais específico abaixo) === */
.full-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.full-tagline {
  margin: 0;
  font-weight: 600;
  color: var(--dark-gray);
}

.full-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

.contact-line {
  font-weight: 500;
  color: var(--dark-gray);
}

/* Redes sociais (PNG) */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social {
  width: 36px;
  height: 36px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.social.fb {
  background-image: url("facebook.png");
}

.social.wa {
  background-image: url("whatsapp.png");
}

.social.ig {
  background-image: url("instagram.png");
}

@media (max-width: 900px) {
  .content-box--full .full-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .full-right {
    align-items: center;
    text-align: center;
  }
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}

.social i {
  font-size: 24px;
  color: var(--dark-gray);
}

.social:hover {
  background: var(--light-blue-bg);
}

/* última seção “encostada” no final da página */
#contato-full {
  margin-bottom: 0 !important;
}

html {
  scroll-behavior: smooth;
}

/* Offset da âncora por causa do header fixo */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
}

#sobre,
#servicos,
#trabalhe-conosco,
#contato {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

/* © centralizado */
#contato-full .full-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5px;
}

#contato-full .full-footer p {
  margin: 0;
}

/* Afinamentos de layout do bloco contato */
.full-logo {
  max-width: 300px;
  height: auto;
}

.full-tagline span {
  display: block;
  font-weight: 600;
}

.full-tagline span+span {
  margin-top: 1rem;
}

.full-logo {
  margin-bottom: -10px;
}

.full-logo {
  margin-top: -50px;
}

.full-tagline {
  margin: 0px;
  line-height: 1.35;
  text-align: left;
}

#contato-full .full-left {
  align-items: flex-start;
  text-align: left;
}

.full-tagline {
  margin-inline-start: -25px;
}

.full-logo {
  margin-inline-start: -65px;
}

.full-footer {
  margin-top: 50px;
}

/* Botão/ícone do Maps */
.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  margin-top: 6px;
}

.map-pin i {
  font-size: 18px;
  color: var(--dark-gray);
}

.map-pin:hover {
  background: var(--light-blue-bg);
}

.socials .social i.fa-whatsapp,
.socials .social i.fab.fa-whatsapp {
  color: #25D366;
}

.socials .social i.fa-facebook-f,
.socials .social i.fab.fa-facebook-f {
  color: #1877F2;
}

.socials .social i.fa-instagram,
.socials .social i.fab.fa-instagram {
  color: #E4405F;
}

/* Popup maior para o mapa */
.popup-content--map {
  width: min(95vw, 1000px);
  padding: 0;
}

.map-frame {
  width: 100%;
  height: min(70vh, 720px);
  border-radius: 12px;
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.popup-content--map .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.map-pin-img {
  width: 36px;
  height: 36px;
}

/* ======= Mobile Fix Pack ======= */
@media (max-width: 768px) {
  :root {
    --header-height: 3.75rem;
  }

  header {
    padding: 0 10px;
  }

  #darkModeToggle {
    width: 36px;
    height: 36px;
    left: 10px;
  }

  .logo-menu {
    height: 56px;
  }

  nav ul {
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  nav ul li {
    height: var(--header-height);
  }

  nav ul .cta-right {
    margin-left: auto;
  }

  .hero-text {
    padding: 0 16px;
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .content-box {
    margin: 16px 8px;
    padding: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    min-height: 200px;
  }

  .galeria-viewport {
    height: clamp(220px, 40vh, 380px);
  }

  .galeria-btn {
    width: 40px;
    height: 40px;
  }

  .galeria-btn::before {
    width: 18px;
    height: 18px;
  }

  .popup-content {
    width: min(90vw, 560px);
    padding: 18px;
  }

  .store-btn {
    padding: 10px 12px;
  }

  #contato-full .full-left {
    align-items: flex-start;
    text-align: left;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
}

#sobre,
#servicos,
#trabalhe-conosco,
#contato {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

/* ===== TRABALHE CONOSCO ===== */
#trabalhe-conosco .intro {
  text-align: center;
  font-weight: 600;
  font-size: 30px;
}

#trabalhe-conosco .careers-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 700px;
}

.careers-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.careers-container h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--dark-gray);
}

.careers-container p {
  margin: 0;
  line-height: 1.6;
  color: var(--dark-gray);
}

.careers-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  background: var(--light-blue-bg);
  border: 1px solid var(--border-blue);
  color: var(--dark-gray);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.careers-card {
  background: var(--light-blue-bg);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.careers-card-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--dark-gray);
}

.careers-card-sub {
  margin: 0 0 16px;
  color: var(--dark-gray);
  opacity: 0.9;
}

.btn-wa {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-wa:hover,
.btn-wa:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  filter: brightness(1.05);
}

.careers-card-alt {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--dark-gray);
}

.tel-link {
  color: var(--light-blue);
  font-weight: 700;
  text-decoration: none;
}

.tel-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .careers-container {
    padding: 0 10px;
  }
}

.triad-item,
.service-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.triad-item:hover,
.service-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Botão hambúrguer ===== */
.menu-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--dark-gray);
  transition: transform .25s ease, top .25s ease, opacity .2s ease, background .25s ease;
}

.menu-toggle::before {
  top: 14px;
  box-shadow: 0 8px 0 0 var(--dark-gray);
}

.menu-toggle::after {
  top: 26px;
}

.nav-open .menu-toggle::before {
  top: 20px;
  transform: rotate(45deg);
  box-shadow: none;
}

.nav-open .menu-toggle::after {
  top: 20px;
  transform: rotate(-45deg);
}

/* Painel do menu no mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  header {
    padding: 0 56px;
  }

  #darkModeToggle {
    left: 10px;
  }

  #mainNav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 998;
  }

  .nav-open #mainNav {
    transform: translateY(0);
  }

  #mainNav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    white-space: normal;
  }

  #mainNav ul li {
    height: auto;
    padding: 10px 4px;
    border-radius: 8px;
  }

  #mainNav ul li a {
    display: inline-block;
    padding: 10px 8px;
    font-size: 1rem;
  }

  .logo-menu {
    height: 40px;
  }

  #mainNav .cta-right {
    margin-left: 0;
  }

  #mainNav .cta-right a {
    display: block;
    text-align: center;
    padding: 12px 14px;
    margin-top: 4px;
  }

  .header--only-dark.nav-open nav ul,
  .header--only-dark.nav-open .logo-menu {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Telas estreitas extras */
@media (max-width: 360px) {
  header {
    padding: 0 52px;
  }
}

/* Hambúrguer acima de tudo + dark mode contraste */
.menu-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--dark-gray);
  transition: transform .25s ease, top .25s ease, box-shadow .25s ease, opacity .2s ease;
}

.menu-toggle::before {
  top: 14px;
  box-shadow: 0 8px 0 0 var(--dark-gray);
}

.menu-toggle::after {
  top: 26px;
}

.nav-open .menu-toggle::before {
  top: 20px;
  transform: rotate(45deg);
  box-shadow: none;
}

.nav-open .menu-toggle::after {
  top: 20px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  header {
    padding: 0 56px;
  }

  #darkModeToggle {
    left: 10px;
  }

  #mainNav {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 998;
  }

  .nav-open #mainNav {
    transform: translateY(0);
  }

  #mainNav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    white-space: normal;
  }

  #mainNav ul li {
    height: auto;
    padding: 10px 4px;
    border-radius: 8px;
  }

  #mainNav ul li a {
    display: inline-block;
    padding: 10px 8px;
    font-size: 1rem;
  }

  .logo-menu {
    height: 40px;
  }

  #mainNav .cta-right {
    margin-left: 0;
  }

  #mainNav .cta-right a {
    display: block;
    text-align: center;
    padding: 12px 14px;
    margin-top: 4px;
  }

  .header--only-dark.nav-open nav ul,
  .header--only-dark.nav-open .logo-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 360px) {
  header {
    padding: 0 52px;
  }
}

.dark-mode .menu-toggle::before,
.dark-mode .menu-toggle::after {
  background: #fff;
  box-shadow: 0 8px 0 0 #fff;
}

/* ===== Trabalhe Conosco – Carrossel (set) ===== */
.tc-slider {
  position: relative;
  margin-top: 8px;
}

.tc-viewport {
  overflow: hidden;
}

.tc-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

.tc-slide {
  flex: 0 0 100%;
  padding: 8px 0;
}

.tc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(10, 34, 64, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  color: #fff;
  z-index: 2;
}

.tc-btn.prev {
  left: 8px;
}

.tc-btn.next {
  right: 8px;
}

.tc-btn:hover {
  background: rgba(10, 34, 64, .35);
}

.tc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.tc-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  border: 0;
  cursor: pointer;
}

.dark-mode .tc-dots .dot {
  background: rgba(255, 255, 255, .35);
}

.tc-dots .dot.is-active {
  background: var(--light-blue);
}

/* Slide 2 – contato */
.tc-contact {
  text-align: center;
}

.tc-contact h3 {
  margin: 0 0 6px;
}

.tc-lead {
  margin: 0 0 12px;
}

.tc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 12px;
  max-width: 900px;
}

.tc-contact-grid .tc-link {
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 700;
}

.tc-contact-grid .tc-link:hover {
  text-decoration: underline;
}

.tc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--light-blue);
  color: #fff;
}

.btn-secondary {
  background: var(--light-blue-bg);
  color: var(--dark-gray);
  border: 1px solid var(--light-gray);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary:hover {
  background: #eaf2ff;
}

@media (max-width: 900px) {
  .tc-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Carrossel variantes */
.tc-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.tc-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(10, 34, 64, .35);
}

.tc-btn.prev {
  left: 20px;
}

.tc-btn.next {
  right: 20px;
}

.tc-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

.tc-btn.prev::before {
  background-image: url("setaesquerda.png");
}

.tc-btn.next::before {
  background-image: url("setadireita.png");
}

.dark-mode .tc-btn.prev::before {
  background-image: url("setaesquerdabranca.png");
}

.dark-mode .tc-btn.next::before {
  background-image: url("setadireitabranca.png");
}

.tc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.tc-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  border: 0;
  cursor: pointer;
}

.dark-mode .tc-dots .dot {
  background: rgba(255, 255, 255, .35);
}

.tc-dots .dot.is-active {
  background: var(--light-blue);
}

.careers-card--contact {
  background: var(--light-blue-bg);
  border: 1px solid var(--light-gray);
  color: var(--dark-gray);
}

.careers-card--contact .careers-card-title {
  color: var(--dark-gray);
}

.tc-address {
  margin-top: 10px;
  opacity: .9;
}

@media (max-width: 900px) {
  .tc-btn {
    width: 40px;
    height: 40px;
  }

  .tc-btn::before {
    width: 18px;
    height: 18px;
  }
}

/* Card contato menor e central */
.tc-contact .careers-card {
  max-width: 360px;
  width: 100%;
  margin: 8px auto 0;
  padding: 18px 20px;
}

.tc-contact .careers-card-title {
  font-size: 1.05rem;
}

.tc-contact .careers-card .btn-wa {
  font-size: 0.98rem;
}

.tc-contact .careers-card-alt,
.tc-contact .tc-address {
  font-size: 0.95rem;
}

/* tcSlider: 1 slide por tela */
#tcSlider .tc-viewport {
  overflow: hidden;
}

#tcSlider .tc-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  transform: translateX(0);
}

#tcSlider .tc-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.tc-dots {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.tc-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  border: 0;
  cursor: pointer;
}

.dark-mode .tc-dots .dot {
  background: rgba(255, 255, 255, .35);
}

.tc-dots .tc-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--light-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .35s ease;
  pointer-events: none;
}

/* Compact header 641–1100px (sem hambúrguer) */
@media (max-width: 1100px) and (min-width: 641px) {
  header {
    padding: 0 12px;
  }

  .logo-menu {
    height: 56px;
  }

  #mainNav {
    position: static;
    transform: none !important;
    background: transparent;
    border-top: 0;
  }

  nav {
    width: 100%;
  }

  nav ul {
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  nav ul .cta-right {
    margin-left: auto;
  }

  #btnAreaCliente {
    padding: 8px 12px;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* HEADER responsivo universal */
:root {
  --header-min: 3.1rem;
  --header-max: 4.5rem;
}

@media (max-width: 1200px) {
  :root {
    --header-height: clamp(var(--header-min), 7.2vw, var(--header-max));
  }

  body {
    padding-top: var(--header-height);
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 8px);
  }

  header {
    padding: 0 clamp(48px, 5.5vw, 72px);
    align-items: center;
  }

  #darkModeToggle {
    left: clamp(8px, 2vw, 16px);
    width: clamp(32px, 4.5vw, 45px);
    height: clamp(32px, 4.5vw, 45px);
  }

  .logo-menu {
    height: clamp(36px, 7vw, 80px);
  }

  nav ul li a {
    font-size: clamp(.90rem, 2.6vw, 1rem);
    line-height: 1.1;
    padding: 10px 6px;
  }
}

/* ≤900px: menu painel (controle principal) */
@media (max-width: 900px) {
  .menu-toggle {
    display: block !important;
    right: clamp(8px, 2.5vw, 14px);
    width: clamp(34px, 5vw, 40px);
    height: clamp(34px, 5vw, 40px);
    z-index: 1001;
  }

  #mainNav {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 998;
  }

  .nav-open #mainNav {
    transform: translateY(0);
  }

  #mainNav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    white-space: normal;
  }

  #mainNav ul li {
    height: auto;
    padding: 6px 2px;
    border-radius: 8px;
  }

  #mainNav ul li a {
    display: inline-block;
    width: 100%;
    padding: 12px 8px;
    font-size: clamp(.95rem, 3.8vw, 1.05rem);
  }

  #mainNav .cta-right {
    margin-left: 0;
  }

  #mainNav .cta-right a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: clamp(.95rem, 3.8vw, 1.05rem);
  }

  .header--only-dark.nav-open nav ul,
  .header--only-dark.nav-open .logo-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ≤430 / ≤360 ajustes finos */
@media (max-width: 430px) {
  header {
    padding: 0 48px;
  }

  .logo-menu {
    height: 34px;
  }

  #darkModeToggle {
    width: 32px;
    height: 32px;
    left: 8px;
  }

  #mainNav ul li a {
    font-size: clamp(.9rem, 4.2vw, 1rem);
  }
}

@media (max-width: 360px) {
  header {
    padding: 0 44px;
  }

  .logo-menu {
    height: 32px;
  }

  #mainNav ul li a {
    font-size: clamp(.88rem, 4.6vw, .98rem);
  }
}

/* Segurança: nunca esconder nav */
.header--only-dark nav {
  display: block !important;
}

/* =========================================================
   FIX: manter os LOGOS separados por tamanho
   - Cabeçalho: .logo-menu (já definido acima)
   - Rodapé:   #contato-full .full-logo (força tamanho maior, independente de max-width)
   ========================================================= */
#contato-full .full-logo {
  height: 140px;
  /* tamanho maior do rodapé */
  width: auto;
  max-width: none;
  /* ignora o limite de 300px da classe base */
  margin-top: -10px;
  /* ajuste fino de espaçamento se precisar */
  margin-bottom: 0;
}

/* opcional: ligeiro ajuste no mobile */
@media (max-width: 900px) {
  #contato-full .full-logo {
    height: 110px;
  }
}

/* ====== FIX 1: centralização dura no mobile estreito ====== */
@media (max-width: 430px) {

  .content-box,
  .careers-container,
  .stats,
  .services .intro,
  .services-grid,
  .content-box--galeria,
  .galeria-viewport {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .content-box {
    width: calc(100% - 16px);
  }

  /* evita “colar” na borda */
}

/* segurança geral */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ====== FIX 2: hambúrguer sempre por cima e clicável ====== */
.menu-toggle {
  z-index: 1002 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* quando estiver no topo com header--only-dark, mantenha visível */
.header--only-dark .menu-toggle {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ====== FIX 3: painel mobile só muda pra coluna quando .nav-open ====== */
@media (max-width: 900px) {
  #mainNav {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 998;
  }

  /* enquanto FECHADO, lista inline com rolagem horizontal (não empilha) */
  #mainNav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    padding: 10px 14px;
    margin: 0;
    justify-content: center;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #mainNav ul::-webkit-scrollbar {
    display: none;
  }

  /* quando ABERTO, vira coluna e desce o painel */
  .nav-open #mainNav {
    transform: translateY(0);
  }

  .nav-open #mainNav ul {
    flex-direction: column !important;
    gap: 0;
    overflow: visible;
    white-space: normal;
    justify-content: flex-start;
  }

  .nav-open #mainNav ul li {
    height: auto;
    padding: 10px 4px;
    border-radius: 8px;
  }

  .nav-open #mainNav ul li a {
    display: inline-block;
    width: 100%;
    padding: 12px 8px;
    font-size: 1rem;
  }

  .header--only-dark.nav-open nav ul,
  .header--only-dark.nav-open .logo-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Opcional: padding em grids muito estreitos */
@media (max-width: 360px) {

  .triad,
  .services-grid,
  .stats {
    padding-inline: 4px;
  }
}

/* ---- POSICIONAMENTO FIXO DOS BOTÕES NOS CANTOS ---- */
#darkModeToggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: url("moon.png") no-repeat center/cover;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  z-index: 1001;
}

.dark-mode #darkModeToggle {
  background-image: url("sun.png");
}

/* botão do menu (usa IMG interna, não pseudo-elementos) */
.menu-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

/* remove as 3 barras geradas via ::before/::after (usaremos PNG) */
.menu-toggle::before,
.menu-toggle::after {
  content: none !important;
  box-shadow: none !important;
}

/* tamanho do PNG */
#menuIcon {
  width: 28px;
  height: 28px;
  display: block;
}

/* mantém o nav central e o header estável */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  background: var(--white);
  z-index: 999;
}

body {
  padding-top: var(--header-height);
}

/* quando header tem .header--only-dark, NÃO esconda os botões */
.header--only-dark #darkModeToggle,
.header--only-dark .menu-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* painel mobile (reforço) */
@media (max-width: 900px) {
  #mainNav {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    transform: translateY(-120%);
    transition: transform .25s ease;
    z-index: 998;
  }

  .nav-open #mainNav {
    transform: translateY(0);
  }
}

/* dimmer controlado via JS */
#navDim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 997;
}

.nav-open #navDim {
  opacity: 1;
  visibility: visible;
  display: block !important;
}

/* ===== Botão hambúrguer – base: NUNCA no desktop ===== */
.menu-toggle {
  display: none !important;
  /* escondido por padrão */
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

/* remove as barras antigas geradas por pseudo-elementos */
.menu-toggle::before,
.menu-toggle::after {
  content: none !important;
  box-shadow: none !important;
}

/* tamanho do PNG interno */
#menuIcon {
  width: 28px;
  height: 28px;
  display: block;
}

/* ===== Mostra APENAS no mobile ===== */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex !important;
  }

  /* aparece só aqui */
}

/* Tampa de segurança para telas grandes */
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }
}

/* Logo do header visível só em desktop */
.logo-desktop {
  display: block;
  height: 80px;
  width: auto;
}

@media (max-width:900px) {
  .logo-desktop {
    display: none;
  }
}

/* Logo do painel mobile (dentro do menu) — fica acima de "Início" */
.brand-mobile {
  display: none;
}

/* some no desktop */
.logo-menu-mobile {
  display: block;
  height: 72px;
  width: auto;
  margin: 8px auto 12px;
}

@media (max-width:900px) {

  /* só mostra a logo do painel quando o menu estiver aberto */
  .brand-mobile {
    display: none;
    text-align: center;
    width: 100%;
  }

  .nav-open #mainNav .brand-mobile {
    display: block;
    order: -1;
  }

  /* vem antes dos links */
}

/* Garantias do comportamento mobile já alinhadas com seu layout */
@media (max-width:900px) {
  #mainNav {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease, visibility .2s ease;
    z-index: 998;
  }

  #mainNav ul {
    display: none !important;
  }

  .nav-open #mainNav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-open #mainNav ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    padding: 10px 14px;
    margin: 0;
  }

  /* Hambúrguer só no mobile */
  .menu-toggle {
    display: flex !important;
  }
}

@media (min-width:901px) {
  .menu-toggle {
    display: none !important;
  }
}

/* Garante que o body não crie barra horizontal se algum 100vw extrapolar */
html,
body {
  margin: 0;
  overflow-x: hidden;
}

/* Footer full-bleed */
.site-footer {
  /* troque pelo seletor real do seu footer */
  background: #0B0B0B;
  /* sua cor preta */
  margin-inline: calc(50% - 50vw);
  /* “sangra” até as bordas da viewport */
  padding-block: 24px;
  /* ajuste seu padding vertical */
  /* opcional: remova arredondamento herdado */
  border-radius: 0 !important;
}

/* Conteúdo centralizado dentro do footer */
.site-footer .footer-inner {
  /* se tiver um wrapper interno */
  max-width: 1200px;
  /* ou seu container padrão */
  margin-inline: auto;
  padding-inline: 16px;
  /* respiro interno */
}

/* Suporte a áreas seguras (iPhone com notch) */
@supports (padding: max(0px)) {
  .site-footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* evita overflow horizontal global */
html,
body {
  margin: 0;
  overflow-x: hidden;
}

/* Footer full-bleed confiável (funciona mesmo com scrollbar) */
.bleed-footer {
  background: #0B0B0B;
  /* sua cor */
  border-radius: 0 !important;

  /* sangria real da viewport */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* sem padding lateral aqui; deixa para o .full-inner */
  padding-block: 24px;
  padding-inline: 0;
}

/* conteúdo centralizado dentro do footer */
.bleed-footer .full-inner {
  max-width: 1200px;
  /* ajuste ao seu container */
  margin-inline: auto;
  padding-inline: 16px;
  /* “respiro” interno */
}

/* áreas seguras (iPhone com notch) */
@supports (padding: max(0px)) {
  .bleed-footer .full-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* ↓ Até 900px escondemos as setas dos dois carrosséis */
@media (max-width: 900px) {

  .tc-btn,
  .galeria-btn {
    display: none !important;
  }
}

/* ===== Footer dinâmico por tema (override final) ===== */

/* Base (modo claro) */
.bleed-footer,
.site-footer {
  background: var(--white) !important;
  /* acompanha o tema claro */
  color: var(--dark-gray) !important;
  border-radius: 0 !important;
}

/* Conteúdo interno mantém o container centralizado */
.bleed-footer .full-inner,
.site-footer .footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Modo escuro */
.dark-mode .bleed-footer,
.dark-mode .site-footer {
  background: var(--white) !important;
  /* usa a variável do tema escuro */
  color: var(--light-gray) !important;
}

/* Textos do bloco de contato no footer seguem o tema */
#contato-full .full-left .full-tagline,
#contato-full .full-right .contact-line,
#contato-full .full-footer p {
  color: inherit !important;
}

/* Links no footer */
#contato-full .tel-link {
  color: var(--light-blue) !important;
}

#contato-full .tel-link:hover {
  text-decoration: underline;
}

/* Ícones sociais já usam var(--dark-gray) nas <i>, então herdam corretamente.
   Se quiser leve separador no topo do footer: */
#contato-full.content-box--full.bleed-footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.dark-mode #contato-full.content-box--full.bleed-footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ===== Lightbox da galeria ===== */
.image-lightbox {
  display: none;
}

.image-lightbox.show {
  display: flex;
}

.popup-content--image {
  width: min(96vw, 1100px);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.popup-content--image .popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.popup-content--image .image-wrap {
  width: 100%;
  height: min(80vh, 820px);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ==== Centralizar logo + frase no footer SOMENTE no celular ==== */
@media (max-width: 900px) {

  /* container da logo + texto */
  #contato-full .full-left {
    align-items: center !important;
    text-align: center !important;
  }

  /* logo do footer: remove empurrões para a esquerda */
  #contato-full .full-logo {
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
  }

  /* frase: centralizada e sem deslocamento */
  #contato-full .full-tagline {
    margin-inline-start: 0 !important;
    text-align: center !important;
  }
}

/* ====== TRABALHE CONOSCO – layout 2 colunas com divisória ====== */
.tc-one {
  margin-top: 8px;
}

.tc-grid {
  display: grid;
  grid-template-columns: 1fr min-content 1fr;
  /* col-esq | divisor | col-dir */
  align-items: start;
  gap: 24px;
}

/* Colunas herdam a tipografia/cores do tema já existente */
.tc-col {
  display: flex;
  flex-direction: column;
}

/* Divisória vertical (claro/escuro) */
.tc-divider {
  width: 1px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, .15) 12%,
      rgba(0, 0, 0, .2) 50%,
      rgba(0, 0, 0, .15) 88%,
      transparent 100%);
}

.dark-mode .tc-divider {
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 255, 255, .25) 12%,
      rgba(255, 255, 255, .32) 50%,
      rgba(255, 255, 255, .25) 88%,
      transparent 100%);
}

/* Títulos e textos já usam suas classes existentes.
   Apenas garantimos alinhamento simpático entre colunas */
#trabalhe-conosco .careers-left,
#trabalhe-conosco .tc-contact {
  max-width: 700px;
  margin-inline: auto;
}

/* Responsivo: no celular vira 1 coluna com divisória horizontal */
@media (max-width: 900px) {
  .tc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tc-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, .2) 12%,
        rgba(0, 0, 0, .25) 50%,
        rgba(0, 0, 0, .2) 88%,
        transparent 100%);
  }

  .dark-mode .tc-divider {
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, .32) 12%,
        rgba(255, 255, 255, .38) 50%,
        rgba(255, 255, 255, .32) 88%,
        transparent 100%);
  }

  /* Centraliza conteúdo no mobile (fica bonito e consistente) */
  #trabalhe-conosco .careers-left,
  #trabalhe-conosco .tc-contact {
    text-align: center;
    margin-inline: auto;
  }
}

/* ===== FIX: centralizar cada bloco e exibir divisória ===== */
#trabalhe-conosco .tc-grid {
  /* esq | divisor | dir */
  grid-template-columns: 1fr minmax(1px, 1px) 1fr;
  align-items: stretch;
  /* deixa a coluna do meio esticar */
}

#trabalhe-conosco .tc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centraliza horizontal */
  text-align: center;
  /* centraliza textos */
}

#trabalhe-conosco .tc-col-title {
  text-align: center;
  /* títulos no centro do bloco */
  margin: 0 0 14px 0;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--dark-gray);
}

/* garante que o conteúdo interno também fique centralizado */
#trabalhe-conosco .careers-left,
#trabalhe-conosco .tc-contact {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* DIVISÓRIA VERTICAL (desktop) */
#trabalhe-conosco .tc-divider {
  width: 1px;
  align-self: stretch;
  /* estica para altura total do grid */
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, .15) 12%,
      rgba(0, 0, 0, .28) 50%,
      rgba(0, 0, 0, .15) 88%,
      transparent 100%);
}

.dark-mode #trabalhe-conosco .tc-divider {
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 255, 255, .25) 12%,
      rgba(255, 255, 255, .4) 50%,
      rgba(255, 255, 255, .25) 88%,
      transparent 100%);
}

/* MOBILE: 1 coluna + divisória horizontal */
@media (max-width: 900px) {
  #trabalhe-conosco .tc-grid {
    grid-template-columns: 1fr;
    /* vira uma coluna */
    gap: 18px;
  }

  #trabalhe-conosco .tc-col-title {
    font-size: 1.15rem;
  }

  #trabalhe-conosco .tc-divider {
    width: 100%;
    height: 1px;
    /* linha horizontal */
    align-self: center;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, .2) 12%,
        rgba(0, 0, 0, .28) 50%,
        rgba(0, 0, 0, .2) 88%,
        transparent 100%);
  }

  .dark-mode #trabalhe-conosco .tc-divider {
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, .32) 12%,
        rgba(255, 255, 255, .45) 50%,
        rgba(255, 255, 255, .32) 88%,
        transparent 100%);
  }
}

/* === TRABALHE CONOSCO — normalização de espaçamentos entre colunas === */
:root {
  --tc-gap-1: 10px;
  /* chips/granular */
  --tc-gap-2: 16px;
  /* entre título, texto e chips */
  --tc-gap-3: 18px;
  /* entre chips e card */
}

/* 1) Colunas centralizadas e com um "gap" vertical único */
#trabalhe-conosco .tc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#trabalhe-conosco .tc-col-title {
  margin: 0 0 var(--tc-gap-2) 0;
  /* mesmo respiro abaixo do título em ambos */
}

/* 2) Pilha interna com gap consistente (aplica aos dois lados) */
#trabalhe-conosco .careers-left,
#trabalhe-conosco .tc-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--tc-gap-2);
  /* controla: h3 → p → chips */
  max-width: 700px;
}

/* 3) Zera margens soltas dos filhos diretos para o gap mandar */
#trabalhe-conosco .careers-left>h3,
#trabalhe-conosco .tc-contact>h3,
#trabalhe-conosco .careers-left>p,
#trabalhe-conosco .tc-contact>p,
#trabalhe-conosco .careers-left>.careers-chips,
#trabalhe-conosco .tc-contact>.careers-chips,
#trabalhe-conosco .careers-left>.careers-card,
#trabalhe-conosco .tc-contact>.careers-card {
  margin: 0 !important;
}

/* 4) Pequeno respiro extra entre as chips e o card (igual pros dois) */
#trabalhe-conosco .careers-left>.careers-chips+.careers-card,
#trabalhe-conosco .tc-contact>.careers-chips+.careers-card {
  margin-top: var(--tc-gap-3) !important;
}

/* 5) Parágrafos com mesma largura e leitura */
#trabalhe-conosco .careers-left>p,
#trabalhe-conosco .tc-contact>p {
  max-width: 640px;
  line-height: 1.6;
}

/* 6) Garante que o cartão tenha o mesmo espaçamento interno em ambos */
#trabalhe-conosco .careers-card {
  padding: 20px;
}

/* 7) Chips: mantém espaçamento interno do grupo consistente */
#trabalhe-conosco .careers-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tc-gap-1);
}

/* 8) No mobile, nada muda — já estava centralizado e com a mesma pilha */
@media (max-width: 900px) {

  /* só garante que nada “escapa” por margens herdadas */
  #trabalhe-conosco .tc-col,
  #trabalhe-conosco .careers-left,
  #trabalhe-conosco .tc-contact {
    align-items: center;
    text-align: center;
  }
}

/* Seções “Trabalhe Conosco” e “Faça sua Contabilidade” centralizadas e com respiro */
#trabalhe-conosco .tc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

#trabalhe-conosco p {
  margin-bottom: .75rem;
}

/* evita textos “colados” */
.careers-chips {
  gap: 10px;
}

/* mantém espaçamento dos chips */
.careers-card {
  padding: 20px;
}

/* respiro consistente no card */

/* Header previsível no Chrome/Edge (sem clipping) */
header {
  position: fixed;
  inset: 0 auto auto 0;
  right: 0;
  height: var(--header-height);
}

main {
  min-height: calc(100vh - var(--header-height));
}

/* ===== AJUSTES EXCLUSIVOS PARA GOOGLE CHROME ===== */
.is-chrome #siteHeader {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Espaçamento extra entre textos, chips e cartões */
.is-chrome #trabalhe-conosco .tc-col {
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.is-chrome #trabalhe-conosco p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.is-chrome #trabalhe-conosco .careers-chips {
  gap: 16px;
  margin-top: 12px;
}

.is-chrome #trabalhe-conosco .careers-card {
  margin-top: 24px;
  padding: 28px 30px;
  border-radius: 14px;
}

/* Garantir header correto também no mobile */
@media (max-width: 900px) {
  .is-chrome #mainNav ul li a {
    padding: 14px 10px;
  }

  .is-chrome #mainNav .cta-right a {
    padding: 14px 16px;
  }
}

/* ====== NAV mobile-first (override final) ====== */
/* Base = mobile por padrão */
.menu-toggle {
  display: flex !important;
}

/* painel móvel fechado por padrão */
#mainNav {
  position: fixed !important;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, .06);
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 998;
}

/* abrir/fechar via classe .nav-open no <header> ou <body> */
.nav-open #mainNav {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* lista do menu no mobile = coluna */
#mainNav ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
  padding: 10px 14px;
  margin: 0;
}

/* ===== Desktop: sobrescreve ===== */
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  #mainNav {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent;
    border-top: 0;
  }

  /* lista horizontal no desktop */
  #mainNav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    padding: 0;
    margin: 0;
  }
}

/* ===== FIX FOOTER TORTO / FORA DA TELA (override final) ===== */
/* Desativa o "bleed" e volta o footer a ocupar 100% da largura da página */
.bleed-footer,
.site-footer {
  position: static !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  /* mantenha apenas padding vertical; padding lateral vai para o inner */
  padding-inline: 0 !important;
}

/* Centraliza o conteúdo interno e aplica o respiro nas laterais */
.bleed-footer .full-inner,
.site-footer .footer-inner,
#contato-full .full-inner {
  max-width: 1200px;
  margin-inline: auto !important;
  padding-inline: 16px !important;
}

/* Garante que nada do footer provoque scroll lateral */
#contato-full,
.bleed-footer,
.site-footer {
  overflow-x: hidden !important;
}

/* Em mobile mantém tudo centralizado (já respeitando suas regras de tema) */
@media (max-width: 900px) {
  #contato-full .full-left {
    align-items: center !important;
    text-align: center !important;
  }

  #contato-full .full-logo {
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
  }

  #contato-full .full-tagline {
    margin-inline-start: 0 !important;
    text-align: center !important;
  }
}

/* ===== BLOCO VALORES ===== */
.valores-lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.valor {
  position: relative;
  cursor: help;
  color: var(--dark-gray);
  font-weight: 600;
  transition: color 0.2s ease;
}

.valor:hover {
  color: #3A7DFF;
  /* muda o tom ao passar o mouse */
}

/* ===== Tooltip customizado (igual estilo Google) ===== */
.valor::after {
  content: attr(title);
  position: absolute;
  bottom: 125%;
  /* sobe o tooltip acima do texto */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: normal;
  width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  line-height: 1.4;
  z-index: 10;
}

.valor:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Triângulo da “seta” do tooltip */
.valor::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.valor:hover::before {
  opacity: 1;
}

/* Garantir contexto para o overlay */
.map-frame {
  position: relative;
}

/* Overlay do loader de vídeo */
.map-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .35);
  /* leve véu por cima */
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 3;
  /* acima do iframe */
}

/* Mostra/oculta */
.map-loader.show {
  opacity: 1;
  visibility: visible;
}

/* Vídeo centralizado e responsivo */
#mapLoaderVideo {
  max-width: min(380px, 70vw);
  max-height: min(220px, 35vh);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  display: block;
}

/* Popup do maps */
.popup-content--map {
  position: relative;
}

.map-frame {
  position: relative;
  width: min(900px, 92vw);
  height: min(70vh, 560px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  /* evita flash branco em tema escuro */
}

#mapsIframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Loader sobre o iframe */
.map-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 3;
}

.map-loader.show {
  opacity: 1;
  visibility: visible;
}

#mapLoaderVideo {
  max-width: min(420px, 75vw);
  max-height: min(240px, 40vh);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Botão X visível acima de tudo */
.popup-close#mapPopupClose {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

html.dark-mode .popup-close#mapPopupClose {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

/* Acessibilidade p/ texto oculto */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Área do frame do mapa (garante stacking) */
.popup-content--map .map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  /* ajuste se quiser outra proporção */
  background: var(--map-bg, --dark-blue);
  border-radius: 16px;
  overflow: hidden;
}

/* Loader: ocupa o frame inteiro */
.map-loader {
  position: absolute;
  inset: 0;
  display: none;
  /* fica invisível até ganhar .show */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .08);
  /* leve véu */
  z-index: 5;
  transition: opacity .25s ease;
}

.map-loader.show {
  display: flex;
}

/* Conteúdo do loader */
.map-loader-inner {
  position: relative;
  width: clamp(64px, 12vmin, 120px);
  height: clamp(64px, 12vmin, 120px);
  display: grid;
  place-items: center;
}

/* A logo */
#mapLoaderLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rotate360 1.6s linear infinite, breathe 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .25));
}

/* Halo animado atrás da logo */
.map-loader-inner::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 999px;
  background: conic-gradient(from 0deg,
      transparent 0deg, rgba(0, 0, 0, .0) 110deg,
      currentColor 180deg, rgba(0, 0, 0, .0) 250deg, transparent 360deg);
  animation: spinSlow 1.8s linear infinite;
  opacity: .28;
}

/* Tema claro/escuro para a cor do halo */
html.dark-mode .map-loader-inner {
  color: #6ebcff;
}

html:not(.dark-mode) .map-loader-inner {
  color: #2d5cff;
}

/* Se o fundo da página for bem claro, dá um leve contorno */
html:not(.dark-mode) #mapLoaderLogo {
  filter:
    drop-shadow(0 6px 24px rgba(0, 0, 0, .18)) drop-shadow(0 0 1px rgba(0, 0, 0, .25));
}

/* Animações */
@keyframes rotate360 {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {

  #mapLoaderLogo,
  .map-loader-inner::before {
    animation: none;
  }
}

/* =========================================================
   FIX FINAL: Loader e botão "X" do mapa seguem o tema
   ========================================================= */

/* === Fundo e animação do loader === */
.map-loader {
  background: var(--white);
  /* usa o branco do tema */
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

.map-loader.show {
  opacity: 1;
  visibility: visible;
}

.map-loader-inner {
  position: relative;
  width: clamp(64px, 12vmin, 120px);
  height: clamp(64px, 12vmin, 120px);
  display: grid;
  place-items: center;
}

#mapLoaderLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rotate360 1.6s linear infinite, breathe 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .25));
}

/* Halo animado atrás da logo */
.map-loader-inner::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 999px;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(0, 0, 0, .0) 110deg,
      currentColor 180deg,
      rgba(0, 0, 0, .0) 250deg,
      transparent 360deg);
  animation: spinSlow 1.8s linear infinite;
  opacity: 0.28;
}

/* Cores do halo conforme o tema */
html.dark-mode .map-loader-inner {
  color: #6ebcff;
}

html:not(.dark-mode) .map-loader-inner {
  color: #2d5cff;
}

/* Sombras em fundo claro */
html:not(.dark-mode) #mapLoaderLogo {
  filter:
    drop-shadow(0 6px 24px rgba(0, 0, 0, .18)) drop-shadow(0 0 1px rgba(0, 0, 0, .25));
}

/* Animações */
@keyframes rotate360 {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* Acessibilidade: desativa se reduzir movimento */
@media (prefers-reduced-motion: reduce) {

  #mapLoaderLogo,
  .map-loader-inner::before {
    animation: none;
  }
}

/* === Botão "X" do popup === */
.popup-close#mapPopupClose {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-blue);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--dark-gray);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Hover com leve inversão */
.popup-close#mapPopupClose:hover {
  transform: scale(1.05);
  background: var(--light-blue-bg);
}

/* Modo escuro: inverte o contraste */
html.dark-mode .popup-close#mapPopupClose {
  background: var(--dark-blue);
  color: var(--light-gray);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark-mode .popup-close#mapPopupClose:hover {
  background: var(--light-blue);
  color: var(--true-white);
}

/* ======== TIMELINE (Nossa História) ======== */
.timeline-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.timeline {
  position: relative;
  min-width: 680px;
  /* espaço básico; aumenta com mais anos */
  padding: 28px 10px 44px;
  /* espaço pra caixas/top/bottom */
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .12), rgba(0, 0, 0, .08));
  border-radius: 999px;
}

.dark-mode .timeline-track {
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .26), rgba(255, 255, 255, .16));
}

.timeline-items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  /* cada ano ocupa uma coluna */
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0 8px;
  position: relative;
  z-index: 1;
  /* acima da linha */
}

.tl-item {
  position: relative;
  text-align: center;
}

/* Botão do ponto (losango + ano) */
.tl-dot {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dark-gray);
}

.dark-mode .tl-dot {
  color: var(--light-gray);
}

.tl-diamond {
  width: 18px;
  height: 18px;
  background: var(--light-blue);
  transform: rotate(45deg);
  border: 2px solid var(--true-white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.dark-mode .tl-diamond {
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.tl-year {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
}

/* Popover base */
.tl-pop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  background: var(--white);
  color: var(--dark-gray);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 2;
}

.dark-mode .tl-pop {
  background: #0f1828;
  /* um pouco mais claro que --dark-blue p/ contraste */
  color: var(--light-gray);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}

.tl-pop h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--light-blue);
}

.tl-pop p {
  margin: 0;
  line-height: 1.5;
  font-size: .96rem;
}

/* Direções (cima/baixo) + setinha */
.tl-pop--top {
  bottom: calc(50% + 16px);
}

.tl-pop--bottom {
  top: calc(50% + 16px);
}

.tl-pop--top::after,
.tl-pop--bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: inherit;
  border: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.tl-pop--top::after {
  bottom: -6px;
  border-top: 0;
  border-left: 0;
}

.tl-pop--bottom::after {
  top: -6px;
  border-right: 0;
  border-bottom: 0;
}

/* Estado aberto */
.tl-item.is-open .tl-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tl-item.is-open .tl-pop--top {
  transform: translateX(-50%) translateY(-4px);
}

.tl-item.is-open .tl-pop--bottom {
  transform: translateX(-50%) translateY(4px);
}

/* Snap no scroll horizontal da linha do tempo */
.timeline-wrap {
  scroll-snap-type: x mandatory;
}

.timeline-items>.tl-item {
  scroll-snap-align: center;
}

/* Mobile estreito — dá um respiro maior para as caixas */
@media (max-width: 600px) {
  .timeline {
    padding-top: 36px;
    padding-bottom: 52px;
  }

  .tl-pop {
    max-width: 86vw;
  }
}

/* ======== LINHA DE MARCOS ======== */
.timeline-section {
  margin-top: 2rem;
  text-align: center;
}

.timeline-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.dark-mode .timeline-section h3 {
  color: var(--light-gray);
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  padding: 3rem 0;
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--border-blue), var(--light-blue));
  transform: translateY(-50%);
  border-radius: 10px;
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}

.tl-item {
  position: relative;
  text-align: center;
  flex: 1;
}

.tl-dot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tl-diamond {
  width: 22px;
  height: 22px;
  background: var(--light-blue);
  transform: rotate(45deg);
  border: 2px solid #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .15);
}

.tl-year {
  font-weight: 700;
  color: var(--dark-gray);
}

.dark-mode .tl-year {
  color: var(--light-gray);
}

.tl-pop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--dark-gray);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  padding: 14px 16px;
  width: 230px;
  transition: opacity .25s ease, transform .25s ease;
  opacity: 0;
  pointer-events: none;
}

.dark-mode .tl-pop {
  background: #0e182b;
  color: var(--light-gray);
  border-color: rgba(255, 255, 255, .1);
}

.tl-pop--top {
  bottom: calc(50% + 30px);
}

.tl-pop--bottom {
  top: calc(50% + 30px);
}

.tl-item.active .tl-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1.02);
}

.tl-pop h4 {
  margin: 0 0 6px;
  color: var(--light-blue);
}

.tl-pop p {
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== Responsivo ===== */
@media (max-width: 800px) {
  .timeline {
    max-width: 95%;
  }

  .tl-pop {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .timeline-items {
    flex-direction: column;
  }

  .timeline-track {
    display: none;
  }

  .tl-item {
    margin-bottom: 3rem;
  }

  .tl-pop {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.timeline,
.timeline-items,
.content-box,
.historia,
.historia-box {
  overflow: visible !important;
}

.tl-pop {
  z-index: 5;
}

/* ===== Hotfix linha de marcos ===== */
.timeline-track {
  pointer-events: none;
}

/* a linha não bloqueia o clique */
.timeline-items {
  position: relative;
  z-index: 2;
}

.tl-dot {
  cursor: pointer;
}

.tl-diamond {
  pointer-events: auto;
}

.tl-pop {
  z-index: 5;
}

.timeline,
.timeline-items,
.content-box,
.historia,
.historia-box {
  overflow: visible !important;
}

/* === hotfix timeline (clique no losango) === */
.timeline-track {
  pointer-events: none;
}

/* a linha não intercepta cliques */
.timeline-items {
  position: relative;
  z-index: 2;
}

.tl-dot {
  cursor: pointer;
}

.tl-diamond {
  pointer-events: auto;
}

/* garante clique no losango */
.tl-pop {
  z-index: 5;
}

/* aparece sobre tudo */

/* TIMELINE — estado ABERTO (corrige a visibilidade) */
.tl-item.active .tl-pop,
.tl-item.is-open .tl-pop {
  opacity: 1;
  visibility: visible;
  /* <- ESSENCIAL: deixa de ficar escondido */
  pointer-events: auto;
  transform: translateX(-50%) scale(1.02);
}

/* Mantém o “empurrãozinho” vertical nas variantes */
.tl-item.active .tl-pop--top,
.tl-item.is-open .tl-pop--top {
  transform: translateX(-50%) translateY(-4px);
}

.tl-item.active .tl-pop--bottom,
.tl-item.is-open .tl-pop--bottom {
  transform: translateX(-50%) translateY(4px);
}

/* =========================
   Timeline vertical (mobile) — COMPACTA e estável
   ========================= */

.timeline-vertical {
  display: none;
}

@media (max-width: 900px) {

  /* Esconde a horizontal */
  .timeline {
    display: none !important;
  }

  .timeline-section {
    max-width: 980px;
    padding: 0 16px;
    margin: 0 auto;
  }

  .timeline-vertical {
    display: block;
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: .25rem 0 1.25rem;
  }

  /* Linha central */
  .timeline-vertical::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(var(--border-blue, #2b4d7c), rgba(255, 255, 255, 0.08));
    opacity: .65;
    border-radius: 2px;
    z-index: 0;
  }

  /* Grid com menos respiro */
  .tlv-item {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    /* coluna central um pouco menor */
    align-items: start;
    column-gap: 12px;
    /* meno gap */
    position: relative;
    min-height: 64px;
    /* era 84px */
    margin: 16px 0;
    /* era 36px */
    z-index: 1;
  }

  /* Centro (ano + losango) */
  .tlv-center {
    grid-column: 2;
    justify-self: center;
    display: grid;
    place-items: center;
    gap: 6px;
    /* era 8px */
    cursor: pointer;
    outline: none;
    z-index: 2;
  }

  .tlv-year {
    display: inline-block;
    font-weight: 700;
    font-size: .9rem;
    /* levemente menor */
    padding: 5px 10px;
    background: var(--light-blue, #3A7DFF);
    color: var(--true-white, #fff);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    border: 2px solid rgba(255, 255, 255, .22);
    white-space: nowrap;
    user-select: none;
  }

  .tlv-diamond {
    width: 16px;
    height: 16px;
    /* levemente menor */
    transform: rotate(45deg);
    background: var(--light-blue, #3A7DFF);
    border: 3px solid var(--true-white, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    border-radius: 2px;
  }

  /* Balão mais compacto */
  .tlv-pop {
    background: var(--white, #121212);
    color: var(--dark-gray, #E0E0E0);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 10px 12px;
    /* era 14px 16px */
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    width: calc(100% - 6px);
    max-width: 380px;
    /* limite menor */
    position: relative;
    z-index: 1;
  }

  .tlv-pop h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    text-align: center;
    color: var(--dark-gray, #E0E0E0);
  }

  .tlv-pop p {
    margin: 0;
    line-height: 1.45;
  }

  /* Ímpar esquerda | Par direita */
  .tlv-item:nth-child(odd) .tlv-pop {
    grid-column: 1;
    justify-self: end;
  }

  .tlv-item:nth-child(even) .tlv-pop {
    grid-column: 3;
    justify-self: start;
  }

  /* Setinha do balão */
  .tlv-item:nth-child(odd) .tlv-pop::after,
  .tlv-item:nth-child(even) .tlv-pop::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 10px;
    height: 10px;
    background: inherit;
    border-left: inherit;
    border-top: inherit;
    transform: rotate(45deg);
  }

  .tlv-item:nth-child(odd) .tlv-pop::after {
    right: -5px;
  }

  .tlv-item:nth-child(even) .tlv-pop::after {
    left: -5px;
  }

  /* Estado aberto */
  .tlv-item.open .tlv-pop {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .tlv-center:focus .tlv-year {
    outline: 2px solid var(--light-blue, #3A7DFF);
    outline-offset: 2px;
  }
}

/* ===== PQC 4 ESTRELAS ===== */
.pqc-section {
  overflow: hidden;
}

.pqc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.pqc-text {
  flex: 1 1 0;
  min-width: 0;
}

.pqc-badge {
  display: inline-block;
  background: var(--light-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pqc-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.2;
  margin: 0 0 14px;
}

.pqc-title span {
  color: var(--light-blue);
}

.pqc-desc {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin: 0;
  opacity: 0.88;
}

.pqc-seal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pqc-seal-img {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
  transition: transform 0.35s ease, filter 0.35s ease;
  animation: pqc-float 3.5s ease-in-out infinite;
}

.pqc-seal-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 32px rgba(255, 187, 0, 0.993));
}

@keyframes pqc-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 700px) {
  .pqc-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .pqc-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .pqc-seal-img {
    width: clamp(140px, 55vw, 200px);
  }
}