/*
 * LC Footer — lc-dashboard v2.5.2.79
 * Clean, modern footer replacing Enfold's #footer and #socket.
 * Four-column grid driven by WP nav menus.
 */

/* ── wrapper ── */
#lc-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding-top: 44px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #555;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* ── tagline (centred intro text) ── */
.lc-footer-tagline {
    text-align: center;
    padding: 0 24px 18px;
}
.lc-footer-tagline p {
    margin: 0 auto;
    font-size: 13.5px;
    line-height: 1.85;
    color: #666;
    max-width: 940px;
}

/* ── top centred menu (About Us | Collaborative Intelligence | …) ── */
.lc-footer-topmenu-wrap {
    text-align: center;
    padding: 0 24px 32px;
}
.lc-footer-topmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.lc-footer-topmenu li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.lc-footer-topmenu li + li::before {
    content: "|";
    color: #ccc;
    padding: 0 14px;
    font-size: 11px;
    line-height: 1;
}
.lc-footer-topmenu li a {
    font-size: 13px;
    color: #0071e3;
    text-decoration: none;
    transition: opacity .15s ease;
}
.lc-footer-topmenu li a:hover {
    opacity: .7;
    text-decoration: underline;
}

/* ── four-column grid ── */
.lc-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 52px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 48px 44px 0;   /* col 1 flush-left; right side stays padded */
    box-sizing: border-box;
}
.lc-footer-col {
    min-width: 0;
}

/* ── section heading ── */
.lc-footer-section-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .025em;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.4;
}
/* gap between stacked sections in the same column */
.lc-footer-col .lc-footer-links + .lc-footer-section-heading {
    margin-top: 28px;
}

/* ── menu link lists ── */
/* Desktop: plain vertical list, one item per line */
.lc-footer-links {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}
.lc-footer-links li {
    margin: 0;
    padding: 0;
}
.lc-footer-links li::before {
    content: none;
}
.lc-footer-links li a {
    display: block;
    font-size: 12.5px;
    color: #666;
    text-decoration: none;
    padding: 3.5px 0;
    line-height: 1.45;
    transition: color .15s ease;
}
.lc-footer-links li a:hover {
    color: #0071e3;
}
/* Mobile: horizontal flow with left-side "|" divider, items wrap naturally + section heading padding */
@media (max-width: 768px) {
    .lc-footer-section-heading {
        padding: 8px;
    }
    .lc-footer-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 6px;
    }
    .lc-footer-links li {
        display: flex;
        align-items: center;
    }
    .lc-footer-links li::before {
        content: "|";
        color: #d0d0d0;
        font-size: 11px;
        line-height: 1;
        padding: 0 10px 0 0;
        flex-shrink: 0;
    }
    .lc-footer-links li a {
        display: inline-block;
        padding: 2px 12px 2px 0;
        line-height: 1.4;
        white-space: nowrap;
    }
}

/* ── bottom bar ── */
.lc-footer-bottom-wrap {
    border-top: 1px solid #ebebeb;
}
.lc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 15px 40px;
    box-sizing: border-box;
}
.lc-footer-copy {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}
.lc-footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.lc-footer-legal-links li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.lc-footer-legal-links li + li::before {
    content: "|";
    color: #ccc;
    padding: 0 10px;
    font-size: 11px;
}
.lc-footer-legal-links li a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color .15s ease;
}
.lc-footer-legal-links li a:hover {
    color: #0071e3;
    text-decoration: underline;
}

/* ── tablet (2 columns) ── */
@media (max-width: 1023px) {
    .lc-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 28px;
        padding: 28px 28px 36px;
    }
}

/* ── mobile (1 column) ── */
@media (max-width: 599px) {
    .lc-footer-columns {
        grid-template-columns: 1fr;
        gap: 24px 0;
        padding: 24px 20px 32px;
    }
    .lc-footer-bottom {
        padding: 14px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .lc-footer-tagline {
        padding: 0 20px 16px;
    }
    .lc-footer-topmenu-wrap {
        padding: 0 20px 24px;
    }
}

/* ── Chat widget — bundled into lc-dashboard v2.5.2.79 ─────────────────
 * Previously loaded from lc-chat/assets/frontend.css via file_exists().
 * If lc-chat is removed from the server those rules were silently missing,
 * leaving .lc-chat-container unstyled (no position:fixed) and the SVG
 * icons rendering inline at browser-default size — the "large black arc"
 * visual bug. Bundled here so chat always renders correctly regardless of
 * whether lc-chat plugin files exist on disk.
 * ─────────────────────────────────────────────────────────────────── */
.lc-chat-container {
    position: fixed;
    right: 24px;
    bottom: var(--lc-bottom-mobile, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 999999;
}

.lc-chat-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lc-chat-channels.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lc-channel {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
    position: relative !important;
    background-clip: padding-box !important;
    overflow: hidden !important;
}

.lc-channel:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

.lc-channel::after {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.lc-channel:hover::after {
    opacity: 1;
    visibility: visible;
    right: 56px;
}

.lc-channel svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.lc-chat-trigger {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #0071e3 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    background-clip: padding-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.lc-chat-trigger:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25) !important;
}

.lc-chat-trigger.has-pulse::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: lc-pulse 2s infinite;
}

@keyframes lc-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.lc-chat-trigger svg {
    width: 30px;
    height: 30px;
    fill: #fff !important;
    transition: all 0.3s ease;
    position: absolute;
}

.lc-chat-trigger .icon-close {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
}

.lc-chat-trigger.is-active .icon-chat {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

.lc-chat-trigger.is-active .icon-close {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.whatsapp  { background: #25D366 !important; }
.messenger { background: #0084FF !important; }
.phone     { background: #34A853 !important; }

@media (max-width: 768px) {
    .lc-chat-container {
        right: 16px;
        bottom: var(--lc-bottom-mobile, 16px);
        gap: 12px;
    }
    .lc-chat-trigger {
        width: 54px !important;
        height: 54px !important;
    }
    .lc-chat-trigger svg {
        width: 26px !important;
        height: 26px !important;
    }
    .lc-channel {
        width: 44px !important;
        height: 44px !important;
    }
    .lc-channel::after {
        display: none;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .lc-chat-container {
        bottom: calc(var(--lc-bottom-mobile, 24px) + env(safe-area-inset-bottom));
        right: calc(24px + env(safe-area-inset-right));
    }
}
