/* aabe-plt-masthead — XB desktop masthead bar only (no video stage). Port: xb-desktop-masthead.css */
.aabe-plt-masthead {
  --aapm-gold: var(--xbc-gold-light, #f2d795);
  --aapm-ink: var(--xbc-ink, #f8f4e9);
  --aapm-line: rgba(242, 215, 149, 0.26);
  --aapm-bar-top: 0px;
  --aapm-bar-pad-top: 20px;
  --aapm-bar-pad-right: 20px;
  --aapm-bar-pad-bottom: 8px;
  --aapm-bar-pad-left: 20px;
  --aapm-bar-radius: 22px;
  --aapm-bar-h: 64px;
  --aapm-content: 1400px;
  --aapm-bar-gap: 24px;
  --aapm-rail-gap: 28px;
  --aapm-tools-gap: 20px;
  --aapm-soc-gap: 24px;
  --aapm-nav-gap: 0px;
  --aapm-panel-gap: 18px;
  --aapm-chrome-z: 99990;
  --aapm-dock-justify: center;
  --aapm-dock-h: 64px;
  --aapm-spacer: calc(var(--aapm-bar-pad-top) + var(--aapm-bar-h) + var(--aapm-bar-pad-bottom));
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--xbc-font, "Manrope", Arial, sans-serif);
}

.aabe-plt-masthead *,
.aabe-plt-masthead *::before,
.aabe-plt-masthead *::after {
  box-sizing: border-box;
}

.aabe-plt-masthead__spacer {
  height: var(--aapm-spacer);
  pointer-events: none;
}

.aabe-plt-masthead__dock,
.aabe-plt-masthead__spacer-dock {
  display: none;
}

.aabe-plt-masthead__spacer-dock {
  height: 0;
  pointer-events: none;
}

.aabe-plt-masthead__chrome {
  position: fixed;
  z-index: var(--aapm-chrome-z);
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--aapm-bar-top));
  left: 50%;
  width: min(var(--aapm-content), 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

html.admin-bar .aabe-plt-masthead__chrome {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + max(0px, var(--aapm-bar-top, 0px)));
}

@media screen and (max-width: 782px) {
  html.admin-bar .aabe-plt-masthead__chrome {
    top: calc(var(--wp-admin--admin-bar--height, 46px) + max(0px, var(--aapm-bar-top, 0px)));
  }
}

.aabe-plt-masthead__chrome > * {
  pointer-events: auto;
}

.aabe-plt-masthead__bar {
  display: flex;
  width: 100%;
  min-height: var(--aapm-bar-h);
  align-items: center;
  justify-content: center;
  padding: var(--aapm-bar-pad-top) var(--aapm-bar-pad-right) var(--aapm-bar-pad-bottom) var(--aapm-bar-pad-left);
  border: 1px solid rgba(242, 215, 149, 0.18);
  border-top: 0;
  border-radius: 0 0 var(--aapm-bar-radius) var(--aapm-bar-radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 46%),
    rgba(9, 12, 13, 0.22);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.aabe-plt-masthead__bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: var(--aapm-bar-h);
  align-items: center;
  gap: var(--aapm-bar-gap);
}

.aabe-plt-masthead__brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  color: var(--aapm-gold, #c9a65a);
  font-family: var(--xbc-display, "Unbounded", Arial, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.aabe-plt-masthead__logo {
  display: block;
  width: 168px;
  height: 34px;
  max-width: none;
  object-fit: contain;
}

.aabe-plt-masthead__rail {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: var(--aapm-rail-gap);
  min-width: 0;
}

.aabe-plt-masthead__rail a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--aapm-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.aabe-plt-masthead__rail a:hover,
.aabe-plt-masthead__rail a:focus-visible {
  color: var(--aapm-gold) !important;
}

.aabe-plt-masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: var(--aapm-tools-gap);
}

.aabe-plt-masthead__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px !important;
  border: 0;
  border-radius: 999px;
  color: var(--xbc-ink-dark, #1A2000) !important;
  background: linear-gradient(145deg, #ffe38f, var(--aapm-gold) 48%, #c9a65a);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.aabe-plt-masthead__cta:hover,
.aabe-plt-masthead__cta:focus-visible {
  color: var(--xbc-ink-dark, #1A2000) !important;
  filter: brightness(1.06);
}

.aabe-plt-masthead__phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--aapm-ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.aabe-plt-masthead__phone-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--aapm-gold);
}

.aabe-plt-masthead__phone:hover,
.aabe-plt-masthead__phone:focus-visible,
.aabe-plt-masthead__brand:hover,
.aabe-plt-masthead__brand:focus-visible {
  color: var(--aapm-gold) !important;
}

.aabe-plt-masthead__soc {
  display: flex;
  align-items: center;
  gap: var(--aapm-soc-gap);
}

.aabe-plt-masthead__soc-link {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--aapm-line);
  border-radius: 50%;
  color: var(--aapm-gold);
  text-decoration: none;
}

.aabe-plt-masthead__soc-link svg {
  display: block;
  width: 16px;
  height: 16px;
}

.aabe-plt-masthead__soc-link:hover,
.aabe-plt-masthead__soc-link:focus-visible {
  color: var(--xbc-ink-dark, #1A2000) !important;
  background: var(--aapm-gold);
}

.aabe-plt-masthead__burger {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 !important;
  border: 1px solid rgba(242, 215, 149, 0.4);
  border-radius: 50%;
  background: rgba(9, 12, 13, 0.18);
  color: var(--aapm-gold);
  cursor: pointer;
}

.aabe-plt-masthead__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.aabe-plt-masthead.is-open .aabe-plt-masthead__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.aabe-plt-masthead.is-open .aabe-plt-masthead__burger span:nth-child(2) {
  opacity: 0;
}

.aabe-plt-masthead.is-open .aabe-plt-masthead__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.aabe-plt-masthead__panel {
  display: flex;
  max-height: min(72svh, 720px);
  flex-direction: column;
  gap: var(--aapm-panel-gap);
  margin-top: 8px;
  padding: 18px 18px 16px;
  overflow: auto;
  border: 1px solid rgba(242, 215, 149, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 46%),
    rgba(9, 12, 13, 0.28);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.aabe-plt-masthead__panel[hidden] {
  display: none;
}

.aabe-plt-masthead__nav {
  display: flex;
  flex-direction: column;
  gap: var(--aapm-nav-gap);
}

.aabe-plt-masthead__nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(242, 215, 149, 0.12);
  color: rgba(248, 244, 233, 0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.aabe-plt-masthead__nav a:last-child {
  border-bottom: 0;
}

.aabe-plt-masthead__nav a:hover,
.aabe-plt-masthead__nav a:focus-visible {
  color: var(--aapm-gold) !important;
}

.aabe-plt-masthead__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.aabe-plt-masthead__contacts > span {
  margin-bottom: 4px;
  color: var(--aapm-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aabe-plt-masthead__contacts > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--aapm-ink);
  font-size: 14px;
  text-decoration: none;
}

.aabe-plt-masthead__contacts > a:hover,
.aabe-plt-masthead__contacts > a:focus-visible {
  color: var(--aapm-gold) !important;
}

.aabe-plt-masthead__contacts p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.aabe-plt-masthead__contacts p a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--aapm-line);
  border-radius: 999px;
  color: var(--aapm-gold);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

.aabe-plt-masthead__contacts p a:hover,
.aabe-plt-masthead__contacts p a:focus-visible {
  color: var(--xbc-ink-dark, #1A2000) !important;
  background: var(--aapm-gold);
}

@media (max-width: 1180px) {
  .aabe-plt-masthead__soc {
    display: none;
  }
}

@media (max-width: 1100px) {
  .aabe-plt-masthead__rail a {
    font-size: 13px;
  }
}

@media (max-width: 920px) {
  .aabe-plt-masthead__phone {
    display: none;
  }

  .aabe-plt-masthead__cta {
    padding: 0 12px !important;
    font-size: 11px;
  }
}

@media (max-width: 780px) {
  .aabe-plt-masthead {
    --aapm-bar-pad-right: 12px;
    --aapm-bar-pad-left: 12px;
    --aapm-bar-gap: 10px;
    --aapm-tools-gap: 8px;
  }

  .aabe-plt-masthead__rail {
    display: none;
  }

  .aabe-plt-masthead__chrome {
    left: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .aabe-plt-masthead__bar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
  }

  .aabe-plt-masthead__tools > :not(.aabe-plt-masthead__burger) {
    display: none !important;
  }

  .aabe-plt-masthead__dock {
    display: flex;
    position: fixed;
    z-index: var(--aapm-chrome-z);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: var(--aapm-dock-h);
    margin: 0;
    padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    justify-content: var(--aapm-dock-justify, center);
    border: 1px solid rgba(242, 215, 149, 0.18);
    border-bottom: 0;
    border-radius: var(--aapm-bar-radius) var(--aapm-bar-radius) 0 0;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 46%),
      rgba(9, 12, 13, 0.22);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
  }

  .aabe-plt-masthead__dock .aabe-plt-masthead__cta {
    min-height: 44px;
    padding: 0 22px !important;
    font-size: 12px;
  }

  .aabe-plt-masthead__spacer-dock {
    display: block;
    height: calc(var(--aapm-dock-h) + env(safe-area-inset-bottom, 0px));
  }

  .aabe-plt-masthead__panel {
    padding-bottom: calc(16px + var(--aapm-dock-h));
  }

  .aabe-plt-masthead__brand {
    min-width: 0;
    max-width: min(110px, 38vw);
  }

  body.aabe-plt-page .aabe-plt-masthead img.aabe-plt-masthead__logo,
  .aabe-plt-masthead img.aabe-plt-masthead__logo,
  .aabe-plt-masthead .aabe-plt-masthead__logo {
    width: 100px !important;
    max-width: 100px !important;
    height: auto !important;
  }

  .aabe-plt-masthead__tools {
    min-width: 0;
    flex-shrink: 0;
  }

  .aabe-plt-masthead__bar .aabe-plt-masthead__cta {
    padding: 0 10px !important;
    font-size: 10px;
    min-height: 40px;
  }

  .aabe-plt-masthead__burger {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aabe-plt-masthead__burger span {
    transition: none;
  }
}
