/* Responsive overrides: nav hamburger, grids, spacing, and section fixes for small devices */

/* ============== NAVBAR + HAMBURGER ============== */
@media (max-width: 1024px) {
  /* Show hamburger and collapse menu on tablet and below */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; /* above menu */
  }
  .hamburger span {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile menu panel */
  .nav-menu {
    position: fixed;
    inset: 0 0 0 0;
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 24px 24px;
    gap: 20px !important;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link,
  .nav-menu .launch-btn {
    font-size: 16px;
  }

  /* Slightly tighter container paddings */
  .nav-container,
  .hero-content,
  .footer-container {
    padding: 0 20px !important;
  }
}

/* ============== HERO SECTION ============== */
@media (max-width: 1024px) {
  .hero-features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }
}
@media (max-width: 640px) {
  .hero-title {
    padding-top: 2rem;
    margin-bottom: 40px !important;
  }
  .hero-features {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ============== SPECTRUM SECTION ============== */
@media (max-width: 1024px) {
  .spectrum-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: left;
  }
}
@media (max-width: 768px) {
  /* Remove large radii/margins that cause overflow on small screens */
  .spectrum-section {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 80px !important;
  }
  .spectrum-section::after {
    display: none !important;
  }

  .spectrum-content {
    padding-right: 0;
  }
  .spectrum-rocket img {
    max-height: 420px !important;
  }
}

/* ============== FLIGHT OPTIONS (minor tweaks) ============== */
@media (max-width: 480px) {
  .flight-card {
    min-height: 380px !important;
    padding: 18px !important;
  }
  .card-image {
    min-height: 200px !important;
  }
}

/* ============== ABOUT US (already responsive; ensure no overflow) ============== */
@media (max-width: 640px) {
  .about-grid {
    padding: 0 16px !important;
  }
}

/* ============== FACTS & FIGURES (already responsive; spacing tweaks) ============== */
@media (max-width: 640px) {
  .facts-section {
    padding: 60px 16px 100px !important;
  }
}

/* ============== NEWSROOM (already responsive; spacing tweaks) ============== */
@media (max-width: 640px) {
  .news-section {
    padding: 60px 16px !important;
  }
}

/* ============== CAREER SECTION ============== */
@media (max-width: 768px) {
  .career-section {
    border-radius: 16px !important;
    margin: 24px 16px !important;
  }
  .career-content {
    padding: 56px 24px !important;
  }
}

/* ============== FOOTER ============== */
@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
  }
}
@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-container {
    padding: 0 20px !important;
  }
}

/* ============== GLOBAL SAFEGUARDS ============== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px !important;
  }
}
/* Prevent accidental horizontal scrolling on small devices */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
