/* =========================================
   RESET E BASES, FONTES
   ========================================= */
@font-face {
  font-family: "Anton";
  src: url("./fonts/Anton/Anton-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Axiforma";
  src: url("./fonts/AXIFORMA/Axiforma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Axiforma-Bolditalic";
  src: url("./fonts/AXIFORMA/Axiforma-BoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat/Montserrat-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #030371;
}

main {
  overflow-x: hidden;
}

/* =========================================
   ESTRUTURA DE ANIMAÇÃO (STICKY) E HEADER
   ========================================= */
/* --- Ajustes no Desktop (Garantindo alinhamento) --- */
.sticky-wrapper {
  background: #130fbb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 10vh;
  z-index: 99;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  background: #130fbb;
}

.navigation-logo {
  display: flex;
  align-items: center;
}

.logo-responsive-header {
  width: 17vw;
  max-width: 200px;
  height: auto;
}

.navigation-links-wrapper {
  display: flex;
  align-items: center;
  gap: 2vw;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navigation-links {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  color: white;
  font-size: 0.9vw;
  cursor: pointer;
  text-decoration: none;
}

.navigation-action {
  display: flex;
  align-items: center;
}

.nav-contact {
  background-color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.2vw;
  border-radius: 20vw;
  padding: 0.8vw 1.5vw;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a0a6e;
  transition: background-color 0.3s ease;
}

.nav-contact:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.btn-whatsapp-icon {
  width: 24px;
  height: auto;
}

.navigation-mobile-container {
  display: none;
  cursor: pointer;
}

.menu-on-mobile {
  display: none;
}

/* =========================================
   SEÇÃO FULL SCREEN E MARQUEE
   ========================================= */
.full-screen-section {
  width: 100%;
  height: auto;
  position: relative;
}

.full-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-top: 2rem;
}

.marquee-container {
  position: absolute;
  bottom: -3rem;
  left: -2%;
  width: 105%;
  background-color: #030371;
  color: #ffffff;
  padding: 1vw 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  z-index: 5;
  rotate: 1.8deg;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scrollMarquee 20s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 3vw;
  padding-right: 3vw;
}

.marquee-group span {
  font-size: 1.8rem;
  font-weight: 780;
}

.dot {
  font-size: 1.5vw;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   SEÇÃO THREE CARDS
   ========================================= */
.three-cards-section {
  padding: 10vw;
  background-color: #f5efe5;
  text-align: center;
}

.section-title {
  font-family: "Anton", sans-serif;
  color: #030371;
  margin-bottom: 0;
  font-size: 3.5rem;
  letter-spacing: 2px;
  transform: scaleY(1.5);
}
.section-title span {
  color: #f76112;
}
.section-subtitle {
  font-family: "Anton", sans-serif;
  color: #130fbb;
  font-size: 1.5rem;
  margin-bottom: 3.5vw;
  font-weight: 500;
}
.cards-container {
  display: grid;
  /* Desktop: 4 colunas iguais */
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  width: 100%; /* Ocupa a largura da coluna do grid */
  aspect-ratio: 1 / 1; /* Garante que o card seja sempre um quadrado */
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: scale(1.05) rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 1vw;
  overflow: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front {
  background-color: #000;
}

.card-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 113, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-title {
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-family: "Axiforma-Bolditalic", sans-serif;
  font-size: 2vw;
  text-transform: uppercase;
}

.card-back {
  background-color: #030371;
  color: #ffffff;
  padding: 2vw;
  text-align: center;
  transform: rotateY(180deg);
}

.card-text {
  font-family: "Axiforma", sans-serif;
  font-size: 1.1vw;
  line-height: 1.5;
}

/* =========================================
   SEÇÃO LISTA DE SERVIÇOS
   ========================================= */
.services-list-section {
  background-color: #030371;
  padding: 22rem 0 5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.bg-massive-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Anton", sans-serif;
  font-size: 16vw;
  color: #0c06c0;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
  margin: 0;
  line-height: 0.75;
}

.services-list-container {
  display: flex;
  flex-direction: column;
  width: 80%;
  z-index: 1;
}

.service-row-card {
  background-color: #dcdcdc;
  border-radius: 1vw;
  padding: 3vw 5vw;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 2rem;
}

.service-row-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

.service-row-title {
  font-family: "Axiforma-Bolditalic", sans-serif;
  font-size: 2.2vw;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 1.5vw;
}

.service-row-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}

.service-row-links a {
  font-family: "Axiforma", sans-serif;
  font-size: 1.2vw;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-row-links a:hover {
  color: #030371;
  text-decoration: underline;
}

.service-row-visual {
  width: 40%;
  border-radius: 0.5vw;
  overflow: hidden;
}

.service-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #030371;
}

/* =========================================
   SEÇÃO PIRÂMIDE E SVG
   ========================================= */
.piramide-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* <-- A mágica acontece aqui. Empurra a imagem para a base */
  overflow: hidden;
  background-color: #000;
}

.piramide-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, #030371, #ffb2d8);
}

.ultramarino-piramide-title {
  position: absolute;
  z-index: 1;
  width: 95%;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: fadeUpLettering 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.ultramarino-lettering path,
.ultramarino-lettering .st0 {
  fill: #ffffff;
  transition: fill 0.3s ease-in-out;
}

.ultramarino-lettering:hover path,
.ultramarino-lettering:hover .st0 {
  fill: #ff5722;
}

.piramide-full-screen {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@keyframes fadeUpLettering {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* =========================================
   SEÇÃO CLIENTES
   ========================================= */
.clients-section {
  background-color: #000066;
  padding: 3rem 5rem 3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.clients-title {
  color: #f5f5f5;
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  padding-left: 5%;
  margin: 0;
  letter-spacing: 1.5px;
}

.marquee-wrapper {
  width: 100%;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Garante que o texto fique preso dentro do card */
.client-card {
  position: relative;
  display: flex;

  /* ADICIONE ESTAS DUAS LINHAS: */
  width: 350px; /* Define a largura fixa do card. Ajuste conforme o seu layout */
  flex-shrink: 0; /* Impede que o flexbox "esprema" o card, forçando ele a manter os 350px */
}
/* Opcional: Efeito hover premium limpo */
.client-card:hover .client-box {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.client-box {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.client-card:nth-child(odd) .client-box {
  background-color: #ff6600;
}
/* Container do texto posicionado na base */
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.project-client {
  color: #f5f5f5;
  font-family: "Axiforma", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 5px;
}

.project-category {
  color: #ffffff;
  font-family: "Anton", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* =========================================
   SEÇÃO DE DEPOIMENTOS
   ========================================= */
.testimonials-header {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column; /* Empilha tudo no centro por padrão */
  align-items: center;
  padding: 0 5vw;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials-section {
  background-color: #f5efe6; /* Cor creme do fundo */
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.testimonials-title {
  font-family: "Anton", sans-serif; /* Ou sua fonte de título */
  font-size: clamp(2rem, 5vw, 4rem);
  color: #030371; /* Azul escuro */
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

.google-stars-badge {
  margin-bottom: 3rem;
  background: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.google-stars-badge img {
  height: 3rem; /* Ajuste conforme a sua imagem */
  display: block;
}

/* =========================================
   SLIDER E TRACK (PISTA DE ROLAGEM)
   ========================================= */
/* Container das Setas */
.slider-controls {
  display: none; /* Mantemos escondido no mobile, já que o usuário arrasta com o dedo */
  gap: 15px; /* Espaço exato entre as duas setas */
}
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
}

.testimonial-track {
  display: flex;
  gap: 2vw;
  padding: 1rem 5vw; /* Padding lateral para respiro */
  overflow-x: auto;
  scroll-behavior: smooth;

  /* Esconde a barra de rolagem mas mantém a funcionalidade */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */

  /* Ativa o scroll magnético no mobile */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* =========================================
   CARDS DE DEPOIMENTO
   ========================================= */
.testimonial-card {
  flex: 0 0 350px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-author-name {
  font-family: "Axiforma", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin: 0;
}

.card-stars {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.testimonial-text {
  font-family: "Axiforma", sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* =========================================
   SETAS DE NAVEGAÇÃO (DESKTOP)
   ========================================= */
.slider-arrow {
  background-color: transparent;
  color: #030371;
  border: 2px solid #030371;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover {
  background-color: #030371;
  color: #ffffff;
}

.left-arrow {
  left: 1vw;
}
.right-arrow {
  right: 1vw;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media only screen and (min-width: 768px) {
  .testimonials-header {
    justify-content: space-between;
    align-items: flex-end; /* Alinha as setas pela base do título */
  }
  .header-titles {
    align-self: center;
  }
  .testimonials-title {
    text-align: left;
  }
  .slider-controls {
    display: flex; /* Exibe as setas lado a lado no desktop */
    align-self: flex-end;
    margin: 0rem 10rem;
  }
  .slider-arrow {
    display: flex; /* Mostra as setas apenas no desktop */
  }

  .testimonial-track {
    scroll-snap-type: none;
  }
}

/* =========================================
   SEÇÃO VISITA (MAPA)
   ========================================= */
.visit-section {
  background-color: #0000bb;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.visit-title {
  color: #f5f5f5;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 2px;
  margin-bottom: 0.1rem;
}

/* Nova classe para o endereço (limpando o HTML) */
.visit-address {
  color: white;
  font-family: "Axiforma", sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2rem; /* Espaçamento entre o texto e o botão */
}

/* =========================================
   BOTÃO DE AGENDAMENTO
   ========================================= */
.btn-agendar-visita {
  background-color: #7ab840; /* Verde inspirado na sua imagem */
  color: #ffffff;
  font-family: "Axiforma", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 50px; /* Deixa o botão em formato de pílula */
  margin-bottom: 3rem; /* Espaçamento entre o botão e o mapa */
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Leve sombra para dar profundidade */
}

/* Efeito ao passar o mouse */
.btn-agendar-visita:hover {
  background-color: #689e35; /* Fica levemente mais escuro */
  transform: translateY(
    -2px
  ); /* Sobe um pouquinho para dar sensação de clique */
  color: white;
}

/* =========================================
   MAPA
   ========================================= */
.map-container {
  width: 100%;
  max-width: 900px;
  height: 450px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: #030371;
}

.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 5vw 0;
  position: relative;
}

.logo-bg-letter {
  font-family: "Anton", sans-serif;
  font-size: 11vw;
  color: #060192;
  line-height: 0;
  margin-bottom: 5vw;
}

.logo {
  z-index: 3;
  margin-bottom: 2vw;
}

.logo-responsive-footer {
  width: 25vw;
  max-width: 200px;
  height: auto;
}

.contact {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1vw;
}

.icon-footer-container {
  padding: 1vw;
}

.icon-footer {
  width: 2vw;
  height: auto;
  fill: #f4f4f4;
  transition: fill 0.3s ease;
}

.icon-footer:hover {
  fill: white;
}
/* =========================================
   CASES DE SUCESSO
   ========================================= */
.cases-section {
  background-color: #f4f5f7; /* Cor de fundo off-white da imagem */
  padding: 2rem 5vw;
  font-family: "Axiforma", sans-serif; /* Usando a fonte que você já tem */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-wrapper p {
  color: white;
  font-family: "Montserrat";
  padding-left: 5%;
  font-size: 1.6rem;
}

.cases-main-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 3rem;
  /* Gradiente Rosa para Azul escuro */
  background: linear-gradient(90deg, #b04975 0%, #3026b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.cases-container {
  width: 100%;
  max-width: 1200px;
}

/* =========================================
   ABAS (TABS)
   ========================================= */
.cases-tabs {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: -1px; /* Faz a aba ativa colar no fundo verde */
}

.case-tab {
  flex: 1;
  background-color: #e0e0e0; /* Cinza aba inativa */
  color: #130fbb; /* Azul texto */
  border: none;
  padding: 1.5rem 1rem;
  font-family: "Axiforma-Bolditalic", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 15px 15px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.case-tab:hover {
  background-color: #d0d0d0;
}

.case-tab.active {
  background-color: #b3e381; /* Verde aba ativa */
  padding-bottom: 2rem; /* Faz ela parecer maior/integrada com a caixa de baixo */
}

/* =========================================
   CAIXA DE CONTEÚDO (CONTEÚDO E CARDS)
   ========================================= */
.cases-content-wrapper {
  background-color: #b3e381; /* Verde fundo */
  border-radius: 0 15px 0 0; /* Arredonda só o topo direito */
  position: relative;
  z-index: 1;
  overflow: hidden; /* Para o footer não vazar as bordas arredondadas do fundo se houver */
}

.case-content {
  display: none; /* Esconde os inativos */
  flex-direction: column;
}

.case-content.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px; /* Margem interna do quadro verde */
}

.metric-card {
  background-color: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #000;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eaeaea;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2rem 1rem 0.5rem;
  font-family: "Anton", sans-serif;
  font-size: 4.5rem;
  color: #130fbb; /* Azul forte */
  line-height: 1;
}

/* O triângulo verde para cima */
.triangle-up {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #b3e381;
  margin-top: 10px;
}

.metric-detail {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  padding: 0 1rem 2rem;
}

/* =========================================
   FOOTER DOS CASES (AZUL ESCURO)
   ========================================= */
.case-footer {
  background: radial-gradient(circle at top left, #860ea7, #030371);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-top: 10px;
}

.case-footer p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.case-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.tag {
  background-color: white;
  color: black;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plus-icon {
  color: #8cc63f; /* Verde mais escuro para o + */
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================================
   ESTRUTURA GLOBAL DO MODAL (CARD FLUIDO)
   ========================================= */

/* 1. O Overlay (Fundo) */
.modal {
  display: none; /* JS muda para flex */
  position: fixed;
  inset: 0; /* Shorthand moderno que substitui top:0, left:0, width:100%, height:100% */
  background-color: rgba(
    3,
    3,
    113,
    0.6
  ); /* Azul escuro da sua paleta, mas translúcido */
  backdrop-filter: blur(8px); /* Efeito de vidro (glassmorphism) no fundo */
  z-index: 999;

  /* Centraliza o card exatamente no meio da tela */
  justify-content: center;
  align-items: center;
  padding: 20px; /* Garante que o card nunca encoste na borda da tela */
}

/* 2. O Card (Janela) */
.modal-content {
  background-color: #0c06c0; /* Cor sólida para destacar do fundo translúcido */
  width: 100%;
  max-width: 900px;
  max-height: 85vh; /* O card não pode ser maior que 85% da altura da tela */
  overflow-y: auto; /* Se o conteúdo for grande, o scroll acontece DENTRO do card */
  border-radius: 24px; /* Bordas arredondadas bem modernas */
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Sombra suave para dar profundidade (elevação) */
  position: relative;
  color: #ffffff;

  /* Prepara a animação */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: modalEntrada 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  justify-self: center;
}

/* 3. A Animação Fluida */
@keyframes modalEntrada {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 4. Estilização interna da Janela */
.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-header span {
  font-family: "Axiforma", sans-serif;
  font-size: 1.2rem;
  color: #ea6601; /* Laranja de destaque da Ultramarino */
}

.modal-header h2 {
  font-family: "Anton", sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  margin: 0;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 40px;
  font-weight: 300; /* Font-weight menor deixa o 'X' mais sofisticado */
  line-height: 1;
  cursor: pointer;
  z-index: 1000;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.close-modal:hover {
  color: #ea6601;
  transform: rotate(90deg); /* Pequeno detalhe de micro-interação */
}

/* Grid da Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.modal-img-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Opcional: Personalizar a barra de rolagem DENTRO do modal para ficar mais limpo */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
/* =========================================
   BOTÃO WHATSAPP FIXO
   ========================================= */
.whatsapp-fixed-btn {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Posicionado no canto inferior esquerdo conforme solicitado */
  z-index: 990; /* Alto o suficiente para sobrepor o site, mas abaixo do modal (que colocamos 999) */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Curva elástica para dar um "bounce" */
}

.whatsapp-fixed-btn img {
  width: 45px; /* Ajuste o tamanho ideal da sua imagem aqui */
  height: auto;
  filter: drop-shadow(
    0 6px 12px rgba(0, 0, 0, 0.25)
  ); /* Sombra contornando o PNG */
}

/* Micro-interação de UX: o botão dá um "pulinho" ao passar o mouse */
.whatsapp-fixed-btn:hover {
  transform: scale(1.1) translateY(-5px);
}
/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: #030371; /* Azul marinho bem escuro do seu design */
  border-radius: 40px 40px 0 0; /* Arredondamento superior */
  padding: 5rem 5vw 3rem;
  color: #ffffff;
  font-family: "Axiforma", sans-serif;
  margin-top: -20px; /* Puxa levemente para cima para sobrepor a seção anterior, se necessário */
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  /* Grid mágico: 1.5 de espaço para a logo, 1 para o resto */
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3vw;
}

/* Colunas genéricas */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Marca (Logo e textos legais) */
.brand-col {
  padding-right: 2vw;
}

.footer-logo {
  width: 220px;
  height: auto;
  margin-bottom: 2rem;
}

.footer-text {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-legal-link {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer-legal-link:hover {
  opacity: 0.7;
}

/* Títulos das colunas */
.footer-title {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Listas de links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Espaçamento entre os itens */
}

.footer-links a {
  color: #ffffff;
  font-family: "Axiforma", sans-serif;
  font-weight: 700; /* Peso da fonte conforme a imagem */
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #ea6601; /* Laranja da marca no hover */
}

/* Ícone de seta para as redes sociais */
.arrow-icon {
  font-family: "Axiforma-Bolditalic", sans-serif;
  color: #ffffff; /* Cor da seta */
  margin-right: 8px;
  font-weight: normal;
  transition: transform 0.3s ease;
}
.client-card:hover .arrow-icon {
  transform: translate(3px, -3px); /* Setinha pula na diagonal no hover */
}

/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media only screen and (max-width: 768px) {
  /* Esconde os links e o botão de contato do desktop */
  .navigation-links-wrapper,
  .navigation-action {
    display: none;
  }

  /* Mostra o container do hambúrguer */
  .navigation-mobile-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinha o ícone à direita */
    flex-grow: 1; /* Ocupa o espaço restante para empurrar para a direita */
  }

  .navigation-mobile-container img {
    width: 30px; /* Ajuste o tamanho do ícone aqui */
    height: auto;
  }

  /* Estilização do Menu Mobile (o que aparece ao clicar) */
  .menu-on-mobile {
    position: absolute;
    top: 10vh; /* Logo abaixo da header */
    right: 5vw;
    background-color: #130fbb;
    width: 200px;
    display: none; /* Escondido por padrão */
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }

  /* Classe que o JS vai adicionar para mostrar o menu */
  .menu-on-mobile.active {
    display: flex !important;
  }

  .menu-on-mobile span,
  .menu-on-mobile a {
    color: #130fbb;
    font-family: "Montserrat", sans-serif;
    padding: 10px 0;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-footer {
    border-radius: 25px 25px 0 0;
    padding: 4rem 5vw;
  }

  .footer-container {
    /* Empilha todas as colunas no mobile */
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-title {
    margin-bottom: 1.5rem;
  }

  /* Reduz levemente o espaçamento no mobile para otimizar tela */
  .footer-links {
    gap: 1rem;
  }

  /* Ajustes do Modal para Mobile */
  .modal-header h2 {
    font-size: 2rem;
  }

  .close-modal {
    top: 10px;
    right: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr; /* Uma foto por linha no mobile */
    gap: 15px;
  }
}

/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .full-screen-img {
    content: url("https://ultramarino.com.br/wp-content/themes/modular-performance-theme-main/new-home-page/assets/images/banner-mobile.png");
  }
}
@media only screen and (max-width: 768px) {
  .full-screen-section {
    /* Ajusta a altura para não ficar um banner gigante vertical */
    height: auto;
  }
  .full-screen-img {
    /* Aqui você pode trocar a imagem se estiver usando um framework ou via CSS */
    /* Se for mudar via CSS puro, usamos a técnica de trocar o 'content' ou 'background' */
    aspect-ratio: 1 / 1; /* Garante o formato 360x360 */
    margin-top: 4rem; /* Espaço para não bater na header fixa */
  }

  .marquee-container {
    bottom: -1.5rem; /* Ajuste da posição por causa da inclinação */
    rotate: 3deg; /* Um pouco mais inclinado no mobile dá um visual mais dinâmico */
    padding: 3vw 0;
    width: 110%; /* Aumentamos a largura para a ponta não aparecer no rotate */
    left: -5%;
  }

  .marquee-group span {
    font-size: 1.2rem; /* Fonte menor para telas pequenas */
    font-weight: 800;
  }

  .dot {
    font-size: 1rem;
  }

  .marquee-content {
    animation-duration: 12s; /* Marquee um pouco mais rápido no mobile pela largura menor */
  }
  .section-title {
    margin: 5rem 0rem;
    line-height: 1;
    margin-bottom: 3rem;
  }
  .section-subtitle {
    margin-bottom: 10vh;
  }
  .visit-address {
    font-size: 1.1rem; /* Diminui um pouco o texto no celular */
    padding: 0 10px;
  }

  .btn-agendar-visita {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 80%; /* Faz o botão ocupar bem o espaço no mobile */
    max-width: 300px;
  }
  .cases-tabs {
    flex-direction: column;
    gap: 0;
  }

  .case-tab {
    border-radius: 10px;
    margin-bottom: 5px;
  }

  .case-tab.active {
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
  }

  .cases-content-wrapper {
    border-radius: 0 0 10px 10px;
  }

  .cards-grid {
    grid-template-columns: 1fr; /* Empilha os cards */
  }

  .metric-number {
    font-size: 3.5rem;
  }

  .case-tags {
    flex-direction: column;
  }
}
/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media only screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* Uma foto abaixo da outra */
    gap: 15px;
  }
  /* Header e Navegação */
  .navigation-links-wrapper,
  .navigation-action {
    display: none; /* Esconde links e botão de contato na barra superior */
  }

  .navigation-mobile-container {
    display: flex !important;
    margin-left: auto; /* Joga o hamburguer para a direita */
  }

  .logo-responsive-header {
    width: 35vw;
  }

  .menu-on-mobile {
    position: absolute;
    background-color: white;
    top: 10vh; /* Fica logo abaixo do header */
    right: 5vw;
    font-family: "Axiforma", sans-serif;
    color: #0a0a6e;
    font-size: 6vw;
    padding: 8vw 0;
    width: 90vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6vw;
    z-index: 200;
    border-radius: 2vw;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
  }

  .nav-contact-mobile {
    background-color: #ea6601;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: white;
    font-size: 5vw;
    border-radius: 10vw;
    padding: 3vw 6vw;
    text-decoration: none;
    margin-top: 2vw;
  }

  .triangle {
    position: absolute;
    right: 5vw;
    top: -4vw;
    width: 0;
    height: 0;
    border-bottom: 5vw solid white;
    border-left: 5vw solid transparent;
    border-right: 5vw solid transparent;
  }

  .div-hided {
    display: none !important;
  }

  /* Three Cards Section */
  .three-cards-section {
    padding: 15vw 5vw;
  }
  .section-title {
    font-size: 8vw;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .section-subtitle {
    font-size: 4vw;
    text-align: center;
    margin-bottom: 10vw;
  }
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .card {
    height: auto;
  }

  .card-title {
    font-size: 4vw; /* Ajuste para caber no quadrado menor */
    text-align: center;
    padding: 0 5px;
  }

  .card-text {
    font-size: 3.5vw;
    line-height: 1.3;
  }

  /* Lista de Serviços */
  .services-list-section {
    padding: 15rem 0 5rem;
  }

  .bg-massive-text {
    font-size: 26vw;
  }

  .services-list-container {
    width: 90%;
  }

  .service-row-card {
    flex-direction: column-reverse;
    padding: 6vw;
  }

  .service-row-info {
    width: 100%;
    align-items: center;
    text-align: center;
    margin-bottom: 5vw;
  }

  .service-row-title {
    font-size: 7vw;
  }

  .service-row-links a {
    font-size: 4.5vw;
  }

  .service-row-visual {
    width: 100%;
    height: auto;
  }
  .service-row-img {
    border-radius: 15px;
    height: 20vh;
  }

  /* Footer e Ícones */
  .logo-bg-letter {
    font-size: 15vw;
  }

  .piramide-wrapper {
    min-height: 55vh; /* Reduz a altura total da section no mobile para melhor proporção */
  }

  .icon-footer {
    width: 8vw;
  }

  .contact {
    gap: 4vw;
  }

  /* 1. Transforma o wrapper na área de rolagem nativa */
  .marquee-wrapper {
    width: 100%;
    overflow-x: auto; /* Habilita a rolagem horizontal */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Efeito magnético para parar no card */
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
    padding: 0 5vw; /* Margem inicial para o primeiro card não colar na tela */
    scrollbar-width: none; /* Oculta a barra de rolagem no Firefox */
  }

  /* Oculta a barra de rolagem no Chrome/Safari/Edge para um visual mais limpo */
  .marquee-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* 2. Desativa a animação e ajusta o trilho */
  .marquee-track {
    animation: none; /* Para o movimento automático */
    width: max-content;
    gap: 4vw; /* Espaço entre os cards no mobile */
    padding-right: 10vw; /* Dá um respiro após o último card ao rolar até o fim */
    cursor: pointer;
  }

  /* 3. Ajusta os cards para o toque e proporção mobile */
  .client-card {
    scroll-snap-align: center; /* Faz o scroll "travar" com o card centralizado na tela */
    width: 60vw; /* Tamanho relativo à tela do celular */
    height: 60vw;
  }

  /* 4. Esconde os cards duplicados do loop infinito */
  .client-card[aria-hidden="true"] {
    display: none;
  }
}
