/*
 * SpaceBridge service-page photo contract v1.
 * Raster content is limited to one source-proven actual-camera hero per page.
 * All supporting concepts are rendered as accessible DOM/SVG, never as a
 * generated screenshot or a raster UI mock-up.
 */

.page-interior { --sv-accent: #0b6d7c; --sv-soft: #edf7f7; --sv-line: #c8e0e2; }
.page-professional { --sv-accent: #285f98; --sv-soft: #eff5fa; --sv-line: #cedfec; }
.page-development { --sv-accent: #176d5f; --sv-soft: #edf7f3; --sv-line: #cce4db; }
.page-insurance { --sv-accent: #296a82; --sv-soft: #eef6f8; --sv-line: #cce1e8; }
.page-store-devices { --sv-accent: #0b6999; --sv-soft: #edf6fb; --sv-line: #c9e0ed; }
.page-franchise-brand { --sv-accent: #765431; --sv-soft: #f8f4ee; --sv-line: #e5d7c7; }

.sb-service-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 155px;
  padding: 14px 15px 13px;
  overflow: hidden;
  color: #10233f;
  background: var(--sv-soft, #eff6fa);
  border-bottom: 1px solid var(--sv-line, #cfdfeb);
  font-family: Pretendard, "Apple SD Gothic Neo", sans-serif;
}

.sb-service-visual::after {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--sv-line, #cfdfeb);
  border-radius: 50%;
  background: #fff;
  opacity: .58;
  content: "";
}

.sb-service-visual__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sb-service-visual__badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--sv-line, #cfdfeb);
  border-radius: 999px;
  background: #fff;
  color: var(--sv-accent, #0b6999);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.sb-service-visual__title {
  min-width: 0;
  overflow: hidden;
  color: #17324e;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-service-visual__diagram {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 47px;
  color: var(--sv-accent, #0b6999);
}

.sb-service-visual__diagram rect,
.sb-service-visual__diagram path,
.sb-service-visual__diagram circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-service-visual__diagram .fill {
  fill: #fff;
  stroke: var(--sv-line, #cfdfeb);
}

.sb-service-visual__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-service-visual__nodes li {
  min-width: 0;
  padding: 4px 3px;
  overflow: hidden;
  border: 1px solid var(--sv-line, #cfdfeb);
  border-radius: 6px;
  background: #fff;
  color: #36516a;
  font-size: 9px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card:hover .sb-service-visual__diagram {
  transform: translateY(-2px);
  transition: transform .22s ease;
}

.hf-hero-reference-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(7, 25, 53, .8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  box-shadow: 0 5px 16px rgba(7, 25, 53, .18);
  backdrop-filter: blur(7px);
}

.sb-insurance-risk-visual {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--sv-line, #cce1e8);
  border-radius: 9px;
  background: var(--sv-soft, #eef6f8);
}

.sb-insurance-risk-visual > span {
  color: var(--sv-accent, #296a82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}

.sb-insurance-risk-visual > strong {
  color: #17324e;
  font-size: 18px;
  line-height: 1.35;
}

.sb-insurance-risk-visual ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-insurance-risk-visual li {
  padding: 8px;
  border: 1px solid var(--sv-line, #cce1e8);
  border-radius: 7px;
  background: #fff;
  color: #39556c;
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.sb-insurance-card-visual {
  background: #f8fbfe !important;
  background-image: none !important;
}

.quote-banner .sb-cta-atmosphere {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 96px;
  max-height: none;
  opacity: .62;
  background: #d2e8f5;
  pointer-events: none;
}

.quote-banner .sb-cta-atmosphere::before,
.quote-banner .sb-cta-atmosphere::after {
  position: absolute;
  bottom: -44px;
  width: 240px;
  height: 120px;
  border: 1px solid #a8ccdf;
  border-radius: 50%;
  background: #e7f3fa;
  content: "";
}

.quote-banner .sb-cta-atmosphere::before { left: 8%; }
.quote-banner .sb-cta-atmosphere::after { right: 10%; }

@media (max-width: 1100px) {
  .cols-6 .sb-service-visual { height: 170px; }
}

@media (max-width: 760px) {
  .sb-service-visual,
  .cols-5 .sb-service-visual,
  .cols-6 .sb-service-visual {
    height: 116px;
    gap: 6px;
    padding: 9px 10px;
  }

  .sb-service-visual::after {
    width: 58px;
    height: 58px;
  }

  .sb-service-visual__badge { padding: 3px 5px; font-size: 8px; }
  .sb-service-visual__title { font-size: 9px; }
  .sb-service-visual__diagram { height: 32px; }
  .sb-service-visual__nodes li { padding: 3px 2px; font-size: 8px; }
  .hf-hero-reference-label { right: 9px; bottom: 9px; font-size: 10px; }
  .sb-insurance-risk-visual { min-height: 205px; margin-bottom: 18px; padding: 17px; }
  .sb-insurance-risk-visual > strong { font-size: 16px; }
  .quote-banner .sb-cta-atmosphere { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover .sb-service-visual__diagram { transform: none; transition: none; }
}
