/* ==========================================================================
   Footer - Mobile first
   ========================================================================== */

.site-footer {
  padding: 4rem 0 1.5rem;

  background-color: #eaded8;
  color: #1b1b1d;
}

/* ==========================================================================
   Main layout
   ========================================================================== */

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ==========================================================================
   Brand
   ========================================================================== */

.site-footer__brand {
  max-width: 30rem;
}

.site-footer__branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer__branding .custom-logo-link {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.site-footer__branding .custom-logo {
  display: block;

  width: 68px;
  height: auto;
}

.site-footer__title-link {
  color: #1b1b1d;
  text-decoration: none;
}

.site-footer__title {
  display: block;

  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer__description {
  max-width: 26rem;
  margin: 1.25rem 0 0;

  color: #626262;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Headings
   ========================================================================== */

.site-footer__heading {
  margin: 0 0 1rem;

  color: #a63a2d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;

  margin: 0;
  padding: 0;

  list-style: none;
}

.site-footer__nav-list a {
  color: #1b1b1d;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;

  transition: color 0.2s ease;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.site-footer__address {
  margin: 0;

  color: #626262;
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.7;
}

.site-footer__phone {
  display: inline-block;

  margin-top: 1rem;

  color: #1b1b1d;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;

  transition: color 0.2s ease;
}

/* ==========================================================================
   Bottom
   ========================================================================== */

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin-top: 3.5rem;
  padding-top: 1.5rem;

  border-top: 1px solid rgba(27, 27, 29, 0.12);
}

.site-footer__copyright {
  margin: 0;

  color: #626262;
  font-size: 0.8rem;
}

.site-footer__legal {
  width: fit-content;

  color: #626262;
  font-size: 0.8rem;
  text-decoration: none;

  transition: color 0.2s ease;
}

.site-footer__credit {
  margin: 0;

  color: #626262;
  font-size: 0.8rem;
}

.site-footer__credit-link {
  color: #626262;
  font-weight: 600;
  text-decoration: none;

  transition: color 0.2s ease;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
  .site-footer {
    padding: 4.5rem 0 1.5rem;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .site-footer__branding .custom-logo {
    width: 72px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    margin-top: 4rem;
  }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {
  .site-footer {
    padding: 5rem 0 1.5rem;
  }

  .site-footer__inner {
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 5rem;
  }

  .site-footer__branding .custom-logo {
    width: 76px;
  }

  .site-footer__title {
    font-size: 1.1rem;
  }

  .site-footer__description,
  .site-footer__nav-list a,
  .site-footer__address {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Hover - Pointer devices only
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .site-footer__nav-list a:hover,
  .site-footer__phone:hover,
  .site-footer__legal:hover,
  .site-footer__credit-link:hover {
    color: #a63a2d;
  }
}
