/* ============================================================
   Site footer (every page)
   ------------------------------------------------------------
   Markup: resources/views/frontend/inc/footer.blade.php (.pf)
   Behaviour: public/frontend/js/site-footer.js (back to top)
   ============================================================ */

.pf {
    --pf-bg: #060c1c;
    --pf-bg-2: #040816;
    --pf-line: rgba(148, 163, 184, .12);
    --pf-text: #9fb0c8;
    --pf-muted: #6f819c;
    --pf-head: #f1f5f9;
    --pf-accent: #60a5fa;
    position: relative;
    color: var(--pf-text);
    background:
        radial-gradient(700px 300px at 0% 0%, rgba(37, 99, 235, .12), transparent 70%),
        radial-gradient(600px 300px at 100% 100%, rgba(14, 165, 233, .08), transparent 70%),
        var(--pf-bg);
    font-size: 14px;
}
.pf a { text-decoration: none; }

.pf-body { padding: 48px 0 40px; }
.pf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(250px, 1.3fr);
    gap: 40px 32px;
}

/* ── Brand band ───────────────────────────────────────────── */
.pf-band { border-bottom: 1px solid var(--pf-line); }
.pf-band-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px 40px;
    padding: 34px 0;
}
.pf-logo { display: inline-block; }
.pf-logo img { max-height: 48px; width: auto; max-width: 190px; display: block; }
.pf-logo-text { font-size: 1.6rem; font-weight: 900; color: #fff; }
.pf-band-text { min-width: 0; padding-left: 40px; border-left: 1px solid var(--pf-line); }
.pf-about {
    margin: 0;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--pf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pf-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pf-badges-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-muted); margin-right: 4px; }
.pf-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--pf-line);
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.pf-social { display: flex; gap: 8px; }
.pf-social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--pf-line);
    transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.pf-social a:hover { color: #fff; transform: translateY(-3px); background: var(--brand, #2563eb); border-color: transparent; }

/* ── Link columns ─────────────────────────────────────────── */
.pf-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pf-head);
}
.pf-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
}
.pf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pf-text);
    font-size: 14px;
    line-height: 1.35;
    transition: color .15s, transform .15s;
}
.pf-links a::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #334155;
    flex-shrink: 0;
    transition: background .15s;
}
.pf-links a:hover { color: #fff; transform: translateX(3px); }
.pf-links a:hover::before { background: var(--pf-accent); }
.pf-links a.is-strong { color: var(--pf-accent); font-weight: 700; }
.pf-links .pf-tag {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .15);
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 800;
}

/* Contact column */
.pf-contacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.pf-contacts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.pf-contacts i { width: 16px; margin-top: 4px; text-align: center; color: var(--pf-accent); font-size: 13px; flex-shrink: 0; }
.pf-contacts a { color: var(--pf-text); line-height: 1.55 !important; }
.pf-contacts li > span { line-height: 1.55; }
.pf-contacts a:hover { color: #fff; }
.pf-help-actions { display: flex; gap: 8px; }
.pf-help-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.pf-help-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .35); }
.pf-help-btn--ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.pf-help-btn--ghost i { color: #4ade80; }

/* ── Bottom bar ───────────────────────────────────────────── */
.pf-bottom { background: var(--pf-bg-2); border-top: 1px solid var(--pf-line); padding: 22px 0; }
.pf-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.pf-pay-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pf-pay-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-muted); white-space: nowrap; }
.pf-pay { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-pay li {
    height: 30px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
}
.pf-pay img { height: 20px; width: auto; display: block; }

.pf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.pf-legal a { font-size: 13px; color: var(--pf-muted); }
.pf-legal a:hover { color: #cbd5e1; }

.pf-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pf-line);
    font-size: 13px;
    color: var(--pf-muted);
}
.pf-copy-row strong { color: #cbd5e1; font-weight: 700; }
.pf-copy-row a { color: #cbd5e1; }
.pf-copy-row a:hover { color: #fff; }

/* Back to top */
.pf-top {
    position: fixed;
    left: 22px; bottom: 24px;
    z-index: 998;
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0a2a6b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 8, 30, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.pf-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.pf-top:hover { background: #1d4ed8; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-contact { grid-column: span 2; }
}
@media (max-width: 991.98px) {
    .pf-band-row { grid-template-columns: 1fr auto; }
    .pf-band-text { grid-column: 1 / -1; grid-row: 2; padding-left: 0; border-left: 0; }
    .pf-body { padding: 40px 0 28px; }
    .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-contact { grid-column: 1 / -1; }
    .pf-help-actions { max-width: 360px; }
}
@media (max-width: 575.98px) {
    .pf-band-row { padding: 26px 0; grid-template-columns: minmax(0, 1fr); }
    .pf-social { flex-wrap: wrap; }
    .pf-grid { gap: 30px 18px; }
    .pf-bottom-row, .pf-copy-row { flex-direction: column; align-items: flex-start; }
    .pf-top { left: 14px; bottom: 18px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf *, .pf-top { transition: none !important; }
}
