:root {
  --bg-color: #121A2C;
  --text-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.65);
  --hover-line-color: #ffffff;
  --transition-speed: 0.3s;
}
/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*/
body {
  min-height: 100vh;
}

/* HEADER */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 400px;
  background-image: url("https://cdn.visionsafe.com/nav/plane.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* optional dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Adds a 40% dark tint */
  z-index: 1; /* Keeps it above the image but below the header */
}

/* Container controls layout + border */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 0 12px;
  border-bottom: 0.5px solid var(--border-color);
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 41px;
  width: auto;
}

/* DESKTOP NAV */
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin-bottom: 0;
}

.desktop-nav a {
  font-family: sweet-sans-pro, sans-serif;
  font-weight: 400;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -23px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: background-color var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
  background-color: var(--hover-line-color);
}

a.nav-link:hover {
  color: var(--text-color);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 30px;
  z-index: 102;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition-speed);
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  right: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-color);
  z-index: 10001;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease;

  display: flex;
  flex-direction: column;
  padding: 2rem;

  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.mobile-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: sweet-sans-pro, sans-serif;
  font-weight: 400;
}

/* HAMBURGER ANIMATION */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 460px) {
  .hero {
    min-height: 142px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-drawer {
    display: none;
  }
}