/* Match the homepage card width, surface, and responsive gutters. */
body.home-modern .home-footer {
  width: min(var(--home-width, 1180px), calc(100% - 40px));
  max-width: var(--home-width, 1180px);
  margin: 28px auto;
  padding: 36px 36px 0;
  box-sizing: border-box;
  position: relative;
  border: 1px solid var(--home-border, #293246);
  border-radius: var(--home-radius, 24px);
  background: radial-gradient(ellipse at 100% 0%, #8ced7208, transparent 55%), var(--home-panel, #101522);
  box-shadow: 0 12px 32px #00000016;
  color: var(--home-muted, #a0abc0);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  text-align: right;
}
.home-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr)) 148px;
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
}
.home-footer-brand { min-width: 0; }
.home-footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.home-footer-logo img {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
}
.home-footer-brand p {
  max-width: 280px;
  margin: 14px 0 18px;
  font-size: 13px;
  line-height: 2;
}
.home-footer a {
  color: var(--home-muted, #a0abc0);
  text-decoration: none;
  transition: color .18s, background-color .18s, border-color .18s;
}
.home-footer a:hover { color: var(--sibmo-green, #8ced72); }
.home-footer a:focus-visible {
  outline: 2px solid var(--sibmo-green, #8ced72);
  outline-offset: 4px;
  border-radius: 6px;
}
.home-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--home-border, #293246);
  border-radius: 12px;
  background: #ffffff03;
  color: #c4cedd;
  font-size: 12px;
}
.home-footer-socials a:hover {
  background: #8ced720b;
  border-color: #8ced7245;
}
.home-footer-socials i { font-size: 17px; }
.home-footer-nav h2 {
  margin: 10px 0 14px;
  color: var(--home-text, #edf0f8);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}
.home-footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.8;
}
.home-footer-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  box-sizing: border-box;
  border: 1px solid var(--home-border, #293246);
  border-radius: 18px;
  background: #ffffff03;
}
.home-footer-trust > a {
  display: block;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
}
.home-footer-trust img {
  display: block;
  width: 100px;
  height: auto;
  aspect-ratio: 125 / 136;
}
.home-footer-trust > span {
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
  color: #b4bfd0;
}
.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 12px 0;
  border-top: 1px solid var(--home-border, #293246);
  font-size: 11px;
  line-height: 2;
}
.home-footer-bottom p { margin: 0; }
.home-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #c5d5c7;
  font-size: 12px;
}
.home-footer-bottom a span { color: var(--sibmo-green, #8ced72); font-size: 18px; }
@media (max-width: 1000px) {
  .home-footer-main {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .home-footer-trust {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 20px;
  }
  .home-footer-trust img { width: 70px; }
  .home-footer-trust > span { font-size: 12px; }
}
@media (max-width: 760px) {
  body.home-modern .home-footer {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 24px 20px 0;
  }
  .home-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .home-footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--home-border, #293246);
  }
  .home-footer-brand p { max-width: 380px; margin-bottom: 16px; }
  .home-footer-nav h2 { margin-top: 0; margin-bottom: 8px; }
  .home-footer-bottom { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-footer a { transition: none; }
}
