/* ============================================
   FOOTER STYLES
   All footer-related styles extracted from main stylesheet
   ============================================ */

/* ============================================
   FOOTER CONTAINER
   ============================================ */

.footer-container {
  z-index: 2;
  background-color: var(--dark-navy);
  justify-content: center;
  align-items: center;
  height: 468px;
  display: flex;
  position: relative;
}

.footer-container .container {
  width: 100%;
}

.footer-container.christmas-footer {
  background-color: var(--christmas-dark-green);
  height: auto;
}

/* ============================================
   FOOTER GRID LAYOUT
   ============================================ */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px 40px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid .left-col {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  justify-self: start;
  text-align: left;
}

.footer-grid .right-col {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  justify-self: end;
  text-align: right;
}

/* ============================================
   FOOTER TEXT
   ============================================ */

.footer-text {
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 300;
}

.footer-text.hidden {
  display: none;
}

.footer-text.green {
  line-height: 26px;
}

/* ============================================
   FOOTER FORM ELEMENTS
   ============================================ */

.footer-email-field {
  background-color: var(--dark-navy);
  border: 1px solid #fff;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  height: 61px;
  margin-bottom: 0;
  padding: 0 0 0 24px;
  font-family: Outfit, sans-serif;
  font-size: 18px;
}

.footer-form-container {
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.footer-form-submit {
  background-color: var(--dark-navy);
  letter-spacing: 1px;
  border: 1px solid #fff;
  border-left-style: none;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  width: 140px;
  height: 61px;
  font-size: 16px;
}

/* ============================================
   FOOTER CONTENT & SOCIAL LINKS
   ============================================ */

.footer-content.christmas {
  margin-bottom: 12px;
  padding-top: 0;
}

.social-link {
  transition: all .2s;
}

.social-link:hover {
  transform: translate(0, -3px);
}

.social-seal-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.social-seal-row .newman-seal {
  width: 112px;
  height: auto;
  display: block;
  margin-left: 20px;
}

/* ============================================
   UTILITY CLASSES USED IN FOOTER
   ============================================ */

.full-width.footer-christmas {
  margin-top: 20px;
  padding: 0;
}

.margin-sides-20 {
  margin-left: 20px;
  margin-right: 20px;
}

.margin-right-20 {
  margin-right: 20px;
}

.text-align-right {
  text-align: right;
  display: block;
}

/* ============================================
   TABLET BREAKPOINT (max-width: 991px)
   ============================================ */

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
    align-items: center;
  }

  .footer-grid .left-col,
  .footer-grid .right-col {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
    justify-self: center;
  }

  .footer-container {
    height: auto;
    padding: 40px 20px;
  }

  .social-seal-row {
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .social-seal-row .newman-seal {
    margin-left: 0;
  }

  .footer-content {
    width: 100%;
  }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
  .section-10, .layer-4, .footer-container, .learn-about-societies {
    height: auto;
  }

  .footer-container {
    z-index: 4;
    width: 100%;
    position: relative;
  }

  .footer-email-field, .footer-form-submit {
    height: 50px;
    font-size: 14px;
  }
}

/* ============================================
   LEGACY TABLET STYLES (max-width: 991px)
   ============================================ */

@media screen and (max-width: 991px) {
  .footer-container {
    z-index: 4;
    width: 100%;
    position: relative;
  }

  .footer-content {
    width: 100%;
  }
}
