/* ============================================================
   Shared site footer — SINGLE source of truth for <Footer />.
   Canonical 4-column layout (brand+credentials | links | links | contact).
   Linked LAST on every page so it overrides any stale per-page
   footer CSS still present in older page stylesheets.
   Source preview path for the pattern asset is relative (../../assets);
   the export build rewrites it to /assets via its own copy.
   ============================================================ */

.hh-footer {
  position: relative;
  background: var(--brand-navy-deep);
  color: rgba(247,242,233,0.85);
  overflow: hidden;
}
.hh-footer__pattern {
  position: absolute; inset: 0;
  background-image: url('/assets/pattern-meridians.svg');
  background-size: 240px 240px;
  opacity: 0.05;
  filter: invert(1) brightness(2);
}

/* Grid shell — 4 columns. (--4col overrides the legacy 1fr 2fr base.) */
.hh-footer__inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 64px 40px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.hh-footer__inner--4col {
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

/* Column 1 — brand lockup + tagline + credentials */
.hh-footer__brandcol { min-width: 0; }
.hh-footer__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.hh-footer__logo { height: 46px; width: 46px; object-fit: contain; flex: none; }
.hh-footer__lockup {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: baseline;
}
.hh-footer__zh {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-serif-cn);
  font-weight: 700; font-size: 24px;
  color: var(--brand-red-bright);
  letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap;
}
.hh-footer__wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: #F7F2E9; display: block; margin-top: 6px;
}
.hh-footer__brandcol .hh-footer__wordmark {
  grid-column: 2; grid-row: 1;
  margin: 0; font-size: 24px; line-height: 1;
  white-space: nowrap;
}
.hh-footer__sub {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 10px; letter-spacing: 0.28em;
  color: rgba(247,242,233,0.55); display: block; margin-top: 4px;
}
.hh-footer__brandcol .hh-footer__sub {
  grid-column: 1 / -1; grid-row: 2;
  margin-top: 7px;
}
.hh-footer__tagline {
  font-family: var(--font-script);
  font-size: 19px; line-height: 1.15;
  color: var(--parchment);
  margin: 18px 0 0;
}
.hh-footer__tagline em { font-style: normal; color: var(--brand-red-bright); }
.hh-footer__creds {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 12px; line-height: 1.5;
  color: rgba(247,242,233,0.6);
  letter-spacing: 0.01em;
}
.hh-footer__creds strong { color: #F7F2E9; font-weight: 700; }

/* Link columns (2 & 3) + contact column (4) */
.hh-footer__col { min-width: 0; }
.hh-footer__col h5 {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-gold); margin: 0 0 14px;
}
.hh-footer__col ul { list-style: none; margin: 0; padding: 0; }
.hh-footer__col li { margin-bottom: 8px; }
.hh-footer__col a { color: rgba(247,242,233,0.78); font-size: 13.5px; text-decoration: none; }
.hh-footer__col a:hover { color: #F7F2E9; }

.hh-footer__contact { list-style: none; margin: 12px 0 0; padding: 0; }
.hh-footer__col--contact .hh-footer__contact { margin-top: 0; }
.hh-footer__contact li { margin-bottom: 6px; }
.hh-footer__contact a {
  color: rgba(247,242,233,0.85); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
}
.hh-footer__contact a:hover { color: var(--brand-gold); }
.hh-footer__contact a svg { width: 14px; height: 14px; stroke-width: 2; color: var(--brand-gold); }

/* Rule + legal bar */
.hh-footer__rule { position: relative; height: 1px; background: rgba(247,242,233,0.12); margin: 24px 40px 0; }
.hh-footer__legal {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 18px 40px 28px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(247,242,233,0.5);
}
.hh-footer__legal-links { display: flex; gap: 18px; }
.hh-footer__legal-links a { color: rgba(247,242,233,0.5); text-decoration: none; }
.hh-footer__legal-links a:hover { color: var(--brand-gold); }

/* Responsive */
@media (max-width: 900px) {
  .hh-footer__inner,
  .hh-footer__inner--4col { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
}
@media (max-width: 860px) {
  .hh-footer__inner, .hh-footer__legal { padding-left: 24px; padding-right: 24px; }
  .hh-footer__rule { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 540px) {
  .hh-footer__inner,
  .hh-footer__inner--4col { grid-template-columns: 1fr; gap: 32px; }
  .hh-footer__inner, .hh-footer__legal { padding-left: 18px; padding-right: 18px; }
  .hh-footer__rule { margin-left: 18px; margin-right: 18px; }
  .hh-footer__legal { flex-direction: column; gap: 8px; }
}
