/* =========================================
   Rainier Inspections - Homepage FAQ
   Navy / cyan / gold brand styling
   ========================================= */

.home-faq-section {
    padding: 82px 20px;
    background: #f5f8fb;
    color: #12334d;
    font-family: "Inter", Arial, sans-serif;
}

.home-faq-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.home-faq-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-faq-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #0086b7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-faq-heading h2 {
    margin: 0 0 14px;
    color: #12334d;
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.22;
}

.home-faq-heading p {
    margin: 0;
    color: #607487;
    font-size: 16px;
    line-height: 1.75;
}

.home-faq-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
}

.home-faq-item {
    overflow: hidden;
    border: 1px solid #e1e9ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(18, 51, 77, 0.045);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.home-faq-item:hover,
.home-faq-item[open] {
    border-color: #b9dce9;
    box-shadow: 0 8px 22px rgba(18, 51, 77, 0.08);
}

.home-faq-item summary {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: #12334d;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::marker {
    content: "";
}

.home-faq-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf7fb;
}

.home-faq-icon::before,
.home-faq-icon::after {
    position: absolute;
    display: block;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #0086b7;
    content: "";
}

.home-faq-icon::after {
    transform: rotate(90deg);
    transition: transform .2s ease;
}

.home-faq-item[open] .home-faq-icon::after {
    transform: rotate(0);
}

.home-faq-answer {
    padding: 0 20px 20px;
}

.home-faq-answer p {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #edf1f4;
    color: #5b6f80;
    font-size: 14px;
    line-height: 1.8;
}

.home-faq-answer a {
    color: #007fae;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-faq-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 30px;
    text-align: center;
}

.home-faq-footer p {
    margin: 0;
    color: #607487;
    font-size: 15px;
}

.home-faq-more-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #12334d;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.home-faq-more-link span {
    color: #0086b7;
    font-size: 20px;
    transition: transform .2s ease;
}

.home-faq-more-link:hover span {
    transform: translateX(4px);
}

.home-faq-more-link:hover {
    color: #007fae;
}

.home-faq-item summary:focus-visible,
.home-faq-more-link:focus-visible {
    outline: 3px solid #e0c45b;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Tablet and mobile */
@media (max-width: 767px) {
    .home-faq-section {
        padding: 58px 16px;
    }

    .home-faq-heading {
        margin-bottom: 27px;
    }

    .home-faq-heading p {
        font-size: 14px;
    }

    .home-faq-list {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .home-faq-item summary {
        min-height: 64px;
        padding: 16px;
        font-size: 15px;
    }

    .home-faq-answer {
        padding: 0 16px 17px;
    }

    .home-faq-answer p {
        font-size: 13.5px;
    }

    .home-faq-footer {
        flex-direction: column;
        margin-top: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-faq-item,
    .home-faq-icon::after,
    .home-faq-more-link span {
        transition: none;
    }
}
