/* ===== FOOTER ===== */

.tm-footer {
  background: var(--wp--preset--color--bg-alt);
  padding: 80px 0 32px;
  border-top: 1px solid var(--wp--preset--color--border);
}

.tm-footer-grid {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 var(--tm-content-px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.tm-footer-wordmark {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 36px;
  font-weight: 500;
  color: var(--wp--preset--color--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.tm-footer-tagline {
  font-size: 14px;
  color: var(--wp--preset--color--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 260px;
}

.tm-footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  margin-bottom: 16px;
  display: block;
}

.tm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--wp--preset--color--text-body);
  line-height: 1.4;
}

.tm-footer-col a {
  font-size: 14px;
  color: var(--wp--preset--color--text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-col a:hover {
  color: var(--wp--preset--color--accent);
}

/* WP nav_menu wrapper */
.tm-footer-col .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-footer-col .menu li {
  margin-bottom: 10px;
}

.tm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px var(--tm-content-px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--wp--preset--color--border);
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
  gap: 16px;
}

.tm-footer-bottom a {
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-bottom a:hover {
  color: var(--wp--preset--color--accent);
}

/* Mobile — accordion */
@media (max-width: 768px) {
  .tm-footer {
    padding: 48px 0 24px;
  }

  .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 14px;
  }

  .tm-footer-brand {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--wp--preset--color--border);
    margin-bottom: 0;
  }

  .tm-footer-col details {
    border-bottom: 1px solid var(--wp--preset--color--border);
  }

  .tm-footer-col summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-muted);
  }

  .tm-footer-col summary::-webkit-details-marker {
    display: none;
  }

  .tm-footer-col summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--wp--preset--color--text-muted);
    line-height: 1;
  }

  .tm-footer-col details[open] summary::after {
    content: '\2212';
  }

  .tm-footer-col details ul,
  .tm-footer-col details .menu {
    padding-bottom: 16px;
  }

  .tm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 14px 0;
  }
}
