/* Header sits on hero */
.hwm-topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.hwm-topnav__inner {
  height: 88px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: auto;
}

/* Logo keskel */
.hwm-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}
.hwm-logo img {
  height: 130px; /* muuda vajadusel */
  width: auto;
  display: block;
  margin-top: 10px;
}

/* Burger alati paremal ühes kohas (ja muutub X-iks) */
.hwm-burger {
  position: fixed;
  top: 50px;
  right: 100px;
  z-index: 1001; /* üle overlay */
  width: 50px;
  height: 20px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hwm-burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff; /* hero peal valge */
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  transform-origin: center;
}

.hwm-burger.is-open span:first-child {
  transform: translateY(13px) rotate(45deg);
  background: #111; /* overlay peal tume */
}
.hwm-burger.is-open span:last-child {
  transform: translateY(-13px) rotate(-45deg);
  background: #111;
}

/* Fullscreen menu overlay */
.hwm-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1000;
}

.hwm-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hwm-menu__inner {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 120px 24px;
  text-align: center;
}

.hwm-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
