/* fot.css – footer related styles only */

/* ===== Base ===== */
footer {
  margin-top: 2rem;
  color: var(--bs-body-color, #212529);
  background: var(--bs-light, #fcefe3);
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Inner container in the footer */
.footer-inner {
  padding: 2rem 0;
}

/* ===== Grid =====
   - Mobile: 1 column
   - Medium: auto-fit  => fills up to 2 columns without creating "empty" columns
   - Large: exactly 2 columns
*/
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr; /* mobile */
}

/* Medium width (≈ tablets & small laptops) – flexible up to 2 columns, without ghost column */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Larger screens – lock to exactly 2 columns for stable layout */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Typography ===== */
footer .card-title,
footer h4 {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 .5rem 0;
  color: var(--bs-dark, #212529);
}

footer p {
  margin: 0 0 .5rem 0;
  font-size: 16px;
  line-height: 24px;
}

/* Text class from your original */
footer .small.large {
  font-size: 15px;
  line-height: 22px;
}

/* Links in the footer */
footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a:hover {
  opacity: .85;
}