/* ===== Global Footer ===== */
.site-footer {
  font-family: "Open Sans", Arial, sans-serif;
  color: #fff;
}

.footer-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Main area ---- */
.footer-main {
  padding: 30px 0 22px;
  border-top: 4px solid #555;
  /* Subtle vertical stripes like the live site */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 4px),
    #2b2b2b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 320px 200px 240px 1fr;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Facebook box */
.fb-box {
  width: 242px;
  max-width: 100%;
  border: 1px solid #fff;
  background: #fff;
  line-height: 0;
}

.fb-box iframe {
  width: 100%;
  max-width: 240px;
  border: 0;
  overflow: hidden;
}

/* Links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 13px;
}

.footer-links li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aaa;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s, padding 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #00a2e8;
  padding-left: 3px;
}

/* Social */
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social li {
  margin-bottom: 22px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.2s;
}

.footer-social__icon svg {
  width: 18px;
  height: 18px;
  fill: #2b2b2b;
  transition: fill 0.2s;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #00a2e8;
}

.footer-social a:hover .footer-social__icon,
.footer-social a:focus-visible .footer-social__icon {
  background: #00a2e8;
}

.footer-social a:hover svg,
.footer-social a:focus-visible svg {
  fill: #fff;
}

/* Stats */
.footer-stats {
  margin: 0;
  max-width: 190px;
}

.footer-stats div {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-left: 12px;
  margin-bottom: 11px;
  font-size: 13px;
}

.footer-stats div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aaa;
}

.footer-stats dt,
.footer-stats dd {
  margin: 0;
}

/* ---- Bottom bar ---- */
.footer-bottom {
  background: #1d1d1d;
  font-size: 13px;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #00a2e8;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #00a2e8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: #0088c4;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
