@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
}

.hd-wrapper {
  max-width: 1800px;   /* limite máximo no desktop */
  width: 100%;         /* ocupa toda largura disponível */
  margin: 0 auto;      /* centraliza quando maior que o limite */
  padding: 0 30px;     /* respiro nas laterais */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* HEADER TOPO */
.hd-topbar {
  background: #023d7c;
  color: white;
  font-size: 14px;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  transition: transform 0.3s ease;
}
.hd-topbar .hd-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.hd-top-left, .hd-top-center, .hd-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-top-right {
  justify-content: flex-end;
}
.hd-top-right a {
  color: white;
  text-decoration: none;
}
.hd-topbar i {
  background: #a17819;
  border-radius: 50%;
  padding: 6px;
  font-size: 12px;
  color: white;
}

/* HEADER BOTTOM */
.hd-navbar {
  background: white;
  padding: 12px 0;
  position: fixed;
  top: 35px;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease;
  border-bottom: 1px solid #ddd;
}
.hd-logo img {
  height: 60px;
}
.hd-menu {
  display: flex;
  gap: 30px;
}
.hd-menu a {
  color: black;
  text-decoration: none;
  font-weight: 500;
}
.hd-menu a:hover {
  color: #023d7c;
}

/* BOTÃO ORÇAMENTO */
.hd-btn-budget a
 {
  background: linear-gradient(to right, #023d7c, #f7b724);
  color: white;
  padding: 10px 18px;
  font-weight: bold;
  text-decoration: none;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* HAMBURGUER */
.hd-hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* OFFCANVAS */
.hd-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #023d7c;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  padding-top: 60px;
}
.hd-offcanvas nav a {
  display: block;
  padding: 15px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hd-offcanvas nav a:hover {
  background: rgba(255,255,255,0.1);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hd-topbar {
    display: none;
  }
  .hd-menu {
    display: none;
  }
  .hd-navbar {
    top: 0;
  }
  .hd-navbar .hd-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo à esquerda */
  .hd-logo {
    order: 1;
  }
  .hd-logo img {
    height: 45px;
    width: auto;
  }

  /* Hamburguer à direita */
  .hd-hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: black;
    order: 2;
  }

  /* Remove botão orçamento */
  .hd-btn-budget {
    display: none !important;
  }
}

.hd-offcanvas.active {
  transform: translateX(0);
}

/* RESPONSIVO - TABLET/IPAD */
@media (min-width: 769px) and (max-width: 1024px) {
  .hd-topbar {
    display: none;
  }
  .hd-menu {
    display: none;
  }
  .hd-navbar {
    top: 0;
  }
  .hd-navbar .hd-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  /* Logo à esquerda */
  .hd-logo {
    justify-self: start;
    order: 1;
  }
  .hd-logo img {
    height: 55px;
    width: auto;
  }

  /* Hamburguer no centro */
  .hd-hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: black;
    justify-self: center;
    order: 2;
  }

  /* Botão orçamento à direita */
  .hd-btn-budget {
    display: block;
    justify-self: end;
    order: 3;
  }
}
/* Dropdown Desktop */
.hd-dropdown {
  position: relative;
}
.hd-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hd-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 1500;
}
.hd-dropdown-menu a {
  padding: 10px;
  color: black;
  text-decoration: none;
}
.hd-dropdown-menu a:hover {
  background: #f2f2f2;
  color: #023d7c;
}
.hd-dropdown:hover .hd-dropdown-menu {
  display: flex;
}

/* Dropdown Offcanvas */
.hd-dropdown-offcanvas {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hd-dropdown-offcanvas .dropdown-toggle {
  background: none;
  border: none;
  color: white;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
}
.hd-dropdown-offcanvas .dropdown-content {
  display: none;
  flex-direction: column;
}
.hd-dropdown-offcanvas .dropdown-content a {
  padding: 12px 20px;
  font-size: 14px;
}
.hd-dropdown-offcanvas .dropdown-content.show {
  display: flex;
}
