/* ===========================
   ESTILO GERAL DO HEADER
=========================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* ===========================
   TOPO COM CONTACTOS
=========================== */
.top-bar {
  background-color: #0A2540;
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 200; /* Fica acima do header */
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.top-bar .contact-info span {
  margin-right: 1.5rem;
}

.contact-left span {
  margin-right: 25px; /* distância entre os números de telefone */
  display: inline-flex;
  align-items: center;
  gap: 8px; /* espaço entre o ícone e o texto */
}

.top-bar i {
  background: #0599DB;
  color: #ffffff;
  margin-left: 1rem;
  border-radius: 50%;
  transition: color 0.3s ease;
  font-size: 15px;
  padding: 6px;
}

.top-bar .top-icons a:hover {
  color: #ffd700;
}

/* ===========================
   HEADER PRINCIPAL
=========================== */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 35px; /* desloca o header para baixo, abaixo da top-bar */
  width: 100%;
  z-index: 100;
  transition: top 0.3s ease; /* suaviza o movimento ao subir em mobile */
}

.header .container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  position: relative;
}

/* ===========================
   LOGO
=========================== */
.logo img {
  height: 80px;
  margin-bottom: -10px;
  margin-top: -5px;
  width: 100px;
}

/* ===========================
   NAVEGAÇÃO DESKTOP
=========================== */
.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-desktop {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active-link {
  color: #0599DB;
  font-weight: 700;
}

/* ===========================
   BOTÃO "SOLICITAR ORÇAMENTO"
=========================== */
.btn-inscricao.desktop-only {
  background: linear-gradient(to right, #0A2540, #0599DB);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
  position: absolute;
  right: 2rem;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.btn-inscricao.desktop-only:hover {
  background-color: #a60c0c;
}

/* ===========================
   MOBILE
=========================== */
.mobile-only {
  display: none;
}

.header-icons {
  display: flex;
  align-items: center;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
}

/* ===========================
   MENU MOBILE
=========================== */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 270px;
  height: 40vh;
  background-color: #0599DB;
  color: #fff;
  transition: right 0.3s ease-in-out;
  padding: 2rem 1rem;
  z-index: 1000;
}

.offcanvas-menu.show {
  right: 0;
}

.offcanvas-menu .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.offcanvas-nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.offcanvas-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.offcanvas-nav a:hover {
  color: #ffd700;
}

/* Overlay escuro ao abrir menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
}

.overlay.show {
  display: block;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 992px) {
  /* Oculta a top-bar em mobile */
  .top-bar {
    display: none;
  }

  /* Faz o header ocupar o topo da tela */
  .header {
    top: 0; /* ocupa o lugar da top-bar */
  }

  .nav-wrapper {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .menu-btn {
       display: block;
  }
  .btn-inscricao.mobile-only {
   display: none;
  }

  .header .container {
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }

  .logo img {
    height: 55px;
  }
}
