/* ==========================================================================
   FOOTER — Figma node 4:941
   Background #003e52 · logo + tagline left · nav + copyright right
   ISO 20252 bar at the bottom
   ========================================================================== */

.cap-footer {
  background-color: #003e52;
  padding: 0;
}

/* ── Main row ──────────────────────────────────────────────── */

.cap-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* ── Brand (left) ─────────────────────────────────────────── */

.cap-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.cap-footer__brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cap-footer__logo {
  display: block;
  line-height: 0;
}

#wrapper-footer .cap-navbar-afaq-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cap-footer__logo img,
.cap-footer__logo .custom-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* Remove default custom-logo-link styling */
.cap-footer__logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.cap-footer__tagline {
  font-size: 14px;
  line-height: 1.625;
  color: #a8c8d8;
  margin: 0;
}

/* ── Right column ─────────────────────────────────────────── */

.cap-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* ── Navigation ───────────────────────────────────────────── */

.cap-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Override Bootstrap/Understrap nav defaults */
.cap-footer__nav-list li,
.cap-footer__nav-list .nav-item {
  padding: 0;
  margin: 0;
}

.cap-footer__nav-list a,
.cap-footer__nav-list .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #c8dde8 !important;
  text-decoration: none;
  line-height: 1.4;
  padding: 0 !important;
  transition: color 0.2s ease;
  display: inline;
}

.cap-footer__nav-list a:hover,
.cap-footer__nav-list .nav-link:hover {
  color: #ffffff !important;
}

/* ── Copyright ────────────────────────────────────────────── */

.cap-footer__copy {
  font-size: 14px;
  color: #6e99ad;
  margin: 0;
  line-height: 1.4;
  text-align: right;
}

/* ── ISO bar ──────────────────────────────────────────────── */

.cap-footer__iso-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  text-align: center;
}

.cap-footer__iso-text {
  font-size: 12px;
  color: #5a8899;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 768px) {
  .cap-footer__main {
    flex-direction: column;
    gap: 32px;
    padding: 40px 16px 32px;
  }

  .cap-footer__brand {
    max-width: 100%;
  }

  .cap-footer__right {
    align-items: flex-start;
    width: 100%;
  }

  .cap-footer__nav-list {
    justify-content: flex-start;
    gap: 20px;
  }

  .cap-footer__copy {
    text-align: left;
  }

  .cap-footer__iso-bar {
    padding: 16px;
  }
}
