/* ========================================
   HEADER: Logo + Menu Principal + Contato
   Barra 2: Menu Secundário
   ======================================== */

.blog-header {
  background: #172142;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.blog-header .container {
  display: flex;
  align-items: center;
  height: 56px;
}

/* Logo */
.blog-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.blog-header .logo img {
  height: 38px;
  width: auto;
}

/* Primary Menu - inline */
.header-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.menu-item > a {
  display: block;
  padding: 0 0.7rem;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 400;
  line-height: 56px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu-item > a:hover,
.menu-item.active > a {
  color: #24a7b8;
}

/* Contact button */
.blog-header .header-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 1rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background: #24a7b8;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #1d8f9e;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36,167,184,0.3);
}

/* ========================================
   SECONDARY MENU BAR
   ======================================== */
.secondary-menu {
  background: #172142;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.secondary-menu .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
}


.secondary-menu .menu-list-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.secondary-menu .menu-list-secondary a {
  display: block;
  padding: 0.25rem 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}

.secondary-menu .menu-list-secondary a:hover {
  color: #ffffff;
  border-color: #24a7b8;
  background: rgba(36,167,184,0.1);
}

/* Body padding: header(56) + secondary(38) = 94px */
body {
  padding-top: 94px;
}

/* Old category-menu class - hide */
.category-menu {
  display: none;
}

/* ========================================
   MOBILE
   ======================================== */

.menu-toggle {
  display: none;
  color: #ffffff;
  font-size: 26px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

@media (max-width: 768px) {
  body {
    padding-top: 56px !important;
  }

  .blog-header .container {
    height: 56px;
  }

  .blog-header .logo img {
    height: 32px;
  }

  .blog-header .header-cta {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .btn-contact {
    padding: 0.35rem 0.75rem;
    font-size: 11px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
  }

  /* Hide secondary bar on mobile - items go in hamburger */
  .secondary-menu {
    display: none;
  }

  body {
    padding-top: 56px !important;
  }

  /* Hide inline menu, show as dropdown */
  .header-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #172142;
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    flex-direction: column;
  }

  .header-menu.active {
    display: flex;
  }

  .menu-list {
    flex-direction: column;
    width: 100%;
  }

  .menu-item > a {
    padding: 0.8rem 1.5rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
  }

  .menu-item > a:hover,
  .menu-item.active > a {
    background: rgba(36,167,184,0.15);
    color: #24a7b8;
  }
}
