:root {
  --ink: #101820;
  --muted: #5f6b76;
  --line: #d9e1e7;
  --blue: #1554a1;
  --blue-dark: #0b2f5f;
  --cyan: #1bb2c9;
  --green: #2f8f6f;
  --paper: #f6f8fa;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
}

.navbar {
  background: rgba(11, 25, 39, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 900;
}

.nav-link {
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(7, 18, 30, 0.9), rgba(7, 18, 30, 0.63) 54%, rgba(7, 18, 30, 0.18)),
    url("../assets/bg-masthead.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.38));
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 720px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow,
.section-label {
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background: var(--paper);
}

.section h2,
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: 0;
}

.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(16, 24, 32, 0.07);
}

.service-card h3,
.principle h3,
.timeline-item h3,
.contact-box h3,
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}

.service-card p,
.principle p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-badge {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(21, 84, 161, 0.1);
  color: var(--blue);
  font-size: 1.4rem;
}

.principles {
  display: grid;
  gap: 1rem;
}

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.principle > i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 143, 111, 0.12);
  color: var(--green);
}

.team-section {
  background: #0d1a26;
  color: var(--white);
}

.team-section .section-intro {
  color: rgba(255, 255, 255, 0.74);
}

.team-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #101f2d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.team-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  min-height: 520px;
}

.team-image-wrap {
  position: relative;
  min-height: 520px;
  background: #07121e;
}

.team-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(13, 26, 38, 0) 54%, rgba(13, 26, 38, 0.55));
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4.5rem 5rem 3.5rem;
}

.team-kicker {
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(27, 178, 201, 0.16);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.team-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.team-carousel .carousel-indicators {
  bottom: 2rem;
  left: 3.5rem;
  justify-content: flex-start;
  margin: 0;
}

.team-carousel .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background-color: rgba(255, 255, 255, 0.42);
}

.team-carousel .carousel-indicators .active {
  background-color: var(--cyan);
}

.team-carousel .carousel-control-prev,
.team-carousel .carousel-control-next {
  top: auto;
  bottom: 1.35rem;
  width: 44px;
  height: 44px;
  opacity: 1;
}

.team-carousel .carousel-control-prev {
  right: 9rem;
  left: auto;
}

.team-carousel .carousel-control-next {
  right: 3rem;
}

.team-carousel .carousel-control-prev span,
.team-carousel .carousel-control-next span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.references-section {
  background: var(--paper);
}

.reference-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
}

.reference-slide {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  color: var(--white);
}

.reference-slide-blue {
  background: linear-gradient(135deg, #0b2f5f, #1554a1 58%, #1b7f99);
}

.reference-slide-green {
  background: linear-gradient(135deg, #0d1a26, #194f49 55%, #2f8f6f);
}

.reference-media {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.reference-media img {
  width: min(100%, 720px);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.reference-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4.5rem 5rem 0;
}

.reference-kicker {
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.reference-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4.5vw, 4.9rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.reference-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.reference-copy .btn {
  width: fit-content;
  margin-top: 1rem;
}

.reference-carousel .carousel-control-prev,
.reference-carousel .carousel-control-next {
  top: auto;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  opacity: 1;
}

.reference-carousel .carousel-control-prev {
  right: 9rem;
  left: auto;
}

.reference-carousel .carousel-control-next {
  right: 3rem;
}

.reference-carousel .carousel-control-prev span,
.reference-carousel .carousel-control-next span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.reference-modal .modal-content {
  border: 0;
  border-radius: 8px;
}

.reference-modal .modal-header {
  align-items: flex-start;
  padding: 2rem 2rem 1rem;
  border-bottom: 0;
}

.reference-modal .modal-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 850;
}

.reference-modal .modal-body {
  padding: 0 2rem 2rem;
}

.reference-modal-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.reference-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.reference-facts div {
  padding: 1rem;
  border-radius: 8px;
  background: var(--paper);
}

.reference-facts span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-facts strong {
  display: block;
  line-height: 1.35;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 2rem 1.5rem 0 0;
}

.timeline-item::before {
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--blue);
  font-weight: 850;
}

.cta-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), #103a48 55%, #1e6b5a);
}

.cta-band p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.contact-box {
  padding: 2rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.contact-box p {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.84);
}

.contact-box i {
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--cyan);
}

.contact-box a,
.site-footer a {
  color: inherit;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 1.4rem 0;
  background: #07121e;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.legal-page {
  padding: 8rem 0 5rem;
  background: var(--paper);
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-content {
  max-width: 900px;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .hero {
    background-position: center right;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .team-slide {
    grid-template-columns: 1fr;
  }

  .team-image-wrap {
    min-height: 430px;
  }

  .team-image-wrap::after {
    background: linear-gradient(180deg, rgba(13, 26, 38, 0) 56%, rgba(13, 26, 38, 0.72));
  }

  .team-copy {
    padding: 2.5rem 2rem 6rem;
  }

  .reference-slide {
    grid-template-columns: 1fr;
  }

  .reference-media {
    min-height: auto;
    padding: 3rem 2rem 1rem;
  }

  .reference-copy {
    padding: 2rem 2rem 6rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    border-top: 0;
    border-left: 2px solid var(--line);
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding: 0 0 0 0.75rem;
  }

  .timeline-item::before {
    top: 0.35rem;
    left: -1.96rem;
  }

  .team-slide {
    min-height: auto;
  }

  .team-image-wrap {
    min-height: 330px;
  }

  .team-copy {
    padding: 2rem 1.35rem 6rem;
  }

  .team-carousel .carousel-indicators {
    right: auto;
    bottom: 1.4rem;
    left: 1.35rem;
    justify-content: flex-start;
  }

  .team-carousel .carousel-control-prev {
    right: 4.9rem;
  }

  .team-carousel .carousel-control-next {
    right: 1.35rem;
  }

  .reference-media {
    padding: 2rem 1.35rem 1rem;
  }

  .reference-copy {
    padding: 1.5rem 1.35rem 5.75rem;
  }

  .reference-carousel .carousel-control-prev {
    right: 4.9rem;
  }

  .reference-carousel .carousel-control-next {
    right: 1.35rem;
  }

  .reference-facts {
    grid-template-columns: 1fr;
  }

  .reference-modal .modal-header,
  .reference-modal .modal-body {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .legal-content {
    padding: 1.35rem;
  }
}
