/* Footer: three columns on the brand gradient, then the copyright band. */
.site-footer {
  color: var(--color-on-brand);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--color-focus-on-brand);
}

.footer-main {
  position: relative;
  padding-block: 4.375rem;
  background: var(--color-primary) var(--gradient-footer);
}

/* Shadow fading down from the top edge (theme shadow-1.png). */
.footer-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 79px;
  background: url("../img/theme/shadow-1.png") repeat-x;
  pointer-events: none;
}

.footer-grid {
  position: relative;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.footer-title {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
  color: var(--color-on-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal {
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.site-footer p,
.footer-list {
  margin: 0 0 var(--space-3);
}

.footer-list,
.footer-social {
  padding: 0;
  list-style: none;
}

.footer-list li + li {
  margin-top: var(--space-2);
}

.footer-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.5;
}

.footer-line .icon {
  margin-top: 0.2em;
  opacity: 0.85;
}

.site-footer a {
  color: var(--color-on-brand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-on-brand);
  text-decoration: underline;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.125rem;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 50%;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.footer-social a:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.footer-social .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.footer-bottom {
  padding-block: 1.5rem;
  background: var(--color-footer-bottom) url("../img/theme/bg-footer-bottom-sky-blue.png") 50% 0 repeat-x;
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--space-7);
  }
}

/* Back-to-top button: dark square, bottom right, as on the original. */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  background: rgb(0 0 0 / 0.85);
  color: #fff;
  text-decoration: none;
}

.scroll-top[hidden] {
  display: none;
}

.scroll-top:hover {
  background: rgb(255 255 255 / 0.85);
  color: #000;
}

.scroll-top .icon {
  width: 1.125rem;
  height: 1.125rem;
  transform: rotate(180deg);
}
