@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin.woff2") format("woff2");
}

/* Top left corner: OutPro Technology logo */
.op-img-logo {
    width: 165px;
    height: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #8d0c00;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.menu-icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid #8d0c00 !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

.site-navbar .site-navigation .site-menu {
  white-space: nowrap;
}

.site-mobile-menu-close button {
  visibility: hidden;
}

.offcanvas-menu .site-mobile-menu-close button {
  visibility: visible;
}

.top-social {
  display: flex;
  align-items: center;
}

.top-social .language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  color: #4a4a4a;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.top-social .language-switch:hover,
.top-social .language-switch:focus {
  color: #8d0c00;
  border-color: #8d0c00;
  background-color: #faf7f6;
  text-decoration: none;
}

.top-social .language-switch:focus-visible {
  outline: 2px solid rgba(141, 12, 0, 0.25);
  outline-offset: 2px;
}

/* Sticky header with white background */
.site-navbar {
    position: sticky !important;
    top: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.5rem !important;
}

.site-section-cover, .site-section-cover .container > .row {
    padding: 0rem;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  display: block;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.btn {
  border-radius: inherit;
}

.btn-primary {
    background-color: #8d0c00;
    border-color: #8d0c00;
}

.site-navbar .site-navigation .site-menu .active {
    color: #8d0c00;
}
.subtitle {
    color: #8d0c00;
    font-size: 1.5em;
}

.section-heading {
    color: #8d0c00;
    padding-bottom: 1.5rem;
}

.section-heading::after {
    background-color: #8d0c00;
}

.site-section {
    padding: 3rem 0;
}

.feature-1 {
    min-height: 15rem;
    background-color: #f6f5f5 /*#31364f; #182541;*/
}

.feature-1 h3 {
    color: #8d0c00;
}

.feature-1 p {
  color: #373737;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.expertise-grid .news-1 {
  min-width: 0;
  overflow: hidden;
  background-image: none;
}

.news-1__media,
.news-1__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-1__media {
  display: block;
  z-index: 0;
}

.news-1__media img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

/* Keep expertise content available without relying on mouse hover. */
.expertise-grid .news-1::before {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.78));
}

.expertise-grid .news-1 .text {
  opacity: 1;
  visibility: visible;
}

.expertise-grid .news-1 .category {
  color: #ff8a80;
}

.expertise-grid .news-1:hover::before,
.expertise-grid .news-1:focus-within::before {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.76);
}

.expertise-grid .news-1:hover .news-1__media img,
.expertise-grid .news-1:focus-within .news-1__media img {
  transform: scale(1.03);
}

.expertise-grid .news-1 a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.expertise-arrow {
  font-family: inherit;
  font-size: 1.75rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid .news-1 {
    height: 440px;
  }
}

html {
  scroll-behavior: smooth;
}

.expertise-detail {
  scroll-margin-top: 7.5rem;
}

/* Align longer copy to both margins while keeping short interface text natural. */
.prose-copy {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.approach-list {
  counter-reset: approach-step;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.approach-list > li {
  counter-increment: approach-step;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  column-gap: 0.25rem;
  align-items: start;
}

.approach-list > li::before {
  content: counter(approach-step) ".";
  grid-column: 1;
  grid-row: 1;
  line-height: 1.2;
}

.approach-list > li > h3 {
  grid-column: 2;
  grid-row: 1;
}

.approach-list > li > p {
  grid-column: 2;
  grid-row: 2;
}


.testimonial-2 {
  background: #f6f5f5;
  min-height: 25rem;
}

.team-member-card {
  flex: 1 1 100%;
}

.team-member-role {
  margin-bottom: 0.75rem;
  color: #8d0c00;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.team-member-description {
  max-width: 13rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(141, 12, 0, 0.16);
  color: #4a4a4a;
  font-size: 0.875rem;
  line-height: 1.55;
}

.team-portrait {
  aspect-ratio: 1;
  overflow: hidden;
}

.team-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.testimonial-2 .v-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
}

.testimonial-2 .v-card img.team-portrait-image--zoomed {
  transform: scale(1.42);
  transform-origin: center 22%;
}

.testimonial-2 .v-card span {
    font-weight: bold;
}

.op-language-logo {
  max-width: 320px;
}

.site-footer .footer-template-credit {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.site-footer .footer-template-credit a {
  color: inherit;
}

.site-footer address,
.site-footer p:not(.footer-template-credit),
.site-footer p:not(.footer-template-credit) a,
.site-footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer p:not(.footer-template-credit) a:hover,
.site-footer p:not(.footer-template-credit) a:focus,
.site-footer .list-unstyled a:hover,
.site-footer .list-unstyled a:focus {
  color: #fff;
}

@media (max-width: 575.98px) {
  .prose-copy {
    text-align: left;
    hyphens: none;
  }
}

@media (max-width: 991.98px) {
  .expertise-detail {
    scroll-margin-top: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .news-1__media img {
    transition: none;
  }
}
