/* ============================================================
 * Students of Timor — site footer
 * ------------------------------------------------------------
 * Replaces the STOT theme footer on students.oftimor.com.
 *
 * The theme's footer markup (selector: footer.stot-footer) is
 * still emitted in the HTML — we just hide it. Our own footer
 * is rendered via SoTEdu_Website_Footer::render() on wp_footer
 * priority 5 and lives at the same place in the document flow.
 *
 * Brand palette (matches marketing.css + megamenu.css):
 *   Ocean  #0A4D6E   background, primary brand
 *   Forest #1F5A36   secondary accent, divider
 *   Sand   #F4EBD9   warm highlight (footnotes / hover bg)
 *   Ink    #15212B   deep text (only on light surfaces)
 *   Paper  #FFFFFF   primary text on Ocean
 * ============================================================ */

/* --- 1. Hide the STOT theme footer ----------------------- */
/* The theme's footer.php emits <footer class="stot-footer">…</footer>.
 * We pull it out of the layout completely. !important is needed
 * because the theme stylesheet sets display on this selector with
 * higher specificity from its own bundled CSS. */
footer.stot-footer,
.stot-footer {
  display: none !important;
}

/* --- 2. Our footer --------------------------------------- */
.sotedu-footer {
  background: #0A4D6E;
  color: #FFFFFF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 48px;
  padding: 56px 0 32px;
}

.sotedu-footer__sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sotedu-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Column grid ----------------------------------------- */
.sotedu-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}

.sotedu-footer__col {
  min-width: 0;
}

.sotedu-footer__col-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4EBD9;
}

.sotedu-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sotedu-footer__links li {
  margin: 0 0 8px;
}

.sotedu-footer__links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.92;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.sotedu-footer__links a:hover,
.sotedu-footer__links a:focus {
  opacity: 1;
  color: #F4EBD9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sotedu-footer__see-all {
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.sotedu-footer__cta {
  font-weight: 700;
  color: #F4EBD9 !important;
}

/* --- Divider --------------------------------------------- */
.sotedu-footer__divider {
  height: 1px;
  background: #1F5A36;
  margin: 36px 0 24px;
  opacity: 0.85;
}

/* --- Bottom rows ----------------------------------------- */
.sotedu-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.sotedu-footer__bottom-left {
  flex: 1 1 auto;
  min-width: 0;
}

.sotedu-footer__wordmark {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.sotedu-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.78;
  max-width: 640px;
}

.sotedu-footer__bottom-right {
  flex: 0 0 auto;
  text-align: right;
}

.sotedu-footer__lang {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.78;
}

.sotedu-footer__fineprint {
  margin: 20px 0 0;
  font-size: 0.74rem;
  opacity: 0.6;
  letter-spacing: 0.01em;
}

/* --- 3. Mobile collapse ---------------------------------- */
@media (max-width: 820px) {
  .sotedu-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 560px) {
  .sotedu-footer {
    padding: 40px 0 24px;
  }
  .sotedu-footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sotedu-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .sotedu-footer__bottom-right {
    text-align: left;
  }
}
