/* ==========================================================================
   QUOTC — About page
   Uses tokens and components from main.css
   ========================================================================== */


/* Page hero
   ========================================================================== */

.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 24px;
}

.page-hero__content .text-muted {
  max-width: 560px;
  margin-top: 24px;
}

@media (max-width: 1023px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .page-hero__content .text-muted {
    margin-top: 20px;
  }
}


/* Gallery: three rows of photos with different widths
   ========================================================================== */

.gallery {
  padding-bottom: var(--q-cta-space);
}

.gallery .container {
  display: grid;
  gap: 8px;
}

.gallery__row {
  display: flex;
  gap: 8px;
  height: 240px;
}

.gallery__row:nth-child(2) {
  height: 210px;
}

.gallery__row:nth-child(3) {
  height: 180px;
}

.gallery__item {
  min-width: 0;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.gallery__item--w3 { flex: 3; }
.gallery__item--w4 { flex: 4; }
.gallery__item--w5 { flex: 5; }

@media (max-width: 1199px) {
  .gallery__row { height: 190px; }
  .gallery__row:nth-child(2) { height: 170px; }
  .gallery__row:nth-child(3) { height: 150px; }
}

/* mobile: plain two-column grid, the first photo is wide */
@media (max-width: 767px) {
  .gallery .container {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__row,
  .gallery__row:nth-child(2),
  .gallery__row:nth-child(3) {
    display: contents;
  }

  .gallery__item {
    width: 100%;
    height: 120px;
  }

  .gallery__row:first-child .gallery__item:first-child {
    grid-column: span 2;
    height: 180px;
  }
}


/* How it works
   ========================================================================== */

.how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.how__text .h2 {
  margin-bottom: 24px;
}

.how__text .text-muted {
  max-width: 520px;
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .how__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* Benefit cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  padding: 24px;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: var(--q-surface);
}

.card__title {
  margin-top: 16px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--q-muted);
}

@media (max-width: 1199px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 20px;
  }
}


/* Audience
   ========================================================================== */

.audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.audience__text .h2 {
  margin-bottom: 24px;
}

.audience__text .text-muted {
  max-width: 520px;
}

.audience__text .btn {
  margin-top: 32px;
}

.audience__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--q-border);
}

.audience__item:first-child {
  padding-top: 0;
}

.audience__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.audience__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.audience__desc {
  margin-top: 2px;
  font-size: 14px;
  line-height: 22px;
  color: var(--q-muted);
}

@media (max-width: 1023px) {
  .audience__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .audience__text .btn {
    width: 100%;
    margin-top: 24px;
  }

  .audience__item {
    gap: 16px;
  }
}
