/* Site footer.
 *
 * Its own stylesheet because the pages are split across two others —
 * index.html uses index.css, everything else uses styles.css — and the footer
 * appears on all of them. One file beats keeping two copies in step.
 *
 * The markup is generated by site-footer.js from site-links.js; see there for
 * why the store links are data rather than hand-written HTML. */

#site-footer {
  width: 100%;
  margin-top: 80px;
  padding: 48px 30px 40px;
  /* The page background is a gradient that has reached black by this point, so
   * the footer is separated by a hairline rather than a fill — a panel colour
   * would read as a seam against it. */
  border-top: 1px solid rgba(101, 195, 133, 0.22);
  background: #000000;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #65c385;
}

/* --- Store links ------------------------------------------------------- */

.footer-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 12px 20px;
  border: 1px solid rgba(101, 195, 133, 0.45);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-link:hover {
  border-color: #65c385;
  background: rgba(101, 195, 133, 0.08);
}

.store-link__label {
  font-size: 16px;
  font-weight: 600;
}

.store-link__sub {
  margin-top: 2px;
  font-size: 12px;
  color: #9fb3a6;
}

/* A listing that is not published yet. Rendered as text, not a link: the store
 * URL is already correct but returns a "not available" page until approval, and
 * a link that punishes the click is worse than one that says wait. */
.store-link--soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  color: #7e8c84;
  cursor: default;
}

.store-link--soon:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: none;
}

.store-link--soon .store-link__sub {
  color: #6c7a72;
}

/* --- Links and legal --------------------------------------------------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  font-size: 14px;
  color: #b6c6ba;
  text-decoration: none;
}

.footer-links a:hover {
  color: #65c385;
  text-decoration: underline;
}

.footer-legal {
  margin: 20px 0 0;
  font-size: 13px;
  color: #7e8c84;
}

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

.footer-legal a:hover {
  color: #65c385;
}

@media (max-width: 600px) {
  #site-footer {
    margin-top: 56px;
    padding: 36px 20px 32px;
  }

  /* Full-width rows on a phone: three 190px cards wrap into a ragged grid that
   * looks accidental. */
  .store-link {
    width: 100%;
    min-width: 0;
  }

  .footer-links {
    gap: 10px 18px;
  }
}
