* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.main-content {
  flex: 1;
}

/* HEADER FIXO */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  box-shadow: 0px 2px 10px black;
}

.logos-div{
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo {
  width: fit-content;
}

/* HAMBURGER MENU */
.hamburger {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* CONTAINER BASE */
.container {
  width: 100%;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.nav-branding {
  width: 150px;
}

/* MENU MOBILE / TABLET */
.nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: #3b7457;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  /* espaçamento menor geral */
  transition: left 0.3s ease;
  z-index: 999;
}

/* Ativa menu */
.nav-menu.active {
  left: 0;
}

/* Itens do menu */
.nav-menu li {
  list-style: none;
}

/* Links principais do menu */
.nav-menu>li:not(.nav-group-desktop)>a {
  color: white;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: color 0.3s ease;
}

.nav-menu>li:not(.nav-group-desktop)>a:hover {
  color: #4bc18a;
}

/* Grupo observações MOBILE: só os links internos, sem título */
.nav-group-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  /* menor espaçamento entre os 3 links */
  width: 100%;
  /* para links ocuparem largura inteira */
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-group-desktop>li>a {
  color: white;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease;
  width: 100%;
}

.nav-group-desktop>li>a:hover {
  color: #4bc18a;
}

/* BARRAS DO HAMBURGER */
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: #3b7457;
}

.active>span {
  background-color: white;
}

#logout-btn-mobile {
  background-color: #3b7457;
  color: white;
  border: none;
  font-size: 1rem;
}

#logout-btn-div-desktop,
#logout-btn-desktop {
  display: none;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 20px 10px 10px 10px;
  font-size: 0.8rem;
  color: #555;
  margin-top: 80px;
}

.breadcrumb a {
  color: #3b7457;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #999;
}

/* RODAPÉ */
.footer {
  background-color: #0f3d2e;
  color: #fff;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.footer-logo,
.footer-links,
.footer-contact {
  flex: 1 1 200px;
}

.footer-logo h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #4bc18a;
  display: inline-block;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 0.4rem 0;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
  color: #4bc18a;
}

.footer-contact p a {
  color: #fff;
  text-decoration: none;
}

.footer-contact p a:hover {
  text-decoration: underline;
  color: #4bc18a;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #4bc18a;
  padding-top: 1rem;
}

.nav-group-mobile {
  display: block;
}

.nav-group-desktop {
  display: none;
}

/* ================================ */
/*           ESTILOS DESKTOP         */
/* ================================ */
@media (min-width: 1024px) {

  /* Esconde o hamburger no desktop */
  .hamburger {
    display: none;
  }

  /* Menu horizontal no desktop */
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    display: flex !important;
  }

  /* Links principais desktop */
  .nav-menu>li:not(.nav-group-desktop)>a {
    color: #3b7457;
    font-weight: 500;
  }

  /* Grupo observações desktop como dropdown */
  .nav-group-desktop {
    position: relative;
    display: block;
    gap: 0;
    width: auto;
  }

  /* Link que abre o dropdown */
  .nav-group-desktop>.nav-link {
    cursor: pointer;
    color: #3b7457;
    font-weight: 500;
    padding: 8px 12px;
    display: inline-block;
    transition: color 0.3s ease;
  }

  .nav-group-desktop>.nav-link:hover {
    color: #4bc18a;
  }

  /* Dropdown observações desktop */
  .dropdown-observacoes {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
  }

  /* Mostrar dropdown ao passar o mouse */
  .nav-group-desktop:hover .dropdown-observacoes {
    display: block;
  }

  .dropdown-observacoes li {
    list-style: none;
  }

  .dropdown-observacoes a {
    display: block;
    padding: 10px 20px;
    color: #3b7457;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .dropdown-observacoes a:hover {
    background-color: #3b7457;
    color: white;
  }

  #logout-btn-div-desktop {
    display: block;
  }

  #logout-btn-desktop {
    background-color: #3b7457;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
  }

  #logout-btn-desktop:hover {
    background-color: #0f3d2e;
    color: white;
    display: block;
  }

  #logout-btn-div-mobile,
  #logout-btn-mobile {
    display: none;
  }

  /* Ajusta margem do botão logout */
  /* .logout-btn {
    margin-left: 10px;
  } */

  .nav-group-mobile {
    display: none;
  }

  .nav-group-desktop {
    display: block;
  }
}