/* عن المعجم */

/* ---------- Hero (200px, light) ---------- */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 200px;
  padding: 40px var(--page-gutter);
  background: #f7fdf9;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.crumbs__list li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline-end: 4px;
  color: #9da4ae;
}

.crumbs__list li + li::before {
  content: '';
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  background: url('../img/about/i-breadcrumb-arrow.svg') center / 5px 9px no-repeat;
}

.crumbs__list a {
  color: var(--text-paragraph);
  text-decoration: none;
}

.crumbs__list a:hover {
  text-decoration: underline;
}

.about-hero__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
}

.about-hero__lead {
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Body ---------- */
.about {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about .petal {
  inline-size: 20px;
  block-size: 20px;
  /* Centred on the first line when the heading wraps. */
  margin-block: 10px;
}

/* Intro */
.about-intro {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-intro__text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.about-intro__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 46px;
}

.about-intro__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 30px;
}

.about-intro__image {
  display: block;
  flex: none;
  width: 520px;
  height: 420px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Section headings */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-section--faq {
  gap: 16px;
  scroll-margin-top: 24px;
}

.about-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
}

/* Goals */
.about-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 410px));
  gap: 24px;
  margin: 0;
}

.about-goal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.about-goal__number {
  color: var(--green-600);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.about-goal__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.about-goal__text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 26px;
}

/* FAQ accordion */
.about-faq {
  border-bottom: 1px solid var(--border);
}

.about-faq__item + .about-faq__item {
  border-top: 1px solid var(--border);
}

/* The design draws both rules inside the 112px rows. */
.about-faq__item + .about-faq__item .about-faq__question {
  padding-top: 15px;
}

.about-faq__item:last-child .about-faq__answer {
  padding-bottom: 23px;
}

.about-faq__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.about-faq__question::-webkit-details-marker {
  display: none;
}

.about-faq__question > span:first-child {
  flex: 1 0 0;
  min-width: 0;
}

.about-faq__question:hover {
  background: var(--bg-neutral);
}

.about-faq__question:focus-visible {
  outline-offset: -2px;
}

.about-faq__question .ico img {
  transform: rotate(180deg);
  transition: transform 0.15s ease;
}

.about-faq__item[open] .about-faq__question .ico img {
  transform: none;
}

.about-faq__answer {
  padding-block: 8px 24px;
  padding-inline: 16px 48px;
  color: var(--text-paragraph);
}

/* CTA band */
.about-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(9, 42, 30, 0.8), rgba(9, 42, 30, 0.8)),
    #092a1e url('../img/about/cta-band.jpg') center / cover no-repeat;
  color: #fff;
}

.about-cta__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.about-cta__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.about-cta__lead {
  color: rgba(255, 255, 255, 0.85);
  line-height: 26px;
}

.about-cta .btn .ico img {
  transform: rotate(90deg);
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1300px) {
  .about-goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .about-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .about-intro__image {
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 420;
    max-height: 420px;
  }

  .about-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-goal {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .about {
    gap: 40px;
  }

  .about-hero {
    min-height: 0;
    padding-block: 24px;
  }

  .about-hero__title {
    font-size: 30px;
    line-height: 40px;
  }

  .about-intro__title {
    font-size: 26px;
    line-height: 38px;
  }

  .about-heading {
    font-size: 24px;
    line-height: 34px;
  }

  .about-goals {
    grid-template-columns: 1fr;
  }

  .about-faq__answer {
    padding-inline-end: 16px;
  }

  .about-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* The default dark focus ring disappears on the dark band. */
.about-cta :focus-visible {
  outline-color: #fff;
}
