/* 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;
  flex-wrap: wrap;
}

/* Brand: "SM Sunday Motors" tight + clean */
.smBrand{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
  text-decoration: none;
}

.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 */
.smTabs{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 10px;
}

.smTab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  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;
  transition: transform .15s ease;
}

.smTab:hover{
  transform: translateY(-1px);
}

.smTab:active{
  transform: translateY(0);
}

.smTab.isActive,
.smTab.active{
  outline: 2px solid rgba(0,0,0,.12);
}

/* Optional right-side group */
.smRight{
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Tablet and down */
@media (max-width: 900px){
  .smTopbarInner{
    justify-content: center;
  }

  .smBrand{
    width: 100%;
    justify-content: center;
  }

  .smTabs{
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 720px){
  .smTopbarInner{
    gap: 10px;
    padding: 10px 12px;
  }

  .smWordmark{
    font-size: 16px;
  }

  .smTabs{
    gap: 8px;
    row-gap: 8px;
  }

  .smTab{
    padding: 8px 11px;
    font-size: 13px;
  }
}