/*
 * TherapyBuilt -- footer.css
 *
 * All footer styles live here. No inline overrides needed.
 * Layout: three-column grid (brand / quick links / contact)
 * Bottom bar: copyright | legal links | site credit
 */

/* Shell */
.tb-footer {
  background-color: var(--tb-surface-2, #e8e4e0);
  color: var(--tb-text);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 0;
}

.tb-footer__inner {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

/* Three-column grid */
.tb-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

/* Brand column */
.tb-footer__logo-img {
  height: var(--tb-logo-height, 44px);
  width: auto;
  margin-bottom: var(--space-4);
}

.tb-footer__logo-link {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.tb-footer__logo-text {
  display: inline-block;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--tb-heading);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.tb-footer__tagline {
  font-size: var(--text-sm);
  color: var(--tb-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 30ch;
  margin: 0 0 var(--space-5);
}

/* Link columns */
.tb-footer__col-heading {
  font-size: .7rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--tb-text-muted);
  margin-bottom: var(--space-4);
}

.tb-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tb-footer__nav li { margin: 0; }

.tb-footer__nav li,
.tb-footer__nav li a,
.tb-footer__nav li span,
.tb-footer__nav li p {
  font-size: var(--text-sm);
  color: var(--tb-text);
  font-family: var(--font-body);
  line-height: var(--line-height-relaxed);
}

.tb-footer__nav a {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tb-footer__nav a:hover { color: var(--tb-primary); }

.tb-footer__address {
  font-size: var(--text-sm);
  color: var(--tb-text);
  line-height: var(--line-height-relaxed);
}

/* Bottom bar */
.tb-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  flex-wrap: wrap;
}

.tb-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.tb-footer__copyright {
  font-size: var(--text-sm);
  color: var(--tb-text-muted);
  margin: 0;
}

.tb-footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tb-footer__legal-links a {
  font-size: var(--text-sm);
  color: var(--tb-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.tb-footer__legal-links a:hover { color: var(--tb-primary); }

/* WP nav menu inside legal links */
.tb-footer__legal-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-footer__legal-nav li { margin: 0; }

.tb-footer__legal-nav li + li::before {
  content: '\00B7';
  margin-right: var(--space-3);
  color: var(--tb-text-muted);
  opacity: 0.5;
}

.tb-footer__legal-nav a {
  font-size: var(--text-sm);
  color: var(--tb-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.tb-footer__legal-nav a:hover { color: var(--tb-primary); }

.tb-footer__legal-sep {
  color: var(--tb-text-muted);
  opacity: 0.5;
  font-size: var(--text-sm);
  line-height: 1;
}

.tb-footer__credit {
  font-size: var(--text-sm);
  color: var(--tb-text-muted);
  white-space: nowrap;
}

.tb-footer__credit a {
  color: var(--tb-text-muted);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

.tb-footer__credit a:hover { color: var(--tb-primary); }

/* Responsive */
@media (max-width: 768px) {
  .tb-footer__grid { grid-template-columns: 1fr 1fr; }
  .tb-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .tb-footer__grid { grid-template-columns: 1fr; }
  .tb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .tb-footer__bottom-right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .tb-footer__legal-sep { display: none; }
}