/*
 * Services dropdown, service pages and the Contact us form.
 * Plain CSS (not part of the SCSS build) so it can also be loaded
 * by the job board template (career/templates/blue/inner.tpl).
 */

html {
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the fixed navbar */
#contact-us,
.service-page section[id] {
  scroll-margin-top: 110px;
}

/* ---------- Services dropdown ---------- */
.my-nav .nav-services {
  position: relative;
}
.nav-services-head {
  display: flex;
  align-items: center;
}
.nav-sub-toggle {
  background: none;
  border: 0;
  padding: 0.5rem 0.35rem;
  margin-left: -0.35rem;
  color: #424754;
  line-height: 1;
  cursor: pointer;
}
.nav-sub-toggle:focus {
  outline: 2px solid #2553D1;
  outline-offset: 1px;
}
.nav-sub-toggle .fa {
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.nav-services.open .nav-sub-toggle .fa {
  transform: rotate(180deg);
}
.nav-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem 0.75rem;
}
.nav-services.open > .nav-submenu {
  display: block;
}
.my-nav .nav-item .nav-submenu a,
.my-nav .nav-item.active .nav-submenu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #424754;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;
}
.my-nav .nav-item .nav-submenu a:hover,
.my-nav .nav-item .nav-submenu a:focus {
  background: #eef2fc;
  color: #2553D1;
  text-decoration: none;
}
.my-nav .nav-item .nav-submenu a.current {
  color: #2553D1;
}

@media (min-width: 992px) {
  .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 310px;
    padding: 0.5rem 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  }
}
@media (min-width: 992px) and (hover: hover) {
  .nav-services:hover > .nav-submenu {
    display: block;
  }
  .nav-services:hover .nav-sub-toggle .fa {
    transform: rotate(180deg);
  }
}

/* ---------- /services overview ---------- */
.service-overview-title,
.contact-heading {
  font-size: 1.2rem;
}
.service-learn-more {
  display: inline-block;
  margin-top: 0.25rem;
  color: #2553D1;
  font-family: 'PoppinsSemiBold', sans-serif;
}
.service-learn-more:hover {
  color: #1c42a8;
}
.service-learn-more .fas {
  font-size: 0.8em;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}
.service-learn-more:hover .fas {
  transform: translateX(3px);
}

/* ---------- Service pages ---------- */

/* Hero banner: photo on the right, deep-blue fade on the left, left-aligned text */
.service-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  background: #0a1846;
  color: #fff;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 58, 0.97) 0%, rgba(9, 26, 82, 0.9) 32%, rgba(10, 30, 92, 0.55) 55%, rgba(10, 30, 92, 0) 78%),
    linear-gradient(0deg, rgba(7, 18, 58, 0.65) 0%, rgba(7, 18, 58, 0) 35%);
}
.service-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.service-hero-inner > * {
  max-width: 640px;
}

/* breadcrumb as a glass pill */
.service-hero-crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1.2rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: 'PoppinsSemiBold', sans-serif;
  font-size: 0.85rem;
}
.service-hero-crumbs li {
  color: #9db8ff;
}
.service-hero-crumbs li + li::before {
  content: '/';
  padding: 0 0.55rem;
  color: rgba(255, 255, 255, 0.35);
}
.service-hero-crumbs a {
  color: #fff;
}
.service-hero-crumbs a:hover {
  color: #FADD00;
  text-decoration: none;
}

.service-hero h1 {
  margin: 1.4rem 0 1.1rem;
  color: #fff;
  font-size: 3.6rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.service-hero-accent {
  color: #5b8cff;
  background: linear-gradient(90deg, #7aa2ff 0%, #3f6fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-hero-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.6;
}
.service-hero-divider {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

/* Contact us button with glow */
.service-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.9rem;
  background: #2f62f0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(47, 98, 240, 0.55);
  color: #fff;
  font-family: 'PoppinsSemiBold', sans-serif;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.service-hero-cta:hover,
.service-hero-cta:focus {
  background: #3a6dff;
  box-shadow: 0 14px 38px rgba(47, 98, 240, 0.7);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.service-hero-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.service-hero-cta:active {
  transform: translateY(0);
}
.service-hero-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.service-hero-cta:hover .service-hero-cta-icon {
  transform: translateX(3px);
}

@media (max-width: 991.98px) {
  .service-hero {
    min-height: 440px;
  }
  .service-hero h1 {
    font-size: 2.8rem;
  }
  .service-hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 18, 58, 0.95) 0%, rgba(9, 26, 82, 0.85) 50%, rgba(10, 30, 92, 0.45) 100%),
      linear-gradient(0deg, rgba(7, 18, 58, 0.7) 0%, rgba(7, 18, 58, 0) 40%);
  }
}
@media (max-width: 575.98px) {
  .service-hero {
    min-height: 0;
  }
  .service-hero-overlay {
    background: linear-gradient(180deg, rgba(7, 18, 58, 0.88) 0%, rgba(9, 26, 82, 0.82) 100%);
  }
  .service-hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }
  .service-hero h1 {
    font-size: 2.25rem;
  }
  .service-hero-tagline {
    font-size: 1.05rem;
  }
  .service-hero-divider {
    margin: 1.5rem 0;
  }
}

.service-page h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #424754;
}
.service-page h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #424754;
}

.service-hiring {
  padding: 1.5rem;
  background: #f5f7fd;
  border-left: 4px solid #2553D1;
  border-radius: 6px;
}
.service-hiring-facts li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.service-hiring-facts .fas,
.service-hiring-facts .far {
  width: 1.2rem;
  color: #2553D1;
}
.service-duties {
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}
.service-duties li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  font-size: 0.95rem;
}
.service-list .fas {
  margin-right: 0.4rem;
  color: #2553D1;
  font-size: 0.8rem;
}

/* FAQ accordion (native <details>, answers stay in the HTML for search engines) */
.service-faq-item {
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #e2e6ef;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-faq-item[open] {
  border-color: #2553D1;
  box-shadow: 0 4px 14px rgba(37, 83, 209, 0.08);
}
.service-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.service-faq-item summary::-webkit-details-marker {
  display: none;
}
.service-faq-item summary:focus {
  outline: none;
}
.service-faq-item summary:focus-visible {
  outline: 2px solid #2553D1;
  outline-offset: 2px;
  border-radius: 6px;
}
.service-page .service-faq-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.service-faq-item[open] h3,
.service-faq-item summary:hover h3 {
  color: #2553D1;
}
/* plus that turns into a minus when open */
.service-faq-icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2fc;
  transition: background 0.2s;
}
.service-faq-icon::before,
.service-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #2553D1;
  border-radius: 1px;
  transition: transform 0.25s;
}
.service-faq-icon::after {
  transform: rotate(90deg);
}
.service-faq-item[open] .service-faq-icon {
  background: #2553D1;
}
.service-faq-item[open] .service-faq-icon::before,
.service-faq-item[open] .service-faq-icon::after {
  background: #fff;
  transform: rotate(180deg);
}
.service-faq-answer {
  padding: 0 1.25rem 1.1rem;
}
.service-faq-item[open] .service-faq-answer {
  animation: faq-open 0.25s ease-out;
}
.service-faq-answer p {
  margin: 0;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Contact us: blue info panel + white form panel in one card */
.service-contact {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(37, 83, 209, 0.1);
}
@media (min-width: 992px) {
  .service-contact {
    grid-template-columns: 5fr 7fr;
  }
}
.service-contact-info {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, #2553D1 0%, #1b3fa6 100%);
  color: #fff;
}
/* soft decorative circles */
.service-contact-info::before,
.service-contact-info::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.service-contact-info::before {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -90px;
}
.service-contact-info::after {
  width: 140px;
  height: 140px;
  right: 60px;
  bottom: 90px;
  background: rgba(250, 221, 0, 0.12);
}
.service-page .service-contact-info h2 {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 1rem;
  color: #fff;
  font-size: 1.75rem;
}
.service-page .service-contact-info h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.75rem;
  background: #FADD00;
  border-radius: 2px;
}
.service-connect {
  position: relative;
  margin-top: 1.5rem;
}
.service-page .service-connect h3 {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 1.15rem;
}
.service-connect p {
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}
.service-connect-email {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.service-connect-email:hover,
.service-connect-email:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.service-connect-icon {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #FADD00;
  border-radius: 50%;
  color: #1f2330;
}
.service-connect-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}
.service-connect-address {
  display: block;
  font-family: 'PoppinsSemiBold', sans-serif;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.service-contact-form {
  padding: 2rem 1.5rem;
}
@media (min-width: 576px) {
  .service-contact-info,
  .service-contact-form {
    padding: 2.5rem;
  }
}

/* ---------- Contact us form ---------- */
.lead-form .form-control {
  background-color: #fff;
  border: 1px solid #cfd4de;
}
.lead-form .form-control:focus {
  border-color: #2553D1;
  box-shadow: 0 0 0 0.15rem rgba(37, 83, 209, 0.2);
}
.lead-form .form-control.is-invalid {
  border-color: #dc3545;
}
.lead-form label {
  margin-bottom: 0.25rem;
}
.lead-form .form-group {
  margin-bottom: 1rem !important;
}
.lead-form-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form-submit {
  min-width: 140px;
}
.lead-form-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.lead-form-hint {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #5b6070;
}
.lead-form-consent {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: #5b6070;
}
.lead-form-consent a {
  color: #2553D1;
  text-decoration: underline;
}
.lead-form-alert {
  font-size: 0.9rem;
}
.lead-form-success {
  padding: 2rem 1rem;
  text-align: center;
  background: #fff;
  border-radius: 6px;
}
.lead-form-success:focus {
  outline: none;
}
.lead-form-success .fa {
  font-size: 2.5rem;
  color: #34A853;
  margin-bottom: 0.75rem;
}
.lead-form-success p {
  margin: 0;
  font-size: 1.1rem;
  font-family: 'PoppinsSemiBold', sans-serif;
}

/* ---------- Privacy page ---------- */
.privacy-page h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}
.privacy-page ul {
  padding-left: 1.2rem;
}
.privacy-page li {
  font-size: 0.9rem;
  font-family: 'PoppinsLight', sans-serif;
  margin-bottom: 0.35rem;
}

/* Contact us card on phones: keep the email on one line, circles on desktop only */
@media (max-width: 991.98px) {
  .service-contact-info::before,
  .service-contact-info::after {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .service-contact-info,
  .service-contact-form {
    padding: 1.75rem 1.25rem;
  }
  .service-connect-email {
    gap: 0.7rem;
    padding: 0.75rem;
  }
  .service-connect-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .service-connect-address {
    font-size: 0.85rem;
  }
}

/* Hero breadcrumb stays on one line; the current page name is trimmed if needed (it is the H1 right below) */
.service-hero-crumbs {
  flex-wrap: nowrap;
  max-width: 100%;
}
.service-hero-crumbs li {
  flex-shrink: 0;
  white-space: nowrap;
}
.service-hero-crumbs li:last-child {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 575.98px) {
  .service-hero-crumbs {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
}
