/* ============================================================
   SNS Valley View — Footer
   Ported from design_handoff_sns_valley_view/styles.css lines 532-591.
   ============================================================ */

.footer {
  padding: 48px var(--pad-x);
  background: var(--c-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer__logo b {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--c-cream);
}
.footer__logo span {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-cream-30);
}

.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }

.footer__label {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cream-30);
}

.footer__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-cream-55);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-hair-soft);
  font-size: 10px;
  color: var(--c-cream-20);
}

.footer__copy { margin: 0; }

/* The parent company mark. Shipped in its own colours — see footer.templ —
   so it is the one saturated element on the page. It earns that by being
   small and by sitting in the lowest-attention row there is: 36px tall, at
   the opposite end of the legal rule from the copyright, which is the
   conventional position for an "owned by" mark. No border, no box: the PNG
   carries its own transparent ground. */
.footer__parent {
  width: 58px;
  height: 36px;
  flex: none;
}

/* The mark is the admin entrance (footer.templ). inline-flex so the anchor
   is exactly the mark's box and not a line-height-padded strip of dead
   clickable space beside it; the opacity step is the whole hover state,
   because the one thing this link must not do is recolour another
   company's registered mark. base.css's gold :focus-visible ring still
   applies, so it is reachable and visible by keyboard. */
.footer__parent-link {
  display: inline-flex;
  flex: none;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}
.footer__parent-link:hover { opacity: 1; }

/* Any text link in the legal row overrides base.css's global `a` rule
   (--c-gold, the site's one accent) deliberately — left unstyled, gold
   against cream-20 legal text would make this the single most
   eye-catching thing in the footer. inherit keeps it identical to the
   copyright text it sits beside at rest; the hover state is a small,
   still-muted step up (cream-45, not the global gold-then-cream), enough
   to confirm it's interactive without drawing the eye at rest. See
   docs/DECISIONS.md. */
.footer__legal a {
  color: inherit;
  text-decoration: none;
}
.footer__legal a:hover {
  color: var(--c-cream-45);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 680px) {
  .footer { padding: 40px 24px; }
  .footer__cols { gap: 32px; }
  .footer__text a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Stacked, mark first: on a narrow column a 58px logo pushed to the far
     right of a wrapped row reads as a stray element rather than a
     deliberate endorsement mark. */
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__legal .footer__parent-link { order: -1; }
}
