/************ MOBILE - 360PX *************/
/*****************************************/
@media only screen and (min-width: 0em) {
    /************** BANNER *******************/
    /*****************************************/
    #banner {
        /* 175px - 260px top */
        padding: clamp(10.9375rem, 20vw, 16.25rem) 1rem clamp(6.25rem, 14vw, 12vw);
        /* clips svg wave from causing overflow issues */
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    #banner .container {
        text-align: center;
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
    #banner .int-title {
        /* 39px - 61px */
        font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
        font-weight: 900;
        line-height: 1.2em;
        text-align: inherit;
        padding: 1.25rem;
        color: var(--textLight);
        position: relative;
    }
    #banner .background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    #banner .background:before {
        /* background color overlay */
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: var(--primaryDark);
        opacity: 1;
        top: 0;
        left: 0;
        z-index: 1;
    }
    #banner .wave {
        /* we're stretching the svg wider than the viewport so it's taller and has more of a presence */
        width: 48rem;
        height: auto;
        display: block;
        position: absolute;
        left: 50%;
        bottom: -1px;
        transform: translateX(-50%);
        z-index: -1;
    }
    /************** FAQ **********************/
    /*****************************************/
    #faq {
        margin-top: 3rem;
        padding: var(--sectionPadding);
        position: relative;
    }
    #faq .container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
        z-index: 1;
    }
    #faq .content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }
    #faq .title {
        margin: 1rem;
    }
    #faq .flex-group {
        width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        /* 16px - 20px */
        gap: clamp(1rem, 2.3vw, 1.25rem);
        position: relative;
    }
    #faq .wrapper {
        position: relative;
    }
    #faq .button-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #faq .option {
        /* 16px - 20px */
        font-size: clamp(1rem, 2vw, 1.25rem);
        /* 50px - 72px */
        line-height: clamp(3.125rem, 5vw, 4.5rem);
        font-weight: 700;
        padding: 0;
        /* prevents border from affecting height and width */
        box-sizing: border-box;
        background-color: var(--accentColor);
        color: var(--textLight);
        border: 6px solid #FFF;
        position: relative;
        z-index: 1;
        transition: border-color 0.3s;
    }
    #faq .option:before {
        /* background color */
        content: "";
        width: 100%;
        height: 100%;
        background: #FFF;
        opacity: 0;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        z-index: -1;
        /* transition: opacity 0.3s; */
    }
    #faq .option:hover {
        border-color: #000;
        cursor: pointer;
    }
    #faq .option:hover:hover:before {
        opacity: 0.1;
    }
    #faq .option.active {
        border-color: #000;
    }
    #faq .option.active:before {
        opacity: 0.1;
    }
    #faq .faq-group {
        width: 100%;
        max-width: 52.9375rem;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
        transition: transform 0.7s,
                    opacity 0.3s,
                    visibility 0.5s,
                    top 0.3s,
                    left 0.3s;
        /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */
        transform-origin: top;
        transform-style: preserve-3d;
        perspective: 900px;
    }
    #faq .faq-group.hidden {
        /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */
        visibility: hidden;
        /* prevents the mouse from interacting with it */
        pointer-events: none;
        /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */
        opacity: 0;
        /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */
        top: 0;
        left: 0;
        position: absolute;
        /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */
        transform: scaleY(0);
    }
    #faq .faq-group.hidden .faq-item {
        transform: rotateX(270deg);
        opacity: 0;
    }
    #faq .faq-item {
        list-style: none;
        width: 100%;
        background-color: var(--primaryDark);
        border: 1px solid #e8e8e8;
        /* clips all corners of the button that overlap the rounded border */
        overflow: hidden;
        opacity: 1;
        top: 0;
        transform: rotateX(0deg);
        transition: transform 0.6s,
                    opacity 0.3s;
    }
    #faq .faq-item:nth-of-type(2) {
        transition-delay: 0.1s;
    }
    #faq .faq-item:nth-of-type(3) {
        transition-delay: 0.2s;
    }
    #faq .faq-item:nth-of-type(4) {
        transition-delay: 0.3s;
    }
    #faq .faq-item:nth-of-type(5) {
        transition-delay: 0.4s;
    }
    #faq .faq-item:nth-of-type(6) {
        transition-delay: 0.5s;
    }
    #faq .faq-item:nth-of-type(7) {
        transition-delay: 0.6s;
    }
    #faq .faq-item:nth-of-type(8) {
        transition-delay: 0.7s;
    }
    #faq .faq-item:nth-of-type(9) {
        transition-delay: 0.8s;
    }
    #faq .faq-item:nth-of-type(10) {
        transition-delay: 0.9s;
    }
    #faq .faq-item.active .button {
        color: var(--primary);
    }
    #faq .faq-item.active .button:before {
        background-color: var(--primary);
        transform: rotate(315deg);
    }
    #faq .faq-item.active .button:after {
        background-color: var(--primary);
        transform: rotate(-315deg);
    }
    #faq .faq-item.active .item-p {
        height: auto;
        /* 20px - 24px bottom */
        /* 16px - 24px left & right */
        padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem);
        opacity: 1;
    }
    #faq .button {
        /* 16px - 20px */
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.2em;
        text-align: left;
        font-weight: bold;
        /* 16px - 24px top & bottom */
        /* 16px - 20px left & right */
        padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
        background-color: var(--primaryDark);
        border: none;
        color: var(--textLight);
        display: block;
        width: 100%;
        position: relative;
        transition: background-color 0.3s, color 0.3s;
    }
    #faq .button:hover {
        cursor: pointer;
    }
    /* lines making arrow in question items */
    #faq .button:before {
        content: "";
        width: 0.5rem;
        height: 0.125rem;
        background-color: var(--headerColor);
        opacity: 1;
        border-radius: 50%;
        position: absolute;
        display: none;
        top: 50%;
        right: 1.5rem;
        transform: rotate(45deg);
        /* animate the transform from the left side of the x axis, and the center of the y */
        transform-origin: left center;
        transition: transform 0.5s;
    }
    #faq .button:after {
        /* right line */
        content: "";
        width: 0.5rem;
        height: 0.125rem;
        background-color: var(--primaryDark);
        opacity: 1;
        border-radius: 50%;
        position: absolute;
        display: none;
        top: 50%;
        right: 1.3125rem;
        transform: rotate(-45deg);
        /* animate the transform from the right side of the x axis, and the center of the y */
        transform-origin: right center;
        transition: transform 0.5s;
    }
    #faq .button-text {
        width: 80%;
        display: block;
        color: var(--textLight);
    }
    #faq .item-p {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1.06rem);
        line-height: 1.5em;
        width: 90%;
        height: 0;
        margin: 0;
        /* 16px - 24px */
        padding: 0 clamp(1rem, 2vw, 1.5rem);
        opacity: 0;
        color: var(--textLight);
        /* clips the text so it doesn't show up */
        overflow: hidden;
        transition: opacity 0.3s, padding-bottom 0.3s;
    }
}

/************ TABLET - 768PX *************/
/*****************************************/
@media only screen and (min-width: 48rem) {
    /*************** BANNER ******************/
    /*****************************************/
    #banner .wave {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/************ DESKTOP - 1024PX ***********/
/*****************************************/
@media only screen and (min-width: 64rem) {
    /************** BANNER *******************/
    /*****************************************/
    #banner .int-title{
        padding: clamp(2.75rem, 25vw ,3rem);
    }
    /**************** FAQ ********************/
    /*****************************************/
    #faq .container {
        max-width: 80rem;
    }
    #faq .flex-group {
        flex-direction: row;
    }
    #faq .button-group {
        width: 31%;
        max-width: 25.8125rem;
    }
}

/************** DARK MODE ****************/
/*****************************************/
@media only screen and (min-width: 0em) {
    body.dark-mode #faq .option {
        background-color: #181818;
    }
    body.dark-mode #faq .button,
    body.dark-mode #faq .faq-item {
        background-color: var(--heroBG);
    }
    body.dark-mode #faq .option {
        color: var(--textLight);
    }
    body.dark-mode #faq .option:hover {
        border-color: var(--accentColor);
    }
    body.dark-mode #faq .option.active {
        border-color: var(--dark);
    }
}