* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --verde-militar: #4b5320;
  --verde-oliva: #556b2f;
  --preto: #111;
  --branco: #fff;
  --bege: #d6cbb3;
  --laranja: #c1440e;
  --laranja-hover: #a53a0c;
  --transition: all 0.3s ease;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--preto);
  background-color: var(--bege);
  overflow-x: hidden;
}

body.preload {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

.preloader-logo {
  width: 30vw;
  max-width: 90%;
  height: auto;
  animation: fadeInScale 1.2s ease;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--verde-militar);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 80px 0;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--laranja);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-center {
  display: flex;
  align-content: center;
  position: absolute;
  left: 38%;
  gap: 40px;
}

.nav-links ul {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-links ul li {
  margin-left: 25px;
}

.nav-links ul li a {
  color: var(--preto);
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links ul li a:hover {
  color: var(--laranja);
}

.language-selector {
  position: relative;
  display: inline-block;
}

.language-current {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  transition: var(--transition);
}

.language-current:hover {
  background: rgba(255, 107, 53, 0.4);
}

.flag-icon {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 998;
}

.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
  margin: 4px;
}

.language-option:hover {
  background: rgba(255, 107, 53, 0.1);
}

.language-option.selected {
  background: rgba(255, 107, 53, 0.15);
  color: var(--laranja);
  font-weight: 600;
}

.language-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile menu */
.open-menu,
.close-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.open-menu:hover,
.close-menu:hover {
  color: var(--laranja);
}

.hero {
  height: 100vh;
  background-image: url("/src/assets/banner.gif");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  z-index: 1;
  color: var(--branco);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--branco);
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: inline-block;
  position: relative;
}

.cta-button {
  display: inline-block;
  background-color: var(--laranja);
  color: var(--branco);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--laranja);
}

.cta-button i {
  margin-right: 8px;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--laranja);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(193, 68, 14, 0.3);
}

.sobre {
  background-color: var(--branco);
}

.sobre-content p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.valores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.valor-item {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 30px 20px;
  background-color: var(--bege);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.valor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.valor-item i {
  font-size: 2.5rem;
  color: var(--verde-militar);
  margin-bottom: 20px;
}

.valor-item h3 {
  color: var(--verde-oliva);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.local-section {
  padding: 80px 20px;
  background-color: var(--bege);
  position: relative;
  overflow: hidden;
}

.local-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(75, 83, 32, 0.02) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.local-section:hover::before {
  transform: translateX(100%);
}

.local-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.local-container.reverse {
  flex-direction: row-reverse;
}

.local-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: var(--transition);
}

.local-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.local-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--verde-militar) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  border-radius: 20px;
}

.local-image:hover::before {
  opacity: 0.1;
}

.local-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  transition: var(--transition);
  filter: brightness(1) contrast(1.05);
}

.local-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.local-content {
  flex: 1 1 500px;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.local-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--verde-militar);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.local-content h2::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--laranja);
}

.local-content p {
  font-size: 1.1rem;
  color: var(--preto);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-weight: 400;
  text-align: justify;
  hyphens: auto;
}

.local-content .address-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.local-content .address-container strong {
  display: block;
  font-size: 1.1rem;
  color: var(--preto);
  margin-bottom: 8px;
}

.local-content p:first-of-type {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(17, 17, 17, 0.75);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.local-content p:last-of-type {
  margin-bottom: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--laranja);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(193, 68, 14, 0.08);
  border: 1px solid rgba(193, 68, 14, 0.2);
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.map-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.map-link:hover::before {
  left: 100%;
}

.map-link:hover {
  color: var(--laranja-hover);
  background: rgba(193, 68, 14, 0.12);
  border-color: rgba(193, 68, 14, 0.3);
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 68, 14, 0.25);
}

.map-link:active {
  transform: translateX(6px) translateY(-1px);
  transition-duration: 0.1s;
}

.map-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.map-link:hover i {
  transform: rotate(15deg) scale(1.1);
}

.local-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.local-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 12px;
  color: var(--branco);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.local-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.local-btn:hover::before {
  left: 100%;
}

.local-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.local-btn:active {
  transform: translateY(-1px);
}

.local-btn i {
  font-size: 1.2rem;
}

.local-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
}

.local-btn.whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #1ebe57 100%);
}

.local-btn.instagram {
  background: linear-gradient(135deg, #c13584 0%, #e1306c 50%, #f56040 100%);
}

.local-btn.instagram:hover {
  background: linear-gradient(135deg, #a8286c 0%, #c13584 50%, #e1306c 100%);
}

.section-badge {
  display: inline-block;
  background: var(--verde-militar);
  color: var(--branco);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.feature-highlight {
  background: rgba(75, 83, 32, 0.05);
  border-left: 4px solid var(--verde-militar);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.feature-highlight p {
  margin: 0;
  font-style: italic;
  color: var(--verde-militar);
}

/* Seção Treinamentos */
.treinamentos {
  padding: 80px 0;
  background-color: var(--preto);
}

.treinamentos h2 {
  color: var(--branco);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.treinamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.treinamento-card {
  background: var(--preto);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.treinamento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.treinamento-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.treinamento-1 {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.6)),
    url("/src/assets/treinamento_veiculo.jpg");
  background-size: cover;
}

.treinamento-2 {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.6)),
    url("/src/assets/treinamento_CQB.jpg");
  background-size: cover;
}

.treinamento-3 {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.6)),
    url("/src/assets/treinamento_home.jpg");
  background-size: cover;
}

.treinamento-4 {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.6)),
    url("/src/assets/treinamento_pistola.jpg");
  background-size: cover;
}

.treinamento-card.treinamento-vazio {
  visibility: hidden;
}

.treinamento-5 {
  background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.6)),
    url("/src/assets/treinamento_low.jpg");
  background-size: cover;
}

.treinamento-card:hover .image-placeholder {
  transform: scale(1.1);
}

.treinamento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
  transform: translateY(10px);
  transition: var(--transition);
}

.treinamento-card:hover .treinamento-overlay {
  transform: translateY(0);
}

.treinamento-title {
  color: var(--branco);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.treinamentos > .container > p {
  color: #ccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

.feature-treinamento {
  text-align: center;
  margin-bottom: 20px;
}

.feature-treinamento p {
  color: var(--branco);
  font-size: 1.1rem;
  font-weight: 500;
}

.endereco-treinamento {
  text-align: center;
  margin-bottom: 60px;
}

.endereco-treinamento strong {
  display: block;
  color: var(--branco);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.endereco-treinamento .map-link {
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ver-treinamento-btn {
  width: 100%;
  background: var(--verde-militar);
  color: var(--branco);
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ver-treinamento-btn:hover {
  background: var(--verde-oliva);
}

.ver-treinamento-btn:active {
  transform: translateY(0);
}

.instrutores {
  padding: 60px 0;
  background-color: var(--bege);
}

.instrutores h2 {
  text-align: center;
  color: var(--verde-militar);
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.instrutores-grid {
  display: grid;
  gap: 30px;
  justify-content: center;
}

.instrutor-card {
  background-color: var(--branco);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.instrutor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.instrutor-foto {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--verde-militar);
}

.instrutor-info {
  flex-grow: 1;
}

.instrutor-card h3 {
  color: var(--verde-militar);
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.instrutor-card .cargo {
  color: var(--verde-oliva);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1rem;
}

.instrutor-card .bio-curta {
  color: var(--preto);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.certificacoes {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  min-height: 45px;
}

.certificacoes img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: var(--transition);
}

.certificacoes img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.1);
}

.btn-ver-mais {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 25px;
  background-color: var(--laranja);
  color: var(--branco);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  align-self: center;
  cursor: pointer;
  font-size: 1rem;
}

.btn-ver-mais:hover,
.btn-ver-mais:focus {
  background-color: var(--laranja-hover);
  color: var(--branco);
  transform: scale(1.05);
}

.btn-ver-mais i {
  transition: transform 0.3s;
}

.btn-ver-mais:hover i {
  transform: rotate(15deg) scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--branco);
  margin: 15px;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 4px;
  font-size: 28px;
  font-weight: bold;
  color: var(--verde-militar);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-close:hover {
  background-color: var(--bege);
  transform: scale(1.1);
}

.modal-header {
  position: relative;
  margin-bottom: 30px;
}

.modal-foto {
  margin-top: 20px;
  width: 100%;
  height: 450px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
  background-color: var(--bege);
  display: block;
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 40px 30px 20px 30px;
  border-radius: 0 0 15px 15px;
}

.modal-info h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 5px;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.modal-info .cargo {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-style: italic;
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.modal-description {
  color: var(--preto);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

.modal-certificacoes {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.modal-certificacoes img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.modal-certificacoes img:hover {
  transform: scale(1.1);
}

.modal-social {
  text-align: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background-color: var(--laranja);
  color: var(--branco);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-social:hover,
.btn-social:focus {
  background-color: var(--laranja-hover);
  color: var(--branco);
  transform: scale(1.05);
}

.btn-social i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.btn-social:hover i {
  transform: rotate(-15deg) scale(1.1);
}

footer {
  background-color: var(--preto);
  color: var(--branco);
  padding: 60px 0 30px;
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-contato,
.footer-social {
  flex: 1 1 250px;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-content h3 {
  color: var(--branco);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.2rem;
}

.footer-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--laranja);
}

.footer-links ul,
.footer-contato ul {
  list-style: none;
}

.footer-links ul li,
.footer-contato ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--branco);
  opacity: 0.8;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--laranja);
  padding-left: 5px;
}

.footer-contato ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-contato ul li i {
  color: var(--laranja);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--laranja);
  transform: translateY(-3px);
}

.social-icons a i {
  font-size: 1.2rem;
  color: var(--branco);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--laranja);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--verde-militar);
  transform: translateY(-5px);
}

@media (max-width: 991px) {
  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .valores {
    gap: 20px;
  }
}

/* Desktop Layout */
@media (min-width: 768px) {
  .modal-info h3 {
    font-size: 2.5rem;
  }

  .modal-info .cargo {
    font-size: 1.3rem;
  }

  .modal-description {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .preloader-logo {
    width: 75vw;
  }
  .nav-center {
    gap: 20px;
  }

  .nav-links ul li {
    margin-left: 15px;
  }

  .nav-links ul li a {
    font-size: 0.8rem;
  }

  .open-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-links ul li {
    margin: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .nav-links ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .language-selector {
    position: absolute;
    left: 70%;
  }

  .flag-icon {
    height: 38zpx;
    width: 38px;
  }

  .logo img {
    height: 50px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .local-section {
    padding: 60px 20px;
  }

  .local-container {
    flex-direction: column;
    gap: 40px;
  }

  .local-container.reverse {
    flex-direction: column;
  }

  .local-content h2 {
    font-size: 2rem;
  }

  .local-content p {
    font-size: 1rem;
  }

  .local-buttons {
    justify-content: center;
  }

  .local-btn {
    flex: 1;
    justify-content: center;
    min-width: 180px;
  }

  .local-image {
    height: 280px;
  }

  .certificacoes img {
    filter: grayscale(0%) opacity(100%);
  }

  .treinamentos {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .treinamentos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .treinamento-image {
    height: 180px;
  }

  .treinamento-title {
    font-size: 0.9rem;
  }

  .treinamento-card.treinamento-vazio {
    display: none;
  }

  .modal-content {
    margin: 10px;
    padding: 20px;
  }

  .modal-foto {
    height: 220px;
    border-radius: 15px;
  }

  .modal-info {
    padding: 30px 20px 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    width: calc(87% + 41px);
  }

  .modal-info h3 {
    font-size: 1.8rem;
  }

  .modal-info .cargo {
    font-size: 1.1rem;
  }

  .modal-certificacoes img {
    height: 45px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-logo img {
    width: 120px;
    margin-bottom: 10px;
  }

  .footer-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social ::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .footer-contato ul li {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .local-buttons {
    flex-direction: column;
  }

  .local-btn {
    flex: none;
  }
}

@keyframes typewriterEffect {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  from,
  to {
    border-right-color: transparent;
  }
  50% {
    border-right-color: var(--branco);
  }
}
