/* Footer */

.site-footer {
  position: relative;
  padding-top: 90px;
  overflow: hidden;
  color: rgba(216, 206, 190, 0.78);
  background: linear-gradient(180deg, #0d1b40, var(--navy));
}

/* moving brand-colour line along the top */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark), var(--gold), var(--sand), var(--blue));
  background-size: 300% 100%;
  animation: line-flow 10s linear infinite;
}

/* faint grid that fades out towards the bottom */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 206, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 206, 190, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

@keyframes line-flow {
  to { background-position: 300% 0; }
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr;
  gap: 56px;
  padding-bottom: 64px;
}

/* brand column */

.footer-logo {
  display: inline-block;
  margin-bottom: 26px;
  transition: opacity var(--speed) ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-brand p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(216, 206, 190, 0.72);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 206, 190, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--speed) var(--ease), background var(--speed) ease,
    border-color var(--speed) ease;
}

.social-icons img {
  max-width: 16px;
  opacity: 0.85;
}

.social-icons a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: var(--gold);
}

.social-icons a:hover img {
  opacity: 1;
}

/* link columns */

.footer-col h4 {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links li + li {
  margin-top: 13px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  transition: color var(--speed) ease, transform var(--speed) var(--ease);
}

/* small dash that appears as the link slides right */
.footer-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  width: 8px;
  height: 1px;
  background: var(--blue);
  opacity: 0;
  transition: opacity var(--speed) ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(14px);
}

.footer-links a:hover::before {
  opacity: 1;
}

/* contact column */

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(216, 206, 190, 0.85);
}

.footer-contact-list li + li {
  margin-top: 18px;
}

.footer-contact-list svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 8px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 1px solid rgba(3, 161, 254, 0.22);
  border-radius: 9px;
  background: rgba(3, 161, 254, 0.1);
  transition: background var(--speed) ease, stroke var(--speed) ease;
}

.footer-contact-list li:hover svg {
  stroke: #ffffff;
  background: var(--blue);
}

.footer-contact-list span,
.footer-contact-list a {
  padding-top: 5px;
  word-break: break-word;
}

.footer-contact-list a:hover {
  color: #ffffff;
}

.footer-contact-list em {
  font-style: normal;
  color: var(--gold);
}

/* bottom bar */

.bottom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(216, 206, 190, 0.12);
}

.bottom-footer p,
.footer-legal a {
  font-size: 13px;
  color: rgba(216, 206, 190, 0.6);
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a:hover {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 40px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 44px;
  }

  .bottom-footer {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer-legal {
    gap: 20px;
  }
}
