/* "Two kinds of spaces" section, mockup layout: four cards in a row with a navy label bar. */
.spaces-v2 { background: var(--bg); padding: 12px 0 24px; }
.spaces-v2-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.spaces-v2-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 40px;
  text-transform: none;
}
.spaces-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.space-card { display: flex; flex-direction: column; }
.space-photo {
  position: relative;
  aspect-ratio: 1.3 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3b5e, #1B2A4A);
  background-size: cover;
  background-position: center;
}
.space-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: #1B2A4A;
  color: #ffffff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.space-label svg { width: 22px; height: 22px; stroke: #C9962A; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.space-body { padding: 16px 4px 0; }
.space-body p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; color: var(--ink); opacity: 0.88; }
.space-body .legal-link { font-weight: 600; font-size: 14.5px; }
.spaces-v2-footer { text-align: center; margin: 36px 0 0; }

@media (max-width: 1000px) {
  .spaces-v2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .spaces-v2 { padding: 56px 0; }
  .spaces-v2-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Phones: the four cards swipe sideways, like the trust strip */
@media (max-width: 560px) {
  .spaces-v2-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 4px 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }
  .spaces-v2-grid::-webkit-scrollbar { display: none; }
  .space-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

/* Homepage cards match the mockup: photo + label only (details live on the service pages) */
.spaces-v2 .space-body { display: none; }
a.space-card { text-decoration: none; color: inherit; }
a.space-card:hover .space-label { background: #2a3b5e; }

/* Services headline on one line with gold rules on each side, like the mockup */
.spaces-v2-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  white-space: nowrap;
  font-size: clamp(22px, 2.3vw, 32px) !important;
  line-height: 1.15 !important;
}
.spaces-v2-title::before,
.spaces-v2-title::after {
  content: "";
  flex: 0 0 110px;
  height: 2px;
  background: #C9962A;
  border-radius: 2px;
}
@media (max-width: 800px) {
  .spaces-v2-title { white-space: normal; }
  .spaces-v2-title::before, .spaces-v2-title::after { display: none; }
}
.spaces-v2-title { max-width: none !important; width: 100%; box-sizing: border-box; padding: 0 24px; margin-left: auto; margin-right: auto; }

/* Client perks cards: three across, one column on phones */
.perks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .perks-grid { grid-template-columns: 1fr; } }
