/* Aniyab UI — Footer (desktop v1 + mobile v1)
 * From Figma: Footer and menu / footer desktop v1 + footer mobile v1
 */

.ay-footer {
  box-sizing: border-box;
  margin-top: 0;
  padding: 32px 0 0;
  background: var(--ay-bg-white, #FFFFFF);
  color: var(--ay-text-main, #404040);
  font-family: var(--ay-font-family, dana, DanaFaNum, IRANSansfanum, Tahoma, sans-serif);
}

.ay-footer *,
.ay-footer *::before,
.ay-footer *::after {
  box-sizing: border-box;
}

.ay-footer__inner {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 72px;
}

.ay-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(2, minmax(140px, 0.7fr)) minmax(260px, 1.1fr);
  gap: 56px;
  align-items: start;
}

.ay-footer__grid--classic {
  grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.8fr) minmax(280px, 1.1fr);
}

.ay-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ay-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ay-footer__logo {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.ay-footer__title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  color: var(--ay-text-title, #302E2E);
}

.ay-footer__about {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-secondary, #737373);
}

.ay-footer__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ay-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ay-text-tertiary, #A3A3A3);
  border-radius: 8px;
  color: var(--ay-text-main, #404040);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.ay-footer__social-link:hover {
  border-color: var(--ay-text-main, #404040);
  color: var(--ay-brand-primary, #002D71);
  text-decoration: none;
  transform: scale(1.05);
}

.ay-footer__social-link svg,
.ay-footer__social-link img {
  display: block;
  width: 18px;
  height: 18px;
}

.ay-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ay-footer__links a {
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-main, #404040);
  text-decoration: none;
}

.ay-footer__links a:hover {
  color: var(--ay-brand-primary-light, #0545A6);
  text-decoration: none;
}

.ay-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ay-footer__contact-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ay-footer__contact-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-title, #302E2E);
  text-decoration: none;
}

.ay-footer__contact-row:hover {
  color: var(--ay-brand-primary-light, #0545A6);
  text-decoration: none;
}

.ay-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ay-text-secondary, #737373);
}

.ay-footer__address {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ay-footer__address-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-title, #302E2E);
}

.ay-footer__address-text {
  margin: 0;
  padding-inline-start: 24px;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  color: var(--ay-text-main, #404040);
}

.ay-footer__nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin-inline-start: 18px;
  padding: 6px;
  border-radius: 8px;
  color: var(--ay-brand-primary, #002D71);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  text-decoration: none;
  width: fit-content;
}

.ay-footer__nav-link:hover {
  color: var(--ay-brand-primary-light, #0545A6);
  text-decoration: none;
}

.ay-footer__nav-link svg {
  width: 18px;
  height: 18px;
}

.ay-footer__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.ay-footer__badges img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  cursor: pointer;
}

.ay-footer__map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: 18px;
}

.ay-footer__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ay-footer__form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ay-footer__input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ay-border-dark, #D6D3D1);
  border-radius: 8px;
  background: var(--ay-surface-white, #FFFFFF);
  color: var(--ay-text-main, #404040);
  font-family: inherit;
  font-size: 14px;
  line-height: 28px;
}

.ay-footer__input:focus {
  outline: 2px solid var(--ay-brand-primary-lighter, #3974CD);
  outline-offset: 0;
  border-color: var(--ay-brand-primary-lighter, #3974CD);
}

.ay-footer__badges-row {
  display: none;
}

.ay-footer__bottom {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--ay-border-dark, #D6D3D1);
}

.ay-footer__copy {
  margin: 0;
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  color: var(--ay-text-secondary, #737373);
}

/* Links split helper for mobile two-column */
.ay-footer__links-grid {
  display: contents;
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
  .ay-footer__inner {
    padding: 0 32px;
  }

  .ay-footer__grid,
  .ay-footer__grid--classic {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 991.98px) {
  .ay-footer {
    padding: 24px 0 0;
    background: var(--ay-bg-dark, #F4F4F5);
  }

  .ay-footer__inner {
    padding: 0 16px;
  }

  .ay-footer__grid,
  .ay-footer__grid--classic {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ay-footer__logo {
    width: 80px;
    height: 80px;
  }

  .ay-footer__links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }

  .ay-footer__links-grid .ay-footer__col {
    gap: 8px;
  }

  .ay-footer__links-grid .ay-footer__title {
    grid-column: 1 / -1;
  }

  .ay-footer__links-grid .ay-footer__col:nth-child(2) .ay-footer__title {
    display: none;
  }

  .ay-footer__contact .ay-footer__badges,
  .ay-footer__newsletter .ay-footer__badges {
    justify-content: center;
    width: 100%;
  }

  .ay-footer__badges img {
    height: 64px;
    max-width: 80px;
  }
}

@media (max-width: 575.98px) {
  .ay-footer__inner {
    padding: 0 16px;
  }

  .ay-footer__about {
    font-size: 12px;
    line-height: 24px;
  }

  .ay-footer__copy {
    font-size: 11px;
    line-height: 20px;
  }
}
