/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  background: var(--dark);
  color: var(--footer-link);
  padding: 44px 0 0;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  /* last column sized so the contact email never breaks mid-word */
  grid-template-columns: 1.35fr repeat(4, 1fr) 1.6fr;
  gap: 30px;
  padding-bottom: 34px;
}

/* colour handled by .logo--dark in 02-header.css */
.footer__tag {
  margin: 12px 0 18px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--footer-link);
  max-width: 190px;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dark-2);
  color: var(--white);
  transition: background-color .18s ease;
}
.socials a:hover { background: var(--pink); }
.socials svg { width: 15px; height: 15px; }

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--footer-head);
  margin-bottom: 14px;
}

.footer__links { display: grid; gap: 9px; }
.footer__links a {
  font-size: var(--fs-xs);
  color: var(--footer-link);
  transition: color .16s ease;
}
.footer__links a:hover { color: var(--white); }

.footer__contact { display: grid; gap: 11px; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  color: var(--footer-link);
}
.footer__contact svg { width: 14px; height: 14px; flex: none; color: var(--white); }
.footer__contact a {
  color: inherit;
  overflow-wrap: break-word;   /* only breaks if it genuinely cannot fit */
  transition: color .16s ease;
}
.footer__contact a:hover { color: var(--white); }

.footer__qr {
  position: absolute;
  right: 30px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  color: var(--footer-link);
  opacity: .55;
}

.footer__bar {
  border-top: 1px solid var(--footer-rule);
  padding: 16px 0 18px;
  text-align: center;
  font-size: var(--fs-xs);
  color: #8E8E8E;
}

/* Hidden until js/app.js confirms a real count back from the server - never shows a
   placeholder/fake number, and stays hidden entirely if the request fails. */
.footer__visits {
  display: none;
  margin-top: 4px;
  opacity: .8;
}
.footer__visits.is-visible { display: block; }
.footer__visits strong { color: #B8B8B8; font-weight: 700; }

/* separator column rules, as in the reference */
.footer__grid > * + * { position: relative; }
.footer__grid > .footer__col:first-of-type::before {
  content: "";
  position: absolute;
  left: -15px; top: 2px; bottom: 2px;
  width: 1px;
  background: var(--footer-rule);
}
