/* Royal Routes — modern professional footer */

.main-footer--rr {
  --rr-footer-bg: #0f1f3a;
  --rr-footer-bg-elevated: #152a4a;
  --rr-footer-border: rgba(255, 255, 255, 0.1);
  --rr-footer-text: rgba(255, 255, 255, 0.78);
  --rr-footer-text-muted: rgba(255, 255, 255, 0.55);
  --rr-footer-heading: #ffffff;
  --rr-footer-accent: #f4b400;
  --rr-footer-accent-soft: rgba(244, 180, 0, 0.15);
  --rr-footer-link-hover: #ffffff;
  background: linear-gradient(180deg, var(--rr-footer-bg) 0%, #0a1528 100%);
}

.main-footer--rr .main-footer__top__inner {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom-color: var(--rr-footer-border);
  gap: 2rem;
}

.rr-footer-top__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 280px;
}

.main-footer--rr .footer-widget__logo {
  margin-bottom: 0;
}

.main-footer--rr .footer-widget__logo img {
  max-height: 88px !important;
  width: auto !important;
  margin: 0 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.rr-footer-top__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rr-footer-text-muted);
  letter-spacing: 0.02em;
}

.rr-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.rr-footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 200px;
  max-width: 260px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--rr-footer-bg-elevated);
  border: 1px solid var(--rr-footer-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 992px) {
  .main-footer--rr .rr-footer-top__inner {
    align-items: center;
  }

  .rr-footer-contact {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    max-width: calc(100% - 300px);
  }

  .rr-footer-contact__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .rr-footer-contact__item--hours {
    flex: 1.1 1 0;
  }

  .rr-footer-contact__value {
    white-space: nowrap;
    font-size: 0.8125rem;
  }
}

.rr-footer-contact__item:hover {
  border-color: rgba(244, 180, 0, 0.35);
  transform: translateY(-2px);
}

.rr-footer-contact__value {
  white-space: nowrap;
}

.main-footer--rr .footer-widget__list__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--rr-footer-accent-soft);
  color: var(--rr-footer-accent);
  font-size: 1.1rem;
}

.main-footer--rr .footer-widget__list__subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-footer-text-muted);
  margin-bottom: 0.2rem;
}

.main-footer--rr .footer-widget__list__content a,
.main-footer--rr .footer-widget__list__content p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rr-footer-heading);
  line-height: 1.4;
}

.main-footer--rr .footer-widget__list__content a:hover {
  color: var(--rr-footer-accent);
}

/* Widget columns */
.main-footer--rr .main-footer__middle {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.main-footer--rr .footer-widget__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.main-footer--rr .footer-widget__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rr-footer-accent), transparent);
}

.main-footer--rr .footer-widget__about-text,
.main-footer--rr .footer-widget__contact-text {
  color: var(--rr-footer-text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.rr-footer-address {
  font-style: normal;
  margin: 0;
}

.rr-footer-address a {
  color: var(--rr-footer-text);
  font-size: 0.92rem;
  line-height: 1.75;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rr-footer-address a:hover {
  color: var(--rr-footer-accent);
}

.rr-footer-links li + li {
  margin-top: 0.55rem;
}

.rr-footer-links a {
  color: var(--rr-footer-text);
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rr-footer-links a::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--rr-footer-accent);
  transition: width 0.2s ease;
}

.rr-footer-links a:hover {
  color: var(--rr-footer-link-hover);
  padding-left: 4px;
}

.rr-footer-links a:hover::before {
  width: 8px;
}

/* Social */
.rr-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rr-footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rr-footer-border);
  color: var(--rr-footer-heading);
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rr-footer-social a:hover {
  background: var(--rr-footer-accent);
  border-color: var(--rr-footer-accent);
  color: var(--rr-footer-bg);
  transform: translateY(-2px);
}

.rr-footer-pay-icons img {
  max-width: 100%;
  height: auto;
  opacity: 0.92;
  filter: brightness(1.1);
}

/* Legal strip */
.rr-footer-legal-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rr-footer-border);
}

.rr-footer-legal {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.rr-footer-legal__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 2.5rem;
  align-items: start;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rr-footer-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rr-footer-legal__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rr-footer-accent);
}

.rr-footer-legal__intro,
.rr-footer-legal__agent,
.rr-footer-legal__note {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--rr-footer-text);
}

.rr-footer-legal__intro strong,
.rr-footer-legal__agent strong {
  color: var(--rr-footer-heading);
  font-weight: 600;
}

.rr-footer-legal__note {
  margin-bottom: 0;
}

.rr-footer-legal a {
  color: var(--rr-footer-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rr-footer-legal a:hover {
  color: #fff;
}

.rr-footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.rr-trust-badge {
  min-width: 88px;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rr-footer-border);
}

.rr-trust-badge__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rr-footer-text-muted);
  margin-bottom: 0.2rem;
}

.rr-trust-badge__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rr-footer-heading);
  line-height: 1.2;
}

.rr-footer-legal__trust-caption {
  margin: 0.85rem 0 0;
  max-width: 280px;
  margin-left: auto;
  text-align: right;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--rr-footer-text-muted);
}

/* Bottom bar */
.main-footer--rr .main-footer__bottom {
  background: linear-gradient(90deg, #123a73 0%, #1a4d8f 50%, #123a73 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rr-footer-bottom__inner {
  gap: 1rem;
}

.main-footer--rr .main-footer__copyright {
  font-size: 0.875rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.rr-footer-bottom__credit {
  display: inline-block;
  margin-left: 0.35rem;
  opacity: 0.65;
}

.main-footer--rr .rr-footer-scroll-top .scroll-to-top__wrapper {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-footer--rr .rr-footer-scroll-top:hover .scroll-to-top__wrapper {
  background: var(--rr-footer-accent);
  border-color: var(--rr-footer-accent);
  color: var(--rr-footer-bg);
  transform: translateY(-3px);
}

/* About page promise (unchanged scope) */
.rr-about-promise {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.rr-about-promise__inner {
  max-width: 820px;
  margin: 0 auto;
}

.rr-about-promise__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(18, 58, 115, 0.88);
  margin: 0;
}

@media (max-width: 991px) {
  .rr-footer-top__inner {
    flex-direction: column;
    align-items: stretch !important;
  }

  .rr-footer-contact {
    width: 100%;
  }

  .rr-footer-contact__item {
    max-width: none;
  }

  .rr-footer-contact {
    flex-wrap: wrap;
    max-width: none;
  }

  .rr-footer-contact__item {
    flex: 1 1 100%;
    max-width: none;
  }

  .rr-footer-contact__value {
    white-space: normal;
  }

  .rr-footer-legal__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rr-footer-trust-badges {
    justify-content: flex-start;
  }

  .rr-footer-legal__trust-caption {
    margin-left: 0;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 575px) {
  .main-footer--rr .main-footer__top__inner {
    padding-top: 2.5rem;
    padding-bottom: 1.75rem;
  }

  .rr-footer-legal__inner {
    padding: 1.25rem;
  }

  .rr-trust-badge {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }

  .rr-footer-bottom__credit {
    display: block;
    margin: 0.25rem 0 0;
  }
}
