/* =====================================================================
 * BSH Footer Widget – Styles
 * Autor: Luca Petersen | Com&Sons  |  https://comandsons.com
 * ===================================================================== */

.bsh-footer,
.bsh-footer * { box-sizing: border-box; }

.bsh-footer {
    --bsh-bg:     #0c2344;
    --bsh-accent: #4283c4;
    --bsh-text:   rgba(255, 255, 255, .86);
    --bsh-muted:  rgba(255, 255, 255, .66);
    --bsh-border: rgba(255, 255, 255, .12);
    --bsh-shape:  url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20282%20120.14%27%3E%3Cpath%20fill%3D%27%234283c4%27%20d%3D%27M113.39%2C0h168.61v6.76c0%2C62.58-50.81%2C113.39-113.39%2C113.39H0v-6.76C0%2C50.81%2C50.81%2C0%2C113.39%2C0Z%27%20transform%3D%27translate(282%20120.14)%20rotate(-180)%27/%3E%3C/svg%3E");

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 15% 0%,  rgba(66,131,196,.20), transparent 55%),
        radial-gradient(900px  500px at 100% 20%, rgba(66,131,196,.18), transparent 60%),
        var(--bsh-bg);
    color: var(--bsh-text);
}

.bsh-footer::before {
    content: "";
    position: absolute;
    top: -26px; left: -22px;
    width: 360px; height: 155px;
    background-image: var(--bsh-shape);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .22;
    pointer-events: none;
}

.bsh-footer::after {
    content: "";
    position: absolute;
    right: -26px; bottom: -34px;
    width: 420px; height: 180px;
    background-image: var(--bsh-shape);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .14;
    pointer-events: none;
    transform: rotate(180deg);
}

.bsh-footer__container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 56px 32px 18px;
    position: relative;
    z-index: 1;
}

footer .elementor-widget-wrap.elementor-element-populated { padding: 0 !important; }

.bsh-footer__top {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
    padding-top: 50px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--bsh-border);
}

.bsh-footer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.bsh-footer__logo {
    height: 33px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: invert(1) brightness(1.2) contrast(1.05);
}

.bsh-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(320px, 360px);
    gap: 24px;
    align-items: start;
}

.bsh-footer__title {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,.92);
}

.bsh-footer__list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: 10px;
}

.bsh-footer__link,
.bsh-footer__miniLink,
.bsh-footer__contactLink {
    color: var(--bsh-muted);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
    transition: color .18s ease, opacity .18s ease;
}

.bsh-footer__link:hover,
.bsh-footer__miniLink:hover,
.bsh-footer__contactLink:hover { color: #fff; opacity: .95; }

.bsh-footer__contact { display: grid; gap: 10px; }
.bsh-footer__contactLink { overflow-wrap: anywhere; }

.bsh-footer__contactPanel {
    border-left: 1px solid rgba(255,255,255,.10);
    padding-left: 18px;
}

.bsh-footer__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.bsh-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 50px 0 50px 0;
    background: var(--bsh-accent);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .12s ease, filter .18s ease;
    white-space: nowrap;
}

.bsh-footer__btn:hover { filter: brightness(1.04); transform: translateY(-1px); color: #fff; }

.bsh-footer__btn--ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.22);
}

.bsh-footer__btn--ghost:hover { border-color: rgba(255,255,255,.32); color: #fff; }

.bsh-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    font-size: 15px;
    color: var(--bsh-muted);
}

.bsh-footer__bottomLeft,
.bsh-footer__bottomRight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bsh-footer__sep { opacity: .5; }

/* ── Social Media ───────────────────────────────────────── */

.bsh-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.bsh-footer__socialLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--bsh-muted);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.bsh-footer__socialLink:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: translateY(-2px);
}

.bsh-footer__socialLink svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ── Accordion / Toggle ─────────────────────────────── */

.bsh-footer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.bsh-footer__chevron {
    display: none;          /* hidden on desktop */
    flex-shrink: 0;
    transition: transform .3s ease;
}

.bsh-footer__toggle.is-open .bsh-footer__chevron {
    transform: rotate(180deg);
}

/* ── Responsive ─────────────────────────────────────── */

/* ▸ Large desktop cap */
@media (max-width: 1200px) {
    .bsh-footer__container { max-width: 100%; padding-left: 32px; padding-right: 32px; }
}

/* ▸ Tablet landscape / small desktop */
@media (max-width: 1100px) {
    .bsh-footer__top { grid-template-columns: 1fr; gap: 22px; padding-bottom: 42px; }
    .bsh-footer__logo { width: 170px; }
    .bsh-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .bsh-footer__contactPanel {
        grid-column: 1 / -1;
        border-left: 0; padding: 16px;
        margin-top: 6px;
        border-top: 1px solid rgba(255,255,255,.10);
        background: rgba(255,255,255,.04);
        border-radius: 0;
    }
    .bsh-footer__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ▸ Tablet portrait / mobile — Accordion layout */
@media (max-width: 768px) {
    .bsh-footer::before { width: 220px; height: 95px; top: -14px; left: -14px; }
    .bsh-footer::after  { width: 260px; height: 112px; right: -16px; bottom: -22px; }

    .bsh-footer__container { padding: 36px 16px 16px; }
    .bsh-footer__top { gap: 16px; padding-top: 28px; padding-bottom: 32px; }

    .bsh-footer__brand { justify-content: center; width: 100%; }
    .bsh-footer__logo { width: auto; max-width: 200px; height: 33px; }

    .bsh-footer__columns { grid-template-columns: 1fr; gap: 0; }

    /* Each column becomes an accordion row */
    .bsh-footer__col {
        border-bottom: 1px solid var(--bsh-border);
        padding: 0;
    }

    /* Title = accordion trigger */
    .bsh-footer__toggle {
        cursor: pointer;
        padding: 14px 0;
        margin: 0;
    }

    .bsh-footer__chevron {
        display: block;
        color: var(--bsh-muted);
    }

    /* Collapsible panel */
    .bsh-footer__collapsible {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .35s ease, opacity .25s ease;
    }

    .bsh-footer__toggle.is-open + .bsh-footer__collapsible {
        opacity: 1;
    }

    .bsh-footer__list {
        padding-bottom: 14px;
    }

    .bsh-footer__contact {
        padding-bottom: 14px;
    }

    /* Contact panel fixes */
    .bsh-footer__contactPanel {
        grid-column: auto;
        border-left: 0;
        padding-left: 0;
        margin-top: 0;
        border-top: none;
        background: transparent;
        border-radius: 0;
        border-bottom: 1px solid var(--bsh-border);
    }

    .bsh-footer__actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    /* Bottom bar – stack */
    .bsh-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-top: 18px;
    }

    .bsh-footer__bottomLeft,
    .bsh-footer__bottomRight {
        justify-content: center;
    }
}

/* ▸ Small mobile */
@media (max-width: 480px) {
    .bsh-footer__container { padding: 28px 14px 14px; }
    .bsh-footer__toggle { padding: 12px 0; font-size: 14px; }
    .bsh-footer__link,
    .bsh-footer__contactLink { font-size: 15px; }
    .bsh-footer__actions { grid-template-columns: 1fr; gap: 8px; }
    .bsh-footer__btn { padding: 11px 14px; font-size: 15px; }
    .bsh-footer__bottom { font-size: 13px; }
}
