/* ============================================================
   orca-nav.css  —  Global external top navigation
   Companion to: views/external/partials/orca-nav.ejs
   ============================================================ */

/* ── Variables (fallback if style.css vars not loaded) ────── */
:root {
  --on-primary: #ffba60;
  --on-primary-hover: #f7bb4e;
  --on-nav-height: 64px;
}

/* ── Nav wrapper ──────────────────────────────────────────── */
.orca-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  height: var(--on-nav-height);
  transition: box-shadow 0.2s;
}

.orca-nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

/* ── Inner container ──────────────────────────────────────── */
.orca-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.orca-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.orca-nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

/* ── Desktop links ────────────────────────────────────────── */
.orca-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.orca-nav__link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.orca-nav__link:hover,
.orca-nav__link:focus-visible {
  color: #1a1f25;
  background: #f3f3f3;
  text-decoration: none;
}

.orca-nav__link--active {
  color: #1a1f25;
  font-weight: 600;
}

/* ── CTA area ─────────────────────────────────────────────── */
.orca-nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.orca-nav__link--login {
  color: #4a4a4a;
}

/* ── Buttons ──────────────────────────────────────────────── */
.orca-nav__btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  line-height: 1.3;
  transition: background 0.15s, transform 0.1s;
}

.orca-nav__btn--primary {
  background: var(--primary, #ffba60);
  color: #1a1f25;
}

.orca-nav__btn--primary:hover {
  background: var(--primary-hover, #f7bb4e);
  color: #1a1f25;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Hamburger ────────────────────────────────────────────── */
.orca-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  border-radius: 5px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.orca-nav__burger:hover {
  background: #f3f3f3;
}

.orca-nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1f25;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}

/* Animated X when open */
.orca-nav--open .orca-nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.orca-nav--open .orca-nav__burger span:nth-child(2) {
  opacity: 0;
}
.orca-nav--open .orca-nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ────────────────────────────────────────── */
.orca-nav__mobile {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #ebebeb;
  transition: opacity 0.22s, max-height 0.22s;
  position: absolute;
  top: var(--on-nav-height);
  left: 0;
  right: 0;
  z-index: 199;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.orca-nav--open .orca-nav__mobile {
  display: block;
  opacity: 1;
  max-height: 400px;
}

.orca-nav__mobile-links {
  list-style: none;
  margin: 0;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orca-nav__mobile-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1f25;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}

.orca-nav__mobile-link:hover {
  background: #f5f5f5;
  text-decoration: none;
  color: #1a1f25;
}

.orca-nav__mobile-link.orca-nav__link--active {
  font-weight: 700;
  background: #fdf3e3;
}

.orca-nav__btn--mobile-full {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 12px 18px;
  font-size: 15px;
}

/* ── Auth page adjustment ─────────────────────────────────── */
/* Prevent the sticky nav from overlapping .vh-100 split layout */
.auth-layout-with-nav .vh-100 {
  height: calc(100vh - var(--on-nav-height));
  min-height: 0;
}

/* ── Responsive: show hamburger at <= 768px ───────────────── */
@media (max-width: 768px) {
  .orca-nav__links {
    display: none;
  }

  .orca-nav__cta {
    display: none;
  }

  .orca-nav__burger {
    display: flex;
  }

  .orca-nav__inner {
    padding: 0 20px;
    gap: 16px;
  }
}

/* ── Ensure nav sits above hero sections ──────────────────── */
.orca-va-hero,
.ix-head {
  position: relative;
  z-index: 1;
}
