/* ============================================================
   LEGALRAHO — Premium Bento Footer (2025–2026)
   Scoped: every selector lives under .bf-footer. Nothing leaks out.
   ============================================================ */

.bf-footer {
    --bf-bg: #F5F5F3;
    --bf-card: #ffffff;
    --bf-ink: #17171a;
    --bf-muted: #62666d;
    --bf-faint: #9aa0a6;
    --bf-line: #e6e3db;
    --bf-line-strong: #d8d4c9;
    --bf-orange: #fb6b00;
    --bf-orange-dark: #d45500;
    --bf-orange-soft: #fff3e8;
    --bf-radius: 20px;
    --bf-gap: 20px;
    --bf-pad: 30px;
    --bf-shadow: 0 1px 2px rgba(23,23,26,0.04), 0 4px 14px rgba(23,23,26,0.05);
    --bf-shadow-hover: 0 2px 4px rgba(23,23,26,0.06), 0 12px 28px rgba(23,23,26,0.10);
    --bf-ease: 220ms cubic-bezier(0.4,0,0.2,1);
    background: var(--bf-bg);
    color: var(--bf-ink);
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    padding: 56px 20px 0;
    margin-top: 0;
}

.bf-inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Bento grid (desktop: explicit placement; DOM order = mobile order) ---------- */
.bf-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--bf-gap);
}
.bf-brand   { grid-column: 1 / 6;  grid-row: 1; }
.bf-dl      { grid-column: 6 / 10; grid-row: 1; }
.bf-chd     { grid-column: 1 / 6;  grid-row: 2; }
.bf-india   { grid-column: 6 / 10; grid-row: 2; }
.bf-contact { grid-column: 10 / 13; grid-row: 1 / 3; }

/* ---------- Cards ---------- */
.bf-card {
    position: relative;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    padding: var(--bf-pad);
    box-shadow: var(--bf-shadow);
    overflow: hidden;
    transition: transform var(--bf-ease), box-shadow var(--bf-ease), border-color var(--bf-ease);
}
.bf-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bf-shadow-hover);
    border-color: var(--bf-line-strong);
}

.bf-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bf-ink);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bf-label svg { color: var(--bf-orange); flex-shrink: 0; }
.bf-card p { font-weight: 400; }

.bf-addr {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bf-muted);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.bf-addr strong { color: var(--bf-ink); font-weight: 600; }

/* faint decorative backdrops (never photography) */
.bf-deco { position: absolute; right: -10px; bottom: -10px; opacity: 0.07; pointer-events: none; }

/* oversized office-abbreviation backdrop */
.bf-deco--text {
    right: 2px;
    bottom: -18px;
    font-size: 108px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    user-select: none;
    color: rgba(23,23,26,0.07);
    opacity: 1;
}
@supports (-webkit-text-stroke: 1px black) {
    .bf-deco--text {
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(23,23,26,0.20);
    }
}

/* ---------- Brand card ---------- */
.bf-brand { display: flex; flex-direction: column; justify-content: center; }
.bf-brand img { height: 42px; width: auto; max-width: 220px; }
.bf-brand__co { margin: 14px 0 0; font-size: 13px; color: var(--bf-muted); font-weight: 400; }
.bf-brand__rule { width: 48px; height: 3px; background: var(--bf-orange); border-radius: 2px; margin: 14px 0; transition: width var(--bf-ease); }
.bf-brand:hover .bf-brand__rule { width: 72px; }
.bf-brand__tag { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; color: var(--bf-ink); font-weight: 700; letter-spacing: -0.01em; max-width: 16em; }

/* ---------- Contact stack ---------- */
.bf-contact { display: flex; flex-direction: column; padding: 22px; background: linear-gradient(180deg, #fff, #fffdf9); }
.bf-contact .bf-label { padding: 8px 8px 0; margin-bottom: 10px; }
.bf-action {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    text-decoration: none;
    background: #fff;
    transition: transform var(--bf-ease), box-shadow var(--bf-ease), border-color var(--bf-ease);
}
.bf-action + .bf-action { margin-top: 12px; }
.bf-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--bf-shadow-hover);
    border-color: var(--bf-orange);
}
.bf-action__icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bf-orange-soft); color: var(--bf-orange);
    transition: background var(--bf-ease), color var(--bf-ease);
}
.bf-action:hover .bf-action__icon { background: var(--bf-orange); color: #fff; }
.bf-action__body { min-width: 0; flex: 1; }
.bf-action__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--bf-faint); text-transform: uppercase; }
.bf-action__value { font-size: 15px; font-weight: 600; color: var(--bf-ink); word-break: break-all; }
.bf-action__arrow { color: var(--bf-faint); flex-shrink: 0; transition: transform var(--bf-ease), color var(--bf-ease); }
.bf-action:hover .bf-action__arrow { transform: translateX(4px); color: var(--bf-orange); }

/* ---------- India card ---------- */
.bf-india { background: #101014; border-color: #101014; color: #fff; }
.bf-india:hover { border-color: #2b2b33; }
.bf-india__dots { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.bf-india__body { position: relative; z-index: 1; }
.bf-india .bf-label { color: #fff; }
.bf-india__words { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bf-india__words li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: #e8e8ea; }
.bf-india__words li::before { content: ''; width: 22px; height: 2px; background: var(--bf-orange); border-radius: 1px; flex-shrink: 0; }
.bf-india__note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #a7a7ae; font-weight: 400; }

/* ---------- Bottom bar ---------- */
.bf-bottom {
    margin-top: 22px;
    border-top: 1px solid var(--bf-line-strong);
    padding: 18px 4px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.bf-copy { margin: 0; font-size: 13px; color: var(--bf-muted); font-weight: 400; }
.bf-copy .bf-sep { margin: 0 8px; color: var(--bf-faint); }
.bf-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bf-nav nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bf-nav a.bf-nav__link {
    font-size: 13px; font-weight: 500; color: var(--bf-muted);
    text-decoration: none; padding: 8px 10px; border-radius: 8px;
    transition: color 180ms ease, background 180ms ease;
}
.bf-nav a.bf-nav__link:hover { color: var(--bf-orange-dark); background: rgba(251,107,0,0.08); }
.bf-social { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--bf-line-strong); }
.bf-social a {
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bf-line); color: var(--bf-muted); background: #fff;
    transition: transform var(--bf-ease), color var(--bf-ease), border-color var(--bf-ease), box-shadow var(--bf-ease);
}
.bf-social a:hover { transform: translateY(-2px); color: var(--bf-orange-dark); border-color: var(--bf-orange); box-shadow: var(--bf-shadow); }

/* ---------- Focus visibility ---------- */
.bf-footer a:focus-visible {
    outline: 2px solid var(--bf-orange);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Tablet (~2 col) ---------- */
@media (max-width: 1024px) {
    .bf-footer { padding: 44px 16px 0; }
    .bf-grid { grid-template-columns: repeat(6, 1fr); }
    .bf-brand   { grid-column: 1 / 7; grid-row: auto; }
    .bf-dl      { grid-column: 1 / 4; grid-row: auto; }
    .bf-chd     { grid-column: 4 / 7; grid-row: auto; }
    .bf-contact { grid-column: 1 / 7; grid-row: auto; }
    .bf-india   { grid-column: 1 / 7; grid-row: auto; }
    .bf-contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .bf-action + .bf-action { margin-top: 0; }
    .bf-card { padding: 26px; }
}

/* ---------- Mobile (single column, intentional order via DOM) ---------- */
@media (max-width: 640px) {
    .bf-footer { padding: 36px 14px 0; }
    .bf-grid { grid-template-columns: 1fr; gap: 14px; }
    .bf-brand, .bf-dl, .bf-chd, .bf-contact, .bf-india { grid-column: 1 / -1; grid-row: auto; }
    .bf-card { padding: 22px; border-radius: 18px; }
    .bf-deco--text { font-size: 76px; bottom: -12px; }
    .bf-contact__actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .bf-brand img { height: 36px; }
    .bf-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 26px; }
    .bf-social { margin-left: 0; padding-left: 0; border-left: none; margin-top: 4px; }
    .bf-social a { width: 40px; height: 40px; }
    .bf-nav a.bf-nav__link { padding: 10px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .bf-footer *, .bf-footer *::before, .bf-footer *::after {
        transition: none !important;
        transform: none !important;
    }
}
