/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

html,
body {
  scroll-behavior: auto;
}

.disable-scroll {
  overflow: hidden;
  height: 100%;
}
@font-face {
  font-family: "Open Sans";
  src: url("open-sans-v43-latin-regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("open-sans-v43-latin-regular.woff2");
  font-display: swap;
}

@font-face {
  font-family: "cardo";
  src: url("fonts/Cardo-Regular.woff2");
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Navbar */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7.5vh; /* Matches header height from index.html */
  padding: 2vw 1.5vw;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Nav links left, logo right */
  align-items: center;
  gap: 0vw;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2vw;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-size: 1.3vw !important;
  font-family: "Open Sans";
  font-weight: 300 !important;
  line-height: normal;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: #f16529;
}

.nav-links a:hover::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  padding-right: 0; /* Reset if any */
  margin-right: -5.3vw; /* or -10px, test what fits visually */
  padding-top: 2.5vw;
}

.logo img {
  width: 25.5vw;
  height: 7.5vh;
  object-fit: contain;
  display: block;
}

/* Hero Video */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #0a1a3f; /* Fallback background */
  transform: scale(1);
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Slight zoom */
  height: 100%;
  object-fit: cover;
  object-position: top; /* Shifts video upward */
  transform: scale(1); /* Extra smooth zoom */
}

/* Mission Section */
.mission {
  height: 100vh;
  background: #0a1a3f;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 5vw;
}

.mission p {
  width: 46.875vw;
  font-family: cardo;
  font-size: 2.6vw;
  font-weight: 400;
  line-height: 4.6875vw;
  color: #fff;
  margin: 0;
}

/* Panels */

/* Overlay */
.overlay {
  position: absolute;
  top: 15.9375vw; /* 306px / 1920 */
  /* max-width: 38.177vw; 733px / 1920 */
  color: #fff;
}

.overlay.right {
  right: 7.3958vw; /* 142px / 1920 */
  text-align: right;
}

.overlay.left {
  left: 7.3958vw; /* 142px / 1920 */
  text-align: left;
}

.panel {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: 40% center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
}

.overlay.center {
  position: relative;
  text-align: center;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  max-width: 38.177vw;
}

.overlay h2 {
  font-family: cardo;
  font-weight: 400;
  margin-bottom: 1.5625vw; /* 30px / 1920 */
  line-height: 1;
}

.overlay p {
  width: auto;
  font-family: "Open Sans";
  font-size: 1vw; /* 16px / 1920 */
  /* 26px / 1920 */
  margin-bottom: 1.5625vw; /* 30px / 1920 */
  color: #fff;
}

.overlay .btn {
  font-family: "Open Sans";
  padding: 0.625vw 1.25vw; /* 12px 24px */
  border: 0.1vw solid #fff;
  background: transparent;
  color: #fff;
  font-size: 0.729vw; /* 14px / 1920 */
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 400 !important;
}

.overlay .btn:hover {
  background: #fff;
  color: #000;
}

/* Footer */

/* Dropdown container */
.dropdown {
  position: relative;
}

/* SVG arrow spacing */
.arrow-icon {
  display: inline-block;
  margin-left: 0.1vw;
  vertical-align: middle;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0a1a3f;
  padding: 0.5vw 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 9vw;
  z-index: 10;
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 0.6vw 1vw;
  color: #fff;
  font-size: 1vw;
  font-family: "Open Sans";
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-toggle {
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  font-size: 1.3vw !important;
  font-family: "Open Sans";
  font-weight: 400;
  position: relative;
  padding: 0.5vw 0;
  transition: color 0.3s ease;
}

.mission-text {
  position: absolute;
  bottom: 15vh;
  left: 5vw;
  z-index: 2;
  color: #fff;
  transform: translateY(-20%);
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  opacity: 0; /* hidden by default */
}

.hero-video .mission-text p {
  opacity: 0; /* animate each line separately */
  transform: translateY(20px);
  color: #fff;
  font-family: "cardo" !important;
  font-weight: 400;
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  font-style: normal !important;
}

.hero-video .mission-text p:last-child {
  color: #f16529; /* Same as navbar hover color */
}

.panel.video-panel {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background video styling */
.panel.video-panel.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Gradient overlay (matches your inline style) */
.panel.video-panel .overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 82.73%
  );
}

/* Content box styling */
.overlay.right {
  position: absolute;
  top: 50%;
  right: 6vw;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  text-align: right;
  max-width: 45vw;
  /* Adjust padding if needed */
  position: absolute;
  bottom: 6vw;
  right: 6vw;
  top: auto; /* override any top */
  transform: none; /* remove vertical centering */
  text-align: right;
  max-width: 45vw;
  z-index: 2;
  color: #fff;
}

.overlay.right h2 {
  font-size: 3vw !important;
  line-height: 4.3vw !important;
  font-family: "cardo" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.overlay.left h2 {
  width: 45vw !important;
  font-size: 2.8vw !important;
  line-height: 4.1vw !important;
  font-family: "cardo" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.overlay.center h2 {
  font-size: 3vw !important;
  line-height: 4.3vw !important;
  font-family: "cardo" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.overlay.left {
  position: absolute;
  top: 50%;
  left: 6vw;
  z-index: 2;
  color: #fff;
  text-align: left;
  max-width: 45vw;
  position: absolute;
  bottom: 6vw;
  left: 6vw;
  top: auto; /* override any top */
  transform: none; /* remove vertical centering */
  text-align: left;
  max-width: 45vw;
  z-index: 2;
  color: #fff;

  /* Adjust padding if needed */
}

.btn {
  padding: 0.7vw 2vw;
  background: #fff;
  color: #000c3f;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1vw;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: #000c3f;
  color: #fff;
}

/* final footer */

.site-footer {
  display: flex;
  height: 30vh;
  background-color: #00083e;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  width: 100%;
  align-items: stretch; /* stretch footer-inner to full height */
  padding: 0; /* remove extra vertical padding */
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* push nav to center and copy to bottom */
  padding: 0 4vw;
  width: 100%;
  height: 100%; /* this is critical */
  box-sizing: border-box;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1vw;
  flex-wrap: nowrap;
  height: 100%;
}

.footer-flex a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1vw;
  white-space: nowrap;
}

.footer-flex a:hover {
  text-decoration: none;
  color: #f16529;
}

.footer-copy {
  padding-bottom: 2vw;
  text-align: right;
  font-size: 0.85rem;
  color: #ccc;
  margin: 0;
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  .nav-links a,
  .dropdown-toggle {
    font-size: 1.8vw !important;
  }

  .mission p {
    font-size: 3.5vw;
    line-height: 5.5vw;
    width: 80vw;
  }

  .mission-text {
    font-size: 3.8vw !important;
    line-height: 5vw !important;
  }

  .overlay h2 {
    font-size: 3.5vw !important;
    line-height: 5vw !important;
  }

  .overlay p {
    font-size: 2vw;
  }

  .btn {
    font-size: 1.8vw;
    padding: 1vw 2vw;
  }

  .footer-flex a {
    font-size: 1.8vw;
  }
}

@media screen and (max-width: 1366px) {
  .logo {
    margin-right: 0;
    padding-top: 2vw;
  }

  .logo img {
    width: 25vw;
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  html:not(.disable-scroll),
  body:not(.disable-scroll) {
    overflow: auto !important;
    height: auto !important;
  }
}
