﻿: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;
  --cyrus-home-footer-mark-size: clamp(132px, 9vw, 152px);
}

.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(140px, 0.55fr) repeat(4, minmax(132px, 1fr));
  column-gap: clamp(24px, 3vw, 52px);
  row-gap: 34px;
  align-items: start;
}

.home-footer-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  align-content: start;
  margin-inline-end: 0;
}

.home-footer-logo {
  width: calc(var(--cyrus-home-footer-mark-size) * 1.12);
  height: calc(var(--cyrus-home-footer-mark-size) * 1.12);
  object-fit: contain;
}

.home-footer-enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cyrus-home-footer-mark-size);
  min-height: var(--cyrus-home-footer-mark-size);
  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: calc(var(--cyrus-home-footer-mark-size) - 18px);
  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;
}

html[dir="ltr"] .home-footer-col,
html[dir="ltr"] .home-footer-title,
html[dir="ltr"] .home-footer-link {
  text-align: left;
}

html[dir="ltr"] .home-footer-title {
  justify-self: start;
}

html[dir="rtl"] .home-footer-col,
html[dir="rtl"] .home-footer-title,
html[dir="rtl"] .home-footer-link {
  text-align: right;
}

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

@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) {
  :root {
    --cyrus-home-footer-mark-size: 136px;
  }

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

  .home-footer-main {
    direction: inherit;
    grid-template-columns: minmax(136px, 0.58fr) minmax(0, 1fr);
    gap: 30px 22px;
    align-items: start;
  }

  .home-footer-brand {
    grid-column: 1;
    justify-items: center;
  }

  html[dir="rtl"] .home-footer-brand {
    grid-column: 2;
    justify-items: center;
  }

  .home-footer-col {
    grid-column: 2;
    justify-self: stretch;
  }

  html[dir="rtl"] .home-footer-col {
    grid-column: 1;
  }

  .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;
  }

  .home-footer-brand,
  .home-footer-col,
  .home-footer-links,
  .home-footer-bottom,
  .home-footer-copy,
  .home-footer-legal {
    min-width: 0;
  }

  .home-footer-link,
  .home-footer-copy,
  .home-footer-legal a {
    overflow-wrap: anywhere;
  }

  html[dir="ltr"] .home-footer-col,
  html[dir="ltr"] .home-footer-title,
  html[dir="ltr"] .home-footer-link {
    direction: ltr;
    text-align: left;
  }

  html[dir="rtl"] .home-footer-col,
  html[dir="rtl"] .home-footer-title,
  html[dir="rtl"] .home-footer-link {
    direction: rtl;
    text-align: right;
  }

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

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

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

@media (max-width: 420px) {
  :root {
    --cyrus-home-footer-mark-size: 118px;
  }

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

  .home-footer-main {
    grid-template-columns: minmax(118px, 0.5fr) minmax(0, 1fr);
    gap: 28px 16px;
  }
}
