/* Mobile: 375px - Desktop: 1440px */
/* Family: [Work Sans](https://fonts.google.com/specimen/Work+Sans) - Weights: 400, 600, 700 */
/* Font size (paragraphs): 16px */

@font-face {
    font-family: "WorkSans";
    font-weight: 400;
    src: url('../fonts/static/WorkSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: "WorkSans";
    font-weight: 600;
    src: url('../fonts/static/WorkSans-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: "WorkSans";
    font-weight: 700;
    src: url('../fonts/static/WorkSans-Bold.ttf') format('truetype');
}

@font-face {
    font-family: "WorkSans-Italic";
    font-weight: 400 600 700;
    src: url('../fonts/WorkSans-Italic-VariableFont_wght.ttf') format('truetype');
}

:root {
    /* Colors */
    --white: hsl(0, 100%, 100%);
    --purple-100: hsl(275, 100%, 97%);
    --purple-600: hsl(292, 16%, 49%);
    --purple-950: hsl(292, 42%, 14%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'WorkSans', sans-serif;
  background-color: var(--purple-100);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background-image: url("../images/background-pattern-mobile.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  z-index: -1;
}

.faq {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-card {
    background-color: var(--white);
    padding: 24px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04);
}

.faq-title {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.faq-title img {
    width: 18px;
    height: 18px;
}

.faq-questions {
    padding: 16px 0;
    border-bottom: 1px solid var(--purple-100);
}

.faq-questions:last-child {
  border-bottom: none;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-header h3 {
    font-size: 0.9rem;
    max-width: 80%;
    font-weight: 700;
    color: var(--purple-950);
}

.question-header h3:hover {
  color: hsl(292, 80%, 45%);
  cursor: pointer;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  border: none;
  background-color: transparent;
  background-image: url("../images/icon-plus.svg");
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.faq-toggle.active {
  background-image: url("../images/icon-minus.svg");
}

.faq-answer  {
    margin-top: 20px;
    color: var(--purple-600);
    font-size: 0.85rem;
    line-height: 1.6;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    body::before {
        background-image: url("../images/background-pattern-desktop.svg");
    }

    .faq-card {
        max-width: 500px;
    }

    .question-header h3 {
        max-width: 100%;
    }
}

