/* ---- css/base/fonts.css ---- */
/* Self-hosted webfonts (assets/fonts/) — previously fetched from
   fonts.googleapis.com + fonts.gstatic.com. Each family ships as a
   single variable-font file; one @font-face block per weight actually
   used in the project points at that same file, mirroring how
   Google's own stylesheet served it. Paths are relative to the built
   css/dist/bundle.css, not to this source file — see scripts/build-css.js. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../assets/fonts/manrope-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../assets/fonts/manrope-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../../assets/fonts/manrope-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../assets/fonts/montserrat-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../assets/fonts/montserrat-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../../assets/fonts/montserrat-var.woff2') format('woff2');
}

/* ---- css/base/variables.css ---- */
:root {
  --color-primary-dark: #052E55;
  --color-primary: #0351A1;
  --color-bg-light: #F1EBEB;
  --color-accent: #F19C04;
  --color-accent-hover: #F1B205;
  /* Darkened accent for small text on light backgrounds — #F19C04 itself
     only hits ~2.2:1 there, well under WCAG AA's 4.5:1. Passes on both
     --color-white and --color-bg-light. Keep --color-accent as-is for
     backgrounds/icons/borders, where contrast isn't the same failure mode. */
  --color-accent-text: #946002;

  --color-white: #FFFFFF;
  --color-text-dark: #2D3748;

  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shared section rhythm: fluid so mobile/desktop share one rule instead of per-section breakpoints */
  --section-space-y: clamp(4.8rem, 8vw, 8rem);
  --section-space-x: clamp(2rem, 4vw, 3.2rem);
  --container-max-width: 120rem;
}

/* ---- css/base/reset.css ---- */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 1.6rem;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 3rem;
}

/* ---- css/layout/navbar.css ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(120deg, #0c1a35 0%, #132a52 55%, #0c1e40 100%);
  box-shadow: 0 0.8rem 2.4rem rgba(10, 20, 40, 0.18);
}

.navbar__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 132rem;
  height: 7.2rem;
  margin: 0 auto;
  padding: 0 1.8rem;
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 4rem;
  height: 4rem;
  margin: 0;
  padding: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.navbar__toggle-bar {
  display: block;
  width: 2.2rem;
  height: 0.2rem;
  background: #f4f1ec;
  border-radius: 0.2rem;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(0.7rem) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-0.7rem) rotate(-45deg);
}

.navbar__menu {
  display: none;
  align-items: center;
  gap: 3.4rem;
  z-index: 2;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(244, 241, 236, 0.88);
  letter-spacing: 0.02rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: #f0ab1e;
}

.navbar__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  transform: translate(-50%, -50%);
}

.navbar__logo-img {
  width: auto;
  height: 4rem;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 0 0.15rem rgba(255, 255, 255, 1))
    drop-shadow(0 0 0.4rem rgba(255, 255, 255, 1))
    drop-shadow(0 0 0.9rem rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 1.8rem rgba(255, 255, 255, 0.7));
}

.navbar__cta {
  display: none;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 2.2rem;
  background: linear-gradient(135deg, #f4bb3e, #e3960f);
  border-radius: 999px;
  box-shadow: 0 0.6rem 1.6rem rgba(227, 150, 15, 0.35);
  color: #122548;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
  transition: filter 0.2s ease;
}

.navbar__cta:hover {
  filter: brightness(1.06);
}

.navbar__spacer {
  display: block;
  width: 4rem;
}

.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 0.8rem 2rem 2rem;
  background: #0f2246;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.28);
  z-index: 10;
}

.navbar__mobile-menu.active {
  display: flex;
}

.navbar__mobile-link {
  padding: 1.4rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 236, 0.92);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
}

.navbar__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 1.3rem 2.2rem;
  background: linear-gradient(135deg, #f4bb3e, #e3960f);
  border-radius: 999px;
  color: #122548;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 860px) {
  .navbar__container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1.2rem;
    height: 8rem;
    padding: 0 2rem;
  }

  .navbar__toggle,
  .navbar__spacer {
    display: none;
  }

  .navbar__menu {
    display: flex;
    grid-column: 1;
    justify-self: start;
    gap: 1.6rem;
    margin-left: -1rem;
  }

  .navbar__link {
    font-size: 1.3rem;
  }

  .navbar__cta {
    display: flex;
    grid-column: 3;
    justify-self: end;
    padding: 1rem 1.8rem;
    font-size: 1.3rem;
  }

  .navbar__logo {
    position: static;
    top: auto;
    left: auto;
    grid-column: 2;
    justify-self: center;
    transform: none;
    padding: 0.7rem 2rem;
  }

  .navbar__logo-img {
    width: auto;
    height: 4.6rem;
  }

  .navbar__mobile-menu {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .navbar__container {
    column-gap: 1.6rem;
    height: 9.2rem;
    padding: 0 3.2rem;
  }

  .navbar__menu {
    gap: 3.4rem;
  }

  .navbar__link {
    font-size: 1.5rem;
  }

  .navbar__cta {
    padding: 1.2rem 2.2rem;
    font-size: 1.45rem;
  }

  .navbar__logo {
    padding: 1rem 2.8rem;
  }

  .navbar__logo-img {
    height: 5.6rem;
  }
}

/* ---- css/components/badges-strip.css ---- */
@keyframes badgesStripGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes badgesStripRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badges-strip {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0a2b4c 0%, #0d3357 100%);
    overflow: hidden;
    padding: 40px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(245, 137, 46, 0.25);
    border-bottom: 1px solid rgba(245, 137, 46, 0.12);
}

.badges-strip-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245, 137, 46, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: badgesStripGlow 5s ease-in-out infinite;
}

.badges-strip-container {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px;
}

.badges-strip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 40px;
    animation: badgesStripRise 0.6s ease both;
}

.badges-strip-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.badges-strip-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5892e, #ffb066);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(245, 137, 46, 0.33);
}

.badges-strip-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.badges-strip-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #f5892e;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.badges-strip-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .badges-strip-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .badges-strip-item {
        padding: 0;
    }

    .badges-strip-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .badges-strip-glow,
    .badges-strip-item {
        animation: none;
    }
}

/* ---- css/components/services.css ---- */
.services {
  background-color: var(--color-bg-light);
  padding: var(--section-space-y) var(--section-space-x);
}

.services-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.services-header {
  text-align: left;
  margin-bottom: 3rem;
}

.services-tag {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--color-accent-text);
  display: block;
  margin-bottom: 0.8rem;
}

.services-title {
  font-size: 2.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.services-lead {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--color-text-dark);
  opacity: 0.9;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(5, 46, 85, 0.08);
  transition: all 0.25s ease-in-out;
}

.service-icon-container {
  color: var(--color-primary);
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-icon-container svg {
  width: 2.4rem;
  height: 2.4rem;
}

.card-title {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-text {
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  opacity: 0.85;
}

.services-action {
  margin-top: 3.5rem;
}

.services-link {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.2s;
}

.services-link svg {
  transition: transform 0.2s;
}

.services-link:hover {
  color: var(--color-primary-dark);
}

.services-link:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .services-header {
    margin-bottom: 5rem;
  }

  .services-title {
    font-size: 3.4rem;
  }

  .services-lead {
    font-size: 1.7rem;
    max-width: 65rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .service-card {
    padding: 3rem 2.5rem;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  }

  .service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(5, 46, 85, 0.05);
    transform: translateY(-4px);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }
}

/* ---- css/components/service-drawer.css ---- */
.services-grid .service-card:nth-child(n+5) {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.services-grid.is-expanded .service-card:nth-child(n+5) {
    display: block;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    animation: smoothDisplay 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.services-link .arrow-icon {
    transition: transform 0.3s ease;
}

.services-link.is-active .arrow-icon {
    transform: rotate(90deg);
}

@keyframes smoothDisplay {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-service-details {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-service-details:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 46, 85, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.service-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 52rem;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(5, 46, 85, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-drawer.is-open {
    right: 0;
}

.drawer-header {
    padding: 3rem 2.4rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-family: var(--font-headings);
    font-size: 2.1rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.5;
}

.btn-close-drawer {
    background: #f1f5f9;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-close-drawer:hover {
    background: #e2e8f0;
    color: var(--color-primary-dark);
}

.drawer-body {
    padding: 3rem 2.4rem;
    overflow-y: auto;
    flex: 1;
}

.drawer-subtitle {
    display: block;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }

.drawer-body p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2.5rem;
}

.drawer-body h3 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.drawer-body ul {
    list-style: none;
}

.drawer-body li {
    font-size: 1.45rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.8rem;
    position: relative;
    padding-left: 2rem;
}

.drawer-body li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* ---- css/components/transparencia.css ---- */
.transp-section {
  font-family: 'Montserrat', sans-serif;
  background: #F1EBEB;
  padding: var(--section-space-y) var(--section-space-x);
  box-sizing: border-box;
}

.transp-section * {
  box-sizing: border-box;
}

.transp-container {
  max-width: 1080px;
  margin: 0 auto;
}

.transp-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.transp-kicker-line {
  width: 28px;
  height: 3px;
  background: #F19C04;
}

.transp-kicker-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0351A1;
  text-transform: uppercase;
}

.transp-title {
  font-size: 40px;
  font-weight: 800;
  color: #052E55;
  margin: 0 0 18px 0;
  line-height: 1.15;
  max-width: 720px;
}

.transp-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #052E55;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 0 36px 0;
}

.transp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 46, 85, 0.12);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 44px;
}

.transp-badge span {
  font-size: 13.5px;
  font-weight: 600;
  color: #052E55;
}

.transp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.transp-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(5, 46, 85, 0.08);
  display: flex;
  flex-direction: column;
}

.transp-card-top {
  height: 5px;
  background: #0351A1;
}

.transp-card-header {
  padding: 26px 26px 10px 26px;
}

.transp-card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.transp-card-header-row h3 {
  font-size: 19px;
  font-weight: 700;
  color: #052E55;
  margin: 0;
}

.transp-uf {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0351A1;
  background: rgba(3, 81, 161, 0.1);
  padding: 4px 9px;
  border-radius: 5px;
}

.transp-card-subtitle {
  font-size: 13.5px;
  color: #052E55;
  opacity: 0.65;
  margin: 0 0 18px 0;
}

.transp-links {
  display: flex;
  flex-direction: column;
  padding: 0 10px 14px 10px;
}

.transp-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #052E55;
  transition: background 0.15s ease;
}

.transp-link:hover {
  background: #F1EBEB;
}

.transp-link span {
  font-size: 14.5px;
  font-weight: 500;
  flex: 1;
}

.transp-link svg {
  flex-shrink: 0;
}

.transp-footnote {
  font-size: 12.5px;
  color: #536C86;
  margin: 32px 0 0 0;
}

@media (max-width: 640px) {
  .transp-title {
    font-size: 28px !important;
  }
  .transp-intro {
    font-size: 15.5px !important;
  }
  .transp-badge {
    padding: 10px 14px !important;
  }
  .transp-badge span {
    font-size: 12.5px !important;
  }
  .transp-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- css/components/clients.css ---- */
@keyframes clientsMarqueeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes clientsMarqueeRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.clients-section {
    background-color: #F7FAFD;
    padding: var(--section-space-y) var(--section-space-x);
}

.clients-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.clients-section .section-subtitle {
    display: block;
    font-family: var(--font-headings);
    font-size: 1.68rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.44rem;
}

.clients-section .section-title {
    font-family: var(--font-headings);
    font-size: 4.16rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin: 0 0 1.76rem 0;
}

.clients-section .section-description {
    font-family: var(--font-body);
    font-size: 1.84rem;
    color: #33475B;
    max-width: 620px;
    margin: 0 auto 3.84rem auto;
    line-height: 1.6;
}

.clients-search-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 auto 4.16rem auto;
    max-width: 420px;
}

.clients-search-icon {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    opacity: 0.6;
    pointer-events: none;
}

.clients-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 1.44rem 1.92rem 1.44rem 4.64rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 46, 85, 0.15);
    font-size: 1.52rem;
    font-family: var(--font-body);
    outline: none;
    color: var(--color-primary-dark);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clients-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(3, 81, 161, 0.12);
}

.clients-match-label {
    font-family: var(--font-body);
    font-size: 1.44rem;
    color: #33475B;
    margin: 0 0 2.24rem 0;
}

.clients-empty {
    font-family: var(--font-body);
    font-size: 1.6rem;
    color: #33475B;
    padding: 3.2rem 0;
}

.clients-grid[hidden] {
    display: none;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.76rem;
    justify-content: center;
}

.clients-grid .client-card {
    width: 18rem;
}

.client-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: 14px;
    padding: 2.08rem 1.76rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.96rem;
    border: 1px solid rgba(5, 46, 85, 0.08);
    box-shadow: 0 4px 12px rgba(5, 46, 85, 0.05);
}

.client-card-badge {
    font-size: 0.992rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(3, 81, 161, 0.08);
    padding: 0.32rem 0.96rem;
    border-radius: 999px;
    font-family: var(--font-body);
}

.client-logo-wrapper {
    position: relative;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo-fallback {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EAF1FB;
    color: var(--color-primary);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.44rem;
    font-family: var(--font-body);
}

.client-name {
    font-size: 1.312rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: center;
    line-height: 1.3;
    font-family: var(--font-body);
}

.clients-marquee-row {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients-marquee-row + .clients-marquee-row {
    margin-top: 2rem;
}

.clients-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.clients-marquee-track--left {
    animation: clientsMarqueeLeft 55s linear infinite;
}

.clients-marquee-track--right {
    animation: clientsMarqueeRight 65s linear infinite;
}

.clients-marquee-track:hover {
    animation-play-state: paused;
}

.clients-marquee-track .client-card {
    flex: 0 0 auto;
    width: 16.8rem;
    padding: 1.76rem 1.6rem;
    box-shadow: 0 2px 8px rgba(5, 46, 85, 0.04);
}

.clients-marquee-track .client-name {
    font-size: 1.28rem;
}

.clients-total {
    font-family: var(--font-body);
    font-size: 1.36rem;
    color: #5F758A;
    margin: 2.88rem 0 0 0;
}

@media (max-width: 768px) {
    .clients-section .section-title {
        font-size: 2.8rem;
    }

    .clients-section .section-description {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-marquee-track {
        animation: none;
    }
}

/* ---- css/components/footer.css ---- */
.footer {
  background-color: #0f2a4d;
  color: var(--color-white);
  font-family: var(--font-body);
  position: relative;
}

.footer-top-bar {
  height: 0.3rem;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), transparent 70%);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--section-space-y) clamp(2.4rem, 5vw, 4.8rem) 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(3.2rem, 6vw, 4.8rem) clamp(4.8rem, 7vw, 9.6rem);
}

.footer-brand {
  flex: 1 1 26rem;
  min-width: 23rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1.28rem;
}

.footer-logo-img {
  width: min(100%, 27.2rem);
  height: auto;
  margin: -0.96rem 0;
}

.footer-description {
  font-size: 1.52rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 48rem;
}

.footer-nav,
.footer-contact {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: clamp(2.4rem, 3vw, 4rem);
}

.footer-nav {
  flex: 1 1 14rem;
  min-width: 14rem;
}

.footer-contact {
  flex: 1.4 1 27rem;
  min-width: 25rem;
}

.footer-title {
  font-family: var(--font-headings);
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 2.08rem 0;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 1.472rem;
  transition: color 0.2s, opacity 0.2s;
}

.footer-links-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.76rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1.44rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.472rem;
  line-height: 1.45;
}

.contact-link-item.address-link {
  align-items: flex-start;
}

.contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.36rem;
  height: 3.36rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.contact-icon {
  width: 1.68rem;
  height: 1.68rem;
  color: var(--color-accent);
}

.contact-link-item span {
  transition: opacity 0.2s;
}

.contact-link-item:hover span {
  text-decoration: underline;
}

.address-text {
  max-width: 32rem;
  display: inline-block;
}

.footer-bottom {
  margin-top: clamp(2.88rem, 5vw, 5.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.footer-bottom-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2.08rem clamp(2.4rem, 5vw, 4.8rem);
}

.footer-bottom p {
  margin: 0;
  font-size: 1.28rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ---- css/components/useful-links.css ---- */
.useful-links-section {
    padding: var(--section-space-y) var(--section-space-x);
    background-color: var(--color-bg-light);
}

.links-container {
    max-width: 120rem;
    margin: 0 auto;
}

.links-header {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto 2rem auto;
}

.links-subtitle {
    display: block;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.links-header h2 {
    font-family: var(--font-headings);
    font-size: 3.2rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.links-header p {
    font-size: 1.6rem;
    color: #5D6C81;
    line-height: 1.6;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    gap: 2rem;
}

.link-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(3, 81, 161, 0.3);
    box-shadow: 0 10px 25px rgba(5, 46, 85, 0.05);
}

.link-icon-wrapper {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 8px;
    background-color: rgba(3, 81, 161, 0.06);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon-wrapper svg {
    width: 2.2rem;
    height: 2.2rem;
}

.link-content h3 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.link-content span {
    font-size: 1.3rem;
    color: #64748b;
}

.external-icon {
    width: 1.6rem;
    height: 1.6rem;
    color: #94a3b8;
    margin-left: auto;
    transition: color 0.2s, transform 0.2s;
}

.link-card:hover .external-icon {
    color: var(--color-accent);
    transform: translate(2px, -2px);
}

/* ---- css/utilities/tooltip.css ---- */
.link-card .tooltip-box {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 28rem;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    line-height: 1.5;
    box-shadow: 0 10px 20px rgba(5, 46, 85, 0.2);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.link-card .tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-primary-dark) transparent transparent transparent;
}

.link-card .tooltip-box strong {
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.4rem;
}

.link-card:hover .tooltip-box {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .link-card .tooltip-box {
        display: none !important;
    }

    .links-header h2 {
        font-size: 2.6rem;
    }
}

/* ---- css/utilities/accessibility.css ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- css/components/news-carousel.css ---- */
.news-carousel-section {
    background-color: var(--color-white);
    padding: var(--section-space-y) var(--section-space-x);
}

.news-intro {
    max-width: 1100px;
    margin: 0 auto 3rem auto;
}

.news-intro-tag {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--color-accent-text);
    display: block;
    margin-bottom: 0.8rem;
}

.news-intro-title {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.25;
}

.news-carousels-row {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.news-carousel-block {
    min-width: 0;
    flex: 1 1 0;
}

.carousel-block-title {
    margin: 0 0 1.5rem 0;
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.carousel-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 46, 85, 0.1);
}

.carousel-container.carousel-empty .carousel-btn {
    display: none;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

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

.carousel-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 52rem;
    background-color: var(--color-primary-dark);
}

/* Reserves the same height the loaded carousel will occupy so the
   loading/error state doesn't cause a layout shift once the news
   fetch resolves and swaps the placeholder for real slides. */
.carousel-track {
    min-height: 52rem;
}

.carousel-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 3rem;
    background: linear-gradient(to top, rgba(5, 46, 85, 0.95) 0%, rgba(5, 46, 85, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide-title {
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 2.4rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.carousel-slide-link:hover .slide-title {
    color: var(--color-accent);
}

.slide-caption-text {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 800px;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s, opacity 0.25s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 2rem; }
.carousel-btn.next { right: 2rem; }

/* Only hide-until-hover on devices with a real mouse: touchscreens have no
   hover, so the buttons must stay visible there or they'd be undiscoverable. */
@media (hover: hover) and (pointer: fine) {
    .carousel-btn {
        opacity: 0;
    }

    .carousel-container:hover .carousel-btn,
    .carousel-btn:focus-visible {
        opacity: 1;
    }
}

@media (min-width: 1000px) {
    .news-carousels-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .carousel-image-container { height: 34rem; }
    .carousel-track { min-height: 34rem; }
    .slide-title { font-size: 2rem; }
    .carousel-caption-overlay { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .carousel-image-container { height: 400px; }
    .carousel-track { min-height: 400px; }
    .slide-title { font-size: 1.8rem; }
    .slide-caption-text { display: none; }
    .carousel-caption-overlay { padding: 2rem 1.5rem; }
    .carousel-btn { width: 35px; height: 35px; font-size: 1.4rem; }
    .carousel-block-title { font-size: 1.7rem; padding: 0 0.5rem; }
    .news-intro { padding: 0 0.5rem; }
    .news-intro-title { font-size: 2rem; }
}

.loading-text,
.feed-message {
    padding: 4rem 2rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--color-text-dark);
}

.carousel-container:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.carousel-btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.carousel-slide-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}
