/* =========================================================
   RESET / BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  /* background: #0e1116; */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

:root {
  --navy: #0d1b2a;
  --navy-dark: #0a141f;
  --orange: #e8842c;
  --submenu-blue: #4a56a6;
  --submenu-blue-light: #5c68b8;
  --text-light: #ffffff;
  --text-dim: #d8dbe4;
  --header-h: 96px;
  --topbar-h: 36px;
}

/* =========================================================
   TOP STRIP (phone + email)
========================================================= */
.top-strip {
  background: var(--ihr-navy, #0b1d4d);
  color: #ffffff;
}
.top-strip__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.top-strip__contact {
  display: flex;
  align-items: center;
  gap: 26px;
}
.top-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}
.top-strip__item i {
  font-size: 14px;
  color: var(--orange, #e8842c);
}
.top-strip__item:hover { color: var(--orange, #e8842c); }

/* =========================================================
   MAIN HEADER
   - Transparent overlay on desktop/laptop while hero is shown
   - Solid background once scrolled (JS adds .is-scrolled)
   - Solid background on tablet/mobile (via media query below)
========================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* background: #0b1d4d40; */
  border-top: none;
  transition: background .3s ease, box-shadow .3s ease;
  background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  background: var(--navy, #0d1b2a);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0px;
  gap: 24px;
}

/* Brand — logo image only */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { 
  width: auto; 
  height: 70px; 
  /* max-width: 260px;  */
  object-fit: contain; 
}
.brand__text { display: none; }

/* Nav toggle (mobile hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav wrapper */
.primary-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-end;
  gap: 14px;
}
.primary-nav__utility { display: none; }

/* Main menu row */
.menu {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.menu__item { position: relative; flex-shrink: 0; }
.menu__item > a,
.menu__link {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 15.5px;
  font-weight: 600;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.menu__item > a:hover,
.menu__link:hover,
.menu__item.is-current > .menu__link {
  color: var(--text-light);
  background-color:#0b1d4d;
  padding: 10px 20px;
  transition:all .45s cubic-bezier(.4,0,.2,1);
}
.menu__item.is-current > .menu__link,
.menu__item > a.is-current {
  border-bottom: 2px solid #fff;
}
.chev { font-size: 11px; transition: transform .2s ease; }

/* =========================================================
   DROPDOWN SUBMENU
========================================================= */
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: #0b1d4d;
  padding: 8px 0;
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  flex-direction: column;
}
.has-submenu.is-open .submenu { display: flex; }
.has-submenu.is-open .chev { transform: rotate(180deg); }

.submenu__link {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 22px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.submenu__link:hover { color: #ffd9a8; background: rgba(255,255,255,.08); }

/* =========================================================
   RIGHT SIDE UTILITY NAV (Quicklinks / Resources / Tender / Apply / Search)
========================================================= */
.primary-nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.dropdown { position: relative; }
.dropdown__toggle {
  background: none; border: none; color: var(--text-light);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px;
}
.dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #1a2636;
  min-width: 170px;
  padding: 10px 0;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.dropdown.is-open .dropdown__panel { display: block; }
.dropdown__panel a { display: block; padding: 8px 16px; color: #fff; font-size: 13px; }
.dropdown__panel a:hover { background: rgba(255,255,255,.08); }

.top-link { font-size: 13px; font-weight: 600; color: var(--text-light); }

.apply-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}
.apply-btn:hover { background: #fff; color: var(--navy); }
.apply-btn--desktop { display: inline-block; }

.icon-btn {
  background: none; border: none; color: #fff; display: flex; align-items: center;
}

.quicklinks-mobile { display: none; }

/* =========================================================
   HERO / VIDEO SECTION
========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  height: 82vh;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 60px 90px;
  max-width: 900px;
}
.hero__content h1 {
  font-family: 'Sora';
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 18px;
  line-height: 1.1;
  color: #fff;
}
.hero__content p {
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 16px;
  color: #f1f1f1;
  line-height: 1.5;
}
.hero__link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__link:hover { color: var(--orange); }

.hero__controls {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  right: 40px;
  display: flex;
  gap: 12px;
}
.hero__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.hero__btn:hover { background: rgba(0,0,0,.7); transform: scale(1.06); }

/* =========================================================
   RESPONSIVE / RWD
========================================================= */

/* Tablet / Laptop — keep menu on one line, tighten spacing so it fits */
@media (max-width: 1400px) {
  .menu { gap: 18px; }
  .menu__item > a, .menu__link { font-size: 14px; }
}

@media (max-width: 1200px) {
  .menu { gap: 14px; }
  .menu__item > a, .menu__link { font-size: 13px; }
  .primary-nav__right { gap: 14px; }
  .hero__content h1 { font-size: 44px; }
}

/* Tablet & Mobile — solid header background, hamburger menu */
@media (max-width: 992px) {
  .site-header__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 10px 14px;
    gap: 0px;
   }
  .nav-toggle { display: flex; }

  

  /* Smooth open/close of the mobile menu */
  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    /* margin-top: 12px; */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    transition: max-height .4s ease, opacity .3s ease, visibility .3s ease;
  }
  .primary-nav.is-open {
    max-height: 80vh;
    visibility: visible;
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Menu as a vertical, touch-friendly list */
  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .menu__item {
    border-bottom: 1px solid rgba(255,255,255,.12);
    width: 100%;
  }
  .menu__item > a,
  .menu__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 6px;
    font-size: 15px;
    min-height: 52px;
    box-sizing: border-box;
  }

/* Submenu as a smooth accordion (not a floating dropdown) */
  .submenu {
    display: flex;
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 14px;
    background: rgba(255,255,255,.06);
    opacity: 0;
    visibility: hidden;
    transition: max-height .4s ease, opacity .3s ease, padding .3s ease;
  }
  .has-submenu.is-open .submenu {
    display: flex;
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0 8px 14px;
  }
  .submenu__link {
    padding: 14px 16px;
    font-size: 14px;
    white-space: normal;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .submenu__link:last-child { border-bottom: none; }

  /* Ensure the header/nav has a solid background (not transparent) */
  .site-header {
    background: var(--navy, #0d1b2a);
  }

  .hero { height: 70vh; min-height: 480px; }
  .hero__content { padding: 0 28px 60px; }
  .hero__content h1 { font-size: 32px; }
  .hero__content p { font-size: 15px; }
}

/* Small mobile */
@media (max-width: 560px) {
  .top-strip__contact {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-direction: column;
}
  .top-strip__inner { padding: 6px 14px; }
  .top-strip__contact { gap: 16px; }
  .top-strip__item { font-size: 11.5px; }
  .top-strip__item i { font-size: 12px; }

  .site-header__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 10px 14px;
    gap: 0px;
   }
  .brand__logo { 
    height: 44px; 
    /* max-width: 180px;  */
  }
  .menu__item > a,
  .menu__link {
    padding: 14px 4px;
    min-height: 48px;
    font-size: 14px;
  }
  .submenu__link {
    padding: 12px 14px;
    min-height: 44px;
  }
  .hero__content h1 { font-size: 18px; }
  .hero__controls { right: 16px; bottom: 20px; gap: 8px; }
  .hero__btn { width: 34px; height: 34px; }
}

/* =========================================================
   AUTO-COLLAPSE (desktop/laptop when menu does not fit)
   Applied by JS: adds .nav-collapsed to .site-header
========================================================= */
.site-header.nav-collapsed .nav-toggle {
  display: flex;
}
.site-header.nav-collapsed .primary-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(13, 27, 42, 0.97);
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 16px 24px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, visibility .3s ease;
}
.site-header.nav-collapsed .primary-nav.is-open {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: visible;
  opacity: 1;
}
.site-header.nav-collapsed .primary-nav__utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  order: 2;
  margin-top: 10px;
}
.site-header.nav-collapsed .quicklinks-mobile {
  display: flex;
  gap: 14px;
}
.site-header.nav-collapsed .quicklinks-mobile a {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.site-header.nav-collapsed .menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.site-header.nav-collapsed .menu__item {
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header.nav-collapsed .menu__item > a,
.site-header.nav-collapsed .menu__link {
  width: 100%;
  justify-content: space-between;
  padding: 14px 4px;
}
.site-header.nav-collapsed .submenu {
  position: static;
  min-width: 0;
  width: 100%;
  box-shadow: none;
  border-radius: 0;
  flex-direction: column;
  gap: 20px;
  padding: 18px 10px 22px;
}
.site-header.nav-collapsed .primary-nav__right {
  order: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header.nav-collapsed .apply-btn--desktop {
  display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
