/* ----------------- *
 *     SERVICES      *
 * ----------------- */

 #webdev, #seo, #updates {
  h2 {
    font-size: clamp(2rem, 1.545rem + 1.818vi, 3rem);
  }

  & .container {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;

    & img {
      width: 50%;
    }

    & .services-context {
      max-width: 608px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }
 }

 #seo .container {
  flex-direction: column-reverse;
 }

 #webdev {
  padding-top: clamp(4rem, 2.182rem + 7.273vi, 8rem);
 }

 #webdev, #updates, #price-cards {
  background: var(--bg-color);
 }

 #seo, #faq {
  background: var(--bg-alt-color);
 }

 @media only screen and (min-width: 930.1px) {
  #webdev, #seo, #updates {
    & .container {
      flex-direction: row;
      gap: 2rem;

      & img {
        width: 100%;
      }

      & picture, .services-context {
        flex: 1;
      }
    }
  }
 }

/* ----------------- *
 *         FAQ       *
 * ----------------- */

 #faq {
  
    .container {
      display: flex;
      flex-direction: column;
      gap: clamp(2rem, 4vw, 3rem);
  
      & .faq-context {
        display: flex;
        flex-direction: column;
        gap: 1rem;
  
        & h2 {
          font-size: 3rem;
          text-align: center;
          margin-bottom: 1rem;
        }
      }
    }
   }
  
   .faq-context {
    align-items: center;
  
      & details {
        margin-bottom: 0.75rem;
        background-color: var(--accent-color);
        border-radius: 8px;
        box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.5);
        width: 100%;
        max-width: 608px;
        transition: background-color 0.2s linear, transform 0.1s linear;
  
        & div {
          margin: 0.75rem;
          padding: 0.75rem;
          background-color: var(--secondary-color);
          border-radius: 8px;
        }
  
        &[open] {
          padding-bottom: 0.125rem;
        }
      }
  
      & summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background-color: var(--accent-color);
        color: var(--font-dark);
        border-radius: 8px;
        transition: background-color 0.2s linear, color 0.2s linear;
  
        &:hover {
          /* background-color: var(--primary-color); */
          color: #ffffff;
        }
  
        &:after {
          content: '+';
          font-size: 2rem;
          line-height: 1rem;
        }
      }
  
      & details[open] summary {
        border-radius: 5px 5px 0 0;
  
        &:after {
          content: '-';
          font-size: 2rem;
          line-height: 1rem;
        }
      }
   }
  
   @media only screen and (min-width: 930.1px){
    #faq {
      & h2 {
        font-size: clamp(5rem, 2.343rem + 4.571vi, 6rem);
        line-height: clamp(4rem, 1.343rem + 4.571vi, 5rem);
      }
    }
   }
  
   @media (hover: hover) {
    details {
      &:hover {
        transform: translateX(1rem);
        /* background-color: var(--primary-color); */
        transition: background-color 0.2s linear, tranform 0.1s linear;
    
        & summary {
          /* background-color: var(--primary-color); */
          color: #ffffff;
          transition: background-color 0.2s linear, color 0.2s linear;
        }
      }
    }
   }
  
   /*****************
    PRICE CARDS
******************/

#price-cards {
  padding-bottom: clamp(4rem, 2.182rem + 7.273vi, 8rem);

  & .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
  }
}

.price-card {
  flex: 1;
  padding: 1rem 2rem;
  background: #ffffff;
  max-width: 600px;
  border-radius: 25px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  & h3 {
    font-size: 3rem;
    color: var(--brand);
  }

  & ul {
    margin: 0;
    list-style: url('/assets/svgs/code-tick.svg');
  }
}

@media only screen and (min-width: 930.1px) {
  #price-cards {
    & .container {
      flex-direction: row;
      justify-content: center;
      gap: 1rem;

      > .price-card:nth-child(2) {
        scale: 1.2;
      }
    }
  }

  & .price-card {
    max-width: fit-content;
  }
}
