: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%;
}

/* 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: 150px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(34px, 3.4vw, 52px);
  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: 120px;
  }

  .search-box {
    grid-template-columns: 1fr 1fr;
  }

  .search-large {
    grid-column: span 2;
  }

  .search-btn {
    grid-column: span 2;
  }
}

@media (max-width: 850px) {
  .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: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    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);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 12px;
    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);
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .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: 85px;
    text-align: left;
  }

  .hero-content h1 {
    margin-left: 0;
    margin-right: 0;
    font-size: 39px;
    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;
  }
}