/* ================================================================
   PHI CARE SOLUTIONS — footer.css v2
   Compact desktop. Collapsible accordion on mobile.
   ================================================================ */
:root {
    --pf-navy-900: #0C1533;
    --pf-navy:     #1E2D6B;
    --pf-orange:   #F28C28;
    --pf-tr:       all .25s ease;
}

.pf-footer { background: var(--pf-navy-900) !important; font-family: 'DM Sans', sans-serif; }
.pf-main { padding: 52px 0 36px; }

/* ── Grid: 4 cols on desktop ── */
.pf-grid {
    display: grid !important;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.7fr !important;
    gap: 36px !important;
    align-items: start;
}

/* ── Brand ── */
.pf-logo { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff !important; text-decoration: none !important; letter-spacing: -.02em; display: block; margin-bottom: 12px; }
.pf-logo span { color: var(--pf-orange); }
.pf-brand p { color: rgba(255,255,255,.4) !important; font-size: .83rem !important; line-height: 1.62 !important; margin-bottom: 18px !important; max-width: 220px; }
.pf-socials { display: flex !important; gap: 7px; flex-wrap: wrap; }
.pf-socials a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex !important; align-items: center; justify-content: center; color: rgba(255,255,255,.38) !important; font-size: .88rem; text-decoration: none !important; transition: var(--pf-tr); }
.pf-socials a:hover { background: var(--pf-orange) !important; border-color: var(--pf-orange) !important; color: #fff !important; transform: translateY(-2px); }

/* ── Link columns ── */
/* On desktop: heading visible, toggle button hidden */
.pf-col-toggle { display: none; }
.pf-col-heading { font-family: 'Syne', sans-serif !important; font-size: .67rem !important; font-weight: 800 !important; color: rgba(255,255,255,.28) !important; letter-spacing: .16em !important; text-transform: uppercase !important; margin-bottom: 14px !important; }
.pf-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.pf-col li { margin-bottom: 8px !important; }
.pf-col a { color: rgba(255,255,255,.48) !important; text-decoration: none !important; font-size: .83rem !important; transition: var(--pf-tr) !important; display: inline-flex; align-items: center; gap: 6px; }
.pf-col a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--pf-orange); opacity: .35; flex-shrink: 0; transition: var(--pf-tr); }
.pf-col a:hover { color: #fff !important; }
.pf-col a:hover::before { opacity: 1; }

/* ── Offices ── */
.pf-offices .pf-col-heading { font-family: 'Syne', sans-serif !important; font-size: .67rem !important; font-weight: 800 !important; color: rgba(255,255,255,.28) !important; letter-spacing: .16em !important; text-transform: uppercase !important; margin-bottom: 14px !important; }
.pf-office + .pf-office { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.pf-office-name { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.pf-flag { font-size: .86rem; }
.pf-office-name strong { font-family: 'Syne', sans-serif; font-size: .87rem; font-weight: 700; color: #fff; }
.pf-office address { font-style: normal !important; color: rgba(255,255,255,.38) !important; font-size: .78rem !important; line-height: 1.5 !important; margin-bottom: 7px !important; }
.pf-office a { display: flex !important; align-items: center; gap: 7px; color: rgba(255,255,255,.44) !important; text-decoration: none !important; font-size: .78rem !important; margin-bottom: 4px !important; transition: var(--pf-tr) !important; }
.pf-office a i { color: var(--pf-orange); font-size: .73rem; width: 13px; text-align: center; flex-shrink: 0; }
.pf-office a:hover { color: var(--pf-orange) !important; }

/* ── Bottom bar ── */
.pf-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 15px 0; }
.pf-bottom-row { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.22) !important; font-size: .77rem !important; }
.pf-bottom-row a { color: rgba(255,255,255,.3) !important; text-decoration: none !important; transition: var(--pf-tr); }
.pf-bottom-row a:hover { color: var(--pf-orange) !important; }
.pf-legal { display: flex; align-items: center; gap: 10px; }

/* ══ RESPONSIVE ══ */

/* ── 1199px: 2 col top, offices full width ── */
@media (max-width: 1199px) {
    .pf-grid { grid-template-columns: 1fr 1fr !important; }
    .pf-offices {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    .pf-offices .pf-col-heading { grid-column: 1 / -1; margin-bottom: 0 !important; }
    .pf-office + .pf-office { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
}

/* ── 991px: stack to single col, ACCORDION toggle appears ── */
@media (max-width: 991px) {
    .pf-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
    .pf-main { padding: 36px 0 24px; }
    .pf-brand { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 0; }
    .pf-brand p { max-width: 100%; }

    /* Show toggle button, hide static heading */
    .pf-col-toggle {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        background: none !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        color: rgba(255,255,255,.7) !important;
        font-family: 'Syne', sans-serif;
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: 16px 0 !important;
        cursor: pointer;
        transition: var(--pf-tr);
        text-align: left;
    }
    .pf-col-toggle:hover { color: #fff !important; }
    .pf-col-toggle i { font-size: .75rem; transition: transform .3s ease; }
    .pf-col-toggle.open i { transform: rotate(180deg); }
    .pf-col-toggle.open { color: var(--pf-orange) !important; border-bottom-color: rgba(242,140,40,.2) !important; }

    /* Hide static heading on mobile (toggle replaces it) */
    .pf-col-heading { display: none !important; }

    /* List collapsed by default */
    .pf-col ul,
    #pf-offices-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease, padding .3s ease;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    /* Expanded state */
    .pf-col ul.pf-open,
    #pf-offices-list.pf-open {
        max-height: 600px;
        padding-top: 12px !important;
        padding-bottom: 16px !important;
    }

    /* Offices full width stacked */
    .pf-offices {
        display: block !important;
        grid-column: auto !important;
    }
    .pf-office + .pf-office { margin-top: 14px !important; padding-top: 14px !important; border-top: 1px solid rgba(255,255,255,.06) !important; }

    .pf-bottom-row { flex-direction: column; text-align: center; }
    .pf-col { border-bottom: none !important; }
}

@media (max-width: 575px) {
    .pf-bottom-row { font-size: .72rem !important; }
    .pf-legal { gap: 7px; }
}