/* Variables */

:root {
  /* Colors */
  --primary-color: #7ed957;
  --secondary-color: #041f07;
  --primary-color-light: #b6ff88;
  --footer-color: #edffd8;
  --primary-color-10-percent: rgba(126, 217, 87, 0.1);
  --secondary-color-10-percent: rgba(4, 31, 7, 0.1);
  /* Properties */
  --max-width: 1200px;
  --border-radius: 8px;
}

/* Header Content */

.header__content {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.header__content__text {
  width: 55%;
}

.header__content__text__title span {
  font-family: "Lora", serif;
  font-style: italic;
}

.header__content__text__description {
  font-size: 1.25rem;
  margin: 1.25rem 0 2rem 0;
}

.header__content__text__description--mobile {
  display: none;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.5;
  text-transform: uppercase;
}

.header__content__text__arrow-down {
  display: none;
}

.header__content__platforms {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 45%;
  min-width: 434px;
}

.header__content__platforms__platform {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--border-radius);
  padding: 5px;
  color: var(--primary-color);
}

.header__content__platforms__platform:hover {
  transform: translateY(-2px);
  transition-duration: 0.3s;
}

.header__content__platforms__platform img {
  border-radius: 4px;
}

.header__content__platforms__platform h3 {
  font-size: 2rem;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--primary-color-light);
}

.header__content__platforms__platform p {
  font-size: 2rem;
  font-weight: medium;
  color: var(--primary-color-light);
}

/* How it works section */
.how-it-works__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.how-it-works__title {
  display: flex;
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
  padding: 8px 16px;
  text-transform: uppercase;
  font-weight: semibold;
  font-size: 2.5rem;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.how-it-works__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--border-radius);
  padding: 0.5em;
}

.how-it-works__step-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  width: 100%;
  border-radius: 4px;
  text-transform: uppercase;
}

.how-it-works__step-title,
.how-it-works__step-index {
  display: none;
}

.how-it-works__step-title {
  color: var(--secondary-color);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: bold;
}

.how-it-works__step-content {
  color: white;
  text-align: center;
}

.how-it-works__step-description {
  font-size: 1.25rem;
  font-weight: normal;
  padding: 0.5rem;
}

.how-it-works__step-description p {
  color: white;
}

/* About section */

.about__container {
  display: flex;
  align-items: center;
  margin: 10rem auto;
}

.about__content {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__title {
  font-size: 2.5rem;
}

.about__description {
  font-weight: 600;
}

.about__partners {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about__partners-row {
  display: flex;
  gap: 0.5rem;
}

.about__partner {
  padding: 8px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--secondary-color);
}

.about__partner:hover {
  transform: translateY(-2px);
  transition-duration: 0.3s;
}

.about__partner img {
  height: 1.375rem;
  color: white;
}

.about__image-container {
  width: 35%;
}

.about__image {
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

/* Why Us section */

.why-us {
  margin: 10rem 0;
}

.why-us__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.why-us__image-container {
  width: 40%;
}

.why-us__image {
  width: 100%;
  height: 100%;
}

.why-us__content {
  width: 55%;
}

.why-us__title {
  font-size: 2.5rem;
}

.why-us__benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.why-us__benefit {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-radius: var(--border-radius);
  padding: 8px 16px;
  font-weight: bold;
}

.why-us__benefit:nth-child(2) {
  width: 90%;
}

.why-us__benefit:nth-child(3) {
  width: 95%;
}

.why-us__benefit:nth-child(4) {
  width: 88%;
}

/* Refferral section */

.referral__container {
  border-radius: 16px;
  padding: 1rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral__title {
  font-size: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  width: 100%;
  text-align: center;
  padding: 8px 16px;
}

.referral__description--mobile {
  display: none;
}

.referral__description {
  color: white;
  text-align: center;
  font-size: 1.5rem;
}

.referral__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.referral__step {
  border-radius: var(--border-radius);
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.referral__step:nth-child(2) {
  background-color: #f9ffee;
}

.referral__step:nth-child(3) {
  background-color: #edffd8;
}

.referral__step-count {
  font-size: 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.referral__step-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.referral__step-description {
  font-size: 1.25rem;
}

.referral__button {
  width: 100%;
}

/* FAQ section */

.faq {
  margin: 6rem auto;
}

.faq__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.faq__accordion {
  width: 65%;
  margin: 0 auto;
}

.faq__accordion-item {
  border-bottom: 1px solid var(--secondary-color);
}

.faq__accordion-header {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 24px;
  color: var(--clr-dark-green);
  font-weight: 500;
  text-transform: uppercase;
}

.faq__icon i {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq__accordion-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq__accordion-content {
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
}

.faq__accordion-content p {
  font-size: 16px;
  line-height: 24px;
  color: var(--clr-dark-green);
  opacity: 0.8;
  padding-bottom: 24px;
}

/* CTA section */

.cta {
  width: 100%;
  color: white;
}

.cta__container {
  width: 40%;
  margin: 5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.cta__title {
  font-size: 2rem;
}

/* Media Queries */

@media screen and (max-width: 790px) {
  .header__content__text__description,
  .header__content__platforms,
  .header__content__text .btn {
    display: none;
  }

  .header__content__text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .header__content__text {
    width: 100%;
  }

  .header__content__text__title,
  .header__content__text__description--mobile,
  .header__content__text__arrow-down {
    text-align: center;
  }

  .header__content__text__description--mobile,
  .header__content__text__arrow-down {
    display: block;
  }

  /* How it works section */

  .how-it-works {
    display: flex;
    margin: auto;
  }

  .how-it-works__title {
    font-size: 1rem;
  }

  .how-it-works__steps {
    grid-template-columns: repeat(1, 1fr);
  }

  .how-it-works__step-title,
  .how-it-works__step-index {
    display: block;
  }

  .how-it-works__step-number {
    display: none;
  }

  .how-it-works__step {
    flex-direction: row;
    gap: 1rem;
  }

  .how-it-works__step-header {
    height: 100%;
    width: auto;
  }

  .how-it-works__step-description {
    font-size: 0.75rem;
  }

  .how-it-works__cta {
    width: 100%;
  }

  /* About section */

  .about__content {
    width: 100%;
  }

  .about__title {
    font-size: 1.5rem;
  }

  .about__description {
    font-weight: normal;
  }

  .about__image-container {
    display: none;
  }

  .about__partners-row {
    display: flex;
    justify-content: center;
    margin-left: 0;
  }

  .about__partner {
    padding: 4px 8px;
  }

  .about__partner img {
    height: 0.813rem;
  }

  /* Why Us section */

  .why-us__image-container {
    display: none;
  }

  .why-us__content {
    width: 100%;
  }

  .why-us__title {
    font-size: 1.5rem;
    text-align: center;
  }

  .why-us__benefit {
    width: 100% !important;
  }

  /* Referral section */

  .referral__container {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .referral__title {
    font-size: 1rem;
  }

  .referral__description {
    font-size: 1rem;
  }

  .referral__description--desktop {
    display: none;
  }

  .referral__description--mobile {
    display: block;
  }

  .referral__steps {
    grid-template-columns: repeat(1, 1fr);
  }

  .referral__step {
    gap: 0.75rem;
  }

  .referral__step-count {
    font-size: 1.25rem;
    text-transform: none;
  }

  .referral__step-title {
    font-size: 1.125rem;
  }

  .referral__step-description {
    font-size: 1rem;
  }

  .referral__button {
    padding: 4px 8px;
    font-weight: 0.875rem;
    font-size: 1.25rem !important;
  }

  /* Global Styles on mobile */

  .container {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .row-reverse-mobile {
    flex-direction: row-reverse;
  }

  /* FAQ section */

  .faq__accordion {
    width: 100%;
  }

  .faq__title {
    font-size: 1.25rem;
    text-transform: uppercase;
  }

  .faq__accordion-header {
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
  }

  /* CTA section */

  .cta__container {
    width: 80%;
  }

  .cta__title {
    font-size: 1rem;
  }

  .cta__button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
