/* GUMA Signature Premium and header tools. Loaded after the legacy template styles. */

.guma-header {
  min-height: 6rem;
  background: rgba(255, 255, 255, 0.985);
  border-bottom-color: rgba(99, 84, 165, 0.16);
  box-shadow: 0 5px 20px rgba(47, 18, 82, 0.055);
}

.guma-header__inner {
  position: relative;
  min-height: 6rem;
  gap: clamp(0.7rem, 1.45vw, 1.35rem);
}

.guma-brand {
  position: relative;
  box-sizing: border-box;
  width: 10.25rem;
  max-width: none;
  padding: 0.12rem 0.18rem 0.2rem;
  overflow: hidden;
  border: 1px solid rgba(99, 84, 165, 0.58);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(47, 18, 82, 0.07);
}

.guma-brand::after {
  position: absolute;
  bottom: -1px;
  left: 30%;
  width: 40%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #ed6d16;
  content: "";
}

.guma-brand:focus-visible {
  outline: 3px solid rgba(99, 84, 165, 0.3);
  outline-offset: 3px;
}

.guma-brand__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.guma-header-tools {
  gap: 0.5rem;
}

.guma-header-tools .moduletable {
  min-width: 0;
}

.guma-language-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 0.28rem;
  color: #2f1252;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.guma-donate-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.68rem 0.92rem;
  border: 0;
  border-radius: 5px;
  background: #ed6d16;
  box-shadow: 0 4px 12px rgba(237, 109, 22, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: not-allowed;
  opacity: 0.86;
}

.guma-search {
  position: relative;
}

.guma-search__toggle,
.guma-search__close,
.guma-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.guma-search__toggle {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(99, 84, 165, 0.24);
  border-radius: 50%;
  background: #fff;
  color: #2f1252;
  cursor: pointer;
}

.guma-search__toggle:hover,
.guma-search__toggle[aria-expanded="true"] {
  border-color: #6354a5;
  background: #faf8fc;
}

.guma-search__toggle:focus-visible,
.guma-search__close:focus-visible,
.guma-search__submit:focus-visible {
  outline: 3px solid rgba(99, 84, 165, 0.28);
  outline-offset: 2px;
}

.guma-search__toggle svg,
.guma-search__close svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.guma-search__modal {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  isolation: isolate;
}

.guma-search__modal[hidden] {
  display: none;
}

.guma-search__backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(25, 10, 39, 0.66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.guma-search__window {
  position: relative;
  width: min(42rem, 100%);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(99, 84, 165, 0.28);
  border-radius: 6px;
  background: #faf8fc;
  box-shadow: 0 24px 70px rgba(22, 8, 38, 0.3);
}

.guma-search__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(99, 84, 165, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #2f1252;
  cursor: pointer;
}

.guma-search__close:hover {
  border-color: #6354a5;
  background: #f3eef7;
}

.guma-search__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 3.25rem 0.75rem 0;
  color: #54207a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guma-search__eyebrow::before {
  width: 1.9rem;
  height: 3px;
  border-radius: 3px;
  background: #ed6d16;
  content: "";
}

.guma-search__title {
  max-width: 32rem;
  margin: 0;
  color: #2f1252;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.guma-search__description {
  max-width: 34rem;
  margin: 1rem 0 1.8rem;
  color: #61556d;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.65;
}

.guma-search__form {
  display: flex;
  gap: 0.65rem;
}

.guma-search__input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(99, 84, 165, 0.38);
  border-radius: 5px;
  background: #fff;
  color: #23183d;
  font: inherit;
}

.guma-search__input:focus {
  border-color: #6354a5;
  outline: 3px solid rgba(99, 84, 165, 0.16);
}

.guma-search__submit {
  min-height: 3.5rem;
  gap: 0.55rem;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  background: #ed6d16;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.guma-search__submit:hover {
  background: #d85e0c;
}

body.guma-search-modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .guma-header__inner {
    min-height: 5.9rem;
    flex-wrap: nowrap;
    padding-block: 0.35rem;
  }

  .guma-brand {
    order: 1;
    margin-right: auto;
  }

  .guma-header-tools {
    order: 2;
    margin-left: 0;
  }

  .guma-menu-toggle {
    order: 3;
    margin-left: 0;
  }

  .guma-navigation {
    order: 4;
  }
}

@media (max-width: 767px) {
  .guma-header,
  .guma-header__inner {
    min-height: 5.25rem;
  }

  .guma-brand {
    width: 8.5rem;
  }

  .guma-header-tools__search,
  .guma-header-tools__language {
    display: block;
  }

}

@media (max-width: 520px) {
  .guma-header__inner {
    gap: 0.38rem;
  }

  .guma-brand {
    width: 7rem;
    padding: 0.1rem 0.14rem 0.17rem;
  }

  .guma-header-tools {
    gap: 0.22rem;
  }

  .guma-header-tools__donate {
    display: block;
  }

  .guma-search__toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .guma-language-indicator {
    min-height: 2.25rem;
    padding-inline: 0.14rem;
    font-size: 0.7rem;
  }

  .guma-donate-placeholder {
    min-height: 2.25rem;
    padding: 0.52rem 0.55rem;
    font-size: 0.68rem;
  }

  .guma-menu-toggle {
    width: 2.45rem;
    height: 2.45rem;
  }

  .guma-search__modal {
    padding: 0.75rem;
  }

  .guma-search__window {
    max-height: calc(100dvh - 1.5rem);
    padding: 4.25rem 1.25rem 1.5rem;
    overflow-y: auto;
  }

  .guma-search__eyebrow {
    margin-right: 0;
  }

  .guma-search__title {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .guma-search__description {
    margin-bottom: 1.35rem;
  }

  .guma-search__form {
    flex-direction: column;
  }

  .guma-search__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guma-header,
  .guma-search__toggle,
  .guma-search__close,
  .guma-search__submit {
    transition: none;
  }
}
