/* Reset & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

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

@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");
}

body {
  color: #000;
  background: #fff;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

a {
  text-decoration: none;
  color: inherit;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 610px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #f00; /* Temporary background to see if container is visible */
}

.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  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;
}

/* Contact Section */
.contact-section {
  padding: 5vw;
  background: #fff;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  will-change: transform, opacity;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-section h1 {
  font-family: cardo;
  font-size: 2.8rem;
  margin-bottom: 1vw;
  color: #000;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 65px */
  font-size: 3.2vw !important;
  line-height: 4.3vw !important;
  font-style: normal;
}

.contact-section .description {
  max-width: 48vw;
  margin-bottom: 4vw;
  color: #000;
  font-family: "Open Sans";
  font-size: 1vw !important;
  line-height: 1.4vw !important;
  font-style: normal;
  font-weight: 400;
}

.contact-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
}

.contact-details {
  flex: 1;
  background: #0a1a3f;
  color: #fff;
  padding: 2.5vw;
  max-width: 23vw;
  height: auto;
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.contact-details.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-details a {
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #f16529;
}

.contact-details h3,
.contact-details h4 {
  margin-bottom: 0.5vw;
  color: #fff;
  font-family: "Open Sans";
  font-size: 1vw !important;
  line-height: 1.3vw !important;
  font-style: normal;
  font-weight: 600;
}

.contact-details p,
.contact-details a {
  margin-bottom: 3vw;
  font-size: 0.9vw !important;
  line-height: 1.5vw !important;
  color: #fff;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 20px */
}

.map {
  flex: 2;
  height: auto;
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.map.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 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;
}

/* 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) {
  /* Navbar */
  .nav-links a,
  .dropdown-toggle {
    font-size: 1.8vw !important;
  }

  .logo {
    margin-right: 0;
    padding-top: 2vw;
  }

  .logo img {
    width: 25vw;
    height: auto;
  }

  /* Hero */
  .hero-text {
    max-width: 90%;
    padding-top: 20vh;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 4vw;
    line-height: 5vw;
  }

  /* Contact Section */
  .contact-section h1 {
    font-size: 4.2vw !important;
    line-height: 5.4vw !important;
  }

  .contact-section .description {
    max-width: 90%;
    font-size: 2.1vw !important;
    line-height: 3.2vw !important;
  }

  .contact-grid {
    flex-direction: column;
    gap: 4vw;
  }

  .contact-details {
    max-width: 100%;
    width: 100%;
    padding: 5vw;
  }

  .contact-details h3,
  .contact-details h4 {
    font-size: 2.4vw !important;
    line-height: 3vw !important;
  }

  .contact-details p,
  .contact-details a {
    font-size: 2vw !important;
    line-height: 2.7vw !important;
  }

  .map {
    width: 100%;
    height: 400px;
  }

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

  .footer-copy {
    font-size: 1.4vw;
  }
}
