/*
  pages/home.css
  Home page: hero variants, tiamat section, Ancient Lore Village module,
  GM portrait gallery, testimonial, and why-choose list.
*/


/* ─── Tiamat section ─────────────────────────────────────────────────────── */

.tiamat-background {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 50px 20px 100px;
  background-image: url('/static/images/home/Tiamat.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  & h3 {
    color: var(--asphalt);
  }
}


/* ─── Gold arch ──────────────────────────────────────────────────────────── */

.gold-arch {
  display: flex;
  flex-direction: column;
}

.gold-arch-content {
  padding: 20px;
  text-align: center;
  background-color: var(--faded-gold);
}


/* ─── Ancient Lore Village (ALV) section ─────────────────────────────────── */

.alv-info,
.alv-info--explore,
.alv-info--stay {
  @media screen and (min-width: 768px) {
    width: 100%;
    margin: 0 auto;
    padding: 50px 0 0;
  }

  @media screen and (min-width: 1024px) {
    max-width: 1080px;
  }
}

.alv-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;

  @media screen and (max-width: 600px) {
    flex-direction: column;
    gap: 10px;
  }
}

.alv-links__block {
  display: inline-block;
}

.alv__header {
  margin: 0;

  @media screen and (max-width: 767px) {
    padding-top: 20px;
  }

  @media screen and (min-width: 768px) {
    padding-bottom: 30px;
  }

  @media screen and (min-width: 1024px) {
    padding-left: 20px;
    text-align: left;
  }
}

.alv__images {
  padding-top: 40px;

  & .lb-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style-type: none;

    @media screen and (max-width: 600px) {
      gap: 6px;
      padding: 20px 0;
    }
  }

  & .lb-image {
    width: calc(33% - 10px);
    cursor: pointer;

    @media screen and (min-width: 601px) and (max-width: 1023px) {
      width: calc(33% - 11px);
    }

    @media screen and (max-width: 600px) {
      margin-top: 0;
      width: calc(50% - 3px);
    }

    &:first-of-type {
      margin-top: 0;
    }
  }
}

.alv__body,
.alv__body--explore,
.alv__body--stay {
  @media screen and (max-width: 767px) {
    padding: 20px;
    padding-top: 0;
  }
}

.alv__body--explore {
  @media screen and (min-width: 768px) {
    padding-left: 1rem;
  }
}

.alv__body--stay {
  padding: 0;
}


/* ─── GM portrait gallery (home page preview) ────────────────────────────── */

.game-masters-gallery {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 50px;

  @media screen and (min-width: 768px) and (max-width: 1080px) {
    padding-left: 20px;
    padding-right: 20px;
  }

  @media screen and (min-width: 768px) {
    flex-direction: row;
  }
}

.game-masters-heading {
  margin: 0;
  text-align: center;

  @media screen and (min-width: 768px) {
    width: 100%;
  }

  & + p {
    text-align: center;
  }
}

.game-masters-portraits {
  width: 100%;
}

.portrait-list {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.game-master-image {
  width: calc(33% - 6px);

  @media screen and (min-width: 768px) {
    width: 100px;
  }

  @media screen and (min-width: 1024px) {
    width: 162px;
  }

  & img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.game-masters-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
}


/* ─── GM endorsements ────────────────────────────────────────────────────── */

.gm-endorsements {
  margin: 0 auto;

  @media screen and (max-width: 600px) {
    max-width: 100%;
  }
}

.gm-endorsement {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 40px 0;
  max-width: 75%;
  border-bottom: 1px solid var(--jade);
  margin: 0 auto;

  &:last-child {
    border-bottom: none;
  }

  @media screen and (max-width: 600px) {
    flex-direction: column;
  }
}

.gm-endorsement__img {
  @media screen and (max-width: 600px) {
    max-width: 175px;
  }

  @media screen and (min-width: 1024px) {
    flex: 1 0 25%;
  }
}

/* ─── Email capture ──────────────────────────────────────────────────────── */

.module--email-capture {
  background-color: var(--super-faded-gold);
  text-align: center;

  & p {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    color: var(--ash);
  }
}


/* ─────────────────────────────────────────────────────────────────────────── */

.gm-endorsement__copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;

  @media screen and (min-width: 1024px) {
    flex: 1 1 75%;
  }

  & h4 {
    color: black;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;

    @media screen and (max-width: 600px) {
      font-size: 0.85rem;
    }
  }

  & p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: black;
    font-size: 1.1rem;
    font-weight: 500;

    @media screen and (max-width: 600px) {
      font-size: 0.9rem;
    }
  }
}


