/* ==========================================================================
   sections/parts.css — the parts counter: a second way to use the shop.
   Laid out like the team section: heading block, then a wide photo band with
   a glass hours card sitting on it. Informs only — the phone stays the action.
   PENDING the client's confirmation (see content/homepage.md).
   ========================================================================== */

.parts {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--paper-tint);
  border-bottom: 1px solid var(--paper-edge);
}

/* Wide photo band, matching the team photo's full-window-minus-gutter width */
.parts__photo {
  position: relative;
  margin-inline: calc(50% - 50vw + var(--gutter));
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 8;
  min-height: 280px;
  background: var(--paper);
}

.parts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Frosted glass card, sitting on the bottom-left of the photo */
.parts__badge {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px -22px rgba(18, 17, 16, 0.7);
}

.parts__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.parts__badge-icon svg { width: 20px; height: 20px; }

.parts__badge-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.parts__badge-hours {
  margin-top: 1px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .parts__photo { aspect-ratio: 16 / 9; min-height: 220px; }
}

@media (max-width: 560px) {
  .parts__photo { aspect-ratio: 4 / 3; }

  .parts__badge {
    left: var(--sp-2);
    right: var(--sp-2);
    bottom: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
  }
}
