/* =========================================================
   Buildhaus site footer · Ledger
   All selectors scoped under .bh-footer
   ========================================================= */

.bh-footer {
  background: #0E1714;
  color: #FAFAF8;
  font-family: Inter, sans-serif;
  border-top: 1px solid rgba(250,250,248,0.14);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  box-sizing: border-box;
  width: 100%;
}

/* ---- Reset inside scope ---- */
.bh-footer *,
.bh-footer *::before,
.bh-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bh-footer a {
  color: inherit;
  text-decoration: none;
}

.bh-footer ul {
  list-style: none;
}

/* ---- TOP BAND: wordmark + descriptor + status ---- */
.bh-footer .cb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(250,250,248,0.14);
  flex-wrap: wrap;
}

.bh-footer .cb-identity {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 34ch;
}

.bh-footer .cb-wordmark {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: -0.01em;
  color: #FAFAF8;
  display: flex;
  align-items: center;
  gap: 0.3em;
  line-height: 1;
}

.bh-footer .cb-wordmark-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #FBDC11;
  border-radius: 1px;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.bh-footer .cb-descriptor {
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250,250,248,0.62);
  font-weight: 400;
  max-width: 42ch;
}

.bh-footer .cb-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  border: 1px solid rgba(250,250,248,0.14);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.bh-footer .cb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FBDC11;
  flex-shrink: 0;
}

.bh-footer .cb-status-label {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #FAFAF8;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ---- LEDGER GRID ---- */
.bh-footer .cb-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(250,250,248,0.14);
  gap: 0;
}

.bh-footer .cb-col {
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid rgba(250,250,248,0.14);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bh-footer .cb-col:first-child {
  padding-left: 0;
  border-left: none;
}

.bh-footer .cb-col-label {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.62);
  font-weight: 400;
  line-height: 1;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(250,250,248,0.14);
}

.bh-footer .cb-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bh-footer .cb-link-list li a {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(250,250,248,0.62);
  line-height: 1;
  padding: 0.35rem 0;
  min-height: 44px;
  transition: color 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.bh-footer .cb-link-list li a:hover {
  color: #FAFAF8;
}

.bh-footer .cb-link-list li a:focus-visible {
  outline: 2px solid #FBDC11;
  outline-offset: 2px;
  border-radius: 1px;
}

/* Studio column content */
.bh-footer .cb-locations {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.125rem;
}

.bh-footer .cb-location {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bh-footer .cb-location-label {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.55);
  line-height: 1;
}

.bh-footer .cb-location-value {
  font-size: 12.5px;
  color: rgba(250,250,248,0.62);
  line-height: 1.45;
}

/* Reach column: email link */
.bh-footer .cb-email-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: rgba(250,250,248,0.62);
  padding: 0.35rem 0;
  min-height: 44px;
  word-break: break-all;
  transition: color 0.15s ease;
}

.bh-footer .cb-email-link:hover {
  color: #FAFAF8;
}

.bh-footer .cb-email-link:focus-visible {
  outline: 2px solid #FBDC11;
  outline-offset: 2px;
  border-radius: 1px;
}

/* Social icons in Reach column */
.bh-footer .cb-socials {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.bh-footer .cb-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,250,248,0.62);
  border: 1px solid rgba(250,250,248,0.14);
  border-radius: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
}

.bh-footer .cb-social-link:hover {
  color: #FAFAF8;
  border-color: rgba(250,250,248,0.45);
}

.bh-footer .cb-social-link:focus-visible {
  outline: 2px solid #FBDC11;
  outline-offset: 2px;
  border-radius: 1px;
}

.bh-footer .cb-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- COLOPHON BAR ---- */
.bh-footer .cb-colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.bh-footer .cb-copyright {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 10.5px;
  color: rgba(250,250,248,0.55);
  letter-spacing: 0.02em;
}

/* ---- RESPONSIVE: tablet ---- */
@media (max-width: 768px) {
  .bh-footer .cb-ledger {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }

  .bh-footer .cb-col:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .bh-footer .cb-col:nth-child(even) {
    border-left: 1px solid rgba(250,250,248,0.14);
  }
}

/* ---- RESPONSIVE: mobile ----
   Two compact columns, NO internal hairlines. The tablet block's
   :nth-child dividers out-rank a bare .cb-col reset (that stray
   border-left was the "box" around the Studio column), so the
   resets below repeat the :nth-child selectors. Tightened rhythm
   so the footer stops stacking into a tower. */
@media (max-width: 520px) {
  .bh-footer {
    padding: 2rem 1.25rem 1.25rem;
  }

  .bh-footer .cb-top {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .bh-footer .cb-ledger {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .bh-footer .cb-col,
  .bh-footer .cb-col:first-child,
  .bh-footer .cb-col:nth-child(odd),
  .bh-footer .cb-col:nth-child(even) {
    border-left: none;
    border-top: none;
    padding: 0;
  }

  .bh-footer .cb-link-list li a {
    padding: 0.2rem 0;
  }

  .bh-footer .cb-colophon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .bh-footer .cb-link-list li a,
  .bh-footer .cb-email-link,
  .bh-footer .cb-social-link {
    transition: none;
  }
}
