/* Sunday Motors — shared top nav (used on EVERY page) */

:root{
  --nav-bg: rgba(255,255,255,.92);
  --nav-border: rgba(18,19,26,.12);
  --pill-bg: #0b0c10;
  --pill-ink: #ffffff;
  --pill-shadow: 0 10px 24px rgba(0,0,0,.12);
  --ink: #12131a;
}

.smTopbar{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.smTopbarInner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand: "SM Sunday Motors" tight + clean */
.smBrand{
  display:flex;
  align-items:center;
  gap: 8px;              /* tighten this to bring SM closer */
  min-width: fit-content;
}

.smMark{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .5px;
  color: #12131a;
  background: #fff;
  border: 1px solid rgba(18,19,26,.18);
  box-shadow: 0 8px 18px rgba(18,19,26,.08);
  flex: 0 0 auto;
}

.smWordmark{
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

/* Tabs: black pills, smaller, stay on one line */
.smTabs{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: auto;
  flex: 1;
  justify-content: center;

  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.smTabs::-webkit-scrollbar{ display:none; }

.smTab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;     /* smaller pills */
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--pill-shadow);
  border: 1px solid rgba(0,0,0,.22);
  text-decoration:none;
}

.smTab:hover{ transform: translateY(-1px); }
.smTab:active{ transform: translateY(0); }

.smTab.isActive{
  outline: 2px solid rgba(0,0,0,.12);
}

/* Right side home pill (optional if you want Home separated) */
.smRight{
  margin-left: auto;
  display:flex;
  align-items:center;
}

/* Mobile: keep brand visible; tabs scroll if needed */
@media (max-width: 720px){
  .smTopbarInner{ gap: 10px; }
  .smWordmark{ font-size: 16px; }
  .smTab{ padding: 8px 11px; font-size: 13px; }
}
