/* =====================================================
   SWAGABILITY PREMIUM HEADER
   Unique prefix: sga-primebar-
===================================================== */

.sga-primebar-header,
.sga-primebar-header * {
  box-sizing: border-box;
}

.sga-primebar-header {
  --sga-primebar-ink: #11120f;
  --sga-primebar-ink-soft: #34362f;
  --sga-primebar-muted: #85887e;
  --sga-primebar-line: rgba(20, 22, 17, 0.08);
  --sga-primebar-white: #ffffff;
  --sga-primebar-ivory: #fafaf5;
  --sga-primebar-accent: #dce96b;

  position: fixed;
  top: 14px;
  left: 0;
  z-index: 999999;
  width: 100%;
  padding: 0 20px;

  font-family:
    Inter,
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =====================================================
   MAIN GLASS BAR
===================================================== */

.sga-primebar-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(245px, 1fr) auto auto;
  align-items: center;
  gap: 34px;

  width: min(1360px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 7px 8px 7px 12px;

  overflow: hidden;

  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.88),
      rgba(250, 250, 246, 0.7)
    );

  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;

  box-shadow:
    0 16px 50px rgba(17, 18, 15, 0.075),
    0 3px 12px rgba(17, 18, 15, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);

  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);

  transition:
    min-height 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-radius 0.35s ease;
}

.sga-primebar-frame::before {
  content: "";
  position: absolute;
  top: -55px;
  left: 8%;
  width: 300px;
  height: 110px;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.82);
  filter: blur(34px);
  transform: rotate(-8deg);
}

.sga-primebar-frame::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -65px;
  width: 260px;
  height: 110px;
  pointer-events: none;

  background: rgba(220, 233, 107, 0.09);
  filter: blur(38px);
}

/* SCROLLED STATE */

.sga-primebar-header.sga-primebar-scrolled
.sga-primebar-frame {
  min-height: 54px;

  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.94),
      rgba(250, 250, 246, 0.84)
    );

  border-radius: 16px;

  box-shadow:
    0 18px 48px rgba(17, 18, 15, 0.1),
    0 3px 12px rgba(17, 18, 15, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* =====================================================
   BRAND
===================================================== */

.sga-primebar-brand {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;

  width: fit-content;
  min-width: 0;

  color: var(--sga-primebar-ink);
  text-decoration: none;
}

.sga-primebar-logo {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  overflow: hidden;

  color: #fafaf5;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.14),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #2a2c26,
      #11120f
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;

  box-shadow:
    0 9px 20px rgba(17, 18, 15, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sga-primebar-logo::after {
  content: "";
  position: absolute;
  top: -30px;
  left: -34px;

  width: 20px;
  height: 95px;

  background: rgba(255, 255, 255, 0.16);
  transform: rotate(28deg);

  transition: left 0.7s ease;
}

.sga-primebar-brand:hover
.sga-primebar-logo::after {
  left: 60px;
}

.sga-primebar-logo span {
  position: relative;
  z-index: 2;

  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.sga-primebar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sga-primebar-brand-copy strong {
  color: var(--sga-primebar-ink);

  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.sga-primebar-brand-copy small {
  color: var(--sga-primebar-muted);

  font-size: 7.2px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =====================================================
   DESKTOP NAVIGATION
===================================================== */

.sga-primebar-navigation {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(20px, 2.1vw, 34px);
}

.sga-primebar-navigation a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0;

  color: #666960;
  text-decoration: none;

  font-size: 11.5px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.01em;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.sga-primebar-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;

  width: 4px;
  height: 4px;

  background: var(--sga-primebar-ink);
  border-radius: 50%;

  opacity: 0;
  transform: translate(-50%, 5px) scale(0.5);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.sga-primebar-navigation a:hover {
  color: var(--sga-primebar-ink);
  transform: translateY(-1px);
}

.sga-primebar-navigation a:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* =====================================================
   DESKTOP BOOK CALL
===================================================== */

.sga-primebar-book {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;

  min-height: 40px;
  padding: 0 14px 0 16px;

  overflow: hidden;

  color: #fbfbf7;

  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 255, 255, 0.12),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #292b25,
      #11120f
    );

  border: 1px solid rgba(15, 16, 13, 0.8);
  border-radius: 12px;

  box-shadow:
    0 10px 22px rgba(17, 18, 15, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);

  text-decoration: none;

  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: -0.01em;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sga-primebar-book::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;

  width: 28%;
  height: 220%;

  background: rgba(255, 255, 255, 0.12);
  transform: rotate(24deg);

  transition: left 0.65s ease;
}

.sga-primebar-book span,
.sga-primebar-book svg {
  position: relative;
  z-index: 2;
}

.sga-primebar-book svg {
  width: 14px;
  height: 14px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 0.3s ease;
}

.sga-primebar-book:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(17, 18, 15, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sga-primebar-book:hover::before {
  left: 125%;
}

.sga-primebar-book:hover svg {
  transform: translateX(2px);
}

/* =====================================================
   MENU BUTTON
===================================================== */

.sga-primebar-toggle {
  position: relative;
  z-index: 5;

  display: none;
  align-items: center;
  justify-content: center;
  justify-self: end;

  width: 40px;
  height: 40px;
  padding: 0;

  color: var(--sga-primebar-ink);
  background: rgba(255, 255, 255, 0.38);

  border: 1px solid rgba(20, 22, 17, 0.075);
  border-radius: 11px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px rgba(17, 18, 15, 0.04);

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.sga-primebar-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
}

.sga-primebar-toggle-line {
  position: absolute;

  width: 17px;
  height: 1.5px;

  background: currentColor;
  border-radius: 20px;

  transition:
    top 0.35s ease,
    transform 0.35s ease;
}

.sga-primebar-toggle-line:first-child {
  top: 16px;
}

.sga-primebar-toggle-line:last-child {
  top: 23px;
}

.sga-primebar-header.sga-primebar-open
.sga-primebar-toggle-line:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.sga-primebar-header.sga-primebar-open
.sga-primebar-toggle-line:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* =====================================================
   MOBILE / TABLET PANEL
===================================================== */

.sga-primebar-mobile-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;

  width: min(620px, calc(100% - 40px));

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, -10px) scale(0.985);
  transform-origin: top center;

  transition:
    visibility 0.3s ease,
    opacity 0.3s ease,
    transform 0.35s ease;
}

.sga-primebar-header.sga-primebar-open
.sga-primebar-mobile-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;

  transform: translate(-50%, 0) scale(1);
}

.sga-primebar-mobile-inner {
  position: relative;

  padding: 18px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 252, 0.96),
      rgba(248, 248, 243, 0.91)
    );

  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;

  box-shadow:
    0 24px 70px rgba(17, 18, 15, 0.14),
    0 5px 18px rgba(17, 18, 15, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);

  backdrop-filter: blur(30px) saturate(155%);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
}

.sga-primebar-mobile-inner::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;

  width: 180px;
  height: 180px;

  background: rgba(220, 233, 107, 0.11);
  border-radius: 50%;
  filter: blur(45px);

  pointer-events: none;
}

.sga-primebar-mobile-heading {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;
  padding: 2px 3px 10px;
}

.sga-primebar-mobile-heading span {
  color: var(--sga-primebar-ink);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sga-primebar-mobile-heading small {
  color: var(--sga-primebar-muted);

  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.08em;
}

.sga-primebar-mobile-navigation {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
}

.sga-primebar-mobile-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 55px;
  padding: 0 3px;

  color: var(--sga-primebar-ink-soft);
  text-decoration: none;

  border-bottom: 1px solid rgba(20, 22, 17, 0.07);

  transition:
    color 0.25s ease,
    padding 0.25s ease;
}

.sga-primebar-mobile-navigation a:last-child {
  border-bottom: 0;
}

.sga-primebar-mobile-navigation a span {
  font-size: 15px;
  font-weight: 610;
  letter-spacing: -0.025em;
}

.sga-primebar-mobile-navigation a small {
  color: #aaaDA4;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sga-primebar-mobile-navigation a:hover {
  color: #000;
  padding-left: 7px;
}

.sga-primebar-mobile-book {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 58px;
  margin-top: 14px;
  padding: 0 16px;

  color: #fbfbf7;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(255, 255, 255, 0.12),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      #292b25,
      #11120f
    );

  border-radius: 14px;

  box-shadow:
    0 12px 25px rgba(17, 18, 15, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  text-decoration: none;
}

.sga-primebar-mobile-book > span {
  display: flex;
  flex-direction: column;
  gap: 3px;

  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.sga-primebar-mobile-book small {
  color: rgba(255, 255, 255, 0.55);

  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sga-primebar-mobile-book svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================
   LARGE TABLETS / SMALL LAPTOPS
===================================================== */

@media (max-width: 1100px) {
  .sga-primebar-frame {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 24px;
  }

  .sga-primebar-navigation {
    gap: 22px;
  }
}

/* =====================================================
   TABLET NAVIGATION
===================================================== */

@media (max-width: 900px) {
  .sga-primebar-header {
    padding: 0 16px;
  }

  .sga-primebar-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .sga-primebar-navigation,
  .sga-primebar-book {
    display: none;
  }

  .sga-primebar-toggle {
    display: inline-flex;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {
  .sga-primebar-header {
    top: 9px;
    padding: 0 9px;
  }

  .sga-primebar-frame {
    min-height: 55px;
    padding: 6px 7px 6px 9px;

    border-radius: 16px;
  }

  .sga-primebar-header.sga-primebar-scrolled
  .sga-primebar-frame {
    min-height: 52px;
    border-radius: 15px;
  }

  .sga-primebar-brand {
    gap: 9px;
  }

  .sga-primebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .sga-primebar-brand-copy strong {
    font-size: 11.5px;
  }

  .sga-primebar-brand-copy small {
    font-size: 6.6px;
    letter-spacing: 0.11em;
  }

  .sga-primebar-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .sga-primebar-toggle-line:first-child {
    top: 15px;
  }

  .sga-primebar-toggle-line:last-child {
    top: 22px;
  }

  .sga-primebar-header.sga-primebar-open
  .sga-primebar-toggle-line:first-child,
  .sga-primebar-header.sga-primebar-open
  .sga-primebar-toggle-line:last-child {
    top: 18px;
  }

  .sga-primebar-mobile-panel {
    top: calc(100% + 7px);
    width: calc(100% - 18px);
  }

  .sga-primebar-mobile-inner {
    padding: 15px;
    border-radius: 17px;
  }

  .sga-primebar-mobile-navigation a {
    min-height: 52px;
  }

  .sga-primebar-mobile-navigation a span {
    font-size: 14px;
  }
}

/* VERY SMALL MOBILE */

@media (max-width: 380px) {
  .sga-primebar-brand-copy strong {
    font-size: 10.8px;
  }

  .sga-primebar-brand-copy small {
    display: none;
  }

  .sga-primebar-logo {
    width: 35px;
    height: 35px;
  }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.sga-primebar-header a:focus-visible,
.sga-primebar-header button:focus-visible {
  outline: 2px solid rgba(17, 18, 15, 0.75);
  outline-offset: 3px;
}

body.sga-primebar-page-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .sga-primebar-header *,
  .sga-primebar-header *::before,
  .sga-primebar-header *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}