/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #footer {
    padding: var(--sectionPadding);
    padding-bottom: clamp(1.875rem, 5vw, 3.125rem);
    /* change this to match the color of the section above the footer */
    overflow: hidden;
    /* 30px - 50px */
    position: relative;
    z-index: 1;
  }
  #footer .card-group {
    /* reset on tablet */
    max-width: 34.375rem;
    margin: auto;
    /* 60px - 100px*/
    padding: 0 0 clamp(3.75rem, 7vw, 6.25rem) 0;
    display: grid;
    /* 20px - 58px */
    gap: clamp(1.25rem, 4vw, 3.625rem);
  }
  #footer .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* 16px - 24px */
    gap: clamp(1rem, 2vw, 1.5rem);
  }
  #footer .picture {
    padding: 1.5rem;
    background-color: var(--primary);
    display: block;
  }
  #footer .icon {
    width: 2rem;
    height: auto;
    display: block;
  }
  #footer .h3 {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 2vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2em;
    margin: 0;
    color: var(--headerColor);
  }
  #footer .card-info {
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.5em;
    color: var(--bodyTextColor);
    display: block;
  }
  #footer .container {
    width: 100%;
    /* reset on tablet */
    max-width: 34.375rem;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    /* 32px - 48px */
    gap: clamp(2rem, 7vw, 3rem);
  }
  #footer .logo-group {
    /* takes up all the space, lets the other ul's wrap below it */
    width: 100%;
    position: relative;
  }
  #footer .logo {
    width: 13.125rem;
    height: auto;
    margin: 0 0 1rem 0;
    display: block;
  }
  #footer .text {
    max-width: 44rem;
    /* 24px - 40px */
    margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.8;
  }
  #footer .logo-img {
    width: 100%;
    height: auto;
  }
  #footer .contact {
    display: grid;
    gap: 2rem;
  }
  #footer .topper {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  #footer .contact-link {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    text-decoration: none;
    color: var(--headerColor);
  }
  #footer .header {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 3vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.5em;
    /* 16px - 24px */
    margin: 0 0 clamp(1rem, 4vw, 1.5rem) 0;
    color: var(--headerColor);
    display: block;
    position: relative;
  }
  #footer .ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #footer .li {
    list-style: none;
  }
  #footer .link {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    text-decoration: none;
    color: var(--bodyTextColor);
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.3s;
  }
  #footer .link:hover {
    color: var(--primaryLight);
  }
  #footer .bottom {
    width: 100%;
    max-width: 80rem;
    /* 60px - 80px */
    margin: clamp(3.75rem, 7vw, 5rem) auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-border-10, #e8e8e8);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  #footer .credit,
  #footer .bottom-link,
  #footer .credit-link {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    color: var(--bodyTextColor);
  }
  #footer .credit {
    width: 100%;
  }
  #footer .credit-link {
    font-size: 1rem;
    line-height: 1.5em;
    text-decoration: none;
    width: auto;
    margin: 0;
    display: inline-block;
    position: relative;
  }
  #footer .credit-link:hover {
    color: var(--primary);
  }
  #footer .bottom-links {
    width: 100%;
    display: flex;
  }
  #footer .bottom-link {
    display: flex;
    align-items: center;
  }
  #footer .bottom-link:hover {
    color: var(--primary);
  }
  #footer .bottom-link:last-of-type:before {
    /* separator */
    content: "";
    width: 1px;
    height: 0.875rem;
    margin: 0 0.75rem;
    background: currentColor;
    opacity: 1;
    display: block;
  }
  #footer .graphic {
    width: 100%;
    min-width: 120rem;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 9rem;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
  }
  #footer .light {
    display: block;
  }
  #footer .dark {
    display: none;
  }
}
/* Tablet - 600px */
@media only screen and (min-width: 37.5rem) {
  #footer .card-group {
    max-width: 80rem;
  }
  #footer .container {
    padding: var(--sectionPadding);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    max-width: 80rem;
    grid-template-columns: repeat(12, 1fr);
  }
  #footer .logo-group {
    grid-column: span 12;
  }
  #footer .ul-wrapper {
    grid-column: span 4;
  }
  #footer .contact {
    grid-template-columns: repeat(12, 1fr);
    grid-column: span 12;
  }
  #footer .table {
    grid-column: span 12;
  }
  #footer .bottom {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  #footer .credit {
    text-align: left;
  }
  #footer .bottom-links {
    justify-content: flex-end;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #footer .card-group {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  #footer .card {
    grid-column: span 4;
  }
  #footer .logo-group {
    grid-column: span 4;
  }
  #footer .ul-wrapper {
    grid-column: span 2;
  }
  #footer .contact {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
  }
}