/* Book Publishing Test — purple theme header */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.bpt-site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
  background: #fff;
  border-bottom: 1px solid rgba(26, 15, 61, 0.1);
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 4px 24px rgba(26, 15, 61, 0.08);
}
/* Temporary: address + phone hidden (markup kept) */
.bpt-site-header .bpt-hide-temp {
  display: none !important;
}
.bpt-site-header-spacer {
  display: block;
  width: 100%;
  height: var(--bpt-header-h, 118px);
  flex-shrink: 0;
  pointer-events: none;
}
.bpt-site-header__top {
  background: #120A2E;
  color: #fff;
}
.bpt-site-header__top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  margin: 0;
}
.bpt-site-header__top-contacts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin-left: 0;
  width: 100%;
}
.bpt-site-header__address {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
  line-height: 1.3;
}
.bpt-site-header__address i {
  color: #A78BFA;
  flex-shrink: 0;
}
.bpt-site-header__top-inner a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.bpt-site-header__top-inner a:hover { color: #A78BFA !important; }

.bpt-site-header__main {
  background: #fff;
  position: relative;
}
.bpt-site-header__bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  min-height: 88px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.bpt-site-header__logo {
  flex: 0 0 auto !important;
  display: block;
  line-height: 0;
  max-width: 460px;
}
.bpt-site-header__logo img {
  display: block !important;
  height: 92px !important;
  width: auto !important;
  max-width: 440px !important;
  max-height: 92px !important;
  object-fit: contain !important;
}

.bpt-site-header__nav {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.bpt-site-header__nav a {
  color: #1A0F3D !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.bpt-site-header__nav a:hover {
  background: rgba(107, 58, 237, 0.08);
  color: #6B3AED !important;
}

.bpt-site-header__cta {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #6B3AED !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.bpt-site-header__cta:hover { background: #5521C9 !important; color: #fff !important; }

.bpt-site-header__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(26, 15, 61, 0.15);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.bpt-site-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1A0F3D;
}

@media (max-width: 1280px) {
  .bpt-site-header__nav a {
    font-size: 0.82rem;
    padding: 0.5rem 0.45rem;
  }
  .bpt-site-header__logo img {
    height: 84px !important;
    max-height: 84px !important;
    max-width: 340px !important;
  }
  .bpt-site-header__bar { min-height: 96px; }
}

@media (max-width: 991px) {
  .bpt-site-header__toggle { display: inline-flex; }
  .bpt-site-header__cta { display: none !important; }
  .bpt-site-header__nav {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(26, 15, 61, 0.1);
    padding: 0.75rem 1.25rem 1.1rem;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0.25rem;
    box-shadow: 0 16px 30px rgba(26, 15, 61, 0.08);
    z-index: 50;
  }
  .bpt-site-header__nav.is-open { display: flex !important; }
  .bpt-site-header__nav a {
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
  }
  .bpt-site-header__logo img {
    height: 74px !important;
    max-height: 74px !important;
    max-width: 280px !important;
  }
  .bpt-site-header__bar { min-height: 84px; }
  .bpt-site-header__top-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
  }
  .bpt-site-header__top-contacts {
    margin-left: 0;
    justify-content: center;
    width: auto;
    gap: 0.45rem 1rem;
  }
  .bpt-site-header__top-contacts a {
    font-size: 0.8rem;
    word-break: break-all;
  }
}

@media (max-width: 540px) {
  .bpt-site-header__address {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .bpt-site-header__top-contacts a {
    font-size: 0.78rem;
  }
  .bpt-site-header__logo img {
    height: 64px !important;
    max-height: 64px !important;
    max-width: 240px !important;
  }
  .bpt-site-header__bar { min-height: 74px; }
  .bpt-site-header__bar { min-height: 60px; }
}
