/* ── Global Hide for Mobile-Only Components (Overridden in Media Query) ── */
.sjh-nav-overlay,
.sjh-close-btn,
.sjh-mobile-nav {
  display: none;
}

/* ── Topbar shell ─────────────────────────────────────────────────────── */
.sjh-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #ffe8d6;
  backdrop-filter: blur(8px);
}

.sjh-topbar-inner {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.sjh-brand img {
  display: block;
  height: 74px;
  width: auto;
}

/* ── Nav links ────────────────────────────────────────────────────────── */
.sjh-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.sjh-nav a {
  color: #3a4564;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 180ms ease;
}

.sjh-nav a:hover,
.sjh-nav a.active {
  color: #FF6B00;
}

.sjh-nav a.active {
  position: relative;
}

.sjh-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #FF6B00;
  border-radius: 99px;
}

/* Also for the secondary variant */
.sj-nav a.active {
  color: #FF6B00;
  font-weight: 700;
}

/* ── CTA buttons (right side) ─────────────────────────────────────────── */
.sjh-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sjh-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, #FF6B00, #E55A00);
  color: #fff !important;
  border: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 6px 18px rgba(229, 90, 0, 0.28);
  white-space: nowrap;
}

.sjh-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 90, 0, 0.38);
  color: #fff !important;
}

/* Submit Brief variant — inverted style */
.sjh-brief-btn.sjh-book-btn {
  background: #fff !important;
  color: #FF6B00 !important;
  border: 1.5px solid rgba(255, 107, 0, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.sjh-brief-btn.sjh-book-btn:hover {
  background: #FFF3E8 !important;
  border-color: #FF6B00 !important;
  color: #E55A00 !important;
}

/* ── Hamburger (mobile) ───────────────────────────────────────────────── */
.sjh-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ffe0cc;
  background: #fff;
  color: #FF6B00;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 160ms ease;
}

.sjh-menu-btn:hover {
  background: #FFF3E8;
}

/* Mobile-only buttons (inside nav dropdown) */
.sjh-mobile-register {
  display: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sjh-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .sjh-topbar-inner {
    display: flex;
    justify-content: space-between;
  }

  /* Hide desktop CTA buttons; show them inside the mobile menu instead */
  .sjh-right .sjh-book-btn {
    display: none;
  }

  .sjh-topbar-inner .sjh-nav {
    display: none;
  }

  .sjh-mobile-register {
    display: inline-flex;
  }

  /* ── Modern Mobile Full-Screen Menu ───────────────── */
  /* ── Modern Mobile Full-Screen Menu ───────────────── */
  .sjh-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .sjh-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    filter: blur(0);
  }

  .sjh-mobile-nav-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 60px 0;
  }

  .sjh-mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
  }

  .sjh-mobile-nav-links a {
    font-size: 26px;
    font-weight: 700;
    color: #1b2438;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    display: block;
    opacity: 0;
    transform: translateY(30px);
  }

  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered Entrance for Links */
  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a:nth-child(2) { transition-delay: 0.2s; }
  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a:nth-child(3) { transition-delay: 0.3s; }
  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a:nth-child(4) { transition-delay: 0.4s; }
  .sjh-mobile-nav.is-open .sjh-mobile-nav-links a:nth-child(5) { transition-delay: 0.5s; }

  .sjh-mobile-nav-links a.active {
    color: #FF6B00;
  }

  .sjh-mobile-nav-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
  }

  .sjh-mobile-nav.is-open .sjh-mobile-nav-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .sjh-mobile-nav-actions .sjh-book-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .sjh-close-btn {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    top: auto !important;
    transform: translateX(-50%) scale(0) rotate(-180deg) !important;
    background: #FF6B00;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Reset line-height to prevent offset */
    padding: 0;
    margin: 0;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    z-index: 11000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .sjh-close-btn.is-active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg) !important;
  }

  .sjh-close-btn:hover {
    background: #E55A00;
    transform: translateX(-50%) scale(1.1) !important;
  }

  /* Backdrop Overlay */
  .sjh-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
  }

  .sjh-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* Force display on mobile to allow animations */
  .sjh-nav-overlay,
  .sjh-close-btn,
  .sjh-mobile-nav {
    display: flex;
  }
}


@media (max-width: 640px) {
  .sjh-brand img {
    height: 60px;
  }

  .sjh-topbar-inner {
    min-height: 72px;
  }

  .sjh-nav {
    top: 72px;
  }
}
