/* ===== CAPA - REDE LIMPA (COM ACESSIBILIDADE) ===== */

/* ===== ACESSIBILIDADE: SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #023882;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}

/* ===== ACESSIBILIDADE: FOCO VISÍVEL ===== */
a:focus, button:focus {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
  background-color: rgba(255, 183, 77, 0.1);
}

body {
  margin: 0;
  padding: 0;
  background-color: #023882;
  overflow: hidden;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.faixa-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #242629;
  z-index: 1000;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 20px;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background-color: white;
}

#menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-height: 70vh;
  background-color: #023882;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow-y: auto;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu ul li {
  margin: 10px 0;
  position: relative;
}

#menu ul li a {
  text-decoration: none;
  color: white;
  display: block;
  padding: 5px 0;
}

.submenu-container {
  display: none;
  position: static;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
}

.submenu-container.active {
  display: block;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li {
  margin: 5px 0;
  padding-left: 15px;
}

/* Container principal ajustado para ocupar toda a tela */
.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo para o título */
.container h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMAÇÃO ELEGANTE PARA O ÍCONE */
.icon {
  width: 50vw;
  height: 50vw;
  max-width: 315px;
  max-height: 315px;
  border-radius: 50%;
  object-fit: cover;
  animation: 
    eleganteEntrada 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
    pulsarSuave 3s ease-in-out 2s infinite;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  will-change: transform, opacity, filter;
}

/* Estilo para a logo */
.logo-img {
  width: 95vw;
  max-width: 350px;
  margin-top: 2vh;
  animation: slideInElegante 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
  opacity: 0;
  transform: translateX(-100px);
}

.qrcoude {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Estilo de nos conheça */
.nos_conheça {
  width: 30vw;
  height: 30vw;
  max-width: 150px;
  max-height: 150px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.nos_conheça:hover {
  transform: scale(1.05);
}

/* Estilo para o Qr Coude */
.qr_coude {
  width: 30vw;
  max-width: 150px;
  transition: transform 0.3s ease;
}

.qr_coude:hover {
  transform: scale(1.05);
}

.nos_conheça,
.qr_coude {
  margin: 0;
}

/* ANIMAÇÃO ELEGANTE DE ENTRADA */
@keyframes eleganteEntrada {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    filter: brightness(0.5) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  40% {
    opacity: 0.8;
    transform: scale(1.1) rotate(0deg);
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
  60% {
    transform: scale(0.95) rotate(5deg);
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
  }
  80% {
    transform: scale(1.02) rotate(-2deg);
    filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  }
}

/* ANIMAÇÃO DE PULSAÇÃO SUAVE E ELEGANTE */
@keyframes pulsarSuave {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  }
  25% {
    transform: scale(1.015);
    filter: brightness(1.05) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  }
  75% {
    transform: scale(1.015);
    filter: brightness(1.05) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  }
}

/* ANIMAÇÃO ELEGANTE PARA A LOGO */
@keyframes slideInElegante {
  0% {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
  }
  60% {
    opacity: 0.8;
    transform: translateX(10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* EFEITO DE FLUTUAÇÃO PARA O CONTAINER PRINCIPAL */
.container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: floatBackground 8s ease-in-out infinite;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

@keyframes floatBackground {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Esconde a capa em telas maiores que 768px */
@media (min-width: 769px) {
  body {
    display: none;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
  .container h1 {
    font-size: 1.3rem;
  }
  
  .icon {
    width: 40vw;
    height: 40vw;
    animation: 
      eleganteEntrada 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
      pulsarSuave 2.5s ease-in-out 1.6s infinite;
  }
  
  .logo-img {
    animation: slideInElegante 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
  }
  
  .qrcoude {
    bottom: 20px;
    gap: 10px;
  }
  
  .nos_conheça,
  .qr_coude {
    max-width: 120px;
  }
}

/* Ajustes para telas médias */
@media (min-width: 321px) and (max-width: 480px) {
  .qrcoude {
    bottom: 20px;
  }
}

/* Melhor performance para dispositivos móveis */
@media (max-width: 768px) {
  .icon {
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
}