/* ==========================================================================
   pages.css — Inner page templates (about / services / contact / policy)
   --------------------------------------------------------------------------
   Role: layout for every non-home route. Each route gets a .page-hero banner
   (layout.css) followed by one of these sections. All copy comes from JSON.
   --------------------------------------------------------------------------
   Key classes:
     About   : .story-grid .story-media .story-copy .values-grid
     Services: .pills .pill .service-rows .service-row .service-row__media
               .service-row__body .service-row__side .service-price
     Contact : .contact-grid .map-wrap .contact-actions
     Policy  : .policy-page .policy-meta .policy-last-upd
   ========================================================================== */

/* ================================ About ================================ */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-copy p { color: var(--cream-dim); }
.story-copy p:last-child { margin-bottom: 0; }
.story-copy .lead-lux { color: var(--cream); }

.stats-band {
  background: linear-gradient(180deg, var(--charcoal-2), var(--ink));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats-row .stat:first-child { border-left: 0; }

.values-grid { margin-top: 1rem; }

/* ============================== Services =============================== */

/* Category filter pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-bottom: 2.75rem;
  padding: 0;
  list-style: none;
}
.pill {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--cream-dim);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.pill:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.pill.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  border-color: var(--gold-dark);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

/* Service list rows: media | body | price+cta */
.service-rows { display: flex; flex-direction: column; gap: 1.25rem; }
.service-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--charcoal-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.service-row:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow); }
.service-row__media {
  width: 7.5rem; height: 7.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal-3);
  flex: 0 0 auto;
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row__cat {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .35rem;
}
.service-row__name { font-size: 1.3rem; margin-bottom: .4rem; }
.service-row__desc { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.service-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .8rem;
  text-align: right;
  min-width: 9rem;
}
.service-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  white-space: nowrap;
}
.service-price small {
  display: block;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: .2rem;
}

/* =============================== Contact =============================== */

.contact-grid { margin-bottom: 3rem; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--charcoal-2);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(20rem, 45vw, 28rem);
  border: 0;
  filter: grayscale(.35) sepia(.12) contrast(1.02);
}
.map-wrap__label {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  background: rgba(42,6,3,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .6rem 1.2rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ================================ Policy =============================== */

.policy-page { max-width: 52rem; margin: 0 auto; }
.policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.policy-last-upd {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: .5rem 1.1rem;
}
.policy-toc { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .5rem; }
.policy-toc a {
  display: flex; align-items: center; gap: .9rem;
  color: var(--cream-dim);
  font-size: .95rem;
  padding: .55rem .25rem;
  border-bottom: 1px dashed var(--line-soft);
}
.policy-toc a:hover { color: var(--gold-light); }
.policy-toc .n {
  font-family: var(--font-serif);
  color: var(--gold);
  min-width: 2.2rem;
}
