/* DCA navigation — mega-dropdown visibility (hover/focus) + mobile drawer.
   The original React app toggled these via component state; here they are
   driven by CSS (desktop) and dca-nav.js (mobile) for a dependency-free build. */

/* ---- Desktop mega dropdowns ---- */
.dca-nav-item { position: relative; }
.dca-nav-item > .dca-mega {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dca-nav-item:hover > .dca-mega,
.dca-nav-item:focus-within > .dca-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.dca-nav-item:hover .dca-caret,
.dca-nav-item:focus-within .dca-caret { transform: rotate(180deg); }

/* ---- Mobile drawer ---- */
.dca-mnav-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(8, 26, 49, .55);
  opacity: 0; transition: opacity .25s ease;
}
.dca-mnav-overlay.is-open { opacity: 1; }
.dca-mnav {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(360px, 86vw); z-index: 1300;
  background: #0A2342; color: #fff;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column;
}
.dca-mnav.is-open { transform: none; }
.dca-mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.dca-mnav-brand img { height: 42px; background: #fff; padding: 6px 12px; border-radius: 10px; display: block; }
.dca-mnav-close { background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 0 4px; }
.dca-mnav-body { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.dca-mnav-group { display: flex; flex-direction: column; gap: 4px; }
.dca-mnav-title {
  font-family: var(--font-body, sans-serif); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300, #E5C76B);
  margin-bottom: 2px;
}
.dca-mnav-link { color: rgba(255, 255, 255, .9); text-decoration: none; font-size: 15px; padding: 6px 0; }
.dca-mnav-link:hover { color: #fff; }
.dca-mnav-cta {
  margin-top: 10px; text-align: center; text-decoration: none;
  background: var(--gold-500, #D4AF37); color: var(--navy-900, #0A2342);
  font-weight: 700; padding: 12px 18px; border-radius: 8px;
}
body.dca-mnav-open { overflow: hidden; }

@media (min-width: 1001px) {
  .dca-mnav, .dca-mnav-overlay { display: none !important; }
}


/* Stable hover states (auth buttons, scroll-to-top) */
.dca-au-ghost:hover { color: rgb(184, 138, 20) !important; }
.dca-au-item:hover { background: rgba(212, 175, 55, 0.14) !important; color: rgb(10, 35, 66) !important; }
.dca-au-pbtn:hover { background: rgba(255, 255, 255, 0.22) !important; border-color: rgb(212, 175, 55) !important; }
.dca-au-primary:hover { background: rgb(184, 138, 20) !important; }
.dca-totop:hover { background: linear-gradient(135deg, rgb(28, 74, 125), rgb(13, 43, 80)) !important; }