:root {
  color-scheme: light;
  --brand-primary: #1d3b90;
  --brand-accent: #2f5cc4;
  --brand-bg: #f8f9fa;
  --text-color: #212529;
  --surface-1: #ffffff;
  --border-color: #dee2e6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--brand-bg);
  color: var(--text-color);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1200;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.bg-white {
  background: #fff;
}

.bg-light {
  background: #f8f9fa;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.text-white {
  color: #fff;
}

.text-primary {
  color: var(--brand-primary) !important;
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.fw-semibold {
  font-weight: 600;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.w-100 {
  width: 100% !important;
}

.position-relative {
  position: relative !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.small {
  font-size: 0.875em;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.35rem;
}

.p-4 {
  padding: 1.5rem !important;
}

.h-100 {
  height: 100% !important;
}

.rounded-pill {
  border-radius: 999px !important;
}

.navbar {
  position: relative;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-primary);
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-right: 0.45rem;
}

.brand-wordmark {
  font-weight: 700;
}

.navbar-toggler {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: #fff;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,37,41,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar-collapse {
  width: 100%;
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--brand-primary);
  text-decoration: none;
}

.navbar .navbar-collapse {
  align-items: center;
}

.navbar .navbar-nav {
  align-items: center;
  gap: 0.2rem;
}

.navbar .nav-link {
  transition: color 0.16s ease, transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  border-radius: 0.45rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--brand-accent) !important;
  transform: translateY(-1px);
  background-color: rgba(47, 92, 196, 0.08);
  box-shadow: inset 0 -2px 0 rgba(47, 92, 196, 0.35);
}

.btn-group {
  display: inline-flex;
  gap: 0.45rem;
}

.navbar .btn-group.btn-group-sm {
  gap: 0.45rem;
}

.navbar .btn-group.btn-group-sm .lang-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25;
  background: #fff;
  color: var(--brand-primary);
}

.btn-outline-primary,
.btn-outline-secondary {
  border-color: rgba(29, 59, 144, 0.35);
}

.lang-btn.active {
  box-shadow: 0 0 0 2px rgba(47, 92, 196, 0.28);
}

.theme-toggle-container {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
}

#themeToggleBtn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.9rem;
  border-radius: 999px !important;
  border-width: 1px;
  box-shadow: none;
}

.hero,
.sub-hero,
.contact-hero,
.legal-hero,
.error-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.36);
  z-index: 2;
}

.hero-overlay .container {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hero-overlay .lead,
.hero-overlay p {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  pointer-events: auto;
}

.hero-cta-actions a {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.hero-cta-actions .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--brand-primary);
  font-weight: 700;
}

.hero-cta-actions .btn-primary:hover,
.hero-cta-actions .btn-primary:focus-visible {
  background: #eef3ff;
  border-color: #eef3ff;
  color: #142c70;
}

.carousel,
.carousel-inner,
.carousel-item {
  position: relative;
}

.carousel-item:not(.active) {
  display: none;
}

.carousel-item.active {
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  background: transparent;
}

.nav-tabs .nav-link.active {
  background: #fff;
  border-color: var(--border-color) var(--border-color) #fff;
}

.display-5 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.5;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--bs-gutter-y);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.g-3,
.gx-3 {
  --bs-gutter-x: 1rem;
}

.g-3,
.gy-3 {
  --bs-gutter-y: 1rem;
}

.g-4,
.gx-4 {
  --bs-gutter-x: 1.5rem;
}

.g-4,
.gy-4 {
  --bs-gutter-y: 1.5rem;
}

.justify-content-center {
  justify-content: center !important;
}

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
}

.border-0 {
  border: 0 !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.h3,
.h4,
.h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.h3 {
  font-size: 1.75rem;
}

.h4 {
  font-size: 1.5rem;
}

.h6 {
  font-size: 1rem;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

@media (min-width: 1200px) {
  .fs-2 {
    font-size: 2rem !important;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
  }

  .navbar-expand-lg .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    margin-right: auto;
  }

  .navbar .offcanvas-lg .offcanvas-body {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .navbar .offcanvas-lg .navbar-nav {
    margin-right: auto;
  }

  .navbar .offcanvas-lg .offcanvas-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar .offcanvas-lg .offcanvas-controls-divider {
    display: none;
  }

  .navbar .offcanvas-lg .btn-group.btn-group-sm {
    margin-left: 0;
  }

  .navbar .offcanvas-lg .theme-toggle-container {
    margin-left: 0.2rem;
  }

  .col-lg-9 {
    width: 75%;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse:not(.show) {
    display: none;
  }

  .navbar .container {
    position: relative;
    min-height: 94px;
    gap: 0;
  }

  .navbar .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-right: 0;
    z-index: 1;
  }

  .navbar .brand-wordmark {
    display: none !important;
  }

  .navbar .navbar-toggler {
    margin-left: auto;
    z-index: 1081;
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    background: var(--surface-1);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .navbar .navbar-toggler .navbar-toggler-icon {
    display: block;
    margin: 0;
  }

  .navbar .offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
  }

  .navbar .offcanvas .offcanvas-controls-divider {
    margin: 0.8rem 0 0.7rem;
    border-color: var(--border-color);
    opacity: 0.8;
  }

  .navbar .offcanvas .offcanvas-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (min-width: 768px) {
  .p-md-5 {
    padding: 3rem !important;
  }
}

.hero,
.sub-hero {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
}

.hero-focus-50-30 { --hero-focus: 50% 30%; object-position: 50% 30%; }
.hero-focus-50-32 { --hero-focus: 50% 32%; object-position: 50% 32%; }
.hero-focus-50-33 { --hero-focus: 50% 33%; object-position: 50% 33%; }
.hero-focus-50-34 { --hero-focus: 50% 34%; object-position: 50% 34%; }
.hero-focus-50-35 { --hero-focus: 50% 35%; object-position: 50% 35%; }
.hero-focus-50-42 { --hero-focus: 50% 42%; object-position: 50% 42%; }
.hero-focus-50-50 { --hero-focus: 50% 50%; object-position: 50% 50%; }

.hero-carousel,
.sub-hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-carousel .carousel,
.sub-hero-carousel .carousel {
  position: relative;
  z-index: 1;
}

.hero-carousel .carousel-inner,
.sub-hero-carousel .carousel-inner {
  background: #000;
}

.hero-carousel .carousel-item,
.sub-hero-carousel .carousel-item {
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity;
}

.hero-carousel .carousel-item.active,
.sub-hero-carousel .carousel-item.active {
  opacity: 1;
}

.hero-carousel .carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel .carousel-fade .carousel-item-prev.carousel-item-end,
.hero-carousel .carousel-fade .carousel-item.active,
.sub-hero-carousel .carousel-fade .carousel-item-next.carousel-item-start,
.sub-hero-carousel .carousel-fade .carousel-item-prev.carousel-item-end,
.sub-hero-carousel .carousel-fade .carousel-item.active {
  opacity: 1;
  transform: none;
}

.hero-carousel .carousel-fade .active.carousel-item-start,
.hero-carousel .carousel-fade .active.carousel-item-end,
.sub-hero-carousel .carousel-fade .active.carousel-item-start,
.sub-hero-carousel .carousel-fade .active.carousel-item-end {
  opacity: 0;
  transform: none;
}

.hero-carousel .carousel-fade .carousel-item,
.sub-hero-carousel .carousel-fade .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-fade .carousel-item.active,
.sub-hero-carousel .carousel-fade .carousel-item.active {
  position: relative;
  z-index: 2;
}

.hero-carousel .carousel-item img,
.sub-hero-carousel .carousel-item img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: var(--hero-focus, 50% 50%);
  display: block;
}

.hero-carousel .hero-overlay,
.sub-hero-carousel .hero-overlay {
  background: rgba(0, 0, 0, 0.36);
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 100%;
  pointer-events: none;
}

.hero-carousel .carousel-indicators,
.sub-hero-carousel .carousel-indicators {
  z-index: 4;
  bottom: 1rem;
  gap: 0.45rem;
  margin-bottom: 0;
  align-items: center;
}

.hero-carousel .carousel-indicators [data-bs-target],
.sub-hero-carousel .carousel-indicators [data-bs-target] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.hero-carousel .carousel-indicators .active,
.sub-hero-carousel .carousel-indicators .active {
  width: 44px;
  background: #fff;
  border-color: #fff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.sub-hero-carousel .carousel-control-prev,
.sub-hero-carousel .carousel-control-next {
  width: 8%;
  min-width: 56px;
  opacity: 1;
  z-index: 4;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon,
.sub-hero-carousel .carousel-control-prev-icon,
.sub-hero-carousel .carousel-control-next-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background-color: rgba(14, 29, 64, 0.52);
  background-size: 42% 42%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 767.98px) {
  .sub-hero {
    min-height: 50vh;
  }

  .sub-hero-carousel .carousel-item img {
    height: 50vh;
  }

  .hero-carousel .carousel-indicators,
  .sub-hero-carousel .carousel-indicators {
    bottom: 0.65rem;
    gap: 0.5rem;
  }

  .hero-carousel .carousel-indicators [data-bs-target],
  .sub-hero-carousel .carousel-indicators [data-bs-target] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }

  .hero-carousel .carousel-indicators .active,
  .sub-hero-carousel .carousel-indicators .active {
    width: 48px;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next,
  .sub-hero-carousel .carousel-control-prev,
  .sub-hero-carousel .carousel-control-next {
    min-width: 44px;
  }

  .hero-carousel .carousel-control-prev-icon,
  .hero-carousel .carousel-control-next-icon,
  .sub-hero-carousel .carousel-control-prev-icon,
  .sub-hero-carousel .carousel-control-next-icon {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel .carousel-item,
  .sub-hero-carousel .carousel-item,
  .hero-carousel .carousel-fade .carousel-item,
  .sub-hero-carousel .carousel-fade .carousel-item {
    transition: none !important;
  }
}
