/* Header */

.header {
  width: 100%;
  min-height: 70px;
  background: var(--preto);
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(14px, 3vw, 20px);
  border-bottom: 1px solid rgba(174, 135, 70, 0.35);
  position: relative;
  z-index: 20;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.textoLogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Times New Roman", serif;
}

.textoLogo h1 {
  margin-bottom: -5px;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--branco);
}

.textoLogo h2 {
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: clamp(5px, 0.6vw, 8px);
  color: var(--dourado);
  font-weight: 400;
}

.logo-area img {
  width: 50px;
  margin: 0 20px;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 48px);
  padding-right: clamp(0px, 4vw, 58px);
  min-width: 0;
  max-width: 100%;
}

.menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--branco);
  text-decoration: none;
  text-transform: uppercase;
}

.header-btn {
  width: 200px;
  max-width: 100%;
  height: 40px;
  background: var(--dourado);
  color: var(--branco);
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.header-btn:hover {
  background: #98743a;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(174, 135, 70, 0.65);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--branco);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .logo-area {
    justify-content: flex-start;
  }

  .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
    min-height: 88px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-area {
    justify-content: flex-start;
    padding-right: 64px;
    min-height: 64px;
  }

  .menu {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 18px 0 8px;
    border-top: 1px solid rgba(174, 135, 70, 0.35);
  }

  .menu.is-open {
    display: grid;
  }

  .menu a {
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 28px;
    right: 14px;
    transform: none;
    z-index: 30;
  }

  .header-btn {
    display: none;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .menu.is-open + .header-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .header {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .logo-area {
    justify-content: flex-start;
    padding-right: 64px;
  }

  .logo-area img {
    width: 44px;
    margin: 0 14px;
  }

  .menu a {
    font-size: 12px;
  }

  .header-btn {
    width: min(200px, 100%);
  }
}

@media (max-width: 420px) {
  .textoLogo h1 {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .textoLogo h2 {
    font-size: 12px;
    letter-spacing: 4px;
  }

  .logo-area img {
    width: 40px;
    margin: 0 12px;
  }
}
