/* ============================================================
   Footer — საერთო ყველა გვერდისთვის (arch v2 §I.2)
   მუქი ფონი, თეთრი ტექსტი, წითელი მხოლოდ hover-სა და
   ერთ "underline"-ზე.
   ============================================================ */

.site-footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 0;
  border-top: 1px solid var(--ink-3);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
}

@media (max-width: 1023.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }
}

/* ---- Brand column ---- */
.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand__logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand__tagline {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 32ch;
  margin-bottom: 24px;
}

.footer-brand__socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-brand__socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.footer-brand__socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-brand__socials svg { width: 14px; height: 14px; }

/* ---- Link columns ---- */
.footer-col__heading {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  font-size: var(--fs-14);
  line-height: 1.4;
}

/* ---- Contact column ---- */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--fs-14);
  line-height: 1.5;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- Bottom bar ---- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-13);
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.footer-bottom__links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom__links a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom__links a:hover { color: var(--white); }

.footer-bottom__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 575.98px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0;
  }
}


/* ============================================================
   Footer affiliates strip — Partners + Memberships (2-col)
   Sits ABOVE the main footer-grid. Logos on white cards for
   readability against dark footer.
   ============================================================ */

.footer-affiliates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--ink-3);
}

@media (max-width: 1023.98px) {
  .footer-affiliates {
    gap: 32px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
}

@media (max-width: 767.98px) {
  .footer-affiliates {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-affiliates__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Head wrapper becomes transparent in layout —
   children (label + "ყველას ნახვა") become direct flex children
   of __col, so we can reorder them with `order`. */
.footer-affiliates__head {
  display: contents;
}

.footer-affiliates__label {
  order: 1;
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Logo row — middle */
.footer-affiliates__logos {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

/* "ყველას ნახვა" — bottom, anchored to its content (no full-width) */
.footer-affiliates__more {
  order: 3;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.footer-affiliates__more svg {
  width: 12px;
  height: 12px;
  transition: transform var(--dur) var(--ease);
}

.footer-affiliates__more:hover {
  color: var(--red);
}

.footer-affiliates__more:hover svg {
  transform: translateX(3px);
}


/* ---- Individual logo card — white bg for readability on dark footer ---- */
.footer-affiliates__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 72px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--r-3);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

a.footer-affiliates__logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.footer-affiliates__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 575.98px) {
  .footer-affiliates__logo {
    width: 104px;
    height: 64px;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.footer-affiliates__logo:hover { transform: none; }
  .footer-affiliates__more:hover svg { transform: none; }
}
