:root {
  --maf-global-burgundy: #620018;
  --maf-global-burgundy-dark: #3f0010;
  --maf-global-text: #1e1b1b;
  --maf-global-border: #eadfd8;
  --maf-global-white: #ffffff;
  --maf-global-font: "Poppins", sans-serif;
}

.maf-global-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 99999;
  font-family: var(--maf-global-font);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 28px rgba(20, 10, 12, 0.035);
}

body.admin-bar .maf-global-header {
  top: 32px;
}

.maf-global-header__container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.maf-global-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.maf-global-header__logo img {
  width: 120px;
  max-height: 78px;
  object-fit: contain;
  display: block;
}

.maf-global-header__nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.maf-global-header__nav > a {
  position: relative;
  white-space: nowrap;
  color: var(--maf-global-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.72px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.maf-global-header__nav > a:not(.maf-global-header__quote)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--maf-global-burgundy);
  transition: width 0.3s ease;
}

.maf-global-header__nav > a:not(.maf-global-header__quote):hover,
.maf-global-header__nav > a.is-active:not(.maf-global-header__quote) {
  color: var(--maf-global-burgundy);
}

.maf-global-header__nav > a:not(.maf-global-header__quote):hover::after,
.maf-global-header__nav > a.is-active:not(.maf-global-header__quote)::after {
  width: 100%;
}

.maf-global-header__quote {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 3px;
  background: var(--maf-global-burgundy);
  color: var(--maf-global-white) !important;
  box-shadow: 0 12px 28px rgba(98, 0, 24, 0.18);
}

.maf-global-header__quote:hover {
  background: var(--maf-global-burgundy-dark);
  color: var(--maf-global-white) !important;
  transform: translateY(-1px);
}

.maf-global-header__toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.maf-global-header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--maf-global-burgundy);
  margin: 7px 0;
  border-radius: 50px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.maf-global-header__toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.maf-global-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.maf-global-header__toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .maf-global-header__nav {
    gap: 19px;
  }

  .maf-global-header__nav > a {
    font-size: 10.6px;
    letter-spacing: 0.58px;
  }

  .maf-global-header__quote {
    padding: 12px 18px;
  }
}

@media (max-width: 900px) {
  body.admin-bar .maf-global-header {
    top: 46px;
  }

  .maf-global-header__container {
    width: min(calc(100% - 30px), 1180px);
    min-height: 72px;
  }

  .maf-global-header__logo img {
    width: 105px;
    max-height: 54px;
  }

  .maf-global-header__toggle {
    display: block;
  }

  .maf-global-header__nav {
    position: absolute;
    top: 72px;
    left: 15px;
    right: 15px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--maf-global-white);
    border: 1px solid var(--maf-global-border);
    border-radius: 10px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.14);
  }

  .maf-global-header__nav.is-active {
    display: flex;
  }

  .maf-global-header__nav > a {
    width: 100%;
    padding: 15px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .maf-global-header__nav > a:not(.maf-global-header__quote)::after {
    display: none;
  }

  .maf-global-header__nav > a.is-active:not(.maf-global-header__quote) {
    color: var(--maf-global-burgundy);
    background: rgba(98, 0, 24, 0.06);
    border-left: 3px solid var(--maf-global-burgundy);
    padding-left: 15px;
  }

  .maf-global-header__nav > a:last-child {
    border-bottom: none;
  }

  .maf-global-header__quote {
    margin-top: 10px;
    padding: 15px 20px !important;
    text-align: center;
    border-bottom: 0 !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .maf-global-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .maf-global-header {
    top: 0;
  }
}

@media (max-width: 480px) {
  .maf-global-header__container {
    width: min(calc(100% - 22px), 1180px);
    min-height: 68px;
  }

  .maf-global-header__logo img {
    width: 96px;
  }

  .maf-global-header__nav {
    top: 68px;
    left: 11px;
    right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maf-global-header *,
  .maf-global-header *::before,
  .maf-global-header *::after {
    transition: none !important;
  }
}
