/* Shared navbar used across all pages */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main:empty {
  min-height: calc(100vh - 245px);
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #000;
  box-shadow: none;
}

.topbar {
  width: 100%;
  min-height: 52px;
  padding: 0 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: #2f2b7f;
  color: #fff;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.topbar > a:first-child {
  justify-self: start;
}

.topbar > a:nth-child(2) {
  justify-self: center;
}

.social-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links a {
  font-size: 20px;
  line-height: 1;
}

.topbar a:hover,
.nav-links a:hover,
.service-btn:hover {
  color: #ffc94d;
}

.navbar {
  width: 100% !important;
  min-height: 128px !important;
  padding: 16px clamp(32px, 8vw, 150px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;
  background: #fff !important;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto !important;
  height: clamp(72px, 7vw, 92px) !important;
  max-width: 180px !important;
  display: block !important;
  object-fit: contain !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(22px, 2.1vw, 38px) !important;
  margin-left: auto !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: clamp(18px, 1.35vw, 24px) !important;
  font-weight: 800 !important;
  position: static !important;
  z-index: 2;
}

.nav-links a {
  color: #061017;
  text-decoration: none;
  white-space: nowrap;
}

.service-dropdown {
  position: relative;
}

.service-dropdown::after {
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 20px;
  content: "";
}

.service-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #061017 !important;
  font: inherit !important;
  cursor: pointer !important;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -22px;
  display: block;
  z-index: 9999;
  filter: drop-shadow(0 20px 30px rgba(6, 16, 23, 0.2));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-dropdown:hover .mega-menu,
.service-dropdown.is-open .mega-menu,
.mega-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.left-menu {
  width: 290px;
  background: #0d5f91;
}

.menu-item {
  position: relative;
  display: block;
  padding: 18px 28px;
  color: #fff !important;
  background: #0d5f91;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.menu-item:hover {
  background: #061017;
  color: #fff !important;
}

.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 500px;
  display: none;
  background: #0d5f91;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 18px 28px;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.submenu a:hover {
  background: #084b73;
  color: #fff !important;
}

.quote-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 76px !important;
  padding: 0 38px !important;
  border-radius: 8px !important;
  background: #147cc2 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.quote-link:hover {
  background: #0d8d87;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d9e3e2;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #061017;
}

@media (max-width: 1100px) {
  .navbar {
    padding: 22px 32px !important;
    gap: 24px !important;
  }

  .brand img {
    height: 76px !important;
    max-width: 150px !important;
  }

  .nav-links {
    gap: 16px !important;
    font-size: 17px !important;
  }

  .quote-link {
    padding: 0 22px !important;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
    padding: 12px 18px;
    gap: 8px;
  }

  .topbar > a:first-child,
  .topbar > a:nth-child(2),
  .social-links {
    justify-self: center;
  }

  .topbar a {
    font-size: 15px;
  }

  .navbar {
    min-height: auto !important;
    padding: 16px !important;
  }

  .brand img {
    height: 64px !important;
    max-width: 126px !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute !important;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 14px;
    background: #fff;
    border: 1px solid #d9e3e2;
    box-shadow: 0 18px 45px rgba(16, 35, 42, 0.14);
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-links a,
  .service-btn {
    padding: 12px;
    font-size: 16px;
  }

  .quote-link {
    min-height: 48px !important;
    text-align: center;
  }

  .mega-menu,
  .submenu {
    position: static;
    width: 100%;
    filter: none;
  }

  .service-dropdown::after {
    display: none;
  }

  .service-dropdown:hover .mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .service-dropdown.is-open .mega-menu,
  .mega-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.footer-bottom {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.copyright {
  white-space: nowrap;
  margin: 0;
}

.site-footer {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 30px !important;
  padding: 64px max(16px, calc((100vw - 1180px) / 2)) 26px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: #07171c !important;
}

.site-footer h2 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
}

.site-footer p {
  margin: 0 0 8px !important;
  line-height: 1.7 !important;
}

.site-footer a {
  display: block !important;
  margin-bottom: 8px !important;
  color: inherit !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #78c9c5 !important;
}

.site-footer .footer-bottom p {
  margin: 0 !important;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr !important;
  }

  .site-footer .footer-bottom p {
    font-size: 0.85rem !important;
    white-space: normal;
  }
}
