/* Brand tokens and rules Bootstrap has no utility for.
   Layout, spacing, flex, borders, and type weight use Bootstrap classes. */
:root {
  --red:       #e11a27;
  --red-hover: #c41522;
  --dark:      #0e0e0f;
  --light-bg:  #f0f1ef;
  --card-bg:   #f7f7f5;
  --card-bg-2: #f8f8f7;
  --strip-bg:  #f1f1f1;
  --link-blue: #1d436b;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
}

.text-srp { color: var(--red) !important; }
.bg-srp { background-color: var(--red) !important; }
.border-srp { border-color: var(--red) !important; }
.bg-srp-muted { background-color: var(--light-bg); }
.bg-srp-card { background-color: var(--card-bg); }
.bg-srp-card-2 { background-color: var(--card-bg-2); }
.bg-srp-strip { background-color: var(--strip-bg); }
.bg-srp-ink { background-color: var(--dark); }
.link-srp { color: var(--link-blue); }
.link-srp:hover { color: var(--link-blue); text-decoration: underline; }

.ls-1 { letter-spacing: 1px; }
.ls-2 { letter-spacing: 2px; }

/* Fluid display type — Bootstrap's fs-* scale is fixed, not fluid */
.fs-display {
  font-size: clamp(2rem, 1.15rem + 2.8vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.fs-lead {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  line-height: 1.45;
}
.fs-card-title {
  font-size: clamp(1.35rem, 1rem + 1vw, 1.875rem);
  line-height: 1.1;
}
.fs-step-title {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.1;
}
.fs-timeline-title {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2.25rem);
}
.fs-timeline-sub {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.3;
}
.fs-impact {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.625rem);
  line-height: 1.05;
}
.fs-about-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2.25rem);
  line-height: 1.15;
}
.fs-news-title {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
  line-height: 1.15;
}
.fs-step-body {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.fs-team-values {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.125rem);
  line-height: 1.35;
}
.fs-contact {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.35;
}
.fs-strip {
  font-size: clamp(0.8125rem, 0.75rem + 0.2vw, 0.9375rem);
}

/* Brand buttons via Bootstrap button CSS variables */
.btn-srp-primary,
.btn-srp-white {
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: 1rem;
  --bs-btn-padding-y: 0.9375rem;
  --bs-btn-padding-x: 1.125rem;
}
.btn-srp-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--red);
  --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--red-hover);
  --bs-btn-hover-border-color: var(--red-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--red-hover);
  --bs-btn-active-border-color: var(--red-hover);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--red);
  --bs-btn-disabled-border-color: var(--red);
  --bs-btn-padding-x: 1.125rem;
}
.btn-srp-white {
  --bs-btn-color: var(--dark);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--dark);
  --bs-btn-hover-bg: #f0f0f0;
  --bs-btn-hover-border-color: #f0f0f0;
  --bs-btn-active-color: var(--dark);
  --bs-btn-active-bg: #f0f0f0;
  --bs-btn-active-border-color: #f0f0f0;
  --bs-btn-disabled-color: var(--dark);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #fff;
  --bs-btn-padding-x: 1.5rem;
}

.srp-heading-accent { width: 5px; background: var(--red); }

#site-header .nav-link:hover,
#site-header .nav-link:focus,
.lang-switcher a:hover { opacity: .75; }

.logo-img-header { height: 41px; width: auto; }
.logo-img-footer { height: 35px; width: auto; }

.partners-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.partners-static .partner-logo-tile {
  margin: 0;
}
.partners-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}
.partners-carousel-track {
  display: flex;
  width: max-content;
  animation: partners-marquee 40s linear infinite;
}
.partners-carousel-track:hover {
  animation-play-state: paused;
}
.partner-logo-tile {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  margin: 0 12px;
}
.partner-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}
@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-carousel-track { animation: none; }
  .partners-carousel-wrapper { overflow-x: auto; }
}

@media (max-width: 1199.98px) {
  #site-header .navbar-brand { max-width: calc(100% - 3.5rem); }
  .logo-img-header { height: auto; max-height: 36px; }
  #site-header .navbar-collapse {
    background: var(--dark);
    border-radius: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    margin-top: .75rem;
  }
}

#hero {
  background-image: url('images/general/Hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero-scrim {
  background: linear-gradient(90deg,
    rgba(0,0,0,.28) 0%,
    rgba(0,0,0,.20) 45%,
    rgba(0,0,0,.05) 100%);
}
.hero-content { padding-top: 7.5rem; padding-bottom: 3rem; }

.flag { width: 24px; height: 24px; }
.flag-swiss { background: var(--red); }
.flag-swiss::before, .flag-swiss::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1px;
}
.flag-swiss::before { width: 6px; height: 16px; }
.flag-swiss::after  { width: 16px; height: 6px; }
.flag-ukraine { background: linear-gradient(to bottom, #0057b7 50%, #ffd700 50%); }

.card-photo { aspect-ratio: 16 / 7; }
.alert-circle { width: 39px; height: 39px; }

.hiw-route-line { height: 2px; background: rgba(255,255,255,.9); }
.hiw-route-line-start { width: 1.75rem; flex: 0 0 1.75rem; }
.hiw-route-line-end { width: 3.5rem; flex: 0 0 3.5rem; }
.hiw-route-line-main { min-width: 3rem; }
.hiw-route-icon { width: 4.75rem; height: 4.75rem; font-size: 1.85rem; background: var(--red); }
.hiw-route-icon .bi-play-fill { margin-left: .2rem; }
.hiw-route-dot { width: 10px; height: 10px; background: #fff; }
.hiw-route-dot.d1 { left: 20%; }
.hiw-route-dot.d2 { left: 50%; }
.hiw-route-dot.d3 { left: 80%; }
@media (max-width: 767.98px) {
  .hiw-route-icon { width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
  .hiw-route-line-start { width: 0.75rem; flex-basis: 0.75rem; }
  .hiw-route-line-end { width: 1.75rem; flex-basis: 1.75rem; }
}

.timeline-dot { width: 14px; height: 14px; background: var(--red); }
.timeline-mark { gap: 2rem; }
.timeline-card-img { min-height: 10rem; }
@media (min-width: 576px) {
  .timeline-card-img { width: 11.25rem; min-height: 11.25rem; }
}
.timeline-card-img img { opacity: .85; }

.impact-photo { aspect-ratio: 16 / 10; }
.ukr-board { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) {
  .ukr-board {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 1.5rem;
    row-gap: 1rem;
  }
  .ukr-card-1 { grid-column: 1; grid-row: 1; }
  .ukr-card-2 { grid-column: 1; grid-row: 2; }
  .ukr-card-3 { grid-column: 1; grid-row: 3; }
  .ukr-card-4 { grid-column: 1; grid-row: 4; }
  .ukr-copy { grid-column: 2; grid-row: 1 / 3; }
  .ukr-photo {
    grid-column: 2;
    grid-row: 3 / 5;
    aspect-ratio: auto;
    height: 100%;
    margin-bottom: 0;
  }
}
.news-card { max-width: 21rem; }
.news-card-photo { width: 7rem; }
.news-placeholder { min-height: 13.75rem; }
.news-track { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) {
  .news-track { flex: 1 1 auto; }
}
@media (min-width: 1400px) {
  .news-card-photo { width: 6.5rem; }
}
.team-photo-wrap { aspect-ratio: 15 / 8; }
.team-photo-wrap img { object-position: top center; }

.social-btn { width: 34px; height: 34px; }

/* Dot centered in the gap-4 between legal links. Bootstrap has no separator for that. */
.footer-legal > a:focus-visible {
  --bs-link-underline-opacity: 1;
}
.footer-legal > a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.social-btn:hover { opacity: .8; }
