/* ==========================================================================
   services.css — /services/ menu page (section CSS, loaded on /services/ only).
   Reuses "The Reveal" tokens/fonts/buttons. NO blindfold ceremony — cards reveal
   with CSS scroll-driven animation (animation-timeline: view()), progressively
   enhanced and reduced-motion safe. NO global redefs here.
   ========================================================================== */

/* The section shell (.page-section), breadcrumb (.crumb), and intro (.page-intro)
   are the shared content-page helpers in base.css — same pattern as the other
   content pages. Only the services-specific menu (groups/cards) lives below. */

/* ---- group ----------------------------------------------------------- */
.svc-group {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.svc-group__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--bone);
  padding-bottom: 0.8rem;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--hairline);
}

/* ---- card grid: 1-up mobile → multi-up up to ~3 columns -------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;                 /* uniform spacing (per-item margins removed) */
  padding: clamp(1.2rem, 3vw, 1.6rem);
  background: linear-gradient(180deg, var(--shadow), rgba(25, 21, 15, 0.35));
  border: 1px solid var(--veil);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  /* scoped transition — the scroll-reveal animation (below) owns `transform`,
     so the hover animates border + shadow rather than lifting via transform. */
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.svc-card--popular {
  border-color: var(--grace-lo);
  box-shadow: 0 0 0 1px rgba(232, 178, 89, 0.25), 0 14px 40px -24px var(--grace-glow);
}
/* hover: gold-edge highlight + a soft lift glow (parity with the gallery tiles) */
.svc-card:hover {
  border-color: var(--grace-lo);
  box-shadow: 0 12px 34px -24px var(--grace-glow);
}
/* the popular card is already gold-edged — brighten its edge + glow on hover so
   it responds too, keeping its distinct treatment */
.svc-card--popular:hover {
  border-color: var(--grace);
  box-shadow: 0 0 0 1px rgba(232, 178, 89, 0.3), 0 16px 44px -24px var(--grace-glow);
}
@media (prefers-reduced-motion: reduce) {
  /* keep the border highlight, drop the shadow lift (no movement) */
  .svc-card:hover {
    box-shadow: none;
  }
  .svc-card--popular:hover {
    box-shadow: 0 0 0 1px rgba(232, 178, 89, 0.25), 0 14px 40px -24px var(--grace-glow);
  }
}

.svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
}
.svc-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--bone);
}
.svc-card__tag {
  flex: none;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grace);
  border-radius: var(--radius-pill);
  padding: 0.3em 0.7em;
}
.svc-card__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--grace);
}
.svc-card__dur {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.svc-card__note {
  font-size: var(--step--1);
  color: var(--bone-dim);
  line-height: 1.45;
}
/* bottom-align across an equal-height row (margin-top:auto, no override) */
.svc-card__book {
  margin-top: auto;
  align-self: stretch;
}

/* ---- closing line ---------------------------------------------------- */
.services__close {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-1);
  color: var(--bone-dim);
}
.services__close a {
  color: var(--grace);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.services__close a:hover {
  color: var(--grace-hi);
}

/* ==========================================================================
   SCROLL-REVEAL — CSS scroll-driven (animation-timeline: view()).
   Progressive enhancement: base state is fully visible; the rise only applies
   where supported AND motion is welcome. Reduced motion / no support = static.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .svc-card {
      animation: svc-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    @keyframes svc-rise {
      from {
        opacity: 0;
        transform: translateY(1.5rem);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}
