﻿:root {
  --cyrus-home-footer-max: var(--max, 1416px);
  --cyrus-home-footer-bg: var(--bg, #101423);
  --cyrus-home-footer-text: var(--text, #fffaf2);
  --cyrus-home-footer-muted: var(--muted, rgba(255, 250, 242, 0.72));
  --cyrus-home-footer-line: var(--line, rgba(255, 255, 255, 0.12));
  --cyrus-home-footer-accent: #6f9a3e;
}

.home-footer {
  margin-top: clamp(22px, 3.8vw, 44px);
  background: var(--cyrus-home-footer-bg);
  color: var(--cyrus-home-footer-text);
}

.home-footer-inner {
  width: min(var(--cyrus-home-footer-max), calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 56px) 0 34px;
}

/* .home-footer-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) repeat(3, minmax(190px, 1fr));
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
} */

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) repeat(4, minmax(128px, 0.52fr));
  column-gap: clamp(22px, 2.4vw, 42px);
  row-gap: 34px;
  align-items: start;
}

.home-footer-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-inline-end: clamp(18px, 2.8vw, 48px);
}

.home-footer-logo {
  width: clamp(132px, 11vw, 184px);
  height: auto;
  object-fit: contain;
}

.home-footer-enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-height: 112px;
  padding: 9px;
  border: 1px solid var(--cyrus-home-footer-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.home-footer-enamad img {
  width: 94px;
  height: auto;
  object-fit: contain;
}

:root[data-theme="light"] .home-footer-title {
  color: rgba(17, 24, 39, 0.58);
}

.home-footer-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  color: rgba(255, 250, 242, 0.66);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.home-footer-links {
  display: grid;
  gap: 2px;
}

.home-footer-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  color: var(--cyrus-home-footer-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.home-footer-link:hover {
  color: var(--cyrus-home-footer-muted);
}

.home-footer-link-button {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: inherit;
  background: transparent;
  cursor: pointer;
}

.home-footer-divider {
  display: none;
}

.home-footer-bottom {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 20px;
  align-items: center;
  padding-top: clamp(34px, 5vw, 58px);
}

.home-footer-copy {
  margin: 0;
  color: var(--cyrus-home-footer-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.home-footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  direction: ltr;
}

.home-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--cyrus-home-footer-text);
}

.home-footer-social:hover {
  color: var(--cyrus-home-footer-accent);
}

.home-footer-social svg {
  width: 18px;
  height: 18px;
}

.home-footer-legal {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.home-footer-legal a {
  color: var(--cyrus-home-footer-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

html[dir="rtl"] .home-footer-copy {
  text-align: center;
}

html[dir="rtl"] .home-footer-legal {
  justify-content: flex-end;
  direction: rtl;
}

html[dir="rtl"] .home-footer-socials {
  /* justify-content: flex-start; */

  justify-content: flex-end;

}

html[dir="rtl"] .home-footer-link {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .home-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer-brand {
    justify-items: start;
      margin-inline-end: 0;
  }

  html[dir="rtl"] .home-footer-brand {
    justify-items: end;
  }
}

@media (max-width: 720px) {
  .home-footer-inner {
    width: min(100% - 28px, var(--cyrus-home-footer-max));
  }

  .home-footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-footer-socials {
    justify-content: center;
  }

  .home-footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  html[dir="rtl"] .home-footer-bottom {
    justify-items: center;
  }
}
