/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cs-footer {
    padding: clamp(3rem, 7vw, 5rem) 1rem 0;
    background-color: #233b4f;
  }
  #cs-footer .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
  }
  #cs-footer .cs-footer-top {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: clamp(3rem, 7vw, 4rem);
  }
  #cs-footer .cs-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Column 1 -- logo (light variant for the dark background) + contact list */
  #cs-footer .cs-logo {
    gap: 0.625rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  #cs-footer .cs-logo-mark {
    width: auto;
    height: 2.5rem;
    flex: none;
    display: block;
  }
  #cs-footer .cs-logo-text {
    font-size: clamp(1.375rem, 2.6vw, 1.625rem);
    font-weight: 300;
    line-height: 1.2em;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #fff;
  }
  #cs-footer .cs-logo-text span {
    font-weight: 300;
    color: var(--secondary);
  }
  #cs-footer .cs-contact-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  #cs-footer .cs-contact-item {
    font-size: 0.9375rem;
    line-height: 1.3em;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.85);
  }
  #cs-footer .cs-contact-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: none;
    color: var(--secondary);
  }

  /* Columns 2-3 -- vertical link lists */
  #cs-footer .cs-column-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-bottom: 1.25rem;
  }
  #cs-footer .cs-footer-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #cs-footer .cs-footer-list a {
    font-size: 0.9375rem;
    line-height: 1.3em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
  }
  #cs-footer .cs-footer-list a:hover {
    color: var(--secondary);
  }

  /* Column 4 -- map embed */
  #cs-footer .cs-map-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  #cs-footer .cs-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  /* Crisis/safeguarding note -- sits between the link columns and the
     legal row, set apart with its own border so it reads as important
     without looking like an alarming banner */
  #cs-footer .cs-crisis-note {
    width: 100%;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  #cs-footer .cs-crisis-text {
    font-family: 'Self Modern', serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5em;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
  }
  #cs-footer .cs-crisis-text a {
    font-family: 'Self Modern', serif;
    font-weight: 300;
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s;
  }
  #cs-footer .cs-crisis-text a:hover {
    color: #fff;
  }

  /* Bottom legal row */
  #cs-footer .cs-footer-bottom {
    width: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  #cs-footer .cs-copyright {
    font-size: 0.8125rem;
    line-height: 1.4em;
    color: rgba(255, 255, 255, 0.6);
  }
  #cs-footer .cs-legal-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
  }
  #cs-footer .cs-legal-list a {
    font-size: 0.8125rem;
    line-height: 1.4em;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
  }
  #cs-footer .cs-legal-list a:hover {
    color: var(--secondary);
  }
  #cs-footer .cs-credit {
    width: 100%;
    padding: 1rem 0;
    font-size: 0.75rem;
    line-height: 1.4em;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
  }
  #cs-footer .cs-credit a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s;
  }
  #cs-footer .cs-credit a:hover {
    color: var(--secondary);
  }
}

/* Tablet - 768px: 2 columns */
@media only screen and (min-width: 48rem) {
  #cs-footer .cs-footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  #cs-footer .cs-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop - 64rem: all 4 columns in a row */
@media only screen and (min-width: 64rem) {
  #cs-footer .cs-footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
  }
}
