/* Renovate sitewide footer — matches renovate.pk layout */

.rn-footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 0;
}

.rn-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.rn-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr 1fr;
  gap: 40px 36px;
  align-items: start;
}

.rn-footer__logo {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.rn-footer__logo-img {
  display: block;
  max-height: 42px;
  width: auto;
  height: auto;
}

.rn-footer__logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #374151;
  text-transform: uppercase;
}

.rn-footer__about {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.rn-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rn-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #154181;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.rn-footer__social-link:hover {
  background: #0f3266;
  color: #fff !important;
}

.rn-footer__heading {
  margin: 0 0 18px;
  color: #154181 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3 !important;
}

.rn-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rn-footer__list li {
  margin: 0 0 10px;
}

.rn-footer__list a {
  color: #4b5563 !important;
  text-decoration: none !important;
  font-size: 14px;
}

.rn-footer__list a:hover {
  color: #154181 !important;
}

.rn-footer__place {
  margin: 0 0 18px;
}

.rn-footer__place:last-child {
  margin-bottom: 0;
}

.rn-footer__address,
.rn-footer__meta {
  margin: 0 0 4px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.rn-footer__meta a,
.rn-footer__map-link {
  color: #4b5563 !important;
  text-decoration: none !important;
}

.rn-footer__meta a:hover,
.rn-footer__map-link:hover {
  color: #154181 !important;
}

.rn-footer__sep {
  color: #9ca3af;
}

.rn-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.rn-footer__bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

/* Hide leftover Astra copyright if any still prints */
.site-below-footer-wrap .ast-footer-copyright {
  display: none !important;
}

@media (max-width: 991px) {
  .rn-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .rn-footer__brand {
    grid-column: 1 / -1;
  }

  .rn-footer__about {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .rn-footer__inner {
    padding: 40px 18px 24px;
  }

  .rn-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rn-footer__brand {
    grid-column: auto;
  }
}

/* Bottom sticky nav — all pages mobile */
@media (max-width: 921px) {
  .rn-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }

  .rn-mobile-nav__item {
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: #6b7280 !important;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    font-family: inherit;
  }

  .rn-mobile-nav__item.is-active,
  .rn-mobile-nav__item:active {
    color: #154181 !important;
  }

  .rn-mobile-nav__icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .rn-mobile-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #154181;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .visitor-sticky-button,
  #visitorCounter,
  #chaty-widget-0,
  .chaty-widget,
  .chaty-i-trigger,
  .chaty-widget-css,
  #ast-scroll-top {
    display: none !important;
  }
}

@media (min-width: 922px) {
  .rn-mobile-nav {
    display: none !important;
  }
}
