/* ============================================================
   БУДПРОФ — FOOTER STYLES
   Файл: /budprof-child/assets/css/footer.css
============================================================ */

/* ===== BASE ===== */
.bpf-footer {
    background: #1a1f2a;
    font-family: 'Montserrat', sans-serif;
    color: #c8cdd8;
    margin-top: 0;
}

.bpf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== GRID ===== */
.bpf-grid {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 60px;
    padding: 60px 0 52px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ===== COL 1: BRAND ===== */
.bpf-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}
.bpf-logo-img {
    height: 80px;
    width: auto;
    display: block;
    /* якщо логотип з чорним фоном — фільтр для темної теми */
    filter: brightness(0) invert(1);
}

.bpf-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #a0a8b8;
    margin-bottom: 28px;
}
.bpf-brand-desc strong { color: #fff; font-weight: 700; }

/* Hours */
.bpf-hours { margin-bottom: 24px; }
.bpf-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #a0a8b8;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bpf-hour-row:last-child { border-bottom: none; }
.bpf-hour-val {
    color: #2171C7;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
}
/* Rating */
.bpf-rating {
    margin-bottom: 24px;
}

.bpf-rating-label {
    font-size: 17px;
    color: #a0a8b8;
    margin-bottom: 8px;
}
/* Search */
.bpf-search {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.bpf-search input {
    flex: 1;
    padding: 11px 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
}
.bpf-search input::placeholder { color: #6b7280; }
.bpf-search input:focus { background: rgba(255,255,255,0.10); }
.bpf-search button {
    padding: 11px 16px;
    background: #2171C7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.bpf-search button:hover { background: #1558a8; }
.bpf-search button svg {
    width: 16px; height: 16px;
    stroke: #fff; fill: none;
    stroke-width: 2; stroke-linecap: round;
}

/* ===== COL 2: MENU ===== */
.bpf-col-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}
.bpf-col-title span { color: #2171C7; 
}

.bpf-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.bpf-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.bpf-menu li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #a0a8b8;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.25;
}
.bpf-menu li a:hover {
    color: #fff;
    padding-left: 6px;
}

/* ===== COL 3: CONTACTS ===== */
.bpf-address {
    font-size: 14px;
    color: #a0a8b8;
    line-height: 1.65;
    margin-bottom: 20px;
}

.bpf-contact-item { margin-bottom: 14px; }
.bpf-contact-label {
    font-size: 12px;
    font-weight: 700;
    color: #2171C7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}
.bpf-contact-val {
    font-size: 14px;
    color: #c8cdd8;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.bpf-contact-val--big {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.bpf-contact-val:hover,
.bpf-contact-val--big:hover { color: #2171C7; }

/* Socials */
.bpf-socials-group {
    margin-bottom: 22px;
}

.bpf-socials-group .bpf-contact-label {
    margin-bottom: 12px;
}

.bpf-socials {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bpf-soc {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 18px;
    color: #d9e2ef;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 24px rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.bpf-soc::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.03) 42%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
}

.bpf-soc:hover {
    transform: translateY(-3px);
    color: #ffffff;
    background: linear-gradient(180deg, #3b94f6 0%, #2171C7 100%);
    border-color: rgba(93,176,248,0.48);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 14px 28px rgba(33,113,199,0.30);
}

.bpf-soc:active {
    transform: translateY(-1px) scale(0.98);
}

.bpf-soc svg {
    width: 23px;
    height: 23px;
    position: relative;
    z-index: 1;
    opacity: 0.96;
}

/* ===== BOTTOM BAR ===== */
.bpf-bottom {
    padding: 20px 0;
    background: #141820;
}
.bpf-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bpf-bottom p {
    font-size: 13px;
    color: #5a6070;
}
.bpf-bottom a {
    color: #2171C7;
    text-decoration: none;
    transition: color 0.2s;
}
.bpf-bottom a:hover { color: #5db0f8; }

/* ===== SCROLL TO TOP ===== */
.bpf-scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9990;
    width: 46px; height: 46px;
    background: #2171C7;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(33,113,199,0.4);
    transition: background 0.2s, transform 0.2s;
}
.bpf-scroll-top.visible { display: flex; }
.bpf-scroll-top:hover { background: #1558a8; transform: translateY(-2px); }
.bpf-scroll-top svg {
    width: 18px; height: 18px;
    stroke: #fff; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .bpf-grid { grid-template-columns: 280px 1fr 260px; gap: 40px; }
}
@media (max-width: 860px) {
    .bpf-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .bpf-col--brand { grid-column: span 2; }
    .bpf-brand-desc { max-width: 500px; }
}
@media (max-width: 580px) {
    .bpf-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 36px; }
    .bpf-col--brand { grid-column: auto; }
    .bpf-menu { grid-template-columns: 1fr; }
    .bpf-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .bpf-scroll-top { bottom: 20px; right: 20px; }
}

/* ===== FOOTER COLUMNS FIX ===== */
.bpf-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.bpf-col {
    align-self: start;
}

.bpf-col--brand {
    transform: translateY(-20px);
}

.bpf-col-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.bpf-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.bpf-menu li {
    margin: 0;
    padding: 0;
}

.bpf-menu li a {
    display: block;
    padding: 3px 0;
    line-height: 1.2;
    border-bottom: none;
}
.bpf-col--menu .bpf-col-title,
.bpf-col--contacts .bpf-col-title {
    margin-bottom: 52px;
}
/* ===== FOOTER DESKTOP + MOBILE FIX ===== */

/* Desktop */
.bpf-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.bpf-col {
    align-self: start;
}

.bpf-col--brand {
    transform: translateY(-20px);
}

.bpf-col-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.2;
}

.bpf-col-title span {
    color: #2171C7;
}

.bpf-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.bpf-menu li {
    margin: 0;
    padding: 0;
}

.bpf-menu li a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.25;
    color: #a0a8b8;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s, padding-left 0.2s;
    word-break: normal;
    overflow-wrap: break-word;
}

.bpf-menu li a:hover {
    color: #fff;
    padding-left: 6px;
}

/* Tablet */
@media (max-width: 1100px) {
    .bpf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .bpf-col--contacts {
        grid-column: 1 / -1;
    }

    .bpf-col--brand {
        transform: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bpf-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bpf-col,
    .bpf-col--brand,
    .bpf-col--menu,
    .bpf-col--contacts {
        width: 100%;
        transform: none !important;
        margin-top: 0 !important;
    }

    .bpf-col-title {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bpf-brand-desc,
    .bpf-address,
    .bpf-contact-val,
    .bpf-contact-label,
    .bpf-menu li a {
        word-break: normal;
        overflow-wrap: break-word;
    }

    .bpf-hours {
        margin-top: 20px;
    }

    .bpf-search input {
        min-width: 0;
        width: 100%;
    }

    .bpf-bottom-inner {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* FIX: рейтинг/зірки у футері */
.bpf-rating,
.bpf-rating * {
    color: #f5c542 !important;
}

.bpf-rating svg,
.bpf-rating i,
.bpf-rating span,
.bpf-rating .star,
.bpf-rating .stars {
    color: #f5c542 !important;
    fill: #f5c542 !important;
    stroke: #f5c542 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.bpf-rating [class*="star"]::before,
.bpf-rating [class*="rating"]::before,
.bpf-rating i::before,
.bpf-rating span::before {
    color: #f5c542 !important;
}

.bpf-rating {
    min-height: 32px;
    display: block;
    overflow: visible !important;
    font-family: inherit !important;
}