/* =============================================
   SINDCOM — menu.css  |  Header & Navegação
   ============================================= */

/* ================================================
   HEADER WRAPPER
   ================================================ */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(13, 59, 110, .2);
}

/* ================================================
   TOPBAR: redes sociais + botões de ação
   ================================================ */
.header-topbar {
  background: #0D3B6E;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Botões de redes sociais */
.header-topbar__social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.social-btn.instagram { background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F77737); }
.social-btn.youtube   { background: #FF0000; }
.social-btn.email     { background: #0066CC; }
.social-btn.telefone  { background: #CC3300; }
.social-btn.whatsapp  { background: #25D366; }

/* Botões de ação rápida */
.header-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.action-btn--red   { background: linear-gradient(135deg, #CC2200, #FF3300); }
.action-btn--green { background: linear-gradient(135deg, #0A6640, #228B22); }
.action-btn--blue  { background: linear-gradient(135deg, #1560A8, #3399DD); border: 1.5px solid rgba(255,255,255,.25); }

/* ================================================
   HEADER PRINCIPAL: logo + nav
   ================================================ */
.header-main {
  background: #fff;
  border-bottom: 2px solid #0D3B6E;
}
.header-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: block;
  flex-shrink: 0;
  padding: 10px 0;
  transition: opacity .2s;
}
.header-logo:hover { opacity: .88; }
.header-logo .logo {
  height: 56px;
  width: auto;
  display: block;
}

/* Nav container */
.header-nav { flex: 1; }

/* ================================================
   MENU DE NAVEGAÇÃO (topnav)
   ================================================ */
.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

/* Links base */
.topnav .nav-link,
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2A3550;
  text-decoration: none;
  border-radius: 0;
  position: relative;
  transition: color .2s ease;
  white-space: nowrap;
}
.topnav .nav-link::after,
.topnav > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: #2E86DE;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  border-radius: 2px;
}
.topnav .nav-link:hover,
.topnav > a:hover { color: #2E86DE; }
.topnav .nav-link:hover::after,
.topnav > a:hover::after { transform: scaleX(1); }

/* Link destaque "Filie-se" */
.topnav .nav-link--destaque {
  color: #fff !important;
  background: linear-gradient(135deg, #E63946, #C02030);
  border-radius: 20px;
  padding: 8px 16px !important;
  margin: 0 4px;
  font-weight: 800;
  letter-spacing: .02em;
}
.topnav .nav-link--destaque::after { display: none; }
.topnav .nav-link--destaque:hover {
  background: linear-gradient(135deg, #FF4D5A, #E63946) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,.4);
}

/* ================================================
   DROPDOWN
   ================================================ */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #2A3550;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
  white-space: nowrap;
}
.dropbtn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: #2E86DE;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  border-radius: 2px;
}
.dropbtn:hover,
.dropdown:hover .dropbtn { color: #2E86DE; }
.dropbtn:hover::after,
.dropdown:hover .dropbtn::after { transform: scaleX(1); }

.dropbtn .fa-caret-down {
  font-size: 10px;
  opacity: .6;
  transition: transform .2s ease;
}
.dropdown:hover .dropbtn .fa-caret-down { transform: rotate(180deg); }

/* Conteúdo do dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13,59,110,.18);
  border: 1px solid #DDE2EC;
  overflow: hidden;
  z-index: 1100;
  animation: dropFadeIn .18s ease both;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content { display: block; }

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #2A3550;
  text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
  border-bottom: 1px solid #F0F3F8;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a i {
  width: 18px;
  text-align: center;
  color: #2E86DE;
  font-size: 13px;
  flex-shrink: 0;
}
.dropdown-content a:hover {
  background: #EEF4FF;
  color: #1560A8;
  padding-left: 24px;
}
.dropdown-content a:hover i { color: #1560A8; }

/* ================================================
   HAMBURGER (mobile)
   ================================================ */
.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid #DDE2EC;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0D3B6E;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nav-hamburger:hover { background: #EEF4FF; border-color: #2E86DE; }

/* ================================================
   RESPONSIVO
   ================================================ */
@media (max-width: 900px) {
  .header-main__inner { flex-direction: column; align-items: flex-start; padding: 0 16px; }
  .header-logo { padding: 10px 0 6px; }
  .header-nav { width: 100%; }

  .nav-hamburger { display: inline-flex; }

  .topnav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    width: 100%;
  }
  .topnav.responsive {
    max-height: 600px;
    padding-bottom: 12px;
    border-top: 1px solid #EEF4FF;
  }

  .topnav .nav-link,
  .topnav > a,
  .topnav .dropbtn {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid #F0F3F8;
  }
  .topnav .nav-link::after,
  .topnav > a::after,
  .topnav .dropbtn::after { display: none; }

  .topnav .nav-link--destaque {
    border-radius: 8px !important;
    margin: 8px 0 !important;
    width: 100% !important;
    justify-content: center;
  }

  .dropdown { width: 100%; flex-direction: column; align-items: flex-start; }
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #F8FAFF;
    animation: none;
    display: none;
  }
  .dropdown:hover .dropdown-content { display: block; }
  .dropdown-content a { padding: 10px 24px; }
  .dropdown-content a:hover { padding-left: 28px; }
}

@media (max-width: 600px) {
  .header-topbar__inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .header-topbar__actions { gap: 6px; }
  .action-btn { font-size: 11px; padding: 5px 11px; }
  .action-btn span { display: none; }
  .action-btn i { font-size: 14px; }
}