/* =======================
   footer.css
   ======================= */

/* Shell */
.site-footer {
  background: #000;
  color: #fff;
  padding: 1.25rem 0; /* tighter vertical; let inner containers add side padding */
  font-size: 0.9rem;
}

/* Top row: left copy + right links */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* align tops of the two columns */
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem; /* side padding only */
  /* kill extra space under this row so credit sits closer */
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Left column */
.footer-left {
  display: flow-root; /* contain the paragraphs neatly */
}
.footer-left p {
  margin: 0 0 0.35rem;
}
.footer-left p:last-child {
  margin-bottom: 0; /* no tail gap */
}

/* Right column (bulleted list) */
.footer-right ul {
  margin: 0;
  padding-left: 1.1rem; /* bullet indent */
}
.footer-right li {
  margin: 0.25rem 0;
}
.footer-right a {
  color: #ffa25f; /* subtle brand tie-in; tweak if you prefer white */
  text-decoration: none;
  text-underline-offset: 2px;
}
.footer-right a:hover,
.footer-right a:focus-visible {
  text-decoration: underline;
}

/* OPTIONAL: Purpose row (middle band) */
.footer-purpose-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.3rem; /* tight above */
  padding: 0.45rem 1rem 0.3rem; /* small internal spacing + same side padding as container */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.footer-purpose {
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 820px;
  margin: 0;
}

/* Credit row (bottom strip) — 2-column grid */
.site-credit {
  max-width: 1000px;
  margin: 0.5rem auto 0; /* pulled up (was larger) */
  padding: 0.5rem 1rem 0; /* tighter top padding */
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  display: grid;
  grid-template-columns: 1fr auto; /* text left, CTA right */
  align-items: center;
  gap: 0.75rem;

  font-size: 0.95rem;
  color: #fff;
  opacity: 0.9;
  text-align: left;
}

/* Links inside the credit row */
.site-credit a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 2px;
}
.site-credit a:hover,
.site-credit a:focus-visible {
  text-decoration: underline;
}

/* Button-style link (Contact us) */
.site-credit .credit-cta {
  background: #fe6601;
  color: #000;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  justify-self: end; /* lock to the right column */
}
.site-credit .credit-cta:hover,
.site-credit .credit-cta:focus-visible {
  background: #e55a00;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== Mobile (≤768px): stack, left-align ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }

  .footer-purpose-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-credit {
    display: flex; /* switch to flex on mobile */
    flex-direction: column;
    align-items: flex-start; /* left align */
    gap: 0.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-credit > :first-child {
    width: 100%;
    text-align: left;
  }

  .site-credit .credit-cta {
    align-self: flex-start;
    margin: 0.5rem 0 0;
  }
}
