
/* =========================================
   DOVELIO - FAQ
========================================= */

.faq-section {
    padding: 105px 0 115px;
    background: #FAF9F5;
    border-top: 1px solid #E4EAE1;
}

/* CABEÇALHO */

.faq-heading {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.faq-eyebrow {
    display: inline-block;
    margin-bottom: 16px;

    color: #6C8A7A;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.faq-heading h2 {
    margin: 0 0 18px;

    color: #1E3D35;
    font-size: clamp(35px, 4.3vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.055em;
}

.faq-heading h2 em {
    color: #6C8A7A;
    font-style: normal;
}

.faq-heading p {
    max-width: 560px;
    margin: 0 auto;

    color: #64776B;
    font-size: 15px;
    line-height: 1.8;
}

/* CONTENTOR */

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* ITEM */

.faq-item {
    overflow: hidden;

    background: #FFFFFF;
    border: 1px solid #E0E8DE;
    border-radius: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.faq-item[open] {
    border-color: #B8CDBB;
    box-shadow: 0 8px 25px rgba(30,61,53,.045);
}

/* PERGUNTA */

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 22px 25px;
    cursor: pointer;
    list-style: none;

    color: #1E3D35;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;

    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item summary:focus-visible {
    outline: 3px solid #9FBEA6;
    outline-offset: -3px;
    border-radius: 12px;
}

/* ÍCONE + / - */

.faq-toggle {
    position: relative;
    flex-shrink: 0;

    width: 29px;
    height: 29px;

    border-radius: 9px;
    background: #EDF3EC;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    background: #51735C;
    border-radius: 2px;

    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
}

.faq-item[open] .faq-toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

/* RESPOSTA */

.faq-answer {
    padding: 0 65px 23px 25px;
}

.faq-answer p {
    margin: 0;

    color: #64776B;
    font-size: 13px;
    line-height: 1.85;
}

.faq-answer a {
    color: #37694B;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   CONTACTO
========================================= */

.faq-contact {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 28px;
    padding: 25px;

    background: #EAF0E8;
    border: 1px solid #DAE6D8;
    border-radius: 16px;
}

.faq-contact-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;

    width: 49px;
    height: 49px;

    background: #DAE8D9;
    border-radius: 13px;
    color: #52745F;
}

.faq-contact-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.8;
}

.faq-contact-text {
    flex: 1;
    min-width: 0;
}

.faq-contact-text h3 {
    margin: 0 0 5px;

    color: #1E3D35;
    font-size: 15px;
    font-weight: 800;
}

.faq-contact-text p {
    margin: 0;

    color: #64786A;
    font-size: 12px;
    line-height: 1.6;
}

.faq-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex-shrink: 0;
    padding: 12px 16px;

    color: #FFFFFF;
    background: #1E3D35;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 750;
    text-decoration: none;

    transition: background .2s ease;
}

.faq-contact-link:hover {
    background: #2D5848;
    color: #FFFFFF;
}

.faq-contact-link svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .faq-section {
        padding: 65px 0 75px;
    }

    .faq-heading {
        margin-bottom: 35px;
    }

    .faq-heading h2 {
        font-size: clamp(32px, 8vw, 43px);
    }

    .faq-heading p {
        font-size: 14px;
    }

    .faq-list {
        gap: 9px;
    }

    .faq-item summary {
        padding: 18px;
        gap: 12px;
        font-size: 13px;
    }

    .faq-answer {
        padding: 0 18px 20px;
    }

    .faq-answer p {
        font-size: 12px;
    }

    .faq-toggle {
        width: 27px;
        height: 27px;
    }

    .faq-contact {
        flex-wrap: wrap;
        padding: 21px;
        gap: 15px;
    }

    .faq-contact-text {
        flex-basis: calc(100% - 70px);
    }

    .faq-contact-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-toggle::before,
    .faq-toggle::after,
    .faq-contact-link {
        transition: none;
    }
}
