:root {
  --hdr-green:  #64c832;
  --hdr-green-dark: #4e8c1e;
  --hdr-black:  #050505;
}

.header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5001;
  color: #fff;
  padding: 10px 0 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--hdr-black);
}

.hdr-spacer {
  height: 110px;
}

.header .nav {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding-bottom: 10px;
}

.header .logo {
  display: block;
  line-height: 0;
}

.header .logo img {
  width: 90px;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  margin-left: auto;
}

.header .menu {
  display: flex;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 16px;
}

.header .menu .menu-cta {
  display: none;
}

.header .menu a {
  text-decoration: none;
  color: #fff;
  transition: color .2s;
}

.header .menu a:hover {
  color: var(--hdr-green);
}

.top-whats {
  height: 38px;
  padding: 0 22px;
  background: var(--hdr-green-dark);
  border: 1px solid var(--hdr-green-dark);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: .25s;
}

.top-whats:hover {
  background: transparent;
  box-shadow: 0 0 22px rgba(100, 200, 50, .35);
  transform: translateY(-2px);
  color: #fff;
}

.header.header--sticky {
  position: fixed;
  top: 0;
  background: var(--hdr-black);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .55);
  animation: hdrSlideDown .35s ease;
}

.header.header--sticky .logo img {
  width: 70px;
}

.header.header--exit {
  position: fixed;
  top: 0;
  background: var(--hdr-black);
  animation: hdrSlideUp .35s ease forwards;
}

.hdr-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  align-items: center;
}

.hdr-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 1000px) {
  .header .menu { gap: 24px; font-size: 14px; }
}

@media (max-width: 768px) {
  .header .nav {
    grid-template-columns: 80px auto;
    grid-auto-flow: column;
  }

  .header .logo img {
    width: 64px;
  }

  .hdr-spacer {
    height: 84px;
  }

  .hdr-toggle {
    display: inline-flex;
  }

  .top-whats {
    display: none;
  }

  .header .menu {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    min-height: 100vh;
    background: var(--hdr-black);
    padding: 90px 2rem 2rem;
    gap: 1.5rem;
    z-index: 5000;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .5);
  }

  .header .menu .menu-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    background: var(--hdr-green-dark);
    border-radius: 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: opacity .2s;
  }

  .menu-cta:hover {
    opacity: .85;
    color: #fff;
  }

  .header .menu.menu--open {
    transform: translateX(0);
  }
}

@keyframes hdrSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hdrSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-100%); }
}
