/* Shared CSTH footer layout — tokens from css/csth-tokens.css; --brand from page theme */

.footer {
  padding: 3.75rem 0 3.5rem;
  color: #ffffff;
  background: #222222;
  font-family: "Maven Pro", "PT Sans", "Segoe UI", sans-serif;
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max, 1320px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.25rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-copy p {
  max-width: 20rem;
  margin: 0;
  color: #c9d4db;
  font-size: 1rem;
  line-height: 1.65;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.social-icon {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #334858;
  opacity: 0.5;
}

a.social-icon {
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a.social-icon:hover {
  opacity: 0.9;
  transform: scale(1.1);
  background: #ffffff;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0;
  line-height: 0;
}

.footer-logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #a8b8c4;
  text-align: center;
}

.footer-links {
  display: grid;
  gap: 0;
  align-content: start;
}

.footer-links .ghost-link {
  margin-bottom: 12px;
}

.footer-links .ghost-link:last-child {
  margin-bottom: 0;
}

.footer-title {
  margin: 0 0 12px;
  font-family: "Maven Pro", "PT Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.footer-inner a.ghost-link {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-inner a.ghost-link:hover {
  color: #ffffff;
  text-decoration-color: #31464f;
}

@media (max-width: 1080px) {
  .footer-inner {
    width: min(calc(100% - 2rem), var(--max, 1320px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    width: min(calc(100% - 1.2rem), var(--max, 1320px));
  }
}

/* ——— Partner link accent colors ——— */
/* Footer partner links — brand-colored underline on hover */
.footer-inner a.ghost-link.footer-partner-link--osp:hover {
  color: #ffffff;
  text-decoration-color: #fdb819;
}

.footer-inner a.ghost-link.footer-partner-link--continental:hover {
  color: #ffffff;
  text-decoration-color: #2051a0;
}

.footer-inner a.ghost-link.footer-partner-link--ezpack:hover {
  color: #ffffff;
  text-decoration-color: #1b8f54;
}

.footer-inner a.ghost-link.footer-partner-link--dynamic:hover {
  color: #ffffff;
  text-decoration-color: #cc4749;
}

/* Home page Breakdance footer */
.bde-text-link.footer-partner-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.15s ease;
}

.bde-text-link.footer-partner-link--osp:hover {
  text-decoration-color: #fdb819;
}

.bde-text-link.footer-partner-link--continental:hover {
  text-decoration-color: #2051a0;
}

.bde-text-link.footer-partner-link--ezpack:hover {
  text-decoration-color: #1b8f54;
}

.bde-text-link.footer-partner-link--dynamic:hover {
  text-decoration-color: #cc4749;
}
