.wolf-seo-text {
    --wolf-seo-text-color: #252525;
    --wolf-seo-muted-color: #525252;
    --wolf-seo-accent: #ef233c;
    --wolf-seo-accent-hover: #d90429;
    --wolf-seo-background: #fff;
    --wolf-seo-collapsed-height: 330px;

    position: relative;
    width: 100%;
    color: var(--wolf-seo-text-color);
    font-family: "Montserrat", sans-serif;
}

.wolf-seo-text,
.wolf-seo-text * {
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Conteúdo recolhido
|--------------------------------------------------------------------------
*/

.wolf-seo-text__body {
    position: relative;
    overflow: hidden;
    max-height: var(--wolf-seo-collapsed-height);
    transition: max-height .7s cubic-bezier(.22, .61, .36, 1);
}

/*
 * Gradiente que indica que existe mais conteúdo.
 */
.wolf-seo-text__body::after {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 145px;
    content: "";
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .72) 42%,
        var(--wolf-seo-background) 88%
    );
    pointer-events: none;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.wolf-seo-text.is-expanded .wolf-seo-text__body {
    max-height: 5000px;
}

.wolf-seo-text.is-expanded .wolf-seo-text__body::after {
    visibility: hidden;
    opacity: 0;
}

/*
|--------------------------------------------------------------------------
| Tipografia
|--------------------------------------------------------------------------
*/

.wolf-seo-text__inner {
    max-width: 100%;
}

.wolf-seo-text h2,
.wolf-seo-text h3 {
    color: var(--wolf-seo-text-color);
    font-family: inherit;
    font-weight: 650;
    text-transform: none;
}

.wolf-seo-text h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 2.7vw, 28px);
    line-height: 1.2;
}

.wolf-seo-text h3 {
    margin: 28px 0 14px;
    font-size: clamp(22px, 2.3vw, 22px);
    line-height: 1.25;
}

.wolf-seo-text p {
    margin: 0 0 17px;
    color: var(--wolf-seo-muted-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.wolf-seo-text em {
    font-style: italic;
}

.wolf-seo-text strong {
    color: var(--wolf-seo-text-color);
    font-weight: 650;
}

/*
|--------------------------------------------------------------------------
| Lista
|--------------------------------------------------------------------------
*/

.wolf-seo-text ul {
    display: grid;
    gap: 12px;
    margin: 8px 0 24px;
    padding: 0;
    list-style: none;
}

.wolf-seo-text li {
    position: relative;
    padding-left: 25px;
    color: var(--wolf-seo-muted-color);
    font-size: 15px;
    line-height: 1.65;
}

.wolf-seo-text li::before {
    position: absolute;
    top: .68em;
    left: 3px;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--wolf-seo-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(239, 35, 60, .1);
}

/*
|--------------------------------------------------------------------------
| Área do botão
|--------------------------------------------------------------------------
*/

.wolf-seo-text__actions {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: flex-start;
    margin-top: -10px;
}

/*
|--------------------------------------------------------------------------
| Botão
|--------------------------------------------------------------------------
*/

.wolf-seo-text__toggle {
    display: inline-flex;
    min-width: 118px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 23px;
    color: var(--wolf-seo-accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    background: #fff;
    border: 1.5px solid var(--wolf-seo-accent);
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    transition:
        color .22s ease,
        background-color .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.wolf-seo-text__toggle:hover,
.wolf-seo-text__toggle:focus {
    color: #fff;
    background: var(--wolf-seo-accent);
    border-color: var(--wolf-seo-accent);
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(239, 35, 60, .2);
}

.wolf-seo-text__toggle:focus-visible {
    outline: 3px solid rgba(239, 35, 60, .22);
    outline-offset: 4px;
}

.wolf-seo-text__arrow {
    flex: 0 0 auto;
    transition: transform .3s ease;
}

.wolf-seo-text.is-expanded .wolf-seo-text__arrow {
    transform: rotate(180deg);
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .wolf-seo-text {
        --wolf-seo-collapsed-height: 310px;
    }

    .wolf-seo-text p {
        font-size: 15px;
    }
}

/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .wolf-seo-text {
        --wolf-seo-collapsed-height: 290px;
    }

    .wolf-seo-text h2 {
        margin-bottom: 15px;
        font-size: 22px;
    }

    .wolf-seo-text h3 {
        margin-top: 20px;
        margin-bottom: 12px;
        font-size: 18px;
    }

    .wolf-seo-text p {
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.7;
    }

    .wolf-seo-text li {
        padding-left: 22px;
        font-size: 13px;
    }

    .wolf-seo-text__body::after {
        height: 125px;
    }

    .wolf-seo-text__toggle {
        min-width: 112px;
        min-height: 42px;
        padding: 9px 20px;
        font-size: 13px;
    }
}

/*
|--------------------------------------------------------------------------
| Redução de movimento
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .wolf-seo-text__body,
    .wolf-seo-text__body::after,
    .wolf-seo-text__toggle,
    .wolf-seo-text__arrow {
        transition: none;
    }
}