* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html,
body {
  -webkit-font-smoothing: antialiased;
  -webkit-transform: translateZ(0); /* triggers GPU compositing */
  backface-visibility: hidden;
}
/* Hero */

.navbar {
  display: flex;
  justify-content: space-between;

  align-items: center;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2vw;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.5rem 0;
}

/* .nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f16529;
  transition: width 0.3s ease;
  transform-origin: left;
} */

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

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */

a {
  text-decoration: none;
}

@font-face {
  font-family: "Open Sans";
  src: url("open-sans-v43-latin-regular.woff2");
}

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

.hero {
  background: url("abouthero.png") center center / cover no-repeat;
  position: relative;
  height: 610px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* 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-text {
  position: relative;
  z-index: 2;
  max-width: 50%;
  margin: 0 auto;
  text-align: center;
  padding-top: 15vh;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Intro */
.intro-section {
  width: auto !important;
  margin: 0 auto !important;
  padding: 4vw 15vw;
  text-align: center;
}

.intro-section h2 {
  width: auto;
  margin-bottom: 1.5vw;
  color: #121212;
  text-align: center;
  font-family: "cardo";
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  font-style: normal;
  font-weight: 400;
}

.intro-paragraph {
  width: 100%;
  padding: 0 5vw;
  color: #000;
  text-align: center;
  font-family: "Open Sans";
  font-size: 1vw !important;
  line-height: 1.6vw !important;
  font-style: normal;
  font-weight: 300;
}

/* Values */
.values-section {
  width: auto;
  margin: 0 auto !important;
  text-align: center;
  padding: 0vw 15vw;
  padding-bottom: 5vw;
}

.values-section h2 {
  color: #000;
  text-align: center;
  font-family: Cardo;
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  font-style: normal;
  font-weight: 400;
}

.values-section p {
  margin-bottom: 2vw;
  font-size: 1vw !important;
  line-height: 1.5vw !important;
  font-family: Open Sans;
  font-weight: 300;
  font-style: normal;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2vw;
}

.value-box {
  background-color: #000c3f;
  color: #fff;
  padding: 2vw;
  border-radius: 0px !important;
  text-align: center;
  transition: transform 0.3s ease, height 0.3s ease;
  overflow: hidden;
  position: relative;
  height: auto;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
  overflow-x: hidden;
}

.value-box:hover {
  height: auto;
  transform: scale(1.02);
  background-color: #00083e;
}
.value-box h4 {
  margin-bottom: 1vw;
  color: black;
  text-align: center;
  font-family: "Open Sans";
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
}

.value-box:hover .icon-orange {
  fill: none;
  stroke: #ffffff;
  transition: fill 0.3s ease;
}

.value-box:hover .icon-orange2 {
  fill: white;
  stroke: #ffffff;
  transition: fill 0.3s ease;
}

.value-box:hover h4 {
  color: #fff;
}
.value-box:hover p {
  color: #fff;

  max-height: 1000px; /* Allow full paragraph */
  white-space: normal;
}

.value-box p {
  color: #000;
  width: 400px;
  text-align: center;
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  height: auto; /* Roughly 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: max-height 0.6s ease, color 0.3s ease;
}

/* Vision Section */
.vision-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/About Us - Photo 2.jpg") top center / cover;
  color: #fff;
  padding: 4vw 5vw;
  height: 70vh !important;
  position: relative;
  overflow: hidden;
  display: flex;
}

.vision-content {
  max-width: 1600px;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-start;
  height: 100%;
}

.vision-content {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: left; /* Ensures heading text aligns left */
  align-items: flex-start; /* Ensures all children align left */
}

.vision-content h2 {
  margin-bottom: 1vw;
  color: #fff;
  font-family: "cardo";
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  font-style: normal;
  font-weight: 400;
}

/* .vision-content p {
  max-width: 600px;
  font-size: 0.95rem;
  margin-bottom: 2vw;
  color: #fff;
  line-height: 1.5;
} */

.btn-meet {
  font-family: "Open Sans";
  background: #000c3f;
  color: #fff;
  padding: 0.6vw 1.4vw;
  text-decoration: none;
  font-size: 0.95rem;
  margin: 1vw 0;
  align-self: flex-start;
}

.btn-meet:hover {
  color: #f16529;
  transition: color 0.3s ease, background 0.3s ease;
}

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

/* 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;
  display: inline-block;
  padding: 0.5vw 0;
  transition: color 0.3s ease;
}

.value-box {
  background-color: white;
  padding: 2vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 10px;
  min-height: 100%; /* Ensure equal height */
}

.value-icon {
  width: 50px;
  height: auto;
  margin-bottom: 1vw;
  display: block;
}

.philosophy {
  width: auto;
  padding: 4vw 5vw !important;
}

.philosophy h2 {
  font-family: "cardo";
  padding-top: 0px !important;
  margin-top: 0px !important;
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  margin-bottom: 4vw;
  font-weight: 500;
}
.philosophy-grid {
  display: flex;
  gap: 3vw;
  align-items: flex-start;
  justify-content: flex-start;
}

.philosophy-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 25vw;
}
.philosophy-tabs li {
  font-family: "cardo";
  font-size: 2.5vw !important;
  line-height: 3.2vw !important;
  margin-bottom: 1.4vw;
  color: #aaa;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
}
.philosophy-tabs li.active {
  color: #222;
  font-weight: 500;
}

.philosophy-tabs :hover {
  color: #f16529;
}

.philosophy-text {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  min-width: 28vw;
  font-size: 1vw;
  line-height: 1.5vw;
  color: #222;
}

.philosophy-grid {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
  position: relative;
}

.philosophy-text {
  width: 60%;
  position: relative;
  transition: transform 0.7s ease;
}

.pre-footer-video {
  width: 100vw;
  height: 80vh !important;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.background-video {
  width: 100vw;
  height: 80vh !important;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* 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 (min-width: 768px) and (max-width: 1366px) {
  /* Navbar & Logo */
  .logo {
    margin-right: 0;
    padding-top: 2vw;
  }

  .logo img {
    width: 25vw;
  }

  .nav-links a,
  .dropdown-toggle {
    font-size: 1.8vw !important;
  }

  /* Hero Text */
  .hero-text {
    font-size: 2.8vw;
    padding-top: 12vh;
    max-width: 90%;
  }

  /* Intro & Values */
  .intro-section h2,
  .values-section h2 {
    font-size: 3.8vw !important;
    line-height: 4.8vw !important;
  }

  .intro-paragraph,
  .values-section p {
    font-size: 1.8vw !important;
    line-height: 2.6vw !important;
  }

  /* Value Boxes */
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-box p {
    width: auto;
    white-space: normal;
    font-size: 1.6vw;
  }

  /* Vision Section */
  .vision-content h2 {
    font-size: 3.5vw !important;
    line-height: 5vw !important;
  }

  .philosophy-grid {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: flex-start;
    gap: 2vw;
  }

  .philosophy-tabs {
    display: block;
    text-align: left;
    /* padding-left: 4vw; */
  }

  .philosophy-tabs li {
    font-size: 2.5vw !important;
    line-height: 3.2vw !important;
    margin-bottom: 1.5vw;
    color: #aaa;
    cursor: pointer;
  }

  .philosophy-tabs li.active {
    color: #000;
    font-weight: 500;
  }

  .philosophy-text {
    width: 90%;
    /* padding: 0 4vw; */
    font-size: 1.6vw;
    line-height: 2.4vw;
    margin-top: 1vw;
  }

  .philosophy p {
    margin-bottom: 1.5vw;
  }

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