/* =============================
   RESPONSIVE.CSS — IESP FINAL
   ============================= */

/* === RESET GERAL === */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* === IMAGENS E CONTAINERS === */
img, iframe {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}

/* === TOPBAR === */
.topbar__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
}

.topbar__right a {
  display: inline-block;
  margin: 0.25rem 0.5rem;
}

/* === HEADER / NAV === */
.site-header {
  position: relative;
  z-index: 100;
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ==============================
   MENU MOBILE — IESP OFICIAL
   ============================== */

/* ===== MENU MOBILE LIMPO E CLARO ===== */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 35px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10001;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #000000;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ícone vira X */
.burger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* Remove completamente o overlay */
#nav-overlay { display: none !important; }

/* Menu aberto fixo e CLARO */
.nav.is-open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #FFFFFF; /* fundo sólido branco */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  z-index: 9999;
  animation: fadeInMenu 0.25s ease forwards;
  box-sizing: border-box;
}

/* Lista de links */
.nav.is-open .nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* Links padrão */
.nav.is-open .nav__link,
.nav.is-open .nav__sac {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

/* Hover azul institucional */
.nav.is-open .nav__link:hover {
  background: #ffffff;
  color: #fff;
}

/* Ouvidoria */
.nav.is-open .nav__sac {
  background: #BE1E2D;
  color: #fff;
  font-weight: 700;
}
.nav.is-open .nav__sac:hover {
  background: #A11824;
}

/* Animação */
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav__list { display: none; }
  .header__wrap { position: relative; }
}
.nav__link.active {
  background: transparent !important;
  color: #23433C !important;
}
