/*
 * Footer Section
 * Tekvera Initiative Theme
 */

.tv-footer {
  background-color: #06301b;
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.tv-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-footer__logo-link img {
  height: clamp(48px, 6vw, 65px);
  width: auto;
  max-width: 100%;
  margin-bottom: 15px;
}

/* Brand column */
.tv-footer__brand-name {
  font-family: var(--tv-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tv-white);
  display: block;
  margin-bottom: 0.2rem;
}

.tv-footer__brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: var(--tv-tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 1.35rem;
}

.tv-footer__brand-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.49);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 280px;
}

.tv-footer__address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.8;
  font-style: normal;
}

.tv-footer__address a {
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--tv-duration-fast);
  text-decoration: none;
}

.tv-footer__address a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Nav columns */
.tv-footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tv-tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 1.25rem;
  display: block;
}

.tv-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.tv-footer__col-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--tv-duration-fast);
  text-decoration: none;
}

.tv-footer__col-links a:hover {
  color: var(--tv-white);
}
.tv-footer__col-links a.is-current {
  color: var(--tv-green-300);
}

/* Social icons */
.tv-footer__socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tv-footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.44);
  transition:
    background-color var(--tv-duration-fast),
    border-color var(--tv-duration-fast),
    color var(--tv-duration-fast);
  text-decoration: none;
}

.tv-footer__social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--tv-white);
}

.tv-footer__social svg {
  width: 15px;
  height: 15px;
}

/* Bottom bar */
.tv-footer__bottom {
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  gap: 1rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tv-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .tv-footer {
    padding-top: 3rem;
  }
  .tv-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding-bottom: 2.5rem;
  }
  /* Brand column spans the full row above the nav columns */
  .tv-footer__brand {
    grid-column: 1 / -1;
  }
  /* Last column (Follow us / socials) spans full width below the 2 nav cols */
  .tv-footer__grid > .tv-footer__col:last-child {
    grid-column: 1 / -1;
  }
  /* Let the brand description fill the column on mobile */
  .tv-footer__brand-desc {
    max-width: 100%;
  }
  .tv-footer__bottom {
    padding: 1.1rem 0;
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}

@media (max-width: 420px) {
  .tv-footer__bottom {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.22);
  }
  .tv-footer__col-links a,
  .tv-footer__brand-desc {
    font-size: 0.98rem;
  }
}
