/* ================================================================
   SMJ Marketplace Pro — Custom Header + Footer
   No Elementor. No ElementsKit. Pure CSS.
   ================================================================ */

/* ── Elementor / ElementsKit remnant kill-switch ──────────────────────────────
   After removing these plugins their SVG icon widgets remain in the DB.
   Without their CSS the SVGs have no size → renders as full-viewport black blobs.
   This block is a hard global safety net loaded on every page via the plugin.   */

/* Any raw SVG that has no explicit width/height and sits outside a known
   plugin component wrapper → cap at icon size */
body svg:not([width]):not([height]):not(.smj-hdr svg):not(.smj-ftr svg) {
    max-width: 24px;
    max-height: 24px;
}

/* Elementor widget containers */
.elementor-widget-container svg,
.ekit-widget-content svg,
.ekit-icon-box svg,
.elementskit-icon-box svg {
    max-width: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
}

/* Constrain social icon SVGs to their container — prevent blowup */
.smj-hdr__social a svg,
.smj-ftr__social a svg {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    display: block;
    flex-shrink: 0;
}

/* Hide duplicate Elementor-rendered headers/footers */
.elementor-location-header .smj-hdr,
.elementor-location-footer .smj-ftr,
.elementor-template-canvas header:not(.smj-hdr),
.elementor-template-canvas footer:not(.smj-ftr) {
    display: none !important;
}

/* ── Shared reset scope ── */
.smj-hdr *, .smj-hdr *::before, .smj-hdr *::after,
.smj-ftr *, .smj-ftr *::before, .smj-ftr *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================================
   HEADER
   ================================================================ */

.smj-hdr {
  position: sticky;
  top: 0;
  z-index: 99990;
  background: var(--smj-bg);
  border-bottom: 1px solid var(--smj-border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--smj-text-primary);
}

.smj-hdr__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  position: relative; /* anchors the location panel dropdown */
}

/* ── Custom logo (get_custom_logo()) ── */
/* Header */
.smj-hdr__logo-wrap { flex-shrink: 0; display: flex; align-items: center; margin-right: 2px; }
.smj-hdr__logo-wrap .custom-logo-link { display: flex; align-items: center; line-height: 1; }
.smj-hdr__logo-wrap .custom-logo-link img.custom-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Footer */
.smj-ftr__logo-wrap {
  margin-bottom: 16px;
  display: inline-block;
  /* White card — logo renders in its original colors on blue footer */
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 1px 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.smj-ftr__logo-wrap .custom-logo-link { display: inline-flex; align-items: center; line-height: 1; }
.smj-ftr__logo-wrap .custom-logo-link img.custom-logo {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  /* NO filter — preserve original logo colors */
  filter: none;
}

/* ── Fallback text logo (shown when no custom logo is set) ── */
.smj-hdr__logo {
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 2px;
}
.smj-hdr__logo-s  { color: #2196f3; }
.smj-hdr__logo-m  { color: #2a2a2a; }
.smj-hdr__logo-j  { color: #3a6b3a; }
/* Legacy fallback */
.smj-hdr__logo-mj { color: #2a2a2a; }
.smj-hdr__logo:hover .smj-hdr__logo-s  { color: #1565c0; transition: color .15s; }
.smj-hdr__logo:hover .smj-hdr__logo-j  { color: #2e5a2e; transition: color .15s; }

/* ── Location pill ── */
.smj-hdr__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--smj-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, box-shadow .15s;
  line-height: 1;
  min-height: 38px;
}
.smj-hdr__loc:hover  { background: #dbeafe; border-color: #93c5fd; box-shadow: 0 2px 8px rgba(26,111,181,.12); }
.smj-hdr__loc:focus-visible { outline: 2px solid var(--smj-secondary); outline-offset: 2px; }
.smj-hdr__loc[aria-expanded="true"] { background: #dbeafe; border-color: var(--smj-secondary); }

/* ── Location panel dropdown ── */
.smj-loc-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;
  background: var(--smj-bg);
  border: 1px solid var(--smj-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  width: 300px;
  padding: 18px;
  animation: smjLocIn .15s ease;
}
.smj-loc-panel.is-open { display: block; }

@keyframes smjLocIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.smj-loc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.smj-loc-panel__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--smj-text-primary);
}
.smj-loc-panel__close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--smj-text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color .12s, background .12s;
}
.smj-loc-panel__close:hover { color: var(--smj-text-primary); background: var(--smj-light-section); }

/* Detect button */
.smj-loc-panel__detect {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--smj-secondary);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-bottom: 12px;
}
.smj-loc-panel__detect:hover:not(:disabled) { background: #dbeafe; border-color: #93c5fd; }
.smj-loc-panel__detect:disabled { opacity: .6; cursor: not-allowed; }

.smj-loc-panel__or {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--smj-text-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.smj-loc-panel__or::before,
.smj-loc-panel__or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--smj-border);
}
.smj-loc-panel__or::before { left: 0; }
.smj-loc-panel__or::after  { right: 0; }

.smj-loc-panel__row {
  display: flex;
  gap: 6px;
}
.smj-loc-panel__input {
  flex: 1;
  border: 1.5px solid var(--smj-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--smj-text-primary);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--smj-light-section);
}
.smj-loc-panel__input:focus {
  border-color: var(--smj-secondary);
  box-shadow: 0 0 0 3px rgba(26,111,181,.1);
  background: var(--smj-bg);
}
.smj-loc-panel__input::placeholder { color: var(--smj-text-secondary); }
.smj-loc-panel__apply {
  flex-shrink: 0;
  padding: 9px 14px;
  background: var(--smj-secondary);
  color: var(--smj-bg);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.smj-loc-panel__apply:hover { background: var(--smj-secondary-hover); }

/* Mobile: full-width panel */
@media (max-width: 480px) {
  .smj-loc-panel { width: calc(100vw - 32px); left: -16px; }
}

/* ── Search ── */
.smj-hdr__search {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 500px;
  position: relative;
  background: var(--smj-light-section);
  border: 1.5px solid var(--smj-border);
  border-radius: 10px;
  overflow: visible;   /* must be visible — dropdown overflows this container */
  height: 40px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.smj-hdr__search:focus-within {
  border-color: var(--smj-secondary);
  box-shadow: 0 0 0 3px rgba(26,111,181,.1);
  background: var(--smj-bg);
}
.smj-hdr__search-ico {
  position: absolute;
  left: 11px;
  color: var(--smj-text-secondary);
  pointer-events: none;
  flex-shrink: 0;
}
.smj-hdr__search-inp {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 38px 0 34px;
  font-size: 13.5px;
  color: var(--smj-text-primary);
  outline: none;
  min-width: 0;
  width: 100%;
  height: 100%;
}
.smj-hdr__search-inp::placeholder { color: var(--smj-text-secondary); }
.smj-hdr__search-clear {
  display: none;
  position: absolute;
  right: 76px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--smj-text-secondary);
  padding: 0 6px;
  height: 100%;
  line-height: 1;
  transition: color .12s;
}
.smj-hdr__search-clear:hover { color: var(--smj-text-primary); }
.smj-hdr__search-inp:not(:placeholder-shown) ~ .smj-hdr__search-clear { display: flex; align-items: center; }
.smj-hdr__search-btn {
  flex-shrink: 0;
  padding: 0 18px;
  height: 100%;
  background: var(--smj-secondary);
  color: var(--smj-bg);
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  letter-spacing: .01em;
  white-space: nowrap;
}
.smj-hdr__search-btn:hover  { background: var(--smj-secondary-hover); }
.smj-hdr__search-btn:active { background: #0f4a8a; }
/* Round right edge of btn since parent no longer clips */
.smj-hdr__search-btn { border-radius: 0 8px 8px 0; }

/* ═══════════════════════════════════════════════════════
   AUTOCOMPLETE DROPDOWN
   ═══════════════════════════════════════════════════════ */
.smj-ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--smj-bg);
  border: 1.5px solid var(--smj-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  z-index: 99995;
  overflow: hidden;
  display: none;
  max-height: 480px;
  overflow-y: auto;
}
.smj-ac.is-open { display: block; }

/* Loading spinner row */
.smj-ac__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--smj-text-secondary);
}
.smj-ac__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--smj-border);
  border-top-color: var(--smj-secondary);
  border-radius: 50%;
  animation: smjSpin .6s linear infinite;
  flex-shrink: 0;
}
@keyframes smjSpin { to { transform: rotate(360deg); } }

/* No results row */
.smj-ac__empty {
  padding: 16px;
  font-size: 13px;
  color: var(--smj-text-secondary);
  text-align: center;
}

/* Section header */
.smj-ac__section-head {
  padding: 8px 16px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--smj-text-secondary);
  border-bottom: 1px solid var(--smj-light-section);
}

/* Individual result row */
.smj-ac__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--smj-light-section);
  transition: background .1s;
  outline: none;
}
.smj-ac__item:last-child { border-bottom: none; }
.smj-ac__item:hover,
.smj-ac__item.is-active {
  background: #eff6ff;
}
.smj-ac__item.is-active { background: #dbeafe; }

/* Thumbnail */
.smj-ac__thumb {
  width: 46px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--smj-light-section);
  border: 1px solid var(--smj-border);
}
.smj-ac__thumb-ph {
  width: 46px;
  height: 38px;
  border-radius: 6px;
  background: var(--smj-light-section);
  border: 1px solid var(--smj-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smj-border);
  font-size: 18px;
}

/* Text block */
.smj-ac__info {
  flex: 1;
  min-width: 0;
}
.smj-ac__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--smj-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
/* Highlighted keyword match */
.smj-ac__title mark {
  background: #fef9c3;
  color: var(--smj-text-primary);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.smj-ac__meta {
  font-size: 11.5px;
  color: var(--smj-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Price badge */
.smj-ac__price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1565c0;
  white-space: nowrap;
}

/* "View all results" footer CTA */
.smj-ac__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #f8faff;
  border-top: 1.5px solid #e0e7ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--smj-secondary);
  transition: background .12s;
  cursor: pointer;
}
.smj-ac__footer:hover,
.smj-ac__footer.is-active { background: #e0e7ff; color: #0f4a8a; }
.smj-ac__footer-kw {
  font-style: italic;
  font-weight: 700;
  margin-left: 4px;
}
.smj-ac__footer-arrow { font-size: 16px; margin-left: auto; }

/* Scrollbar styling */
.smj-ac::-webkit-scrollbar { width: 4px; }
.smj-ac::-webkit-scrollbar-thumb { background: var(--smj-border); border-radius: 4px; }

/* Mobile */
@media (max-width: 640px) {
  .smj-ac { border-radius: 0 0 12px 12px; }
  .smj-ac__thumb, .smj-ac__thumb-ph { width: 38px; height: 32px; }
}

/* ── Post Your Ad ── */
.smj-hdr__post {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 2px solid var(--smj-secondary);
  border-radius: 10px;
  color: var(--smj-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
  line-height: 1.3;
}
.smj-hdr__post:hover { background: var(--smj-secondary); color: var(--smj-bg); }

/* ── Auth nav ── */
.smj-hdr__auth {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.smj-hdr__register {
  font-size: 13px;
  font-weight: 500;
  color: var(--smj-text-primary);
  text-decoration: none;
  padding: 4px 2px;
  white-space: nowrap;
  transition: color .15s;
}
.smj-hdr__register:hover { color: var(--smj-secondary); }
.smj-hdr__login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: var(--smj-secondary);
  color: var(--smj-bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.smj-hdr__login:hover { background: var(--smj-secondary-hover); color: var(--smj-bg); }

/* ── Logged-in user dropdown ── */
.smj-hdr__user-wrap { position: relative; }
.smj-hdr__user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--smj-border);
  border-radius: 999px;
  padding: 4px 11px 4px 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--smj-text-primary);
  transition: border-color .15s, background .15s;
  line-height: 1;
}
.smj-hdr__user-btn:hover { background: var(--smj-light-section); border-color: var(--smj-border); }
.smj-hdr__user-btn[aria-expanded="true"] { background: var(--smj-light-section); border-color: var(--smj-border); }

/* Override TMP_User_Menu letter-avatar sizing */
.smj-hdr__user-btn .tmp-avatar,
.smj-hdr__user-btn .smj-av,
.smj-hdr__avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover;
  font-size: 11px !important;
  flex-shrink: 0;
}
.smj-hdr__user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smj-hdr__user-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 178px;
  background: var(--smj-bg);
  border: 1px solid var(--smj-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 100;
}
.smj-hdr__user-drop a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--smj-text-primary);
  text-decoration: none;
  transition: background .12s;
}
.smj-hdr__user-drop a:hover  { background: var(--smj-light-section); color: var(--smj-text-primary); }
.smj-hdr__user-divider        { height: 1px; background: var(--smj-light-section); margin: 3px 0; }
.smj-hdr__user-logout         { color: #dc2626 !important; }
.smj-hdr__user-logout:hover   { background: #fef2f2 !important; }
.smj-hdr__user-drop.is-open   { display: block; }

/* ── Wishlist ── */
.smj-hdr__wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--smj-text-primary);
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.smj-hdr__wishlist:hover { background: #fee2e2; color: #dc2626; }
.smj-hdr__wishlist svg { display: block; }

/* ── Social icons ── */
.smj-hdr__social { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.smj-hdr__soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity .15s, transform .12s;
  color: var(--smj-bg);
  flex-shrink: 0;
}
.smj-hdr__soc:hover   { opacity: .85; transform: translateY(-1px); }
/* Header bg is white — all icons need their brand bg for visibility */
.smj-hdr__soc--fb     { background: #1877f2; }
.smj-hdr__soc--fb svg { fill: var(--smj-bg) !important; }
.smj-hdr__soc--x      { background: #000; }
.smj-hdr__soc--x svg  { fill: var(--smj-bg) !important; }
.smj-hdr__soc--yt     { background: #ff0000; }
.smj-hdr__soc--ig     { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.smj-hdr__soc--li     { background: #0A66C2; }

/* ── Burger (hidden desktop) ── */
.smj-hdr__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.smj-hdr__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--smj-text-primary);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.smj-hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.smj-hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.smj-hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.smj-hdr__drawer {
  display: none;
  flex-direction: column;
  background: var(--smj-bg);
  border-top: 1px solid var(--smj-light-section);
  padding: 14px 20px 18px;
  gap: 0;
}
.smj-hdr__drawer.is-open { display: flex; }
.smj-hdr__drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--smj-light-section);
  border: 1.5px solid var(--smj-border);
  border-radius: 10px;
  padding: 0 12px;
  overflow: hidden;
  height: 40px;
  margin-bottom: 10px;
}
.smj-hdr__drawer-search:focus-within { border-color: var(--smj-secondary); }
.smj-hdr__drawer-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--smj-text-primary);
  height: 100%;
}
.smj-hdr__drawer-search input::placeholder { color: var(--smj-text-secondary); }
.smj-hdr__drawer-nav { display: flex; flex-direction: column; }
.smj-hdr__drawer-nav a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--smj-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--smj-light-section);
  transition: color .15s, padding-left .15s;
}
.smj-hdr__drawer-nav a:last-child { border-bottom: none; }
.smj-hdr__drawer-nav a:hover { color: var(--smj-secondary); padding-left: 4px; }
.smj-hdr__drawer-logout { color: #dc2626 !important; }
.smj-hdr__drawer-logout:hover { color: #b91c1c !important; }

/* ── Responsive breakpoints ── */
@media (max-width: 1120px) {
  .smj-hdr__social { display: none; }
}
@media (max-width: 920px) {
  .smj-hdr__loc span:first-of-type { display: none; }
  .smj-hdr__loc { padding: 6px 8px; }
  .smj-hdr__post { padding: 7px 11px; font-size: 12px; }
  .smj-hdr__register { display: none; }
}
@media (max-width: 700px) {
  .smj-hdr__search,
  .smj-hdr__post,
  .smj-hdr__loc,
  .smj-hdr__wishlist,
  .smj-hdr__auth  { display: none; }
  .smj-hdr__burger { display: flex; }
  .smj-hdr__inner  { justify-content: space-between; }
}

/* ── Theme body padding to prevent content hiding behind sticky header ── */
body.smj-has-header { scroll-padding-top: 60px; }


/* ================================================================
   FOOTER
   ================================================================ */

.smj-ftr {
  background: #1565c0;
  color: var(--smj-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  margin-top: 0;
}

/* ── Main grid ── */
.smj-ftr__inner {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.3fr 1fr;
  gap: 48px 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px 40px;
}

/* ── Brand ── */
.smj-ftr__logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 14px;
  /* Solid white pill — ensures all 3 logo colors remain true on any footer bg */
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 6px 14px 8px;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
  position: relative;
}
.smj-ftr__logo::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background: #3a6b3a;
  border-radius: 2px;
}
/* Original logo letter colors — exact match to uploaded logo */
.smj-ftr__logo-s  { color: #2196f3; }
.smj-ftr__logo-m  { color: #1e1e1e; }
.smj-ftr__logo-j  { color: #3a6b3a; }
/* Legacy fallback */
.smj-ftr__logo-mj { color: #e53935; }
.smj-ftr__tagline {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 300px;
  margin-bottom: 20px;
}
.smj-ftr__social { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* Base social icon button — matches header size for visual consistency */
.smj-ftr__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--smj-bg);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.smj-ftr__soc:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  opacity: .9;
}

/* ── Per-platform brand colors ──
   Facebook bg matches footer blue → use white bg with brand color icon.
   Others are distinct enough to use their own brand bg directly.           */
.smj-ftr__soc--fb {
  /* Facebook blue too close to footer — white pill with brand-color icon */
  background: var(--smj-bg);
  color: #1877F2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.smj-ftr__soc--fb svg { fill: #1877F2; }

.smj-ftr__soc--x {
  background: var(--smj-bg);
  color: #000;
}
.smj-ftr__soc--x svg { fill: #000; }

.smj-ftr__soc--yt  { background: #FF0000; }

/* Instagram official gradient */
.smj-ftr__soc--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.smj-ftr__soc--li  { background: #0A66C2; border: 1.5px solid rgba(255,255,255,.35); }

/* ── App Download Buttons ── */
.smj-ftr__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.smj-ftr__app-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 9px;
  overflow: hidden;
  line-height: 0;
  /* Preserve original logo colors — no filters */
  filter: none !important;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.smj-ftr__app-svg {
  width: 140px;
  height: 42px;
  display: block;
}
.smj-ftr__app-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  opacity: .93;
}
.smj-ftr__app-btn:focus-visible {
  outline: 2px solid #ffca28;
  outline-offset: 3px;
}
@media (max-width: 1020px) {
  .smj-ftr__apps { margin-top: 16px; }
  .smj-ftr__app-svg { width: 130px; height: 39px; }
}
@media (max-width: 640px) {
  .smj-ftr__apps { gap: 8px; margin-top: 14px; }
  .smj-ftr__app-svg { width: 120px; height: 36px; }
}
@media (max-width: 380px) {
  .smj-ftr__apps { flex-direction: column; align-items: flex-start; }
  .smj-ftr__app-svg { width: 140px; height: 42px; }
}

/* ── Nav cols ── */
.smj-ftr__col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--smj-bg);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid #e53935;
  letter-spacing: .02em;
  line-height: 1.3;
}
.smj-ftr__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.smj-ftr__col ul li a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s, padding-left .15s;
}
.smj-ftr__col ul li:last-child a { border-bottom: none; }
.smj-ftr__col ul li a:hover     { color: var(--smj-bg); padding-left: 4px; }

/* ── Bottom bar ── */
.smj-ftr__bottom {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.1);
}
.smj-ftr__bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
}
.smj-ftr__copy {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.smj-ftr__copy-bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #e53935;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Footer responsive ── */
@media (max-width: 1020px) {
  .smj-ftr__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 28px;
  }
  .smj-ftr__brand { grid-column: 1 / -1; }
  .smj-ftr__tagline { max-width: 100%; }
}
@media (max-width: 640px) {
  .smj-ftr__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 32px 20px 24px;
  }
  .smj-ftr__brand { grid-column: 1 / -1; }
  .smj-ftr__bottom-inner { padding: 12px 20px; }
}
@media (max-width: 380px) {
  .smj-ftr__inner { grid-template-columns: 1fr; }
}
