/* Shared design tokens and global site styles. */
:root {
  --wbs-ink: #102a43;
  --wbs-navy: #062b5c;
  --wbs-blue: #0078d7;
  --wbs-sky: #2bc6f4;
  --wbs-blue-soft: #eaf7fd;
  --wbs-cloud: #f7fbfe;
  --bs-primary: #0078d7;
  --bs-primary-rgb: 0, 120, 215;
  --bs-link-color: #0065b8;
  --bs-link-hover-color: #004f91;
}
/* Base document and shared navigation. */

/* Root colours override Bootstrap tokens and keep the visual language consistent. */
html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: var(--wbs-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
nav.navbar.bg-dark {
  background: var(--wbs-navy) !important;
  border-bottom: 1px solid transparent;
  box-shadow: none !important;
  transition: background .2s ease, box-shadow .2s ease;
}

/* Header background variants for normal, overlay and scrolled states. */
nav.navbar.bg-dark.top-overlay {
  background: transparent !important;
}
nav.navbar.bg-dark.is-scrolled {
  background: rgba(6, 43, 92, .92) !important;
  backdrop-filter: blur(18px);
  border-bottom-color: transparent;
}
.navbar.top-overlay {
  left: 0;
  position: fixed !important;
  right: 0;
  top: 0;
  z-index: 1030;
}
.navbar-brand {
  letter-spacing: -.08em;
}

/* Cropped logo image and compact-header proportions. */
.brand-logo-wrap {
  display: block;
  flex: 0 0 136px;
  height: 56px;
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: flex-basis .2s ease, height .2s ease, width .2s ease;
  width: 136px;
}
.brand-logo {
  height: 160px;
  left: -12px;
  max-width: none;
  mix-blend-mode: screen;
  position: absolute;
  top: -48px;
  transition: height .2s ease, left .2s ease, top .2s ease, width .2s ease;
  width: 160px;
}
.navbar .nav-link {
  color: rgba(255, 255, 255, .72);
  font-size: .94rem;
  position: relative;
}

/* Main navigation links, active underline and call-to-action button. */
.navbar .nav-link::after {
  background: var(--wbs-sky);
  border-radius: 999px;
  bottom: .2rem;
  content: "";
  height: 2px;
  left: .5rem;
  position: absolute;
  right: .5rem;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
  transform: scaleX(1);
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #fff;
}
.navbar .btn {
  border-radius: 999px;
  font-size: .9rem;
  padding: .55rem 1.15rem;
}
.nav-cta {
  white-space: nowrap;
}
.mobile-menu-title {
  display: none;
}
.navbar-toggler-icon {
  background-image: none !important;
  display: block;
  height: 1.25rem;
  position: relative;
  width: 1.4rem;
}

/* Three-line burger transforms into a cross when the mobile menu opens. */
.navbar-toggler-icon span {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  left: 0;
  position: absolute;
  transform-origin: center;
  transition: transform .34s cubic-bezier(.65, 0, .35, 1), opacity .16s ease;
  width: 100%;
}
.navbar-toggler-icon span:nth-child(1) {
  top: 1px;
}
.navbar-toggler-icon span:nth-child(2) {
  top: calc(50% - 1px);
}
.navbar-toggler-icon span:nth-child(3) {
  bottom: 1px;
}
.navbar-toggler.is-open .navbar-toggler-icon span:nth-child(1) {
  transform: translateY(.5rem) rotate(45deg);
}
.navbar-toggler.is-open .navbar-toggler-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}
.navbar-toggler.is-open .navbar-toggler-icon span:nth-child(3) {
  transform: translateY(-.5rem) rotate(-45deg);
}
.lang-switch {
  margin-left: 2rem;
}

/* Language selector in the header and its dropdown states. */
.lang-switch .btn {
  align-items: center;
  box-shadow: none;
  display: inline-flex;
  gap: .5rem;
}
.lang-switch .btn .bi {
  font-size: .9rem;
}
.lang-switch .dropdown-menu {
  background: var(--wbs-navy);
  border: 1px solid rgba(125, 220, 250, .3);
  border-radius: .5rem;
  box-shadow: 0 .8rem 2rem rgba(6, 43, 92, .35);
  min-width: 11rem;
  padding: .35rem;
}
.lang-switch .dropdown-item {
  align-items: center;
  border-radius: .3rem;
  color: rgba(255, 255, 255, .88);
  display: flex;
  font-size: .9rem;
  font-weight: 600;
  justify-content: space-between;
  padding: .72rem .85rem;
}
.lang-switch .dropdown-item:hover, .lang-switch .dropdown-item:focus {
  background: rgba(43, 198, 244, .14);
  color: #fff;
}
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active {
  background: var(--wbs-blue);
  color: #fff;
}
.lang-switch__code {
  color: #7ddcfa;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.lang-switch .dropdown-item.active .lang-switch__code {
  color: #fff;
}
.navbar > .container {
  transition: padding .2s ease;
}

/* Reduced header dimensions applied after the visitor starts scrolling. */
.navbar.is-compact > .container {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}
.navbar.is-compact .brand-logo-wrap {
  flex-basis: 86px;
  height: 36px;
  width: 86px;
}
.navbar.is-compact .brand-logo {
  height: 102px;
  left: -8px;
  top: -31px;
  width: 102px;
}
.navbar.is-compact .nav-link {
  font-size: .96rem;
  padding-bottom: .3rem;
  padding-top: .3rem;
}
.navbar.is-compact .btn {
  font-size: .76rem;
  padding: .28rem .75rem;
}
.navbar.is-compact .navbar-toggler {
  font-size: .9rem;
  padding: .2rem .35rem;
}
/* Shared typography, backgrounds and components. */
.bg-dark, footer.bg-dark {
  background-color: var(--wbs-navy) !important;
}
footer.bg-dark {
  background:
    radial-gradient(circle at 5% 0%, rgba(43, 198, 244, .22), transparent 25rem),
    radial-gradient(circle at 98% 100%, rgba(0, 120, 215, .2), transparent 27rem),
    #061d42 !important;
  overflow: hidden;
  padding-bottom: 2rem !important;
  padding-top: 4.5rem !important;
  position: relative;
}
footer.bg-dark::before {
  background-image: radial-gradient(rgba(173, 231, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  opacity: .22;
  pointer-events: none;
  position: absolute;
}
footer.bg-dark > .container {
  position: relative;
  z-index: 1;
}
section.bg-primary, footer.bg-dark {
  color: #fff;
}
h1, h2, h3 {
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.25;
}
.bg-dark h2, .bg-primary h1, .bg-primary h2, .bg-primary h3 {
  color: #fff;
}
/* Introductory hero for Contacts and Servers pages. */
.site-page-hero {
  background: linear-gradient(120deg, #062b5c 0%, #0a477e 58%, #087cb7 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}
.navbar.top-overlay + main .site-page-hero {
  padding-top: calc(clamp(4rem, 8vw, 6.5rem) + 4rem);
}
.site-page-hero::after {
  background: repeating-linear-gradient(125deg, transparent 0 24px, rgba(255, 255, 255, .05) 24px 25px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.site-page-hero .container {
  position: relative;
  z-index: 1;
}
.site-page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0;
}
.site-page-hero p:not(.site-page-hero__eyebrow) {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1.25rem 0 0;
  max-width: 42rem;
}
.site-page-hero__eyebrow {
  color: #6ed9ff;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .07em;
  margin: 0 0 .85rem;
  text-transform: uppercase;
}
/* Buttons, cards, forms and accessibility states. */
.btn {
  border-radius: .8rem;
  font-weight: 700;
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Buttons, cards, colour helpers and accessible focus outlines. */
.btn-primary {
  --bs-btn-bg: var(--wbs-blue);
  --bs-btn-border-color: var(--wbs-blue);
  --bs-btn-hover-bg: #0065b8;
  --bs-btn-hover-border-color: #0065b8;
  --bs-btn-active-bg: #0059a3;
  --bs-btn-active-border-color: #0059a3;
  box-shadow: 0 .5rem 1.2rem rgba(6, 43, 92, .18);
}
.btn-primary:hover, .btn-primary:focus {
  box-shadow: 0 .7rem 1.5rem rgba(6, 43, 92, .24);
  transform: translateY(-2px);
}
.btn-outline-primary {
  --bs-btn-color: var(--wbs-blue);
  --bs-btn-border-color: rgba(0, 120, 215, .55);
  --bs-btn-hover-bg: var(--wbs-blue);
  --bs-btn-hover-border-color: var(--wbs-blue);
  --bs-btn-active-bg: #0059a3;
  --bs-btn-active-border-color: #0059a3;
}
.bg-primary .btn-light {
  border-radius: .8rem;
  color: var(--wbs-blue);
  font-weight: 700;
}
.card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(20, 35, 58, .07) !important;
  border-radius: 1.25rem;
  box-shadow: 0 1.1rem 2.6rem rgba(22, 42, 73, .08) !important;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.icon-tile {
  align-items: center;
  background: var(--wbs-blue-soft) !important;
  border-radius: 1rem;
  display: inline-flex;
  font-size: 1.55rem;
  height: 3.5rem;
  justify-content: center;
  position: relative;
  width: 3.5rem;
}
.text-primary {
  color: var(--wbs-blue) !important;
}
.hero-kicker, .text-info {
  color: #7ddcfa !important;
}
.bg-body-tertiary {
  background: var(--wbs-cloud) !important;
}
.bg-primary {
  background: var(--wbs-blue) !important;
}
.form-control, .form-select {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: .75rem;
  color: var(--wbs-ink);
  padding: .78rem 1rem;
}

/* Shared field styling and denser spacing for request forms. */
.form-control:focus, .form-select:focus {
  border-color: rgba(0, 120, 215, .7);
  box-shadow: 0 0 0 .25rem rgba(0, 120, 215, .13);
}
.contact-form .card-body {
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(234, 247, 253, .92));
  padding: 1.5rem !important;
}
.contact-form .form-label {
  font-size: .9rem;
  margin-bottom: .35rem;
}
.contact-form .form-control, .contact-form .form-select, .contact-form .form-control-lg, .contact-form .form-select-lg {
  font-size: 1rem;
  padding: .6rem .85rem;
}
.contact-form .form-select, .contact-form .form-select-lg {
  padding-right: 2.5rem;
}
.contact-form .mb-3 {
  margin-bottom: .75rem !important;
}
.contact-form .mb-4 {
  margin-bottom: 1rem !important;
}
.contact-form .btn-lg {
  font-size: 1rem;
  padding: .65rem 1rem;
}
.contact-form textarea.form-control {
  line-height: 1.4;
}
.contact-form .form-consent {
  align-items: flex-start;
  background: rgba(234, 247, 253, .72);
  border: 1px solid #c8e7f5;
  border-radius: .75rem;
  display: flex;
  gap: .7rem;
  line-height: 1.45;
  padding: .78rem .9rem;
}
.contact-form .form-consent .form-check-input {
  border-color: #8ecae8;
  flex: 0 0 auto;
  margin: .22rem 0 0;
}
.contact-form .form-consent .form-check-input:checked {
  background-color: var(--wbs-blue);
  border-color: var(--wbs-blue);
}
.contact-form .form-consent .form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(0, 120, 215, .13);
}
.contact-form .form-consent .form-check-label {
  color: #41566f;
  font-size: .87rem;
}
.contact-form .form-consent a {
  color: var(--wbs-blue);
  font-weight: 700;
  text-decoration-color: rgba(0, 120, 215, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
.contact-form .form-consent a:hover {
  color: #00599f;
}
.server-request-form .row {
  --bs-gutter-y: .75rem;
}
.list-group-item {
  background: transparent;
  border-color: rgba(20, 35, 58, .09);
}
.btn:focus-visible, .nav-link:focus-visible, a:focus-visible {
  outline: 3px solid var(--wbs-sky);
  outline-offset: 3px;
}
/* Footer and section spacing. */
footer .footer-grid {
  --bs-gutter-x: 3.25rem;
  --bs-gutter-y: 1.75rem;
}
footer .footer-panel {
  display: flex;
  flex-direction: column;
}
footer .footer-panel > * {
  position: relative;
  z-index: 1;
}
footer .footer-grid > .footer-panel {
  min-height: 8.75rem;
}
@media (min-width: 1200px) {
  footer .footer-grid > .footer-panel {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}
footer .footer-brand-panel {
  justify-content: space-between;
}
footer .brand-logo-wrap {
  margin: 0;
}
footer .footer-tagline {
  color: rgba(229, 246, 255, .72);
  font-size: .91rem;
  line-height: 1.55;
  margin-top: 1.25rem;
  max-width: 15rem;
}
footer .footer-panel h2 {
  color: #9be6ff !important;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .06em;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
}
footer .footer-panel h2 + p {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  line-height: 1.55;
}
footer .footer-panel .bi {
  display: none;
}
footer h2 + p a {
  color: rgba(239, 250, 255, .9) !important;
  display: block;
  font-weight: 600;
  line-height: 1.35;
  transition: color .2s ease, transform .2s ease;
}
footer h2 + p br {
  display: none;
}
footer .footer-legal-details {
  line-height: 1.7;
}
footer .footer-legal-details br {
  display: block;
}
footer h2 + p a ~ a {
  margin-top: 0;
}
footer h2 + p a:hover {
  color: #7ddcfa !important;
  transform: translateX(.2rem);
}
footer .footer-copyright {
  color: rgba(215, 239, 255, .64);
  font-size: .8rem;
  letter-spacing: .01em;
  text-align: center;
}
footer .footer-copyright a {
  color: #8ee6ff !important;
}
footer.bg-dark hr {
  border-color: rgba(169, 225, 255, .17) !important;
  margin-bottom: 1.5rem !important;
  margin-top: 2rem !important;
}
section.bg-primary > .container {
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}
section.bg-primary {
  padding-left: .75rem;
  padding-right: .75rem;
}
main > section.py-5 {
  padding-bottom: 3.75rem !important;
  padding-top: 3.75rem !important;
}
main > section.py-5 > .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
main > section .mb-lg-5 {
  margin-bottom: 2rem !important;
}
/* Mobile navigation and layout. */
@media (max-width: 991.98px) {
  /* Full-screen mobile navigation: language first, then title, links and CTA. */
  .navbar.is-compact > .container {
    padding-bottom: .25rem !important;
    padding-top: .25rem !important;
  }
  .navbar.is-compact .brand-logo-wrap {
    flex-basis: 136px;
    height: 56px;
    width: 136px;
  }
  .navbar.is-compact .brand-logo {
    height: 160px;
    left: -12px;
    top: -48px;
    width: 160px;
  }
  .navbar.is-compact .navbar-toggler {
    font-size: 1rem;
    padding: .25rem .75rem;
  }
  .navbar.is-compact .navbar-collapse .nav-link {
    font-size: 1.45rem;
    padding: .6rem 1rem;
  }
  .navbar.is-compact .navbar-collapse .nav-cta {
    font-size: .9rem;
    padding: .55rem 1.15rem;
  }
  body.menu-open {
    overflow: hidden;
  }
  .navbar > .container {
    position: relative;
  }
  .navbar-brand, .navbar-toggler {
    position: relative;
    z-index: 2;
  }
  .navbar-collapse.show, .navbar-collapse.collapsing {
    align-items: center;
    background: linear-gradient(145deg, #062b5c 0%, #064b86 100%);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    min-height: 100dvh;
    padding: 5.5rem 1.5rem 2rem;
    position: fixed;
    z-index: 1;
  }
  .navbar-collapse .mobile-menu-title {
    color: #7ddcfa;
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.035em;
    margin: 0 0 .65rem;
    order: 1;
    padding: .6rem 1rem;
    text-align: center;
    width: 100%;
  }
  .navbar-collapse .navbar-nav {
    align-items: center;
    gap: .75rem;
    width: 100%;
  }
  .navbar-collapse .navbar-nav {
    order: 2;
  }
  .navbar-collapse .nav-link {
    font-size: 1.45rem;
    padding: .6rem 1rem;
  }
  .navbar-collapse .nav-link::after {
    bottom: .35rem;
    left: 1rem;
    right: 1rem;
  }
  .navbar-collapse .nav-cta {
    margin: 2rem 0 0;
    text-align: center;
    width: min(100%, 22rem);
  }
  .navbar-collapse .nav-cta {
    order: 3;
  }
  .navbar-collapse .lang-switch {
    margin: 0 0 1.5rem;
    order: 0;
  }
}
/* Desktop navigation alignment. */
@media (min-width: 992px) {
  /* Centre desktop navigation without displacing logo and CTA. */
  .navbar > .container {
    position: relative;
  }
  .navbar-collapse {
    flex-grow: 1;
    position: static;
  }
  .navbar-nav {
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }
  .navbar-collapse .nav-cta {
    margin-left: auto;
  }
}
@media (min-width: 992px) {
  .contact-form .card-body {
    padding: 1.75rem !important;
  }
}
@media (max-width: 575.98px) {
  /* Final small-phone spacing and overflow safeguards. */
  main > section .row.g-5 {
    --bs-gutter-x: 2rem;
  }
  footer.bg-dark {
    padding-bottom: 1.75rem !important;
    padding-top: 3rem !important;
  }
  footer .footer-grid > .footer-panel {
    min-height: auto;
  }
  footer .footer-grid {
    --bs-gutter-x: 1.5rem;
  }
  main > section.py-5 {
    padding-bottom: 3rem !important;
    padding-top: 3rem !important;
  }
}

/* Keep language dropdowns functional without Bootstrap's directional caret. */
.dropdown-toggle::after {
  display: none;
}
