/* ===== Uniball shared header (side drawer + burger icon) ===== */
:root {
  --ub-ink: #0e2431;
  --ub-line: #e7edf1;
  --ub-brand: #12b2e8;
  --ub-max: 1150px;
}

/* Base layout */
.ub-topbar {
  position: sticky;
  top: 0;
  z-index: 6000;
  background: #fff;
  border-bottom: 1px solid var(--ub-line);
}
.ub-wrap {
  width: min(100%, var(--ub-max));
  margin-inline: auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Brand */
.ub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ub-ink);
  font-weight: 800;
}
.ub-brand img {
  height: 34px;
  display: block;
}

/* Nav (desktop) */
.ub-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}
.ub-nav ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ub-nav a {
  text-decoration: none;
  color: var(--ub-ink);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}
.ub-nav a[aria-current="page"],
.ub-nav a.active {
  color: var(--ub-brand);
}

/* CTA button */
.ub-cta {
  margin-left: 12px;
  text-decoration: none;
  color: #043040;
  font-weight: 800;
  background: linear-gradient(90deg, #12b2e8, #0ed3a5);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* Prevent content jump */
/* body.ub-has-header {
  padding-top: 62px;
} */

/* ---------- Burger (desktop hidden) ---------- */
.ub-burger {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 6500;
}

.ub-burger svg {
  width: 100%;
  height: 100%;
  fill: var(--ub-ink);
  transition: transform 0.3s ease;
}

/* Animate rotation when open */
.ub-burger[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* ---------- Scrim overlay ---------- */
.ub-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 28, 0.35);
  backdrop-filter: saturate(120%) blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5400;
}
.ub-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Lock body scroll */
.ub-no-scroll {
  overflow: hidden;
}

/* ---------- Mobile styles ---------- */
@media (max-width: 820px) {
  .ub-wrap {
    gap: 10px;
  }

  .ub-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ub-cta {
    display: none;
  }

  /* Side drawer */
  .ub-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    width: min(520px, 50vw);
    background: #fff;
    border-left: 1px solid var(--ub-line);
    border-radius: 12px 0 0 12px;
    box-shadow: -12px 0 26px rgba(0, 0, 0, 0.14);
    padding: 14px;
    display: grid;
    gap: 8px;
    overflow: auto;
    transform: translateX(110%);
    will-change: transform;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 6450;
  }
  .ub-nav.is-open {
    transform: translateX(0);
  }
  .ub-nav ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ub-nav a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ub-ink);
    font-weight: 700;
  }
  .ub-nav a:hover {
    background: #f7fafc;
  }
}

/* Optional tighter desktop layout */
@media (max-width: 1060px) {
  .ub-nav {
    gap: 12px;
  }
  .ub-cta {
    margin-left: 8px;
    padding: 0.5rem 0.8rem;
  }
}
