/* =============================================================================
   pages/work.css — Page-specific styles for work.html.
   ============================================================================= */

/* Programme block — big number + content */
.programme {
  position: relative;
  padding: 3.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.programme:first-of-type {
  border-top: none;
}

.programme-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.programme-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(12, 192, 223, 0.35);
}

.programme-age {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: var(--brand-yellow);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-black);
  margin-bottom: 1rem;
}

/* Age bands */
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.band {
  padding: 1.5rem 1.35rem;
  border-radius: 20px;
  background: rgba(12, 192, 223, 0.08);
  border: 1px solid rgba(12, 192, 223, 0.25);
}

.band-age {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.35rem;
}

.band-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.band-text {
  font-size: 0.93rem;
  color: rgba(0, 0, 0, 0.72);
}

/* Facilities chips */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.facility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.97rem;
  color: var(--brand-white);
}

.facility::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-yellow);
}

/* Care services (04 onwards) — same .programme blocks under their own heading */
.care-section {
  padding-top: 0;
}

.care-section .section-head {
  margin-bottom: 0;
}

/* Sub-services listed beside a care service: one column next to the text on
   desktop, two across once the split stacks, one again on phones. */
.band-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Photo pair for a care service. A frame holds either a real <img> or, until
   one is supplied, a .photo-placeholder. */
.service-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.service-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 2px dashed rgba(12, 192, 223, 0.55);
  border-radius: inherit;
  background: rgba(12, 192, 223, 0.07);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.photo-placeholder::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230cc0df' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .band-grid,
  .facility-grid,
  .band-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .band-grid,
  .facility-grid,
  .band-stack { grid-template-columns: 1fr; }

  .programme { padding: 2.5rem 0; }
}
