/* Footer — Pakshoo. Replaces the ported draft-02 footer.
   Scoped tokens only where the page has none; everything else reuses the site's
   Persian stack. Logical properties throughout, so RTL needs no mirrors. */

.ft {
  --ft-bg: #0a0806;
  --ft-ink: rgba(255, 255, 255, 0.72);
  --ft-ink-strong: #ffffff;
  --ft-muted: rgba(255, 255, 255, 0.65);
  --ft-line: rgba(255, 255, 255, 0.12);
  --ft-pink: #d9a24f;
  --ft-blue: #8a5f22;
  --ft-radius: 40px;

  position: relative;
  isolation: isolate;
  z-index: 2;            /* the rounded lip must sit over the cream band above */
  margin-block-start: -40px;
  border-start-start-radius: var(--ft-radius);
  border-start-end-radius: var(--ft-radius);
  background: var(--ft-bg);
  color: var(--ft-ink);
  font-family: "Vazirmatn", "Estedad", system-ui, sans-serif;
  overflow: clip;
}

/* ---------- atmosphere ---------- */
.ft__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
}

.ft__aurora {
  position: absolute;
  inline-size: 68vw;
  block-size: 68vw;
  max-inline-size: 900px;
  max-block-size: 900px;
  filter: blur(58px);
  will-change: transform;
}

.ft__aurora--pink {
  inset-block-start: -30%;
  inset-inline-start: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(217, 162, 79, 0.40), rgba(217, 162, 79, 0) 62%);
  animation: ft-drift-a 28s ease-in-out infinite alternate;
}

.ft__aurora--blue {
  inset-block-start: -34%;
  inset-inline-end: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(150, 104, 40, 0.30), rgba(150, 104, 40, 0) 62%);
  animation: ft-drift-b 32s ease-in-out infinite alternate;
}

@keyframes ft-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

@keyframes ft-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-3%, 4%, 0) scale(1); }
}

.ft__stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 58% 48%, rgba(255, 255, 255, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 26%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.35), transparent 100%),
    radial-gradient(1px 1px at 8% 76%, rgba(255, 255, 255, 0.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 88%, rgba(255, 255, 255, 0.34), transparent 100%),
    radial-gradient(1px 1px at 66% 78%, rgba(255, 255, 255, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 14%, rgba(255, 255, 255, 0.42), transparent 100%),
    radial-gradient(1px 1px at 18% 44%, rgba(255, 255, 255, 0.24), transparent 100%),
    radial-gradient(1px 1px at 50% 34%, rgba(255, 255, 255, 0.22), transparent 100%);
  animation: ft-twinkle 9s ease-in-out infinite alternate;
}

@keyframes ft-twinkle {
  from { opacity: 0.4; }
  to   { opacity: 0.66; }
}

.ft__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- container ---------- */
.ft__inner {
  position: relative;
  z-index: 1;
  max-inline-size: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
  padding-block: 72px 0;
}

.ft__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr)) minmax(240px, 1.4fr);
  gap: 48px;
  align-items: start;
}

/* ---------- reveal (progressive: visible unless JS arms it) ---------- */
.ft--ready .ft__brand,
.ft--ready .ft__col {
  opacity: 0;
  transform: translateY(8px);
}

.ft--in .ft__brand,
.ft--in .ft__col {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease-out calc(var(--i, 0) * 60ms),
    transform 0.5s ease-out calc(var(--i, 0) * 60ms);
}

/* ---------- brand block ---------- */
.ft__brand {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.ft__logo {
  display: inline-block;
  border-radius: 12px;
}

.ft__logo img {
  inline-size: 160px;
  block-size: auto;
  display: block;
}

.ft__claim {
  margin: 0;
  max-inline-size: 28ch;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: balance;
}

.ft__keep {
  white-space: nowrap;
}

.ft__social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft__social a {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out,
    background-color 0.2s ease-out;
}

.ft__social a:hover {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--ft-pink), var(--ft-blue));
  transform: translateY(-2px);
}

.ft__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  padding-inline: 20px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--ft-pink), #a8762a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.ft__cta svg {
  flex: none;
}

.ft__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(217, 162, 79, 0.85);
}

/* ---------- columns ---------- */
.ft__title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
}

.ft__title::before {
  content: "";
  inline-size: 24px;
  block-size: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--ft-pink), var(--ft-blue));
}

.ft__title--sub {
  margin-block-start: 28px;
}

.ft__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ft-ink);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.ft__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 6px;
  block-size: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.2s ease-out;
}

.ft__list a:hover,
.ft__list a:focus-visible {
  color: var(--ft-ink-strong);
}

.ft__list a:hover::after,
.ft__list a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- contact ---------- */
.ft__address {
  display: grid;
  gap: 12px;
  margin: 0;
  font-style: normal;
}

.ft__pair {
  display: grid;
  gap: 2px;
}

.ft__label {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ft-muted);
}

.ft__value {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ft-ink-strong);
}

.ft__phones {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.ft__phones a {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ft-ink-strong);
  text-decoration: none;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  text-align: start;
  min-block-size: 28px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease-out;
}

.ft__phones a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ft-pink);
}

/* ---------- wordmark ---------- */
.ft__wordmark {
  margin-block: 48px 16px;
}

.ft__word {
  display: block;
  inline-size: 100%;
  block-size: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.ft__word text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 150px;
  font-weight: 700;
}

/* ---------- bottom bar ---------- */
.ft__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ft__bottom::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.ft__copy {
  /* the page sets a global p{} colour and a 30rem max-width; neither belongs here */
  margin: 0;
  max-inline-size: none;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.ft__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ft__iso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 5px;
  padding-inline: 11px;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  font-size: 13px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.ft__iso svg {
  color: var(--ft-pink);
}

.ft__top {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 1px solid var(--ft-line);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}

.ft__top:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

/* ---------- focus ---------- */
.ft a:focus-visible,
.ft button:focus-visible {
  outline: 2px solid var(--ft-pink);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .ft__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .ft__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
  }

  .ft__brand > .ft__logo,
  .ft__brand > .ft__claim {
    flex: 1 1 260px;
  }
}

@media (max-width: 1023px) {
  .ft__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .ft__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .ft__inner {
    padding-inline: 20px;
    padding-block: 48px 0;
  }

  .ft__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ft__brand {
    display: grid;
    justify-items: start;
  }

  .ft__list a,
  .ft__phones a {
    min-block-size: 44px;
  }

  .ft__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ft__end {
    order: -1;
  }
}

@media (hover: none) {
  .ft__list a {
    min-block-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft__aurora,
  .ft__stars {
    animation: none;
  }

  .ft--ready .ft__brand,
  .ft--ready .ft__col,
  .ft--in .ft__brand,
  .ft--in .ft__col {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ft a,
  .ft button {
    transition: none;
  }
}
