/*
Theme Name: DPA 2025
Theme URI: https://adoisdigital.com.br/
Author: Itamar Silva
Author URI: https://adoisdigital.com.br/
Description: Tema personalizado para o projeto DPA.
Version: 1.0
*/

/* === Variáveis === */
:root {
  --cor-texto-servico: #4a2600;
  --cor-card-fundo: rgba(255, 255, 255, 0.2);
  --altura-card: 160px;
  --largura-card: 100%;
  --largura-card-md: 220px;
}

/* === Reset & Base === */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.scroll-container {
  height: 100vh;
  overflow-y: scroll;
}

/* === Carousel === */
.carousel-item {
  height: 70vh;
  min-height: 400px;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.carousel-item .container {
  z-index: 2;
  position: relative;
  color: white;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
  opacity: 1;
}

/* === Scroll Indicator === */
.scroll-indicator-vertical {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 10;
}

.scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.scroll-text {
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-wrapper .arrow {
  border: 1px solid white;
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  width: 45px;
  height: 45px;
}

/* === MENU MOBILE PERSONALIZADO (OFFCANVAS) === */
.offcanvas.offcanvas-end {
  margin-top: 20%;
  margin-right: 3%;
  width: 280px !important; /* Largura do menu */
  height: 100vh !important; /* Altura total da tela */
  max-height: 55vh;
  border-radius: 16px !important; /* Arredondado à esquerda */
  background-color: #243162 !important; /* Cor de fundo personalizada (escura) */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Links do menu */
.offcanvas .navbar-nav .nav-link {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 300;
  font-size: 1rem;
}

/* Remover borda do último link */
.offcanvas .navbar-nav .nav-item:last-child .nav-link {
  border-bottom: none;
}

/* Ícones sociais */
.offcanvas .social-links {
  margin-top: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}

.offcanvas .social-links a {
  font-size: 1.3rem;
  color: #fff;
  transition: opacity 0.2s;
}

.offcanvas .social-links a:hover {
  opacity: 0.7;
}

/* === Navbar === */
.navbar-toggler-icon {
  width: 2rem; /* largura do ícone */
  height: 2rem; /* altura do ícone */
}

.navbar-toggler i {
  font-size: 2rem; /* ou 32px */
}

.bg-button-nav {
  background-color: #f8b508 !important;
}

.navbar-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar-nav .nav-link {
  padding: 0;
  font-weight: 500;
}

.navbar-dpa {
  background-color: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar-dpa.scrolled .navbar-border {
  border-bottom: none;
}

.navbar-dpa.scrolled {
  background-color: rgba(21, 30, 66, 0.85);
  backdrop-filter: blur(6px);
}

.mobile-menu-wrap {
  position: relative;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100vw;
  max-width: 300px;
  background: #fff;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.mobile-menu-wrap.active .mobile-menu {
  transform: translateX(0);
}

.btn-menu,
.btn-collapse {
  background: none;
  border: none;
  font-size: 24px;
  color: #000;
}

.social-links a {
  margin-right: 10px;
  font-size: 20px;
}

/* === Abas Personalizadas === */
.custom-tabs .nav-link {
  font-weight: 500;
  color: #999 !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid #ccc !important;
  border-radius: 0 !important;
  padding-bottom: 8px;
  margin-right: 20px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.custom-tabs .nav-link.active {
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  border-bottom: 3px solid #f8b508 !important;
}

/* === Seção Serviços === */
.servicos-resumo {
  background-color: #f8b508;
}

.servico-item {
  color: #000;
  height: var(--altura-card);
  width: 100%;
  max-width: 230px;
  border: 1px solid #000;
  transition: transform 0.3s ease;
}

.servico-item:hover {
  transform: scale(1.03);
}

.servico-item h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.servico-item i {
  color: #000;
}

/* === Título Serviços === */
#titulo-servicos {
  color: #000;
  transition: all 0.8s ease-in-out;
}

/* === Animações === */
.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 1 !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-up {
  opacity: 0;
}

.animate-fade {
  opacity: 0;
  transform: scale(0.95);
}

.animate-visible {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-title-visible {
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-0 {
  animation-delay: 0.1s;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.4s;
}
.delay-4 {
  animation-delay: 0.5s;
}
.delay-5 {
  animation-delay: 0.6s;
}
.delay-6 {
  animation-delay: 0.7s;
}
.delay-7 {
  animation-delay: 0.8s;
}

/* === Mapa === */
.mapa-container {
  position: relative;
  max-width: 100%;
  height: auto;
}

.pin {
  position: absolute;
  background: none;
  border: none;
  transform: translate(-50%, -100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  z-index: 10; /* <-- aqui */
}

.pin i {
  color: #ffc107;
  font-size: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pin-label {
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 999px;
  margin-top: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover efeito geral */
.pin:hover i {
  transform: scale(1.2);
  box-shadow: 0 0 10px #00000080;
  z-index: 10; /* maior que o z-index da imagem */
}

.pin:hover .pin-label {
  z-index: 10; /* maior que o z-index da imagem */
  transform: scale(1.8);
  box-shadow: 0 0 10px #00000080;
}

.dica-uso {
  position: absolute;
  top: 78%;
  z-index: 5;
}

#listaCidades li {
  margin-bottom: 8px;
  padding-left: 1.2rem;
  position: relative;
}
#listaCidades li::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #ffc107;
  font-size: 1rem;
}

.mapa-dpa,
.footer-dpa {
  background-color: #151e42;
}

/* === Footer === */
.bg-azul {
  background-color: #243162 !important;
}

.footer {
  flex-shrink: 0;
}

/* === WhatsApp Floating Button === */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #15e964;
  color: white;
  font-size: 60px;
  border-radius: 50%;
  padding: 10px 25px;
  z-index: 100;
}
/* === Menu Desktop - Espaçamento e Destaques === */

/* Espaço entre os itens */
.navbar-nav.gap-4 .nav-item {
  margin-right: 1.5rem; /* gap semelhante ao Bootstrap gap-4 */
}

/* Último item não precisa de margin */
.navbar-nav.gap-4 .nav-item:last-child {
  margin-right: 0;
}

/* Links */
.navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
}

/* Hover ou ativo com underline */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active-menu::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

/* Cor do item ativo */
.navbar-nav .nav-link.active-menu {
  color: #f8b508 !important;
}

/* Hover com sublinhado sem mudar cor do ativo */
.navbar-nav .nav-link:hover:not(.active-menu) {
  color: #ffc107 !important; /* Exemplo: amarelo mais claro no hover */
}

/* Sub-linha só aparece no hover ou ativo */
.navbar-nav .nav-link:hover::after {
  background-color: #ffc107; /* mesma do hover */
}

.timeline-content {
  border-left: 5px solid #243162; /* Cor da linha do tempo */
}

@media (max-width: 767.98px) {
  .timeline-item {
    flex-direction: column !important;
  }

  .timeline-item .col-md-6 {
    text-align: center;
  }

  .timeline-content {
    border-left: none;
    border-top: 5px solid #243162;
    margin-top: 1rem;
  }
}

.bg-blue {
  background-color: #243162; /* Laranja DPA */
}

.bg-yellow {
  background-color: #f8b508; /* Laranja DPA */
}

#scrollToNext {
  width: 56px;
  height: 56px;
  transition: transform 0.3s ease;
}
#scrollToNext:hover {
  transform: translateY(3px);
}
.object-fit-cover {
  object-fit: cover;
}

/* CONTATO */
.form-style {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.form-style:focus {
  border-bottom: 2px solid #ff9600;
  box-shadow: none;
  outline: none;
}

label.form-label {
  font-weight: 500;
}

/* Estilização da mensagem de sucesso */
.wpcf7 .wpcf7-response-output {
  border: 2px solid #198754; /* verde bootstrap */
  background-color: #d1e7dd;
  color: #0f5132;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.wpcf7 .wpcf7-response-output {
  max-width: 100%;
  margin-left: 0;
}

section.bg-light {
  background-color: #f9f9f9;
}

form.wpcf7-form input,
form.wpcf7-form textarea {
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  padding: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

form.wpcf7-form input[type="submit"] {
  background-color: #243162;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

form.wpcf7-form input[type="submit"]:hover {
  background-color: #243162;
}
