/* Shared site footer — works on marketing pages and case studies via token fallbacks */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  footer .container {
    padding: 0 24px;
  }
}

footer {
  --ft-border: var(--border, var(--rule, #222222));
  --ft-muted: var(--muted, var(--dim, #6b6b6b));
  --ft-silver: var(--silver, var(--dim, #a3a3a3));
  --ft-orange: var(--orange, var(--accent, #f2994a));
  --ft-text: var(--text, #f0ede8);
  --ft-bg: var(--bg, #131313);
  --ft-surface: var(--surface, var(--bg-2, #111111));
  --ft-logo-w: var(--hero-logo-w, calc(183px * 0.8));
  --ft-logo-h: var(--hero-logo-h, calc(73px * 0.8));

  font-family: 'Lato', sans-serif;
  border-top: 1px solid var(--ft-border);
  padding: 0;
}

footer > .container {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(220px, 300px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 72px);
  border-bottom: 1px solid var(--ft-border);
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo img {
  display: block;
  width: calc(var(--ft-logo-w) * 0.88);
  height: calc(var(--ft-logo-h) * 0.88);
  object-fit: contain;
  object-position: 0 50%;
}

.footer-logo:focus-visible {
  outline: 2px solid var(--ft-orange);
  outline-offset: 4px;
}

.footer-blurb {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ft-silver);
  max-width: 400px;
}

.footer-nav-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 48px);
}

.footer-col {
  min-width: 112px;
}

.footer-col-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ft-text);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ft-border);
}

.footer-col-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 14px;
  color: var(--ft-muted);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-col-links a:hover {
  color: var(--ft-silver);
  text-decoration: underline;
}

.footer-col-links a:focus-visible {
  outline: 2px solid var(--ft-orange);
  outline-offset: 3px;
}

.footer-newsletter {
  min-width: 0;
}

.footer-newsletter-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ft-text);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ft-border);
}

.footer-newsletter-desc {
  font-size: 13px;
  color: var(--ft-muted);
  margin: 14px 0 16px;
  line-height: 1.5;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--ft-text);
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 2px;
}

.footer-newsletter-input::placeholder {
  color: var(--ft-muted);
}

.footer-newsletter-input:focus-visible {
  outline: 2px solid var(--ft-orange);
  outline-offset: 2px;
  border-color: var(--ft-orange);
}

.footer-newsletter-submit {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ft-bg);
  background: var(--ft-orange);
  padding: 12px 20px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.footer-newsletter-submit:hover {
  opacity: 0.88;
}

.footer-newsletter-submit:focus-visible {
  outline: 2px solid var(--ft-text);
  outline-offset: 3px;
}

.footer-newsletter .sib-form-message-panel {
  display: none;
}

.footer-newsletter .sib-form-message-panel.sib-form-message-panel--active {
  display: block;
}

.footer-newsletter .sib-form-block__button .progress-indicator__icon {
  display: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.35em;
  fill: currentColor;
}

.footer-newsletter .sib-form-block__button-with-loader:not(.sib-form-block__button-disabled) .progress-indicator__icon.sib-hide-loader-icon {
  display: none;
}

.footer-newsletter .sib-form-block__button-disabled {
  opacity: 0.65;
  cursor: wait;
}

.footer-newsletter .sib-form-block__button-disabled .progress-indicator__icon {
  display: inline-block;
}

.footer-newsletter-alert {
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.footer-newsletter-alert--error {
  color: #f5c6c6;
  background: rgba(102, 29, 29, 0.35);
  border: 1px solid #ff4949;
}

.footer-newsletter-alert--success {
  color: #b8e6c8;
  background: rgba(8, 82, 41, 0.35);
  border: 1px solid #13ce66;
}

.footer-newsletter #sib-container {
  max-width: none;
  text-align: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.footer-newsletter .entry__error {
  display: none;
  font-size: 13px;
  color: #f5c6c6;
  margin-top: 6px;
}

.footer-newsletter .entry__error:not(:empty) {
  display: block;
}

.footer-newsletter .input--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  color: var(--ft-muted);
}

.footer-legal-sep {
  user-select: none;
}

.footer-legal a {
  color: var(--ft-muted);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--ft-silver);
  text-decoration: underline;
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--ft-orange);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .footer-blurb {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer-nav-cols {
    grid-template-columns: 1fr;
  }

  .footer-logo img {
    width: calc(140px * 0.8 * 0.88);
    height: calc(56px * 0.8 * 0.88);
  }
}
