/* Solution Builder — website skin */

/* Inner pages: site header uses absolute topbar on homepage carousel only */
body.sb-solution-site .homepage-banner {
  position: relative;
  z-index: 1;
  background: #fff;
}
body.sb-solution-site .homepage-banner .topbar_menu {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100%;
  z-index: auto;
  background: #fff !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.1);
}
body.sb-solution-site .homepage-banner .navbar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Light page: default site nav is white (for dark homepage carousel) */
body.sb-solution-site .nav-item > .nav-link,
body.sb-solution-site .nav-item > .nav-link-about,
body.sb-solution-site .navbar a {
  color: #111 !important;
}
body.sb-solution-site .nav-item > .nav-link:hover,
body.sb-solution-site .nav-item > .nav-link-about:hover,
body.sb-solution-site .navbar a:hover {
  color: #eb373f !important;
}

/* ---- Catalog (/solutions) ---- */
.sb-catalog {
  background: #f7f7f8;
  padding-bottom: 48px;
  min-height: 60vh;
}
.sb-catalog-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 55%, #5a2020 100%);
  color: #fff;
  padding: 36px 0 40px;
  margin-bottom: 28px;
}
.sb-catalog-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: 0.78em;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffd4d6;
}
.sb-catalog-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
}
.sb-catalog-lead {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.sb-catalog-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-catalog-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,.9);
}
.sb-catalog-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eb373f;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
}
.sb-catalog-body {
  max-width: 1100px;
}
.sb-catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.sb-catalog-search input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
}
.sb-catalog-search .theme_btn {
  border: none;
  cursor: pointer;
}
.sb-catalog-clear {
  color: #666;
  font-size: 0.92rem;
  text-decoration: underline;
}
.sb-catalog-meta {
  margin-bottom: 18px;
  color: #666;
  font-size: 0.95rem;
}
.sb-catalog-meta p { margin: 0; }
.sb-catalog-empty {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
}
.sb-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.sb-catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.sb-catalog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.sb-catalog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f0f1f3;
  overflow: hidden;
}
.sb-catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sb-catalog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f3f3f4, #e8e8ea);
  color: #b0b0b4;
  font-size: 2.4rem;
}
.sb-catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}
.sb-catalog-card-cat {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #eb373f;
}
.sb-catalog-card-body h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}
.sb-catalog-card-body h2 a {
  color: #1a1a1a;
  text-decoration: none;
}
.sb-catalog-card-body h2 a:hover {
  color: #eb373f;
}
.sb-catalog-card-desc {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.sb-catalog-card-meta {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #888;
}
.sb-catalog-card-cta {
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  text-decoration: none !important;
  width: 100%;
}
.sb-catalog-card-cta:hover {
  color: #fff;
  filter: brightness(0.95);
}

/* ---- Configurator shell ---- */
.sb-portal-page {
  background: #f7f7f8;
  padding-top: 8px;
  padding-bottom: 32px;
}

.sb-portal-breadcrumb {
  max-width: 1400px;
  margin: 0 auto 12px;
  padding: 0 12px;
  font-size: 0.9rem;
  color: #666;
}
.sb-portal-breadcrumb a {
  color: #eb373f;
  text-decoration: none;
}
.sb-portal-breadcrumb a:hover {
  text-decoration: underline;
}

.sb-portal-intro {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.sb-portal-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #1a1a1a;
}
.sb-portal-intro-lead {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.5;
}
.sb-portal-intro .sb-guest-hint {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}
.sb-portal-intro .sb-guest-hint a {
  color: #eb373f;
}

.sb-portal-page #sb-builder {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

.sb-portal-page .sb-portal-header {
  display: none;
}

.sb-portal-page .sb-template-hero {
  max-height: 200px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.sb-portal-page .sb-template-pdfs {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-portal-page #sb-builder .sb-footer {
  z-index: 100;
}

.sb-portal-page #sb-builder .sb-rail {
  top: 12px;
  flex: 0 0 260px;
  max-width: 260px;
}

.sb-portal-page #sb-builder .sb-rail-label {
  white-space: normal;
  line-height: 1.35;
  font-size: 0.88rem;
}

.sb-portal-page #sb-builder .sb-main [id^="sb-block-"] {
  scroll-margin-top: 16px;
}

.sb-portal-page #sb-builder .sb-card-add {
  font-size: 0.85em;
}

@media (max-width: 900px) {
  .sb-portal-page #sb-builder .sb-body {
    flex-direction: column;
  }
  .sb-portal-page #sb-builder .sb-rail {
    position: static;
    max-width: none;
    width: 100%;
  }
  .sb-catalog-hero {
    padding: 28px 0 32px;
  }
}
