/* ==========================================================
   NivaasMart website footer (includes/footer.php) — compact & tidy.
   Desktop: brand + newsletter on the left, 4 link columns on the right,
   one slim bottom bar (© + legal). Phone: link groups fold into tap-to-open rows.
   The Android app hides the footer (app-pages.css), so this is website-only.
   ========================================================== */
.nmf {
    --nmf-bg: #0E1A3D; --nmf-line: rgba(255,255,255,.09); --nmf-txt: rgba(226,232,255,.74); --nmf-head: #fff; --nmf-gold: #E2C27A;
    background:
        radial-gradient(700px 260px at 100% 0%, rgba(37,99,235,.28), rgba(37,99,235,0) 70%),
        linear-gradient(180deg, #0F1D45 0%, var(--nmf-bg) 100%);
    color: var(--nmf-txt); font: 400 14px/1.55 Inter, system-ui, sans-serif; margin-top: 0;
}
.nmf a { color: inherit; text-decoration: none; }
.nmf-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.nmf-main { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 56px; padding: 40px 0 30px; }

/* brand */
.nmf-logo { display: inline-block; }
.nmf-logo img { height: 64px; width: auto; display: block; margin: -6px 0 0 -6px; }
.nmf-about { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--nmf-txt);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nmf-contact { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-size: 13px; }
.nmf-contact a, .nmf-contact span { display: inline-flex; align-items: flex-start; gap: 8px; color: #E5EAFF; }
.nmf-contact svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--nmf-gold); }
.nmf-contact a:hover { color: #fff; }

.nmf-news { margin: 18px 0 0; }
.nmf-news label { display: block; font-size: 12.5px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.nmf-news-row { display: flex; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 4px; }
.nmf-news-row:focus-within { border-color: rgba(147,180,255,.7); background: rgba(255,255,255,.1); }
.nmf-news input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 400 13.5px Inter, sans-serif; padding: 8px 10px; }
.nmf-news input::placeholder { color: rgba(226,232,255,.5); }
.nmf-news button { flex: none; border: 0; border-radius: 9px; background: #2563EB; color: #fff; font: 700 13px Inter, sans-serif; padding: 0 16px; cursor: pointer; }
.nmf-news button:hover { background: #1D4ED8; }
.nmf-ok { display: block; margin-top: 6px; color: #86EFAC; font-size: 12px; }

.nmf-social { display: flex; gap: 8px; margin-top: 16px; }
.nmf-social a { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: #E5EAFF; transition: background .15s, color .15s; }
.nmf-social a:hover { background: var(--nmf-gold); color: #0B1120; }
.nmf-social svg { width: 16px; height: 16px; }

/* link columns */
.nmf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nmf-h { all: unset; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box;
    color: var(--nmf-head); font: 700 13px/1.2 Poppins, Inter, sans-serif; letter-spacing: .02em; margin: 6px 0 14px; cursor: default; }
.nmf-h svg { display: none; width: 18px; height: 18px; color: rgba(255,255,255,.6); transition: transform .2s; }
.nmf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nmf-col a { font-size: 13.5px; color: var(--nmf-txt); transition: color .15s; }
.nmf-col a:hover { color: #fff; }

/* "listing platform only" note */
.nmf-disc { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--nmf-line); padding: 16px 0; }
.nmf-disc svg { width: 20px; height: 20px; flex: none; color: var(--nmf-gold); margin-top: 1px; }
.nmf-disc p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(226,232,255,.68); }
.nmf-disc b { color: #fff; font-weight: 600; }
.nmf-disc a { color: #93B4FF; font-weight: 600; white-space: nowrap; }
.nmf-disc a:hover { color: #fff; }

/* Get the app */
.nmf-app { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 14px 8px 12px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.nmf-app svg { width: 22px; height: 22px; }
.nmf-app span { font: 700 15px/1.1 Inter, sans-serif; }
.nmf-app small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
.nmf-app:hover { border-color: rgba(255,255,255,.55); }
.nmf-app + .nmf-social { margin-top: 12px; }

/* bottom bar */
.nmf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--nmf-line); padding: 14px 0 18px; font-size: 12.5px; color: rgba(226,232,255,.55); }
.nmf-bottom p { margin: 0; }
.nmf-bottom nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nmf-bottom nav a:hover { color: #fff; }

/* laptop / tablet */
@media (max-width: 1100px) {
    .nmf-main { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
    .nmf-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); column-gap: 32px; align-items: start; }
    .nmf-brand > * { grid-column: 1; }
    .nmf-brand > .nmf-news { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
    .nmf-brand > .nmf-social { grid-column: 2; }
}

/* phone: groups fold into tap rows */
@media (max-width: 700px) {
    .nmf-in { padding: 0 16px; }
    .nmf-main { gap: 18px; padding: 28px 0 8px; }
    .nmf-brand { display: block; }
    .nmf-logo img { height: 54px; }
    .nmf-news { margin-top: 20px; }
    .nmf-cols { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--nmf-line); }
    .nmf-col { border-bottom: 1px solid var(--nmf-line); }
    .nmf-h { margin: 0; padding: 15px 2px; font-size: 14px; cursor: pointer; }
    .nmf-h svg { display: block; }
    .nmf-col ul { display: none; padding: 0 2px 14px; gap: 11px; }
    .nmf-col.open ul { display: grid; }
    .nmf-col.open .nmf-h svg { transform: rotate(180deg); }
    .nmf-disc { border-top: 0; }
    .nmf-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding: 14px 0 calc(18px + var(--nm-sab, env(safe-area-inset-bottom, 0px))); }
}
