/* ============================================================
   CABEÇALHO – VERSÃO CONSOLIDADA E SEM CONFLITOS
   ============================================================ */

.site-header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-padding);
}

/* Logo + textos */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 60px;
  width: 60px;
}

.brand-text .title {
  font-weight: 700;
  font-size: 18px;
}

.brand-text .subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
}

/* Lista do menu */
.nav-list {
  display: flex;
  list-style: none;
  gap: 35px;               /* espaçamento igual */
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Itens */
.nav-list a,
.nav-list button {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Seta pequena */
.menu-btn .arrow {
  font-size: 10px;
  margin-left: 3px;
  opacity: 0.8;
  position: relative;
  top: -1px;
}

/* Botão mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ============================================================
   MEGA MENU – SERVIÇOS
   ============================================================ */

.has-mega {
  position: relative;
}

.has-mega .mega {
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  color: #111;
  padding: 18px;
  display: none;           /* abre via JS */
  gap: 20px;
  border-radius: 8px;
  min-width: 380px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 1000;
}

.mega-column h4 {
  margin: 0 0 8px 0;
}

.mega-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================================
   DROPDOWN – CONTATO
   ============================================================ */

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  color: #111;
  padding: 15px 20px;
  border-radius: 8px;
  display: none;      /* abre via JS */
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
  min-width: 220px;
  z-index: 1000;
}

.dropdown ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown li {
  margin: 4px 0;
  font-size: 14px;
}

.dropdown a {
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 900px) {
  
  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;         /* abre via JS */
    position: absolute;
    top: 64px;
    right: 12px;
    background: var(--green);
    padding: 18px 12px;
    border-radius: 8px;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
    width: auto;
    z-index: 1000;
  }

  .nav-list.show {
    display: flex;
  }

  /* Mega menu no mobile fica embutido */
  .has-mega .mega {
    position: static;
    background: transparent;
    color: #fff;
    box-shadow: none;
    padding: 0;
  }

  /* Dropdown Contato no mobile */
  .dropdown {
    position: static;
    background: var(--green);
    box-shadow: none;
    color: #fff;
    padding: 10px 5px;
  }

  .dropdown a {
    color: #fff;
  }
}

