/* ============================================================
   Karnali Legal Hub - Homepage supplement stylesheet
   Loaded only on the homepage. The page uses the shared polished
   design system (layouts/public + partials/polished-common);
   this file covers components not shared there:
   - Native <details>/<summary> FAQ accordion (zero JS)
   - Floating WhatsApp button
   Color tokens come from the :root variables in layouts/public.
   ============================================================ */

/* ---------- FAQ: native details/summary (zero JS) ---------- */
.kx-faq { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
.kx-faq details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 40, 20, 0.08);
    overflow: hidden;
}
.kx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--klb-primary);
    cursor: pointer;
    list-style: none;
}
.kx-faq summary::-webkit-details-marker { display: none; }
.kx-faq summary::after {
    content: '';
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-right: 2.5px solid var(--klb-primary);
    border-bottom: 2.5px solid var(--klb-primary);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-bottom: 4px;
}
.kx-faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.kx-faq details p {
    margin: 0;
    padding: 0 18px 16px;
    color: #55605a;
}
.kx-faq summary:focus-visible {
    outline: 3px solid var(--klb-secondary);
    outline-offset: 2px;
}

/* ---------- Floating WhatsApp (56px target) ---------- */
.kx-wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    text-decoration: none;
}
.kx-wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.kx-wa-float:hover { color: #fff; background: #1fb955; }
.kx-wa-float:focus-visible {
    outline: 3px solid var(--klb-secondary);
    outline-offset: 2px;
}