/* ==========================================================
   HEADER NAV — PREMIUM REDESIGN
   Full mobile responsive · Clean island nav · Crisp UX
   ========================================================== */

/* ── FIXED WRAPPER ── */
.header-home-one {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1050;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════
   1. TOP BAR
   ══════════════════════════════════════════════════ */
.ref-top-bar {
  background: linear-gradient(90deg, #0d1b3e 0%, #1a2d6b 50%, #0d1b3e 100%) !important;
  color: #fff;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: relative;
  z-index: 1002; /* lower than sub-menu z-index:9999 so dropdowns overlap correctly */
  overflow: hidden; /* only hides within bar — fine since sub-menus are in nav below */
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

/* Gold shimmer bottom edge */
.ref-top-bar::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255, 215, 0, 0.5) 20%,
    #ffd700 50%,
    rgba(255, 215, 0, 0.5) 80%,
    transparent 100%);
  z-index: 2;
}

/* Subtle dot-grid overlay */
.ref-top-bar::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,215,0,0.07) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none; z-index: 0;
}

/* ── Ticker text ── */
.top-marquee-box {
  flex: 1;
  margin-right: 30px;
  overflow: hidden;
  position: relative; z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.top-marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.css-ticker {
  display: inline-block;
  animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
}

/* ── Phone pill ── */
.top-bar-item {
  display: flex; align-items: center;
  position: relative; z-index: 2; gap: 10px;
  flex-shrink: 0;
}

.top-pill-phone {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff !important;
  padding: 5px 16px; border-radius: 50px;
  font-weight: 700; font-size: 12px;
  text-decoration: none !important;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-pill-phone i { color: #ffc107; font-size: 13px; }

.top-pill-phone:hover {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── WhatsApp pill ── */
@keyframes goldenPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,215,0,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,215,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

.top-pill-whatsapp {
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  color: #0d1b3e !important;
  padding: 5px 18px; border-radius: 50px;
  font-weight: 800; font-size: 11px;
  text-decoration: none !important;
  display: flex; align-items: center; gap: 7px;
  animation: goldenPulse 2.5s infinite;
  text-transform: uppercase; letter-spacing: 1px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-pill-whatsapp:hover {
  background: #fff;
  color: #0d1b3e !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   2. NAV ISLAND
   ══════════════════════════════════════════════════ */
.hybrid-nav-island {
  background: #fff;
  max-width: 1240px;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: 72px;
  border-radius: 40px;
  box-shadow:
    0 4px 20px rgba(26,45,107,0.1),
    0 1px 0 rgba(255,193,7,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: relative;
  z-index: 1001;
  border: 1px solid rgba(255,193,7,0.1);
  overflow: visible; /* critical — allows sub-menus to drop below the island */
}

/* ── Logo ── */
.ref-center-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 6px; z-index: 1020;
  width: 200px; height: 68px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ref-center-logo:hover { transform: scale(1.04); }

.ref-center-logo img {
  max-width: 190px !important;
  height: auto; max-height: 54px;
}

/* ── Desktop nav ── */
.mainmenu {
  background: transparent !important;
  flex: 1; display: flex; justify-content: center;
}

.navigation-box {
  display: flex !important; align-items: center;
  margin: 0 !important; padding: 0 !important; gap: 2px;
  list-style: none;
}

/* ── Each top-level li must be position:relative so the sub-menu anchors to it ── */
.navigation-box > li {
  position: relative;
  list-style: none;
}

.navigation-box > li > a {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #2a2a4a !important;
  padding: 8px 14px !important;
  text-transform: capitalize !important;
  transition: color 0.25s ease !important;
  border-radius: 8px;
  position: relative;
  display: block;
  white-space: nowrap;
}

/* Gold underline slide-in on hover / active */
.navigation-box > li > a::after {
  content: "";
  position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; border-radius: 2px;
  background: #ffc107;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}

.navigation-box > li:hover > a::after,
.navigation-box > li.current > a::after {
  transform: scaleX(1);
}

.navigation-box > li:hover > a,
.navigation-box > li.current > a {
  color: #1a2d6b !important;
  background: rgba(26,45,107,0.04);
}

/* ══════════════════════════════════════════════════
   DESKTOP DROPDOWN — LEVEL 1
   (overrides style.css z-index and ensures correct anchor)
   ══════════════════════════════════════════════════ */
.header-navigation ul.navigation-box > li > ul.sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important;      /* must beat .hybrid-nav-island z-index:1001 */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease !important;

  /* Appearance */
  background: #fff !important;
  border: 1px solid #eee !important;
  border-top: 3px solid #ffc107 !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 45px rgba(26,45,107,0.13) !important;
  padding: 8px 0 !important;
  min-width: 230px;
  margin-top: 0 !important;
  list-style: none !important;
}

/* Show on hover */
.header-navigation ul.navigation-box > li:hover > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* ── Level-1 sub-menu link styles ── */
.header-navigation ul.navigation-box > li > ul.sub-menu > li {
  position: relative;
  list-style: none;
  display: block !important;
}

.header-navigation ul.navigation-box > li > ul.sub-menu > li > a {
  color: #333 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  padding: 10px 22px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  transition: all 0.2s ease !important;
  display: block !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.header-navigation ul.navigation-box > li > ul.sub-menu > li:last-child > a {
  border-bottom: none !important;
}

.header-navigation ul.navigation-box > li > ul.sub-menu > li > a:hover {
  color: #1a2d6b !important;
  background: rgba(255,193,7,0.06) !important;
  padding-left: 28px !important;
}

/* ══════════════════════════════════════════════════
   DESKTOP DROPDOWN — LEVEL 2 (nested, e.g. Services ›)
   ══════════════════════════════════════════════════ */
.header-navigation ul.navigation-box > li > ul.sub-menu > li > ul.sub-menu {
  position: absolute !important;
  top: -3px !important;      /* align with parent item accounting for border-top */
  left: 100% !important;
  z-index: 10000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease !important;

  background: #fff !important;
  border: 1px solid #eee !important;
  border-top: 3px solid #1a2d6b !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 45px rgba(26,45,107,0.12) !important;
  padding: 8px 0 !important;
  min-width: 220px;
  list-style: none !important;
}

/* Show nested on hover */
.header-navigation ul.navigation-box > li > ul.sub-menu > li:hover > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Level-2 link styles */
.header-navigation ul.navigation-box > li > ul.sub-menu > li > ul.sub-menu > li {
  list-style: none; display: block !important;
}

.header-navigation ul.navigation-box > li > ul.sub-menu > li > ul.sub-menu > li > a {
  color: #333 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 9px 20px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  display: block !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.header-navigation ul.navigation-box > li > ul.sub-menu > li > ul.sub-menu > li > a:hover {
  color: #1a2d6b !important;
  background: rgba(255,193,7,0.06) !important;
  padding-left: 26px !important;
}

/* ── Book Now CTA in nav ── */
.navigation-box > li.hidden-xs > a {
  background: linear-gradient(135deg, #1a2d6b, #0d1b3e) !important;
  color: #fff !important;
  border-radius: 30px !important;
  padding: 9px 22px !important;
  margin-left: 8px;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(13,27,62,0.25);
  transition: all 0.3s ease !important;
}

.navigation-box > li.hidden-xs > a::after { display: none !important; }

.navigation-box > li.hidden-xs > a:hover {
  background: linear-gradient(135deg, #ffc107, #ff9f00) !important;
  color: #111 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,193,7,0.3) !important;
}

/* ── Hamburger button ── */
.navbar-toggle {
  background: #fff !important;
  border: 1.5px solid rgba(26,45,107,0.2) !important;
  border-radius: 10px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(26,45,107,0.1);
  transition: all 0.25s ease;
  width: 44px; height: 44px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.navbar-toggle:hover {
  background: rgba(26,45,107,0.06) !important;
  border-color: rgba(26,45,107,0.3) !important;
}

.navbar-toggle .icon-bar {
  background-color: #0d1b3e !important;
  width: 20px; height: 2px;
  border-radius: 2px;
  display: block;
  transition: all 0.3s ease;
}

/* Sticky state */
.header-home-one.stricky-fixed .ref-top-bar {
  height: 0; overflow: hidden; padding: 0; opacity: 0; pointer-events: none;
}

.header-home-one.stricky-fixed .hybrid-nav-island {
  margin-top: 8px;
  box-shadow: 0 6px 30px rgba(26,45,107,0.15);
}

/* ══════════════════════════════════════════════════
   3. OFFCANVAS MOBILE DRAWER
   ══════════════════════════════════════════════════ */
.offcanvas-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13,27,62,0.75);
  z-index: 2000; opacity: 0; visibility: hidden;
  transition: all 0.35s ease; backdrop-filter: blur(3px);
}

body.offcanvas-active .offcanvas-overlay {
  opacity: 1; visibility: visible;
}

.offcanvas-drawer {
  position: fixed; top: 0; left: -320px;
  width: 300px; height: 100%;
  background: linear-gradient(180deg, #1a2d6b 0%, #0d1b3e 100%);
  z-index: 2100;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 6px 0 40px rgba(0,0,0,0.35);
  overflow-y: auto; display: flex; flex-direction: column;
  color: #fff;
}

body.offcanvas-active .offcanvas-drawer {
  transform: translateX(320px);
}

/* Drawer header */
.offcanvas-header {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.15);
}

.offcanvas-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 700; color: #ffc107; margin: 0;
  letter-spacing: 1.5px; text-transform: uppercase;
}

.offcanvas-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; width: 36px; height: 36px; border-radius: 10px;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; cursor: pointer;
}

.offcanvas-close:hover {
  background: rgba(255,193,7,0.2);
  border-color: rgba(255,193,7,0.3);
  color: #ffc107;
}

/* Drawer body */
.offcanvas-body { padding: 12px 0; flex-grow: 1; }

.offcanvas-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex !important; flex-direction: column !important;
}

.offcanvas-nav > li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.offcanvas-nav > li > a {
  padding: 13px 22px;
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.88) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.offcanvas-nav > li > a i:first-child {
  width: 22px; color: #ffc107; font-size: 16px; flex-shrink: 0;
}

.offcanvas-nav > li > a:hover,
.offcanvas-nav > li > a:active {
  background: rgba(255,255,255,0.07);
  color: #fff !important;
  padding-left: 28px;
  text-decoration: none !important;
}

/* Sub-menus in drawer */
.offcanvas-nav .sub-menu {
  list-style: none; padding: 0; margin: 0;
  background: rgba(0,0,0,0.2) !important;
  display: none; border-top: 1px solid rgba(255,255,255,0.08);
}

.offcanvas-nav li.menu-opened > .sub-menu { display: block; }

.offcanvas-nav .sub-menu li a {
  padding: 10px 22px 10px 50px !important;
  display: block !important;
  color: rgba(255,255,255,0.75) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px !important; font-weight: 400 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  transition: all 0.2s ease !important;
}

.offcanvas-nav .sub-menu li a:hover,
.offcanvas-nav .sub-menu li a:active {
  color: #ffc107 !important;
  background: rgba(255,193,7,0.08) !important;
  padding-left: 56px !important;
}

/* Category labels inside mobile sub-menu */
.offcanvas-nav .sub-menu li[style*="color: #ffc000"] {
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 1.5px !important;
  padding: 14px 22px 6px 22px !important;
  border-bottom: none !important;
  color: rgba(255,193,7,0.7) !important;
  pointer-events: none;
}

/* Chevron icon */
.offcanvas-nav .fa-chevron-down {
  margin-left: auto !important; margin-top: 0 !important;
  font-size: 11px !important; color: rgba(255,255,255,0.4) !important;
  transition: transform 0.3s ease !important;
}

.offcanvas-nav li.menu-opened .fa-chevron-down {
  transform: rotate(180deg) !important;
  color: #ffc107 !important;
}

/* Drawer footer CTA */
.offcanvas-footer {
  padding: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  background: rgba(0,0,0,0.15);
}

.offcanvas-footer .btn-book {
  background: linear-gradient(135deg, #ffc107, #ff9f00);
  color: #0d1b3e !important; padding: 13px 32px;
  border-radius: 30px; font-weight: 800;
  display: inline-block; text-decoration: none !important;
  font-size: 14px; letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(255,193,7,0.3);
  transition: all 0.3s ease;
}

.offcanvas-footer .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255,193,7,0.4);
}

/* ══════════════════════════════════════════════════
   4. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */

/* Tablet & mobile (< 1200px) — show hamburger, hide desktop nav */
@media (max-width: 1199px) {
  .navbar-toggle {
    display: flex !important;
  }

  .navbar-collapse.collapse {
    display: none !important;
  }

  .hybrid-nav-island {
    padding: 0 70px 0 16px;
    justify-content: flex-start;
    width: calc(100% - 24px);
  }

  .ref-center-logo {
    position: static;
    transform: none;
    width: auto; height: 70px;
    padding: 0 10px;
  }

  .ref-center-logo:hover { transform: none; }

  .ref-center-logo img {
    max-width: 160px !important;
    max-height: 48px;
  }
}

/* Tablet (768 – 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .ref-top-bar {
    padding: 0 24px; height: 40px;
  }

  .top-marquee-box {
    display: block;
    margin-right: 20px;
  }

  .top-pill-phone span { display: none; }
  .top-pill-phone      { padding: 5px 12px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .ref-top-bar {
    height: 48px; padding: 0 12px;
    justify-content: center; gap: 10px;
  }

  .top-marquee-box { display: none; }

  .top-pill-phone span { display: none; }
  .top-pill-phone {
    padding: 8px 14px; font-size: 13px;
    border-radius: 50%;
    width: 40px; height: 40px;
    justify-content: center;
  }

  .top-pill-phone i { font-size: 16px; margin: 0; }

  .top-pill-whatsapp {
    padding: 8px 16px; font-size: 11px;
    letter-spacing: 0.5px;
  }

  .hybrid-nav-island {
    height: 62px; border-radius: 0;
    width: 100%; margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(26,45,107,0.12);
    padding: 0 58px 0 16px;
  }

  .ref-center-logo { height: 60px; }
  .ref-center-logo img { max-height: 42px !important; max-width: 140px !important; }

  .navbar-toggle {
    right: 12px; width: 40px; height: 40px;
    padding: 8px 10px !important;
  }

  .navbar-toggle .icon-bar { width: 18px; }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  .ref-top-bar { gap: 8px; }
  .top-pill-whatsapp { padding: 7px 12px; letter-spacing: 0; }
  .ref-center-logo img { max-width: 120px !important; }
}

/* Fix scroll-padding for fixed header */
html {
  scroll-padding-top: 120px;
}

@media (max-width: 767px) {
  html { scroll-padding-top: 100px; }
}
