/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(var(--rgb-white), 0.82);
  background:
    radial-gradient(circle at 8% 16%, rgba(var(--rgb-primary), 0.38), transparent 30%),
    radial-gradient(circle at 94% 10%, rgba(var(--rgb-accent), 0.12), transparent 24%),
    linear-gradient(135deg, #092f5c 0%, var(--color-primary-dark) 54%, #071d39 100%);
  isolation: isolate;
}

.site-footer::before {
  position: absolute;
  inset: 12px 2% auto auto;
  z-index: 0;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.32;
  background-image: radial-gradient(circle, rgba(var(--rgb-white), 0.34) 2px, transparent 2.8px);
  background-size: 17px 17px;
  border-radius: var(--radius-circle);
  mask-image: radial-gradient(circle at 44% 46%, #000 0 58%, transparent 72%);
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  inset: auto auto -44% -7%;
  z-index: 0;
  width: clamp(220px, 28vw, 390px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.24;
  background:
    radial-gradient(circle at 36% 32%, rgba(var(--rgb-white), 0.18), transparent 16%),
    radial-gradient(circle, rgba(var(--rgb-primary), 0.38), transparent 64%);
  border-radius: var(--radius-circle);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.26fr) repeat(4, minmax(126px, 0.72fr));
  align-items: start;
  padding-block: clamp(34px, 4.6vw, 58px) clamp(28px, 3.7vw, 44px);
  gap: clamp(22px, 4vw, 62px);
  direction: rtl;
}

.footer-brand,
.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  text-align: right;
}

.footer-brand {
  gap: 14px;
}

.footer-logo {
  display: inline-flex;
  margin: 0;
}

.footer-logo img {
  display: block;
  width: clamp(190px, 17vw, 250px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.16));
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  color: rgba(var(--rgb-white), 0.76);
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  font-weight: 600;
  line-height: 1.9;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0;
  color: rgba(var(--rgb-white), 0.9);
  background: rgba(var(--rgb-white), 0.055);
  border: 1px solid rgba(var(--rgb-white), 0.26);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-white);
  background: rgba(var(--rgb-white), 0.12);
  border-color: rgba(var(--rgb-white), 0.42);
  transform: translateY(-2px);
}

.footer-social svg,
.footer-contact svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.footer-column {
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--color-white);
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  font-weight: 600;
  line-height: var(--line-height-tight);
}

.footer-column a,
.footer-column > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0;
  gap: 8px;
  color: rgba(var(--rgb-white), 0.72);
  font-size: clamp(0.78rem, 0.86vw, 0.92rem);
  font-weight: 600;
  line-height: 1.65;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--color-white);
  transform: translateX(-2px);
}

.footer-contact a,
.footer-contact > span {
  direction: rtl;
  text-align: right;
}

.footer-contact a[href^="tel:"] span,
.footer-contact a[href^="mailto:"] span {
  direction: ltr;
  unicode-bidi: embed;
}

.footer-contact > span span {
  direction: rtl;
  unicode-bidi: plaintext;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  opacity: 0.95;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px 18px;
  color: rgba(var(--rgb-white), 0.68);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-top: 1px solid rgba(var(--rgb-white), 0.13);
}

.footer-bottom nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(var(--rgb-white), 0.74);
  transition: color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--color-white);
}

.footer-bottom nav a + a {
  position: relative;
  padding-inline-start: 12px;
}

.footer-bottom nav a + a::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1px;
  content: "";
  background: rgba(var(--rgb-white), 0.24);
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(150px, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
  }

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

@media (max-width: 560px) {
  .site-footer::before {
    inset: 6px auto auto -62px;
    width: 170px;
    opacity: 0.22;
  }

  .site-footer::after {
    width: 240px;
    opacity: 0.16;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    padding-block: 22px 16px;
    gap: 18px 16px;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer-logo img {
    width: clamp(150px, 44vw, 182px);
  }

  .footer-brand p {
    display: -webkit-box;
    max-width: 330px;
    margin-inline: auto;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .footer-social {
    gap: 6px;
    margin-top: 0;
  }

  .footer-social a {
    width: 28px;
    height: 28px;
  }

  .footer-column {
    justify-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-column h2 {
    margin-bottom: 4px;
    font-size: 0.9rem;
  }

  .footer-column a,
  .footer-column > span {
    width: auto;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .footer-grid > .footer-column:nth-child(4) {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    column-gap: 18px;
  }

  .footer-grid > .footer-column:nth-child(4) h2 {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center;
    gap: 6px 16px;
  }

  .footer-contact h2,
  .footer-contact > span {
    grid-column: 1 / -1;
  }

  .footer-contact svg {
    width: 15px;
    height: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding-block: 10px 12px;
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
  }

  .footer-bottom nav {
    gap: 8px;
  }
}

/* page-flow-atmosphere: start */
.site-footer {
  box-shadow: inset 0 1px 0 rgba(var(--rgb-white), 0.08), 0 -34px 70px rgba(var(--rgb-primary), 0.1);
}
/* page-flow-atmosphere: end */
