/* =============================================
   NS TRAVEL — nav.css
   Mobile hamburger + off-canvas drawer
   ============================================= */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #B08D57;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--gold, #B08D57); background: rgba(176,141,87,0.06); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--gold, #B08D57);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
  transform-origin: center;
}
.nav-hamburger:hover span { background: var(--gold, #B08D57); }

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── OVERLAY ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,46,0.45);
  backdrop-filter: blur(4px);
  z-index: 290;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.visible {
  display: block;
}
.nav-overlay.active {
  opacity: 1;
}

/* ── OFF-CANVAS DRAWER ── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--navy, #0D1B2E);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.drawer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light, #C9A96E);
  text-decoration: none;
}
.drawer-logo span { color: #fff; }
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: var(--gold, #B08D57); color: #fff; }

/* Drawer nav links */
.drawer-links {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}
.drawer-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.drawer-links li a:hover,
.drawer-links li a.active {
  color: var(--gold-light, #C9A96E);
  background: rgba(255,255,255,0.04);
}
.drawer-links li a.active { font-weight: 600; }
.drawer-links li a::after {
  content: '›';
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s, transform 0.2s;
}
.drawer-links li a:hover::after { color: var(--gold, #B08D57); transform: translateX(3px); }

/* Drawer footer CTA */
.drawer-footer {
  padding: 1.5rem 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem;
  background: var(--gold, #B08D57);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.drawer-cta:hover { background: var(--gold-light, #C9A96E); }

/* ── SHOW HAMBURGER AT TABLET/MOBILE ── */
@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }
  /* Keep logo visible, hide desktop links & button */
  .nav-links { display: none !important; }
  .nav-btn   { display: none !important; }
}

/* ── LOGO IMAGE SIZING ── */

/* Nav bar logo */
.nav-logo {
  /* override any old text styles */
  font-size: 0;
  line-height: 0;
}
.nav-logo-img {
  display: block;
  height: 81px;          /* 25% larger again = ~81px */
  width: auto;
  /* drop the black background on light surfaces */
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.82; }

/* Footer logo — on dark navy bg, multiply doesn't work; use a white-tinted version via filter */
.footer-logo {
  font-size: 0;
  line-height: 0;
}
.footer-logo-img {
  display: block;
  height: 64px;
  width: auto;
  /* invert then sepia+saturate to turn gold-on-black into gold-on-dark */
  filter: brightness(0) saturate(100%) invert(78%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(1.1);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logo:hover .footer-logo-img { opacity: 1; }

/* Drawer logo — also dark bg */
.drawer-logo {
  font-size: 0;
  line-height: 0;
}
.drawer-logo-img {
  display: block;
  height: 48px;
  width: auto;
  filter: brightness(1.15) saturate(1.1);
  opacity: 1;
}

/* Responsive — slightly smaller on mobile */
@media (max-width: 640px) {
  .nav-logo-img   { height: 68px; }
  .footer-logo-img{ height: 52px; }
  .drawer-logo-img{ height: 40px; }
}

/* ── FOOTER PARTNER LOGO ── */
.footer-partner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.footer-partner-sep {
  display: block;
  width: 0px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.footer-partner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-partner-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-family: 'DM Sans', sans-serif;
}
.footer-partner-logo {
  display: block;
  transition: opacity 0.2s;
}
.footer-partner-logo:hover { opacity: 0.8; }
.footer-partner-img {
  display: block;
  height: 58px;
  width: auto;
  /* white-on-black logo — apply gold filter to match main logo */
  filter: brightness(0) saturate(100%) invert(78%) sepia(30%) saturate(500%) hue-rotate(5deg) brightness(1.1);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-partner-logo:hover .footer-partner-img { opacity: 1; }

@media (max-width: 640px) {
  .footer-partner { flex-direction: row; gap: 1rem; }
  .footer-partner-img { height: 46px; }
}
