:root {
  --navy: #08163b;
  --navy-deep: #050f2d;
  --blue: #0647a8;
  --blue-dark: #043887;
  --green: #18a96b;
  --green-dark: #0f8a55;
  --gold: #d8a645;
  --white: #ffffff;
  --text: #111827;
  --muted: #667085;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: #fff;
  color: var(--text);
}

/* ================= HERO ================= */

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Background slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition:
    opacity 1.3s ease-in-out,
    transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.08);
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(2, 10, 32, 0.28),
      rgba(2, 10, 32, 0.28)
    ),
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.02),
      rgba(2, 10, 32, 0.35)
    );
  z-index: 1;
}

/* Bottom fade */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(to top, rgba(2, 10, 32, 0.55), transparent);
  z-index: 1;
}

/* ================= HEADER ================= */

.site-header {
  position: relative;
  z-index: 10;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(8, 22, 59, 0.08);
  border-bottom: 3px solid var(--green);
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: #ffffff;
  padding: 9px 0;
}

.top-bar-container {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.top-bar p i {
  color: var(--green);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s ease;
}

.top-bar-links a i {
  color: var(--green);
}

.top-bar-links a:hover {
  color: var(--green);
}

/* Main header */
.main-header {
  background: #ffffff;
  padding: 14px 0;
}

.header-container {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 28px;
}

/* Logo */
.logo {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 100px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

/* Navigation */
.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-menu a {
  position: relative;
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  transition: 0.25s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
  transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-row {
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-chevron {
  font-size: 9px;
  transition: transform 0.25s ease;
}

.nav-dropdown-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  z-index: 1100;
  width: 290px;
  padding: 9px;
  border: 1px solid rgba(7, 24, 63, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(7, 24, 63, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.nav-dropdown-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 23px;
  content: "";
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a.active {
  background: rgba(24, 169, 107, 0.1);
  color: var(--green);
}

.nav-dropdown-menu .nav-dropdown-all {
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 24, 63, 0.1);
  border-radius: 0 0 10px 10px;
  color: var(--blue);
}

.nav-dropdown-all i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-dropdown-all:hover i {
  transform: translateX(4px);
}

/* Header right side */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Contact button */
.header-cta {
  height: 46px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(6, 71, 168, 0.24);
  transition: 0.25s ease;
}

.header-cta:hover {
  background: var(--green);
  box-shadow: 0 12px 26px rgba(24, 169, 107, 0.26);
  transform: translateY(-2px);
}

/* Social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid rgba(8, 22, 59, 0.14);
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(8, 22, 59, 0.12);
  box-shadow: 0 10px 24px rgba(8, 22, 59, 0.15);
  transition: 0.25s ease;
}

.social-links a:hover {
  background: var(--green);
  transform: translateY(-3px);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 22, 59, 0.18);
}

/* ================= HERO CONTENT ================= */

.hero-content {
  position: relative;
  z-index: 4;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 195px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -1.4px;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
}

/* ================= SEARCH ================= */

.search-wrapper {
  max-width: 900px;
  margin: 44px auto 0;
}

.search-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-left: 10px;
}

.tab-btn {
  min-width: 112px;
  height: 68px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #101828;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.search-box {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 0.9fr 0.7fr;
  gap: 14px;
  padding: 14px;
  border-radius: 4px;
  background: rgba(8, 22, 59, 0.96);
  box-shadow: var(--shadow);
}

.search-field {
  text-align: left;
}

.input-box {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 4px;
  padding: 0 20px;
}

.input-box i {
  color: var(--green);
  font-size: 16px;
}

.input-box input,
.input-box select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}

.input-box input::placeholder {
  color: #111827;
  opacity: 0.9;
}

.search-btn {
  height: 62px;
  border: none;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.search-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .top-bar-container,
  .header-container {
    width: min(100% - 40px, 1120px);
  }

  .header-container {
    grid-template-columns: 145px 1fr auto;
    gap: 20px;
  }

  .logo img {
    width: 95px;
  }

  .nav-menu {
    gap: 24px;
  }

  .nav-menu a {
    font-size: 15px;
  }

  .social-links {
    gap: 8px;
    padding-left: 14px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding-top: 150px;
  }

  .search-box {
    grid-template-columns: 1fr 1fr;
  }

  .search-large {
    grid-column: span 2;
  }

  .search-btn {
    grid-column: span 2;
  }
}

@media (max-width: 850px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .top-bar {
    display: none;
  }

  .main-header {
    padding: 12px 0;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    width: min(100% - 32px, 720px);
  }

  .logo img {
    width: 95px;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .social-links,
  .header-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 50%;
    right: auto;
    width: calc(100% - 24px);
    max-width: 560px;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(8, 22, 59, 0.1);
    box-shadow: 0 20px 50px rgba(8, 22, 59, 0.16);
    transform: translateX(-50%);
    z-index: 1000;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 14px;
    border-radius: 10px;
    color: var(--navy);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(24, 169, 107, 0.09);
    color: var(--green-dark);
  }

  .nav-dropdown,
  .nav-dropdown-row {
    width: 100%;
  }

  .nav-dropdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px;
    align-items: center;
  }

  .nav-dropdown-trigger {
    width: 100%;
  }

  .nav-dropdown-chevron {
    display: none;
  }

  .nav-dropdown-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f8;
    font-size: 12px;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible {
    background: rgba(24, 169, 107, 0.12);
    color: var(--green);
  }

  .nav-dropdown-toggle i {
    transition: transform 0.25s ease;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 4px 0 8px;
    padding: 6px;
    border-radius: 12px;
    background: #f5f8fb;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    transform: none;
  }

  .nav-dropdown-menu a {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-dropdown-menu .nav-dropdown-all {
    margin-top: 4px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-content h1 {
    font-size: clamp(30px, 7vw, 38px);
  }

  .hero-content p {
    font-size: 15px;
  }

  .search-tabs {
    overflow-x: auto;
    padding-left: 0;
  }

  .tab-btn {
    min-width: 105px;
    height: 60px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-large,
  .search-btn {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: min(100% - 28px, 480px);
    padding-top: 100px;
    text-align: left;
  }

  .hero-content h1 {
    margin-left: 0;
    margin-right: 0;
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }

  .search-wrapper {
    margin-top: 34px;
  }

  .search-tabs {
    gap: 10px;
  }

  .tab-btn {
    min-width: 95px;
    height: 56px;
    font-size: 14px;
  }

  .search-box {
    padding: 12px;
  }

  .input-box,
  .search-btn {
    height: 56px;
  }

  .input-box input,
  .input-box select {
    font-size: 14px;
  }
}


/* ================= STICKY HEADER ON SCROLL ================= */

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  animation: stickySlideDown 0.35s ease forwards;
  box-shadow: 0 14px 38px rgba(8, 22, 59, 0.12);
}

/* Hide top bar when sticky */
.site-header.is-sticky .top-bar {
  display: none;
}

/* Keep only the white main header */
.site-header.is-sticky .main-header {
  padding: 10px 0;
  background: #ffffff;
}

/* Slightly reduce logo when sticky */
.site-header.is-sticky .logo img {
  width: 88px;
}

/* Smooth entrance */
@keyframes stickySlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}
