/* ==========================================================================
   SkyAirways - Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Footer Shell
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--rb-footer-bg);
  color: var(--rb-footer-text);
  padding-top: 48px;
  padding-bottom: 32px;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 64px;
  }
}

/* --------------------------------------------------------------------------
   Footer Grid
   -------------------------------------------------------------------------- */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

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

@media (min-width: 1440px) {
  .footer__grid {
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Footer Columns
   -------------------------------------------------------------------------- */
.footer__col-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .footer__col-heading {
  color: var(--rb-footer-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--rb-footer-text);
  transition: color var(--rb-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__link:hover {
  color: var(--rb-gold);
}

.footer__link:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Social Media Icons
   -------------------------------------------------------------------------- */
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rb-footer-text);
  transition: background-color var(--rb-transition), color var(--rb-transition),
    transform var(--rb-transition);
}

.footer__social-link:hover {
  background: var(--rb-gold);
  color: var(--rb-navy);
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 2px;
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Language Selector (Footer)
   -------------------------------------------------------------------------- */
.footer__lang {
  margin-top: 16px;
}

.footer__lang-select {
  appearance: none;
  padding: 8px 36px 8px 12px;
  font-size: 0.8125rem;
  color: var(--rb-footer-text);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rb-radius);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--rb-transition);
}

.footer__lang-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.footer__lang-select:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 2px;
}

.footer__lang-select option {
  background-color: var(--rb-footer-bg);
  color: var(--rb-footer-text);
}

/* --------------------------------------------------------------------------
   Divider + Copyright
   -------------------------------------------------------------------------- */
.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--rb-footer-text);
  opacity: 0.7;
}

.footer__powered {
  font-size: 0.8125rem;
  color: var(--rb-footer-text);
}

.footer__powered a {
  color: var(--rb-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--rb-transition);
}

.footer__powered a:hover {
  color: var(--rb-yellow-hover);
  text-decoration: underline;
}

.footer__powered a:focus-visible {
  outline: 2px solid var(--rb-yellow);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .footer__social-link:hover {
    transform: none;
  }

  .footer__social-link,
  .footer__link,
  .footer__lang-select,
  .footer__powered a {
    transition: none;
  }
}
