/* ============================================================
   NAIS DUBAI – Navigation Stylesheet
   Right-side vertical rail (desktop) + full-screen overlay
   Horizontal top bar on mobile/tablet (≤ 1199 px)
   ============================================================ */

/* ── Scroll lock ── */
html.nav-open { overflow: hidden; }

/* ─────────────────────────────────────────────
   TOP BAR  (utility strip above nav rail)
───────────────────────────────────────────── */
.topbar {
  background: var(--navy-deeper);
  color: rgba(255,255,255,0.60);
  font-size: 0.72rem;
  font-family: var(--font-sans);
  border-bottom: 2px solid var(--red);
  position: relative;
  z-index: 200;
  overflow: hidden;
  height: 62px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  width: 100%;
  padding: 0 60px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 62px;
}

/* Logo block — left-aligned, fits original horizontal logo */
.topbar-logo {
  width: 220px;
  height: 62px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  background: #fff;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.topbar-logo:hover { opacity: 0.88; }
.topbar-logo-img {
  width: auto;
  height: 46px;
  max-height: 46px;
  max-width: 196px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Left info group */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  flex: 1;
}
.topbar-left a,
.topbar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.60);
  transition: var(--transition);
  white-space: nowrap;
}
.topbar-left a:hover { color: var(--white); }
.topbar-left i { color: var(--red); font-size: 0.65rem; }

/* Right links group */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  flex-shrink: 0;
}
.topbar-link {
  color: rgba(255,255,255,0.60);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.topbar-link:hover { color: var(--white); }
.topbar-divider { color: rgba(255,255,255,0.18); }

/* Social icons */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
}
.topbar-social a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.50);
  font-size: 0.68rem;
  transition: var(--transition);
}
.topbar-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ─────────────────────────────────────────────
   SITE HEADER  (removed — was causing overlap)
───────────────────────────────────────────── */
.site-header { display: none !important; }

/* Keep header-inner selectors inert */
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 11px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: 0.4s cubic-bezier(0.4,0,0.2,1);
}
.site-header.scrolled .site-logo-img {
  height: 42px;
  padding: 4px 8px;
}
.logo-wrap:hover .site-logo-img { transform: scale(1.03); }

/* ─────────────────────────────────────────────
   RIGHT NAV RAIL  (fixed vertical strip, desktop)
───────────────────────────────────────────── */
.nav-rail {
  position: fixed;
  top: 0;
  right: 0;
  width: 48px;
  height: 100vh;
  z-index: 250;
  background: var(--navy-deeper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.nav-rail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.nav-rail:hover { background: #0f1a42; }

/* Mobile inner (hidden on desktop) */
.nav-rail-inner { display: none; }

/* Desktop lines + label */
#nav-desktop-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
#nav-desktop-lines span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-rail:hover #nav-desktop-lines span { background: #fff; }

#nav-desktop-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 6px;
  transition: color var(--transition);
}
.nav-rail:hover #nav-desktop-label { color: #fff; }

/* ─────────────────────────────────────────────
   FULL-SCREEN NAV OVERLAY
───────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  width: calc(100% - 48px);   /* exclude the rail itself */
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0.55s;
}
.nav-overlay.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0s;
}

/* ── LEFT VISUAL PANEL ── */
.nav-left-panel {
  width: 38%;
  min-width: 280px;
  background: #0a1128;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-left-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,#0f1d45 0%,#1e3175 40%,#0a1128 100%);
  z-index: 0;
}
.nav-left-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 48px 44px 44px 52px;
  opacity: 1 !important;
}
.nav-left-logo {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.nav-left-logo img {
  height: 72px;
  width: auto;
  max-width: 300px;
  display: block;
  background: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(225,27,34,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: contain;
}
.nav-left-logo:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 36px rgba(0,0,0,0.55), 0 0 0 3px rgba(225,27,34,0.55);
}
.nav-left-spacer { flex: 1; }

/* Tagline area */
.nav-left-tagline { margin-top: 32px; }
.nav-left-tagline-top {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 10px;
}
.nav-left-tagline-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}
.nav-left-tagline-sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
}

/* Promo card */
.nav-promo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-top: 36px;
}
.nav-promo-card-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FF8080;
  margin-bottom: 6px;
}
.nav-promo-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.nav-promo-card-title span { color: #FF8080; }
.nav-promo-card-desc {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
  margin-bottom: 14px;
}
.nav-promo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 9px 18px;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-promo-card-link:hover { background: var(--red-dark); }

/* ── RIGHT NAV PANEL ── */
.nav-right-panel {
  flex: 1;
  background: #0d1535;
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  max-height: 100vh;
}

/* Close button */
.nav-close {
  position: absolute;
  top: 18px;
  right: 64px;   /* sits to the left of the rail */
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}
.nav-close-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.70);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-close-inner:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Nav columns + bottom bar */
.nav-panel {
  padding: 48px 48px 0 48px;
  flex: 1;
}

/* ── DESKTOP: horizontal columns (mega-menu style) ── */
.nav-primary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.nav-primary-item {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 24px;
  padding-left: 4px;
}
.nav-primary-item:last-child { border-right: none; }

/* Column title */
.nav-primary-link {
  display: block;
  padding: 0 0 12px 0;
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  margin-bottom: 16px;
  transition: color var(--transition);
  cursor: pointer;
  /* No + icon on desktop */
}
.nav-primary-link::after { display: none; }
.nav-primary-link:hover { color: rgba(255,255,255,0.75); }

/* Active column title */
.nav-primary-item.active .nav-primary-link { color: var(--red); }

/* Subnav — always visible on desktop */
.nav-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: none !important;
  overflow: visible !important;
}

.nav-subnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.18s;
  border-left: none;
}
.nav-subnav-link:hover {
  color: #fff;
  padding-left: 6px;
}
.nav-subnav-arrow { font-size: 0.58rem; color: rgba(255,255,255,0.22); }

/* Level 3 — indented under parent */
.nav-subnav-level3 {
  list-style: none;
  padding-left: 14px;
  margin: 2px 0 4px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-subnav-level3 a {
  display: block;
  padding: 4px 0;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-subnav-level3 a:hover { color: rgba(255,255,255,0.78); }

/* Bottom bar */
.nav-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 48px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
}
.nav-bottom-careers { display: flex; flex-direction: column; gap: 10px; }
.nav-careers-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.nav-bottom-social { display: flex; gap: 8px; }
.nav-bottom-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.48);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.nav-bottom-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }

.nav-bottom-search { display: flex; flex-direction: column; gap: 8px; }
.nav-search-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.nav-search-form { display: flex; }
.nav-search-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
  width: 160px;
  transition: border-color 0.2s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.26); }
.nav-search-input:focus { border-color: rgba(225,27,34,0.5); }
.nav-search-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.nav-search-btn:hover { background: var(--red-dark); }

.nav-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.nav-apply-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Contact links */
.nav-contact-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.nav-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-contact-link:hover { color: var(--white); }
.nav-contact-link i { color: var(--red); font-size: 0.65rem; }

/* ─────────────────────────────────────────────
   RESPONSIVE  ≤ 1199 px  (mobile / tablet)
───────────────────────────────────────────── */
@media (max-width: 1199px) {
  /* Hide topbar completely on small screens */
  .topbar,
  #main-topbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: static !important;
  }
  .site-header { display: none !important; }

  /* Nav rail becomes full-width horizontal top bar */
  .nav-rail {
    width: 100%;
    height: 58px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--navy-deeper);
    border-left: none;
    border-bottom: 3px solid var(--red);
    z-index: 250;
    cursor: default;
  }
  .nav-rail::before { display: none; }

  .nav-rail-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  #nav-desktop-lines,
  #nav-desktop-label { display: none; }

  .nav-overlay {
    width: 100%;
    top: 58px;
    height: calc(100vh - 58px);
  }

  .nav-left-panel { display: none; }
  .nav-right-panel { width: 100%; background: #0b1230; }
  .nav-close { right: 20px; top: 14px; }

  /* ── MOBILE: revert to vertical accordion ── */
  .nav-primary-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-primary-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0;
  }
  .nav-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: none;
    margin-bottom: 0;
  }
  .nav-primary-link::after {
    display: flex;
    content: '+';
    font-size: 1.2rem;
    color: rgba(255,255,255,0.35);
  }
  .nav-primary-item.open .nav-primary-link::after {
    transform: rotate(45deg);
    color: var(--red);
  }
  /* Collapse subnavs on mobile */
  .nav-subnav {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.36s cubic-bezier(0.4,0,0.2,1) !important;
  }
  .nav-primary-item.open .nav-subnav {
    max-height: 600px !important;
  }
  .nav-subnav-link { padding: 8px 0 8px 12px; }

  .nav-panel { padding: 32px 28px 0; }
  .nav-panel-bottom { padding: 24px 28px 80px; flex-direction: column; align-items: flex-start; }
  .nav-apply-btn { width: 100%; justify-content: center; }
  body { padding-right: 0; padding-top: 58px; }
}

@media (max-width: 480px) {
  .nav-panel-bottom { padding-bottom: 80px; }
  .nav-apply-btn { width: 100%; justify-content: center; }
}
