/* =========================================================
   COMPONENT — Site footer (docs/sections/footer.md)
   Loaded on every page (templates/layout/header.php).
   ========================================================= */

.site-footer { color: var(--color-white); }

.site-footer__inner {
  max-width: 1240px;    /* design content x 100–1340 at 1440 */
  margin: 0 auto;
}

/* ---------- Main ---------- */
.site-footer__main {
  padding: 78px 0 80px;
  background: var(--color-royal);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 300fr 170fr 170fr 290fr 250fr;   /* About, 2 short link columns, 2 columns with long tour names */
  column-gap: 24px;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  color: var(--color-white);
}
/* Logo at the top of the first column (as on the old site footer) */
.site-footer__logo { display: inline-block; margin: 0 0 18px; }
.site-footer__logo img {
  width: 160px;
  height: 60px;
  object-fit: contain;   /* same size as the header logo; 86×30 source — an SVG/@2x logo would be sharper */
  object-position: left center;
}
.site-footer__logo:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; border-radius: 6px; }

.site-footer__text {
  max-width: 300px;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, .85);
}

.site-footer__social {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--color-navy-deep);
  color: var(--color-white);
  transition: background-color .2s ease, color .2s ease;
}
.social-link:hover { background: var(--color-white); color: var(--color-royal); }

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links li + li { margin-top: 10px; }
.site-footer__links a {
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, .85);
  transition: color .2s ease;
}
.site-footer__links a:hover { color: var(--color-yellow); }

.site-footer a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* ---------- Bottom bar ---------- */
.site-footer__bottom {
  background: var(--color-navy-deep);
}
.site-footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px 0;
}
.site-footer__copy,
.site-footer__credit {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, .85);
}

/* "Powered by Horain Tourism L.L.C" in the centre of the bar */
.site-footer__powered { margin: 0; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .85); text-align: center; }
.site-footer__powered strong { color: var(--color-white); font-weight: 600; }

/* Developer credit: "Design and developed by [logo] TechishSol (Pvt) Ltd" */
.site-footer__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 8px;
}
.site-footer__credit-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  font-weight: 600;
  white-space: nowrap;
}
.site-footer__credit-brand img { width: 23px; height: 24px; }   /* 56×58 source → sharp on retina */
a.site-footer__credit-brand:hover { color: var(--color-yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .site-footer__about { grid-column: 1 / -1; }
  .site-footer__text { max-width: 460px; }
}
@media (max-width: 767.98px) {
  .site-footer__main { padding: 56px 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; }
  .site-footer__bar { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 0; }
  .site-footer__credit { justify-content: center; }
}
