/* DC — Sticky Footer CTA
   Fixed expandable bottom bar, revealed after hero / scroll threshold. */

.dc-sfc {
    --sfc-bg: #ffffff;
    --sfc-fg: #1c1a1e;
    --sfc-mute: #6b7280;
    --sfc-line: #e8eae8;
    --sfc-red: #d23a2f;
    --sfc-red-hover: #b8312a;
    --sfc-wa: #25d366;
    --sfc-wa-hover: #1ebe5b;
    --sfc-radius: 999px;
    --sfc-shadow: 0 14px 38px rgba(15, 41, 26, .18), 0 4px 12px rgba(0, 0, 0, .06);

    position: fixed;
    left: auto;
    right: clamp(12px, 2.5vw, 28px);
    bottom: clamp(12px, 2.5vw, 24px);
    width: auto;
    max-width: calc(100vw - 24px);
    z-index: 9990;
    pointer-events: none;
    font-family: var(--font-lora, "SUSE", sans-serif);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}

.dc-sfc.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dc-sfc[aria-hidden="false"] { pointer-events: auto; }

/* ---------- Bar ---------- */
.dc-sfc__bar {
    background: var(--sfc-bg);
    color: var(--sfc-fg);
    box-shadow: var(--sfc-shadow);
    border: 1px solid var(--sfc-line);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: var(--sfc-radius);
    transition: opacity .25s ease, transform .35s ease;
}

.dc-sfc.is-collapsed .dc-sfc__bar {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    visibility: hidden;
}

/* ---------- Brand ---------- */
.dc-sfc__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 6px;
}

.dc-sfc__logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    padding: 2px;
}

.dc-sfc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.dc-sfc__brandtext {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.dc-sfc__brandtext strong {
    font-weight: 700;
    font-size: 14px;
    color: var(--sfc-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-sfc__brandtext small {
    font-size: 11.5px;
    color: var(--sfc-mute);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Actions ---------- */
.dc-sfc__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    border-left: 1px solid var(--sfc-line);
    padding-left: 10px;
}

.dc-sfc__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.dc-sfc__btn:hover { transform: translateY(-1px); }

.dc-sfc__btn--ghost {
    background: transparent;
    color: var(--sfc-fg);
    border: 1px solid var(--sfc-line);
}

.dc-sfc__btn--ghost:hover {
    background: #f6f6f4;
    border-color: #d6d8d4;
}

.dc-sfc__btn--wa {
    background: var(--sfc-wa);
    color: #042f15;
}

.dc-sfc__btn--wa:hover { background: var(--sfc-wa-hover); color: #042f15; }

.dc-sfc__btn--primary {
    background: var(--sfc-red);
    color: #fff;
}

.dc-sfc__btn--primary:hover { background: var(--sfc-red-hover); color: #fff; }

.dc-sfc__ico { display: inline-flex; align-items: center; justify-content: center; }
.dc-sfc__ico--arrow { transition: transform .18s; }
.dc-sfc__btn--primary:hover .dc-sfc__ico--arrow { transform: translateX(3px); }

/* ---------- Collapse / pill ---------- */
.dc-sfc__collapse {
    background: transparent;
    border: 1px solid var(--sfc-line);
    color: var(--sfc-mute);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    flex: 0 0 30px;
    margin-left: 4px;
}

.dc-sfc__collapse:hover { background: #f6f6f4; color: var(--sfc-fg); border-color: #d6d8d4; }
.dc-sfc__collapse svg { width: 14px; height: 14px; }

.dc-sfc.is-collapsed .dc-sfc__bar {
    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    visibility: hidden;
}

.dc-sfc__pill {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--sfc-bg);
    color: var(--sfc-fg);
    border: 1px solid var(--sfc-line);
    box-shadow: var(--sfc-shadow);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.dc-sfc.is-collapsed .dc-sfc__pill {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dc-sfc__pill:hover { transform: translateY(-1px); }

.dc-sfc__pill-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border: 1px solid var(--sfc-line);
}

.dc-sfc__pill-logo--ghost { background: #f6f6f4; color: var(--sfc-fg); padding: 0; border-color: var(--sfc-line); }
.dc-sfc__pill-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dc-sfc__pill-chev { color: var(--sfc-mute); display: inline-flex; }
.dc-sfc__pill-chev svg { transform: rotate(180deg); width: 16px; height: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 820px) {
    .dc-sfc__brandtext small { display: none; }
    .dc-sfc__btn--ghost .dc-sfc__txt,
    .dc-sfc__btn--wa .dc-sfc__txt { display: none; }
    .dc-sfc__btn--ghost,
    .dc-sfc__btn--wa { padding: 9px 11px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
    .dc-sfc { right: 10px; bottom: 10px; left: 10px; max-width: none; }
    .dc-sfc__bar {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 6px 6px 6px 12px;
    }
    .dc-sfc__brandtext { display: none; }
    .dc-sfc__logo { width: 34px; height: 34px; flex: 0 0 34px; }
    .dc-sfc__actions { gap: 4px; padding-left: 6px; }
    .dc-sfc__btn--primary { padding: 9px 12px; font-size: 13px; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .dc-sfc,
    .dc-sfc__bar,
    .dc-sfc__pill,
    .dc-sfc__btn,
    .dc-sfc__ico--arrow { transition: none; }
}
