/* ============================================================
   NAVIGATION — WHITE, ALWAYS
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo img {
  display: block;
  height: 100px;
  width: auto;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;        /* was 0.85rem */
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links > li > a:hover {
  color: var(--brand-blue);
}

.arrow {
  font-size: 0.65rem;
  opacity: 0.5;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);  /* was + 8px — remove the gap */
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  list-style: none;
  min-width: 180px;
  padding: 0.4rem 0;
  z-index: 200;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: var(--transition);
}

.dropdown li a:hover {
  background: var(--blue-pale);
  color: var(--brand-blue);
}

/* Nominate CTA button */
.btn-contact {
  background: var(--brand-blue);
  color: #ffffff !important;
  padding: 0.6rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-contact:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 12px;
  transition: var(--transition);
}
.nav-hamburger:hover {
  border-color: transparent;
  background: var(--blue-pale);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; } /* shorter middle line */
.nav-hamburger span:nth-child(3) { width: 22px; }

/* Animated X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 22px;
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 22px;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,24,41,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--brand-blue);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .btn-contact { display: none; }
  .nav-hamburger { display: flex; }
  .container    { padding: 0 1.25rem; }
}

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: block;
  }
}

/* ============================================================
   PAGE LOADER — SVG STROKE DRAW ANIMATION
============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ── SVG Logo ── */
.loader-svg {
  width: 340px;
  height: auto;
  overflow: visible;
}

/* CARGO — starts invisible, stroke draws in, then fill floods */
.svg-cargo {
  fill: transparent;
  stroke: #1A5DAB;
  stroke-width: 2px;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation:
    drawStroke 1.2s cubic-bezier(0.4,0,0.2,1) 0.3s forwards,
    fillCargo   0.5s ease 1.5s forwards;
}

/* NXT red box — scales in after CARGO finishes drawing */
.svg-nxt-box {
  transform-origin: 309px 47px; /* center of box */
  transform: scaleX(0);
  animation: boxIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 1.6s forwards;
}

/* NXT text — fades in on top of red box */
.svg-nxt {
  opacity: 0;
  animation: fadeIn 0.3s ease 1.9s forwards;
}

/* ── Tagline ── */
.loader-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid-grey);
  opacity: 0;
  animation: fadeUp 0.6s ease 2.1s forwards;
  text-align: center;
}

/* ── Keyframes ── */

/* Stroke draws across the text */
@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

/* After stroke — fill with solid blue, stroke disappears */
@keyframes fillCargo {
  to {
    fill: #1A5DAB;
    stroke: transparent;
  }
}

/* Red box scales in from center */
@keyframes boxIn {
  to { transform: scaleX(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}