/* ════════════════════════════════════════════════════════
   AW FIREGUARD: SHARED HOMEPAGE SECTIONS
   "How We Work" (.how) and the FAQ accordion (.faq), with
   template-parts/home-how.php and home-faq.php. Loaded on the homepage
   and on the Vancouver pages (page-vancouver.php).
   ════════════════════════════════════════════════════════ */

    /* ════════════════════════════════════════════════════════
       HOW WE WORK - how-it-works, services.html pattern
       ════════════════════════════════════════════════════════ */
    .how {
        background: var(--bg);
        padding: 72px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .how__header {
        text-align: center;
        margin-bottom: 52px;
    }

    .how__header h2 {
        font-family: var(--font-display);
        font-size: clamp(2rem, 3.5vw, 3rem);
        font-weight: 400;
        color: var(--text);
        letter-spacing: 0.03em;
        margin-bottom: 10px;
    }

    .how__header p {
        font-size: 0.9375rem;
        color: var(--text-muted);
    }

    /* 3-step grid with connecting line - services.html */
    .how__steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        position: relative;
    }

    .how__steps::before {
        content: '';
        position: absolute;
        top: 28px;
        left: calc(16.67% + 28px);
        right: calc(16.67% + 28px);
        height: 1px;
        background: var(--border);
        z-index: 0;
    }

    .how__step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 32px;
        position: relative;
        z-index: 1;
    }

    .how__step-num {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--bg-dark);
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.375rem;
        letter-spacing: 0.03em;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        flex-shrink: 0;
        transition: background 0.2s, transform 0.2s;
    }

    .how__step--active .how__step-num {
        background: var(--bg-dark);
    }

    .how__step:hover .how__step-num {
        background: var(--red);
        transform: scale(1.1);
    }

    .how__step-title {
        font-family: var(--font-display);
        font-size: 1.375rem;
        font-weight: 400;
        color: var(--text);
        letter-spacing: 0.03em;
        margin-bottom: 10px;
    }

    .how__step-desc {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.65;
    }


    /* ════════════════════════════════════════════════════════
       FAQ - service-detail.html exact pattern
       ════════════════════════════════════════════════════════ */
    .faq {
        background: var(--bg);
        padding: var(--section-py) 0;
        border-top: 1px solid var(--border);
    }

    .faq__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 72px;
        align-items: start;
    }

    .faq__img {
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 28px;
    }

    .faq__img .img-placeholder {
        aspect-ratio: 4 / 5;
        width: 100%;
    }

    .faq__left h3 {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 400;
        color: var(--text);
        letter-spacing: 0.03em;
        margin-bottom: 14px;
    }

    .faq__left p {
        font-size: 0.9375rem;
        color: var(--text-muted);
        line-height: 1.72;
    }

    .faq__accordion {
        display: flex;
        flex-direction: column;
    }

    details {
        border-bottom: 1px solid var(--border);
    }

    details:first-of-type {
        border-top: 1px solid var(--border);
    }

    summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        list-style: none;
        line-height: 1.45;
    }

    summary::-webkit-details-marker {
        display: none;
    }

    .faq__toggle {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 300;
        color: var(--text-muted);
        transition: background 0.15s, border-color 0.15s;
        line-height: 1;
    }

    details[open] summary .faq__toggle {
        background: var(--red);
        border-color: var(--red);
        color: #fff;
    }

    .faq__toggle::after {
        content: '+';
    }

    details[open] summary .faq__toggle::after {
        content: '−';
    }

    details[open] summary {
        color: var(--red);
    }

    .faq__answer {
        padding: 0 0 20px;
        font-size: 0.9375rem;
        color: var(--text-muted);
        line-height: 1.78;
    }


    @media (max-width: 768px) {
        /* How: stack */
        .how__steps {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .how__steps::before {
            display: none;
        }

        .how__step {
            padding: 0 16px;
        }

        /* FAQ: stack */
        .faq__grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .faq__img .img-placeholder {
            aspect-ratio: 16 / 9;
        }

        /* FAQ mobile collapse */
        .faq__accordion .faq__item.faq--hidden {
            display: none;
        }

        .faq__show-more {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 14px 24px;
            margin-top: 8px;
            background: transparent;
            border: 1.5px solid var(--red);
            border-radius: 9999px;
            font-family: var(--font-body);
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--red);
            cursor: pointer;
            transition: background 0.18s;
        }

        .faq__show-more:hover {
            background: rgba(192, 39, 45, 0.06);
        }
    }
