/* ============================================================
   GRUPO SEGURITÀ — Custom Stylesheet
   Complementa o Tailwind CSS com comportamentos e ajustes
   que não são cobertos por classes utilitárias.
   ============================================================ */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* Compensa o header fixo ao navegar por âncoras */
}

/* ---- Idioma: visibilidade dos blocos ---- */
.lang-en {
  display: none;
}

.lang-pt {
  display: block;
}

/* Spans dentro de linhas inline precisam manter inline */
span.lang-pt {
  display: inline;
}

span.lang-en {
  display: none;
}

/* ---- Divisor de seção ---- */
.section-divider {
  width: 56px;
  height: 3px;
  background-color: #c5a059;
  border-radius: 2px;
}

/* ---- Hero Spotlight Background (inspirado no render 3D oficial) ---- */
.hero-spotlight {
  background-color: #0d0f01;
  background-image: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(91, 97, 7, 0.45) 0%, rgba(21, 23, 2, 0.90) 60%, #0d0f01 100%);
}

/* ---- Navegação: underline animado ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #c5a059;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* ---- Botão de idioma ---- */
.lang-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background-color: #c5a059;
  color: #0d0f01;
  font-weight: 700;
}

/* ---- Cards de Áreas de Atuação ---- */
.area-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.area-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 15, 1, 0.08);
  border-color: #c8cd8e;
}

/* ---- Menu mobile ---- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* ---- Mapa responsivo ---- */
.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* ---- Focus visible global (a11y) ---- */
*:focus-visible {
  outline: 2px solid #5b6107;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove outline padrão para cliques de mouse */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Skip to content link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background-color: #151702;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 0.375rem 0.375rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}
