/* Public branded header – mobile-first */

.hro-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hro-primary, #1a365d);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  padding-top: env(safe-area-inset-top, 0);
}

.hro-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 56px;
  padding: 0 12px;
}

.hro-site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.hro-site-brand img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.hro-site-brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hro-site-brand-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
}

.hro-site-nav-desktop {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}

.hro-site-nav-desktop a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.hro-site-nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hro-site-nav-desktop a.hro-site-cta {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}

.hro-site-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.hro-site-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hro-site-drawer-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1001;
}

.hro-site-drawer-bg.is-open {
  display: block;
}

.hro-site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: #fff;
  color: var(--hro-text, #1a202c);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  padding-top: env(safe-area-inset-top, 0);
}

.hro-site-drawer.is-open {
  transform: translateX(0);
}

.hro-site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--hro-primary, #1a365d);
  color: #fff;
}

.hro-site-drawer-head button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.hro-site-drawer-nav {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.hro-site-drawer-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--hro-text, #1a202c);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f7fafc;
  min-height: 48px;
}

.hro-site-drawer-nav a:hover {
  background: #edf2f7;
  color: var(--hro-primary, #1a365d);
}

.hro-site-drawer-login {
  background: var(--hro-primary, #1a365d) !important;
  color: #fff !important;
  margin: 12px 16px !important;
  border-radius: 8px;
  text-align: center;
  border: none !important;
}

.hro-site-header-spacer {
  display: none; /* sticky header doesn't need spacer */
}

@media (min-width: 960px) {
  .hro-site-menu-btn {
    display: none;
  }
  .hro-site-nav-desktop {
    display: flex;
  }
  .hro-site-brand img {
    height: 40px;
  }
}
