/* ==========================================================
   FOOTER — 2 COLUMNS 
========================================================== */

.site-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;

  background: linear-gradient(
    90deg,
    var(--color-dark),
    var(--color-primary),
    var(--color-secondary)
  );

  border-top: 6px solid var(--color-dark);
  color: #ffffff;
  padding: 0.4rem 0;
}

/* ==================================================
   FOOTER TYPOGRAPHY — FORCE CONSISTENCY
================================================== */

.site-footer,
.site-footer * {
  font-family: "Inter", sans-serif;
  font-style: normal;
  letter-spacing: 0.2px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ==================================================
   FOOTER LAYOUT — 2 COLUMNS (LEFT / RIGHT)
================================================== */

.footer-2col {
  width: 100%;
  display: flex;
  justify-content: space-between; /* 🔑 left + right */
  align-items: flex-start;
  gap: 2rem;
}

/* Column base */
.footer-col-left,
.footer-col-right {
  min-width: 0;
}

/* LEFT column — flush left, compact vertical rhythm */
.footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
}

/* RIGHT column */
.footer-col-right {
  text-align: right;
}

.legal-block {
  margin: 0;
}

/* Headings */
.footer-heading {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

/* Paragraphs: remove extra spacing */
.legal-block p {
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

/* Links */
.footer-policy a {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}

.footer-policy a:hover,
.footer-policy a:focus-visible {
  color: #FFD700;
  font-weight: 700;
  text-decoration: underline;
  outline: none;
}

/* ==========================================================
   SOCIAL ICONS — single row, left aligned
========================================================== */

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 8px rgba(255,255,255,0.55);
  outline: none;
}

/* ==========================================================
   QUICK ACTIONS — single row, left aligned
========================================================== */

.footer-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.footer-buttons .icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.35);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-buttons .icon-btn:hover,
.footer-buttons .icon-btn:focus-visible {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 8px rgba(255,255,255,0.55);
  outline: none;
}

/* Ensure SVG fits */
.site-footer svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social a,
.footer-buttons .icon-btn {
  color: #ffffff;
}

/* Tooltip label (optional; keep minimal height impact) */
.footer-buttons .icon-btn::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(-2px);
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.footer-buttons .icon-btn:hover::after,
.footer-buttons .icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   POLICY LINKS — single row, left aligned (wrap if needed)
   Divider is BORDER-based (silent to JAWS)
========================================================== */

.footer-policy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem; /* tighter horizontal spacing */
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}

@media (min-width: 600px) {
  .footer-policy a:not(:last-child) {
    padding-right: 0.45rem;
    margin-right: 0.45rem;
    border-right: 1px solid rgba(255,255,255,0.45);
  }
}

/* ==========================================================
   COPYRIGHT and version# — ALWAYS bottom, centered
========================================================== */
.footer-centre {
  width: 100%;
  padding: 0.4rem 2.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔑 exact horizontal centering */
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.95;
  white-space: nowrap;   /* keep on one line */
}

.footer-version {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ========================================================== 
   MOBILE — stack columns, keep clean
========================================================== */

@media (max-width: 768px) {
  .footer-2col {
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
  }

  .footer-col-left,
  .footer-col-right {
    text-align: center;
    align-items: center;
  }

  .footer-social,
  .footer-buttons,
  .footer-policy {
    justify-content: center;
  }

  .footer-centre {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
  }

  .footer-copy {
    max-width: 100%;
  width: 100%;         
    white-space: normal;   /* 🔑 allow wrapping */
  }
}

/* ==========================================================
   Footer text color fix (TEXT ONLY – icons excluded)
========================================================== */
/* Text elements only */
.site-footer,
.site-footer p,
.site-footer span,
.site-footer strong,
.site-footer h3,
.site-footer li {
  color: #ffffff;
}

/* Footer links (text links only) */
.site-footer a {
  color: #ffffff;
}

/* to hide the content from visual user and only readable by screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Global safe list reset */
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* end of footer */

