/* =============================================
   ASANTE TOURS — nav.css (UPDATED)
   Header, navigation, mega menu, mobile menu
   ============================================= */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brand-dark, #3A2F3C); /* solid for all inner pages by default */
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

/* Homepage only: start transparent over the hero image */
body.page-home #site-header {
  background: transparent;
}

#site-header.scrolled {
  background: var(--brand-dark, #3A2F3C);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: padding 0.35s ease;
}

#site-header.scrolled .nav-container {
  padding: 10px 40px;
}

/* LOGO */
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; transition: height 0.35s ease; }
#site-header.scrolled .nav-logo img { height: 38px; }
.logo-dark { display: none; }

/* MENU */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover { color: var(--brand-gold); }

.nav-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-item.has-mega:hover .nav-arrow,
.nav-item.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* DROPDOWN */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--brand-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 200;
  list-style: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--brand-dark);
  transform: rotate(45deg);
  border-radius: 2px;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 22px;
  font-size: 13px;
  color: var(--brand-cream);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.dropdown-menu a:hover {
  color: var(--brand-gold);
  background: var(--brand-dark);
}

/* MEGA MENU */
.mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--brand-dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  z-index: 999;
}

#site-header.scrolled .mega-menu {
  top: 58px;
}

.nav-item.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.9fr 1.2fr 1.2fr 1fr 1.4fr;
  gap: 40px;
}

.mega-col h4.mega-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col ul li { margin-bottom: 4px; }

.mega-col ul a {
  font-size: 13px;
  color: #fdf9ec;
  padding: 5px 0;
  display: block;
  transition: color var(--transition);
  text-decoration: none;
}

.mega-col ul a:hover { color: var(--brand-dark); }

.mega-featured {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.mega-feat-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.mega-feat-text {
  padding: 16px;
}

.mega-feat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 6px;
}

.mega-feat-text h5 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-gold);
  margin-bottom: 4px;
}

.mega-feat-text p {
  font-size: 12px;
  color: #fdf9ec;
  margin-bottom: 12px;
}

.mega-feat-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  text-decoration: none;
}

.mega-col ul a:hover { color: var(--brand-gold); }

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-phone:hover { color: var(--brand-gold); }

.nav-cta {
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 25px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--brand-gold-lt);
  transform: translateY(-1px);
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--brand-dark, #3A2F3C);
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 90px 32px 60px;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-overlay.open { display: flex; }

/* MOBILE CLOSE BUTTON — top right of overlay */
.mobile-close-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1300;
  background: #fff;
  border: none;
  color: #3A2F3C;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  /* Hidden by default */
  display: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.mobile-close-btn.open {
  display: flex;
  opacity: 1;
}

.mobile-close-btn:hover {
  background: #C9A84C;
  color: #fff;
  transform: rotate(90deg);
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 24px;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  text-decoration: none;
}

.mobile-nav-link:hover { color: var(--brand-gold); }

.mobile-submenu {
  display: none;
  padding: 0 0 20px 16px;
  flex-direction: column;
  gap: 6px;
}

.mobile-submenu.open { display: flex; }

.mobile-submenu-heading {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
  padding: 14px 0 8px;
}

.mobile-submenu a {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  padding: 7px 0;
  transition: color var(--transition);
  text-decoration: none;
}

.mobile-submenu a:hover { color: #fff; }

.mobile-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- SCROLL INFO BAR — Desktop only ---- */
#asante-infobar {
  /* Base state: hidden off screen */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  z-index: 990;
  background: var(--brand-dark, #1a1a2e);
  color: #fff;
  padding: 14px 40px;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#asante-infobar.visible {
  bottom: 0;
}

#asante-infobar.hidden {
  bottom: -120px;
}

.aib-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aib-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.aib-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aib-phone {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.aib-phone:hover { color: var(--brand-gold); }

.aib-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.aib-btn {
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.aib-btn:hover {
  background: var(--brand-gold-lt, #d4b063);
  transform: translateY(-1px);
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 995;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wa-float__bubble {
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.wa-float:hover .wa-float__bubble {
  opacity: 1;
  transform: translateX(0);
}

.wa-float__icon {
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.wa-float__icon svg {
  width: 28px;
  height: 28px;
}

.wa-float:hover .wa-float__icon {
  transform: scale(1.08);
}

/* Laptop breakpoint — tighten nav slightly */
@media (max-width: 1199px) {
  .nav-container { padding: 18px 28px; }
  #site-header.scrolled .nav-container { padding: 10px 28px; }
  .nav-link { padding: 8px 10px; font-size: 11.5px; letter-spacing: 1.2px; }
  .mega-inner { grid-template-columns: 1fr 1fr 1fr 0.6fr 1.2fr; gap: 28px; }
}

/* Tablet: 769px–1024px — hide full nav, show hamburger */
@media (max-width: 1024px) {
  .nav-menu { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 11px; }
  .nav-phone { display: none; }
  .mega-inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-featured { display: none; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-menu { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-container { padding: 16px 20px; }
  #site-header.scrolled .nav-container { padding: 10px 20px; }

  /* Completely hide infobar on tablet/mobile */
  #asante-infobar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* WhatsApp: lift above bottom chrome */
  .wa-float { bottom: 24px; right: 16px; }
  .wa-float__icon { width: 48px; height: 48px; }
  .wa-float__bubble { display: none; }
}
