/**
 * საიტის ფუტერი — skins/layouts/footer.php (footer.gafa-footer)
 * იტვირთება ყველა გვერდზე (header.php). ძველი .site-footer / .social-links სტილები აქ არ მოქმედებს.
 */

.gafa-footer {
  --gf-bg: #0a192f;
  --gf-bg-2: #0f2240;
  --gf-text: #a8b2d1;
  --gf-muted: #6b7a99;
  --gf-white: #fff;
  --gf-teal: #00d4ff;
  --gf-green: #00ff88;
  --gf-line: rgba(255, 255, 255, .08);

  position: relative;
  margin-top: 0;
  color: var(--gf-text);
  font-family: var(--ff-body, "FiraGO", sans-serif);
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(0, 212, 255, .10) 0%, transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(0, 255, 136, .06) 0%, transparent 60%),
    linear-gradient(180deg, var(--gf-bg-2) 0%, var(--gf-bg) 100%);
  overflow: hidden;
}
.gafa-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gf-teal), var(--gf-green));
}

.gafa-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gafa-footer a { text-decoration: none; }

.gf-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ზედა ნაწილი ---------- */
.gf-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}

.gf-logo {
  display: inline-block;
  transition: opacity .2s;
}
.gf-logo:hover { opacity: .85; }
.gf-logo img {
  display: block;
  width: 150px;
  height: auto;
}
.gf-tagline {
  max-width: 320px;
  margin: 14px 0 0;
  color: var(--gf-text);
  font-size: 14px;
}

.gf-col__title {
  margin: 0 0 14px;
  font-family: var(--ff-heading, "BPG ExtraSquare Mtavruli", sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--gf-white);
}

.gf-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gf-links a {
  position: relative;
  display: inline-block;
  color: var(--gf-text);
  font-size: 14px;
  transition: color .15s, transform .15s;
}
.gf-links a:hover,
.gf-links a:focus-visible {
  color: var(--gf-teal);
  transform: translateX(3px);
}

.gf-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gf-social a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gf-text);
  font-size: 14px;
  transition: color .15s;
}
.gf-social i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--gf-line);
  color: var(--gf-white);
  font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.gf-social a:hover,
.gf-social a:focus-visible { color: var(--gf-white); }
.gf-social a:hover i,
.gf-social a:focus-visible i {
  background: var(--gf-teal);
  border-color: var(--gf-teal);
  color: var(--gf-bg);
  transform: translateY(-2px);
}

.gafa-footer a:focus-visible {
  outline: 2px solid var(--gf-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ქვედა ზოლი ---------- */
.gf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--gf-line);
  font-size: 13px;
  color: var(--gf-muted);
}
.gf-bottom p { margin: 0; }
.gf-bottom a {
  color: var(--gf-teal);
  font-weight: 500;
}
.gf-bottom a:hover { color: var(--gf-green); }

/* ---------- მობილური: ბრენდი ზემოთ, ბმულები ორ სვეტად, სოციალური — აიქონების რიგი ---------- */
@media (max-width: 639px) {
  .gf-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 36px 0 28px;
  }
  .gf-brand,
  .gf-col--social { grid-column: 1 / -1; }
  .gf-logo img { width: 128px; }
  .gf-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .gf-social span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .gf-social i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
  }
  .gf-links { gap: 12px; }
  .gf-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }
}

/* ---------- ტაბლეტი ---------- */
@media (min-width: 640px) and (max-width: 991px) {
  .gf-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gf-brand { grid-column: 1 / -1; }
}

/* ---------- დესკტოპი ---------- */
@media (min-width: 992px) {
  .gf-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 44px;
  }
}

/* ---------- „ზემოთ" ღილაკი (skins/template.php, #back2Top) — ფუტერის სტილში ---------- */
html body #back2Top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, .5);
  border-radius: 50%;
  background: rgba(10, 25, 47, .85);
  color: #00d4ff;
  font-size: 16px;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  transform: rotate(-90deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
html body #back2Top:hover {
  background: #00d4ff;
  color: #0a192f;
  box-shadow: 0 8px 24px rgba(0, 212, 255, .4);
}
@media (max-width: 639px) {
  html body #back2Top { right: 14px; bottom: 14px; width: 42px; height: 42px; line-height: 40px; }
}
