/* =============================================
   Footer Styles
   ============================================= */

.footer {
  padding: 80px 0;
  background-color: #ffd4f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 48% 1fr;
  grid-template-rows: auto auto;
  gap: 0 40px;
}

.footer-left {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  border-left: 2px solid #212129;
  padding-left: 20px;
  font-weight: 700;
}

.footer-pattern {
  width: 100%;
  height: 250px;
  margin-top: auto;
  background-image: url("/static/img/OJC-logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
}

.footer-right {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer-btn {
  display: block;
  padding: 1rem;
  border: 1px solid #212129;
  border-radius: 4px;
  text-decoration: none;
  color: #212129;
  transition: all 0.2s ease;
}

.footer-btn:hover {
  background-color: #212129;
  color: #ffffff;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  border-left: 1px solid #212129;
  padding-left: 20px;
  margin-top: auto;
  margin-bottom: 0;
}

.footer-column {
  white-space: nowrap;
  min-width: 130px;
}

.footer-column:last-child {
  border-left: 1px solid #212129;
  padding-left: 20px;
  align-self: start;
}

.footer-column h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #212129;
  /* WCAG 2.5.5: ensure 44px minimum box size */
  padding-block: 14px;
  margin-block: -14px;
}

.footer-column a,
.footer-column p {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
  color: #212129;
  text-decoration: none;
  transition: font-weight 0.15s;
  /* WCAG 2.5.5: ensure 44px minimum target size */
  padding-block: 14px;
  margin-block: -14px;
}

/* Reserve space for bold text so hover doesn't shift layout */
.footer-column a::after {
  content: attr(data-text) / "";
  display: block;
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  font-weight: 700;
}

.footer-column a:focus-visible {
  outline: 2px solid #212129;
  outline-offset: 2px;
}

.footer-column .social-disabled {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
  color: #212129;
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
  padding-block: 14px;
  margin-block: -14px;
}

.footer-legal {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(33, 33, 41, 0.15);
    font-size: 12px;
    line-height: 1.5;
    color: #000;
}

.footer-legal a {
    color: #212129;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-left,
  .footer-right {
    display: contents;
  }

  .footer-title {
    order: 1;
  }

  .footer-links {
    order: 2;
    margin-top: 0;
  }

  .footer-legal {
    order: 3;
  }

  .footer-pattern {
    order: 4;
  }
}
