/* ===== FOOTER ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; /* 14px */
  color: var(--text);
}

/* ── Top columns ──────────────────────────────────────────── */
.footer-top {
  padding: 3.5rem 0 3rem; /* 56px 0 48px */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; /* 48px */
  align-items: start;
}

/* Brand column */
.footer-logo {
  display: inline-flex;
  width: 15.625rem; /* 250px */
  height: 5rem; /* 80px */
  margin-bottom: 0.625rem; /* 10px */
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.875rem; /* 14px */
  color: var(--text-muted);
  margin-bottom: 0.875rem; /* 14px */
}

.footer-desc {
  font-size: 0.875rem; /* 14px */
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 18.75rem; /* 300px */
  margin-bottom: 1.5rem; /* 24px */
}

.footer-social-label {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.75rem; /* 12px */
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-row > svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--text);
}

.footer-social-platform {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  min-width: 4.25rem;
}

.footer-social-regions {
  display: flex;
  gap: 0.25rem;
}

.footer-social-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.0625rem 0.3125rem;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.15s, border-color 0.15s;
}

.footer-social-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Link columns */
.footer-col-heading {
  font-size: 0.75rem; /* 12px */
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem; /* 16px */
}

.footer-col-solutions > li > a > span > span {
  color: var(--primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem; /* 6px */
  font-size: 0.875rem; /* 14px */
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

/* ── Newsletter bar ───────────────────────────────────────── */
.footer-newsletter-wrap {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0; /* 24px */
}

.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* 24px */
  flex-wrap: wrap;
}

.footer-newsletter-text {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-newsletter-form {
  display: flex;
  flex: 1;
  min-width: 15rem; /* 240px */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem; /* 8px */
  overflow: hidden;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.625rem 1rem; /* 10px 16px */
  border: none;
  outline: none;
  font-size: 0.875rem; /* 14px */
  color: var(--text);
  background: transparent;
  font-family: inherit;
}

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

.footer-newsletter-form button {
  padding: 0.625rem 1.25rem; /* 10px 20px */
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}

.footer-newsletter-form button:hover {
  background: var(--primary);
}

/* Cert badges */
.footer-certs {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  flex-shrink: 0;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem; /* 2px */
  width: 3.25rem; /* 52px */
  height: 3.25rem; /* 52px */
  border: 1.5px solid var(--border);
  border-radius: 0.5rem; /* 8px */
  background: #fff;
  justify-content: center;
  padding: 0.25rem; /* 4px */
  color: var(--text-muted);
}

.cert-badge i {
  font-size: 1rem; /* 16px */
  line-height: 1;
}

.cert-badge span {
  font-size: 0.5625rem; /* 9px */
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}

/* ── Bottom bar ───────────────────────────────────────────── */
.footer-bottom {
  padding: 1.25rem 0; /* 20px */
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0; /* 4px */
  margin-bottom: 0.625rem; /* 10px */
}

.footer-legal a {
  font-size: 0.8125rem; /* 13px */
  font-weight: 200;
  color: var(--text-muted);
  padding: 0 0.5rem; /* 0 8px */
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-sep {
  color: var(--border);
  font-size: 0.8125rem; /* 13px */
  user-select: none;
}

.footer-copy {
  font-size: 0.8125rem; /* 13px */
  font-weight: 200;
  color: var(--text-muted);
  width: 100%;
  max-width: none;
}

.icon-flags > li > a > img {
  width: auto;
  height: 1.25rem; /* 20px */
  border: 1px solid var(--text-light);
  border-radius: 0.1875rem; /* 3px */
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 64em) {
  /* 1024px */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.25rem; /* 36px */
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 2.5rem; /* 40px */
  }

  .footer-logo {
    grid-row: 1;
    grid-column: 1;
  }
  .footer-tagline {
    grid-row: 2;
    grid-column: 1;
  }
  .footer-desc {
    grid-row: 3;
    grid-column: 1;
    max-width: 17.5rem; /* 280px */
  }
  .footer-social-label {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
  }
  .footer-social {
    grid-row: 2;
    grid-column: 2;
  }
}

@media (max-width: 48em) {
  /* 768px */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: block;
  }

  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter-text {
    white-space: normal;
  }

  .footer-certs {
    justify-content: center;
  }

  .footer-legal {
    gap: 0.375rem 0; /* 6px */
  }
}

@media (max-width: 30em) {
  /* 480px */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
