/* Aniyab UI — About us
 * From Figma: about us - desktop / about us - mobile
 */

.ay-about {
  background: var(--ay-bg-lighter, #FEFEFE);
  font-family: var(--ay-font-family, dana, DanaFaNum, IRANSansfanum, Tahoma, sans-serif);
  color: var(--ay-text-main, #404040);
  padding-block: 32px 90px;
}

.ay-about__inner {
  width: min(1222px, calc(100% - 32px));
  margin-inline: auto;
}

.ay-about__breadcrumb {
  margin-bottom: 24px;
  overflow: hidden;
}

/* ── Page head ── */
.ay-about__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 48px;
}

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

.ay-about__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--ay-text-main, #404040);
  border-radius: 8px;
  text-decoration: none;
}

.ay-about__back:hover,
.ay-about__back:focus-visible {
  color: var(--ay-brand-primary-light, #0545A6);
}

.ay-about__back:focus-visible {
  outline: 2px solid var(--ay-brand-primary-light, #0545A6);
  outline-offset: 2px;
}

.ay-about__back svg {
  width: 24px;
  height: 24px;
  display: block;
}

[dir="ltr"] .ay-about__back svg {
  transform: scaleX(-1);
}

.ay-about__title {
  margin: 0;
  font-weight: var(--ay-type-display-md-weight, 500);
  font-size: var(--ay-type-display-md-size, 24px);
  line-height: var(--ay-type-display-md-line, 40px);
  color: var(--ay-text-title, #302E2E);
}

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

.ay-about__body {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

/* ── Intro: text + logo ── */
.ay-about-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ay-about-intro__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 719px;
  min-width: 0;
}

.ay-about-intro__title {
  margin: 0;
  font-weight: var(--ay-type-display-lg-weight, 600);
  font-size: var(--ay-type-display-lg-size, 28px);
  line-height: var(--ay-type-display-lg-line, 44px);
  color: var(--ay-text-title, #302E2E);
}

.ay-about-intro__list {
  margin: 0;
  padding-inline-start: 24px;
  list-style: disc;
  font-weight: var(--ay-type-text-xl-weight, 500);
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-text-title, #302E2E);
  text-align: justify;
}

.ay-about-intro__list li::marker {
  color: var(--ay-text-title, #302E2E);
}

.ay-about-intro__list strong {
  font-weight: var(--ay-type-text-xl-bold-weight, 700);
}

.ay-about-intro__text {
  margin: 0;
  font-weight: var(--ay-type-text-xl-weight, 500);
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-text-main, #404040);
  text-align: justify;
}

.ay-about-intro__logo {
  flex: none;
  width: 291px;
  height: 291px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ay-about-intro__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Gallery ── */
.ay-about-gallery {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1222 / 716;
  background: #F3F5F6;
  border-radius: var(--ay-radius-card, 16px);
  isolation: isolate;
}

.ay-about-gallery__track {
  position: absolute;
  inset: 0;
}

.ay-about-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.ay-about-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

.ay-about-gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ay-about-gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 240px 24px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  color: var(--ay-text-contrast, #FFFFFF);
  text-align: center;
  pointer-events: none;
}

.ay-about-gallery__title {
  margin: 0;
  font-weight: var(--ay-type-display-xl-weight, 600);
  font-size: var(--ay-type-display-xl-size, 36px);
  line-height: var(--ay-type-display-xl-line, 48px);
}

.ay-about-gallery__sub {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
}

.ay-about-gallery__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  pointer-events: auto;
}

.ay-about-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 1000px;
  background: #8E8E93;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.ay-about-gallery__dot.is-active {
  width: 20px;
  background: #FFFFFF;
}

.ay-about-gallery__dot:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.ay-about-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: var(--ay-elevation-sm, 0px 1px 8px rgba(163, 163, 163, 0.25));
  transition: background-color 0.2s ease;
}

.ay-about-gallery__nav:hover {
  background: var(--ay-bg-dark, #F4F4F5);
}

.ay-about-gallery__nav:focus-visible {
  outline: 2px solid var(--ay-brand-primary-light, #0545A6);
  outline-offset: 2px;
}

.ay-about-gallery__nav svg {
  width: 24px;
  height: 24px;
  display: block;
}

.ay-about-gallery__nav--prev {
  inset-inline-start: 16px;
}

.ay-about-gallery__nav--next {
  inset-inline-end: 16px;
}

.ay-about-gallery__nav--next svg,
[dir="ltr"] .ay-about-gallery__nav--prev svg {
  transform: scaleX(-1);
}

[dir="ltr"] .ay-about-gallery__nav--next svg {
  transform: none;
}

/* ── Why Aniyab ── */
.ay-about-why {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ay-about-why__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  text-align: center;
}

.ay-about-why__title {
  margin: 0;
  font-weight: var(--ay-type-display-md-weight, 500);
  font-size: var(--ay-type-display-md-size, 24px);
  line-height: var(--ay-type-display-md-line, 40px);
  color: var(--ay-text-title, #302E2E);
}

.ay-about-why__sub {
  margin: 0;
  max-width: 716px;
  font-weight: var(--ay-type-text-lg-weight, 500);
  font-size: var(--ay-type-text-lg-size, 14px);
  line-height: var(--ay-type-text-lg-line, 28px);
  color: var(--ay-text-secondary, #737373);
}

.ay-about-why__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.ay-about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 24px 64px;
  background: var(--ay-bg-white, #FFFFFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

.ay-about-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 69px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 106, 255, 0.025) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ay-about-card__title {
  margin: 0;
  font-weight: var(--ay-type-display-md-weight, 500);
  font-size: var(--ay-type-display-md-size, 24px);
  line-height: var(--ay-type-display-md-line, 40px);
  color: var(--ay-brand-primary-light, #0545A6);
}

.ay-about-card__text {
  margin: 0;
  font-weight: var(--ay-type-text-xl-weight, 500);
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-text-main, #404040);
}

/* ── Tablet ── */
@media (max-width: 991.98px) {
  .ay-about__body {
    gap: 64px;
  }

  .ay-about-intro__logo {
    width: 220px;
    height: 220px;
  }

  .ay-about-why__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .ay-about-gallery__caption {
    padding-top: 160px;
  }

  .ay-about-gallery__title {
    font-size: var(--ay-type-display-lg-size, 28px);
    line-height: var(--ay-type-display-lg-line, 44px);
  }
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
  .ay-about {
    padding-block: 16px 48px;
  }

  .ay-about__breadcrumb {
    margin-bottom: 16px;
  }

  .ay-about__head {
    margin-bottom: 24px;
    gap: 0;
  }

  .ay-about__title {
    font-size: var(--ay-type-text-xl-size, 16px);
    line-height: var(--ay-type-text-xl-line, 28px);
  }

  .ay-about__sub {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }

  .ay-about__body {
    gap: 40px;
  }

  .ay-about-intro {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }

  .ay-about-intro__content {
    gap: 16px;
    max-width: none;
  }

  .ay-about-intro__logo {
    width: 180px;
    height: 180px;
  }

  .ay-about-intro__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-about-intro__list,
  .ay-about-intro__text {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }

  .ay-about-intro__list {
    padding-inline-start: 20px;
  }

  .ay-about-gallery {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .ay-about-gallery__caption {
    gap: 4px;
    padding: 96px 16px 8px;
  }

  .ay-about-gallery__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-about-gallery__sub {
    font-size: var(--ay-type-text-md-size, 12px);
    line-height: var(--ay-type-text-md-line, 24px);
  }

  .ay-about-gallery__dots {
    padding: 8px;
  }

  .ay-about-gallery__nav {
    width: 36px;
    height: 36px;
  }

  .ay-about-gallery__nav svg {
    width: 20px;
    height: 20px;
  }

  .ay-about-gallery__nav--prev {
    inset-inline-start: 8px;
  }

  .ay-about-gallery__nav--next {
    inset-inline-end: 8px;
  }

  .ay-about-why {
    gap: 16px;
  }

  .ay-about-why__head {
    align-items: flex-start;
    padding-bottom: 8px;
    text-align: start;
  }

  .ay-about-why__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-about-why__sub {
    font-size: var(--ay-type-text-md-size, 12px);
    line-height: var(--ay-type-text-md-line, 24px);
  }

  .ay-about-why__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ay-about-card {
    gap: 8px;
    padding: 24px 16px 32px;
  }

  .ay-about-card__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-about-card__text {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ay-about-gallery__slide,
  .ay-about-gallery__slide.is-active,
  .ay-about-gallery__dot {
    transition: none;
  }
}
