/* Defines the styles for Footer. */
/* Applies styling to .site-footer. */
.site-footer {
  background: var(--teal);
  color: #ffffff;
  padding-top: 0.45rem;
  font-family: var(--font-sans);
}

.site-footer .section-title,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  font-family: var(--font-sans);
}

/* Defines the styles for Footer grid. */
/* Applies styling to .footer-grid. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  text-align: left;
  margin-top: 0.75rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-items: start;
  align-items: start;
  justify-content: start;
}

/* Defines the styles for Contact page footer: reserve space for compact weather card. */
.page-contact .site-footer .footer-grid {
  grid-template-columns: 1fr;
}

/* Defines the styles for Contact page footer: weather alignment. */
.page-contact .site-footer .footer-weather {
  justify-self: end;
}

/* Applies styling to .footer-col. */
.footer-col {
  display: grid;
  gap: 0.45rem;
  text-align: left;
  align-items: start;
}

/* Applies styling to .footer-item. */
.footer-item {
  display: block;
  margin: 0;
}

/* Applies styling to .footer-item svg. */
.footer-item svg {
  display: none;
}

/* Applies styling to .footer-title. */
.footer-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Applies styling to .site-footer p, .site-footer a. */
.site-footer p,
.site-footer a {
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Applies styling to .site-footer a. */
.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

/* Applies styling to .site-footer a:hover. */
.site-footer a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Applies styling to .site-footer .copyright. */
.site-footer .copyright {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-direction: column;
  text-align: left;
  padding-top: 0.55rem;
  margin-top: 0.75rem;
  border-top: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

/* This changes the layout on min-width: 601px screens. */
@media (min-width: 601px) {
/* Applies styling to .footer-grid. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .page-contact .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

/* Applies styling to .footer-col. */
  .footer-col {
    text-align: left;
    gap: 0.5rem;
  }

/* Applies styling to .site-footer .copyright. */
  .site-footer .copyright {
    flex-direction: row;
    gap: 1rem;
    text-align: initial;
  }
}

/* This changes the layout on min-width: 901px screens. */
@media (min-width: 901px) {
/* Applies styling to .footer-grid. */
  .footer-grid {
    grid-template-columns: repeat(4, max-content);
    gap: 1rem 1.95rem;
  }

  .page-contact .site-footer .footer-grid {
    grid-template-columns: repeat(4, max-content) 1fr;
  }
}

/* Defines the styles for Contact list icons (inline SVG). */
/* Applies styling to .contact li. */
.contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
