/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #ffffff;
  color: var(--ink);
  padding: 4rem 0 1.5rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--ink);
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--teal-dark);
}

/* TOP ROW */

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;

  padding-bottom: 3rem;
}

/* LEFT: LOGO + BOOK ICON */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand > a:first-child {
  display: inline-block;
  line-height: 0;
}

.footer-brand > a:first-child img {
  width: 170px;
  height: auto;
}

.footer-book {
  display: inline-block;
  line-height: 0;
  transition: transform 0.25s ease;
}

.footer-book img {
  width: 40px; /* change to resize the icon */
  height: auto;
}

.footer-book:hover {
  transform: translateY(-2px);
}

/* RIGHT: CONTACT */

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 1rem;

  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.footer-list svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--teal);
}

/* BOTTOM BAR */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;

  padding-top: 0.9rem;
  border-top: 3px solid var(--rose);

  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0;
}

/* TABLET + MOBILE */

@media (max-width: 860px) {
  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-list li {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-list li {
    font-size: 0.95rem;
    gap: 0.75rem;
  }

  .footer-list svg {
    width: 28px;
    height: 28px;
  }
}
