:root {
  --primary-blue: #021F83;
  --light-blue: #1a3fb8;
  --off-white: #f4f6fb;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #16213e;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--primary-blue);
  color: white;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible {
  color: #e8eaf2;
}

.has-submenu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #1638a0;
  color: white;
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-item-dropdown:hover .submenu,
.nav-item-dropdown:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  color: white;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0;
}

.submenu li a:hover,
.submenu li a:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--primary-blue);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    max-height: 600px;
    opacity: 1;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    transition: max-height 0.3s ease;
  }

  .nav-item-dropdown.open .submenu {
    max-height: 200px;
  }

  .submenu li a {
    color: white;
  }

  .submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h, 72px) + 260px);
  min-height: calc(100svh - var(--header-h, 72px) + 260px);
  color: white;
  text-align: center;
}

.hero-fold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h, 72px));
  height: calc(100svh - var(--header-h, 72px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.25) 55%,
    rgba(255, 255, 255, 0.6) 75%,
    #ffffff 100%
  );
  z-index: 2;
  pointer-events: none;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.scroll-arrow {
  position: absolute;
  bottom: 292px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  padding: 16px;
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

.scroll-arrow span {
  display: block;
  width: 22px;
  height: 22px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(-45deg);
  transition: border-color 0.2s ease;
}

.scroll-arrow:hover span,
.scroll-arrow:focus span {
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .background {
  position: absolute;
  inset: 0;
  background: url("assets/737-Nose.png") center center / cover no-repeat;
  z-index: 0;
}

.hero .tint {
  position: absolute;
  inset: 0;
  background-color: var(--primary-blue);
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 700px;
}

.hero-logo {
  max-width: 120px;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.95;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: white;
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background-color: #d9deec;
}

.btn:active {
  background-color: #c2c9de;
}

.btn-blue {
  background-color: var(--primary-blue);
  color: white;
}

.btn-blue:hover {
  background-color: var(--light-blue);
}

.connect-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.connect-buttons .btn {
  width: 280px;
  text-align: center;
  white-space: nowrap;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

/* ─── Sections ─────────────────────────────────────────────── */

section {
  padding: clamp(48px, 8vw, 90px) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  color: #4a4a4a;
  font-size: 1.05rem;
}

.section-title-left {
  text-align: left;
  color: #282527;
}

.alt-bg {
  background-color: white;
}

/* ─── Connect box (home page) ─────────────────────────────────────────────── */

.connect {
  background-color: var(--primary-blue);
  padding: 22px 36px;
  margin: 0;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  text-align: center;
  color: white;
}

.connect p {
  margin: 0 0 10px;
  font-weight: bold;
  font-size: 0.98rem;
  color: white;
}

.connect-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.connect-links span {
  color: white;
  opacity: 0.5;
  font-weight: bold;
}

.connect a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.connect a:hover {
  text-decoration: underline;
  opacity: 0.75;
}

/* ─── Why us cards (home page) ─────────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.why-card {
  background-color: var(--primary-blue);
  color: white;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
}

.why-card .icon-placeholder {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.why-card img.icon-placeholder {
  background-color: transparent;
  padding: 0;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ─── Split row (home page: text/image, image/text) ─────────────────────────────────────────────── */

.split-row {
  display: flex;
  align-items: stretch;
  gap: 48px;
  margin-top: 24px;
}

.split-row > p,
.split-row > div:not(.image-placeholder-1920) {
  flex: 1 1 0;
  min-width: 0;
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.7;
}

.image-placeholder-1920,
.image-1920 {
  flex: 0 1 45%;
  min-width: 0;
  aspect-ratio: 1920 / 1080;
  background-color: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.image-1920 {
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  align-self: stretch;
}

@media (max-width: 760px) {
  .split-row {
    flex-direction: column;
  }

  .image-placeholder-1920,
  .image-1920 {
    flex: none;
    width: 100%;
  }
}

/* ─── Feature cards ─────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.feature-card {
  background-color: white;
  border: 1px solid #d8e0f5;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-card h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ─── Fleet cards ─────────────────────────────────────────────── */

.fleet-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fleet-card {
  background-color: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.fleet-image-placeholder {
  flex: 0 0 260px;
  background-color: #dfe6f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
}

.fleet-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 560px) {
  .fleet-card {
    flex-direction: column;
  }

  .fleet-image-placeholder {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

.fleet-card-body h3 {
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.fleet-card-body p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.fleet-card-body a {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.fleet-card-body a:hover {
  text-decoration: underline;
}

/* ─── Timeline ─────────────────────────────────────────────── */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background-color: var(--primary-blue);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 56px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  border: 3px solid white;
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.timeline-item p {
  color: #555;
  line-height: 1.6;
}

/* ─── Routes list (About page) ─────────────────────────────────────────────── */

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.route-pill {
  background-color: var(--primary-blue);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: white;
  font-weight: 600;
}

/* ─── Generic placeholder page ─────────────────────────────────────────────── */

.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.placeholder-page .container {
  max-width: 600px;
}

.placeholder-page h1 {
  color: var(--primary-blue);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 16px;
}

.placeholder-page p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* ─── Careers page ─────────────────────────────────────────────── */

.careers-page h1 {
  color: var(--primary-blue);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
}

.careers-page h2 {
  color: var(--primary-blue);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 24px;
}

.careers-page p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.careers-page ul {
  list-style: none;
  padding: 0;
}

.careers-page li {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ─── 404 page ─────────────────────────────────────────────── */

.notfound-hero {
  min-height: 70vh !important;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notfound-hero .hero-fold {
  position: static;
  height: auto;
}

.no-bg-image {
  background-color: var(--primary-blue);
}

.no-bg-image .tint {
  opacity: 1;
}

.no-bg-image::after {
  display: none;
}

/* ─── Footer ────────────────────────────────────────────── */

.site-footer {
  background-color: #f4f4f4;
  color: #282527;
  padding: 28px 24px;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: #282527;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
