﻿

.site-footer {
  background-color: var(--clr-dark);
  color: var(--clr-text-light);
  margin-top: auto; 
}

.footer__top {
  padding-block: var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--clr-border-dark);
}

.footer__top-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--sp-12);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer__logo-fin {
  font-weight: var(--fw-regular);
  color: var(--clr-gold-light);
}

.footer__logo:hover .footer__logo-text {
  opacity: 0.8;
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: rgba(244, 248, 252, 0.5);
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border-dark);
  border-radius: var(--radius-md);
  color: rgba(244, 248, 252, 0.55);
  text-decoration: none;
  transition:
    border-color var(--tr-base),
    color var(--tr-base),
    background-color var(--tr-base);
}

.footer__social-link:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background-color: rgba(27, 120, 200, 0.08);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.footer__col-heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin: 0;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border-dark);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__nav-link {
  font-size: var(--fs-sm);
  color: rgba(244, 248, 252, 0.55);
  text-decoration: none;
  transition: color var(--tr-base);
  position: relative;
  display: inline-block;
}

.footer__nav-link::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--clr-gold);
  transition: width var(--tr-base);
}

.footer__nav-link:hover {
  color: var(--clr-text-light);
}

.footer__nav-link:hover::before {
  width: 100%;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.footer__contact-icon {
  flex-shrink: 0;
  color: var(--clr-gold);
  margin-top: 2px; 
}

.footer__contact-link {
  font-size: var(--fs-sm);
  color: rgba(244, 248, 252, 0.55);
  text-decoration: none;
  transition: color var(--tr-base);
  line-height: var(--lh-snug);
  word-break: break-word;
}

.footer__contact-link:hover {
  color: var(--clr-gold-light);
}

.footer__contact-text {
  font-size: var(--fs-sm);
  color: rgba(244, 248, 252, 0.55);
  line-height: var(--lh-snug);
}

.footer__bottom {
  padding-block: var(--sp-5);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: rgba(244, 248, 252, 0.35);
  line-height: var(--lh-normal);
}

.footer__legal-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: rgba(244, 248, 252, 0.35);
  text-decoration: none;
  transition: color var(--tr-base);
}

.footer__legal-link:hover {
  color: rgba(244, 248, 252, 0.7);
}

.footer__credit {
    padding-block: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.footer__credit p {
    font-size: var(--fs-xs);
    color: rgba(244, 248, 252, 0.22);
    line-height: var(--lh-normal);
}

.footer__credit-link {
    color: rgba(244, 248, 252, 0.35);
    text-decoration: none;
    transition: color var(--tr-base);
}

.footer__credit-link:hover {
    color: var(--clr-gold);
}

@media (max-width: 1023px) {
  .footer__top-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }

  .footer__brand {
    grid-column: 1 / -1; 
  }

  .footer__brand-desc {
    max-width: 480px;
  }
}

@media (max-width: 639px) {
  .footer__top {
    padding-block: var(--sp-10) var(--sp-8);
  }

  .footer__top-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__brand-desc {
    max-width: 100%;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .footer__legal-list {
    gap: var(--sp-4);
  }
}
