/**
 * Protean Hollow - Contracting page
 *
 * Loaded only by contracting.html, not imported into main.css, so the
 * contracting-specific components stay out of every other page's payload.
 *
 * Two components live here:
 *   .service-grid  - the "What I handle" capability grid (was a chip list)
 *   .trust-strip   - the four-fact rule between the grid and the gallery
 *
 * Both are deliberately restrained: no big cards, no filled tiles. The photos
 * below them are the loudest thing on the page and should stay that way.
 */

/* =============================================
   SERVICE GRID
   ============================================= */

/* auto-fill at 320px lands on five columns in the widest content area (two
   rows of five), four at laptop width, two on a tablet, one on a phone. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5) var(--space-8);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: var(--border-width) solid var(--border-secondary);
}

/* The icon sits in a quiet outlined tile rather than a filled chip, so ten of
   them in a row read as one texture instead of ten badges. */
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--border-width) solid var(--border-secondary);
  border-radius: var(--radius-lg);
  background: var(--accent-primary-subtle);
  color: var(--accent-tertiary);
  transition: var(--transition-fast);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-normal);
}

.service-item p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
}

.service-item:hover {
  border-bottom-color: var(--border-accent);
}

.service-item:hover .service-icon {
  border-color: var(--border-accent);
  color: var(--accent-primary-light);
}

.service-item:hover p { color: var(--text-secondary); }

/* A note under the grid for anything that needs qualifying (licensed trades,
   permits). Small, plain, and not a disclaimer box. */
.service-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =============================================
   TRUST STRIP
   ============================================= */

/* Four facts on one rule. No icons, no cards: it exists to break the page
   between the service grid and the gallery, not to compete with either. */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  /* Matches the .section rhythm, since it sits between two of them. */
  margin-bottom: var(--space-16);
  padding: var(--space-5) var(--space-4);
  border-top: var(--border-width) solid var(--border-secondary);
  border-bottom: var(--border-width) solid var(--border-secondary);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  white-space: nowrap;
}

/* The separator is a diamond drawn on the item, so it never orphans onto a
   line of its own when the strip wraps on a narrow screen. */
.trust-strip span + span::before {
  content: '';
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  transform: rotate(45deg);
  background: var(--accent-primary);
  opacity: 0.75;
}

@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column;
    gap: var(--space-2);
  }
  .trust-strip span + span::before { display: none; }
  .service-grid { gap: var(--space-2) var(--space-6); }
  .service-item { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .service-icon { width: 38px; height: 38px; }
  .service-icon svg { width: 20px; height: 20px; }
}
