@import url("../arsenal/stack-cards.css");

/* Services: places and sizes only; the look comes from system.css and components.css. */

/* ---------- hero: a centered stack, then a wide framed stage with the general shot and the notifications ---------- */
.svc-hero { padding: calc(var(--section-y) * 0.42) 0 calc(var(--section-y) * 0.62); text-align: center; }
.svc-hero__copy { max-width: 54rem; margin-inline: auto; }
.svc-hero__title { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); text-wrap: balance; }
.svc-hero .lead { max-width: 40rem; margin: var(--space-4) auto 0; }
.svc-hero .cta-row { margin-top: var(--space-4); }
.svc-stage { position: relative; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 42px; text-align: left; }
.svc-stage__frame { aspect-ratio: 21 / 9; }
.svc-stage__frame img { object-position: 74% 50%; }
/* the notifications stack up the left of the stage (the scene hangs them from its box's foot), high enough to show
   in the first screen, clear of the phone and the hand on the right */
.svc-stage > .svc-stage__scene { position: absolute; z-index: 2; left: 0; top: 9%; width: clamp(300px, 44%, 520px); height: 51%; }
@media (max-width: 760px) {
  .svc-stage { margin-bottom: 40px; }
  .svc-stage__frame { aspect-ratio: 4 / 5; }
  .svc-stage__frame img { object-position: 80% 50%; }
  .svc-stage > .svc-stage__scene { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 50%; }
}

/* ---------- groups: the stacked cards, made this site's own: white ruled ledger cards, the picture first, the
   consult that group booked landing on it as its card arrives, the index a quiet strip of the four names ---------- */
.svc-stack { --stack-top: calc(var(--header-h) + 76px); --stack-h: clamp(560px, 76vh, 700px); --stack-gap: 10vh; --sk-surface: var(--c-paper); }
.svc-stack .stack-cards__inner {
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(24px, 3.6cqi, 52px);
  padding: clamp(12px, 1.4cqi, 18px);
  border-radius: var(--radius-l);
  background-color: var(--c-paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 47px, var(--c-line) 47px 48px);
  box-shadow: 0 0 0 1px var(--c-line), var(--shadow-l);
}
.svc-stack .stack-cards__media { order: -1; border-radius: calc(var(--radius-l) - 6px); background: var(--c-paper-deep); }
.svc-stack .stack-cards__media img { object-position: var(--pos, 50% 50%); }
.svc-stack .stack-cards__text { justify-content: center; padding: clamp(10px, 2cqi, 30px) clamp(10px, 2.4cqi, 34px) clamp(10px, 2cqi, 30px) 0; }
.svc-stack .stack-cards__title { margin: 0; padding: 0; max-width: 17ch; font-size: clamp(1.75rem, 3cqi, 2.45rem); letter-spacing: var(--tracking-h); }
.svc-stack .stack-cards__body { margin-top: var(--space-3); font-size: var(--fs-body); color: var(--c-ink-soft); }
.svc-stack .stack-cards__points { margin: var(--space-4) 0 0; padding: 0; gap: 0; border-top: 1px solid var(--c-line-strong); }
.svc-stack .stack-cards__points li { grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 0.7rem 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-ui); line-height: 1.45; color: var(--c-ink-soft); }
.svc-stack .stack-cards__points svg { width: 14px; height: 14px; margin-top: 3px; fill: var(--c-line-strong); }
.svc-stack .stack-cards__points b { color: var(--c-ink); }
.svc-stack .stack-cards__float { width: auto; max-width: calc(100% - 28px); }
.svc-entry { min-width: 15.5rem; }
.svc-stack[data-enter] .svc-entry { opacity: 0; transform: translateY(-22px) scale(1.04); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.svc-stack[data-enter] .is-in .svc-entry { opacity: 1; transform: none; }
/* the index: a quiet strip of the four names (not buttons): the one in view in ink, its line filling as it arrives */
.svc-stack .stack-cards__index { margin: 0 0 14px; gap: 10px; padding: 0 14px 0 8px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-paper) 94%, transparent); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-s); }
.svc-stack .stack-cards__index-mark { border-radius: 7px; background: var(--c-brand); }
.svc-stack .stack-cards__index-mark svg { width: 13px; height: 13px; }
.svc-stack .stack-cards__index-name,
.svc-stack .stack-cards__index-count { display: none; }
.svc-stack .stack-cards__index-bars { gap: 2px; }
.svc-stack .stack-cards__index-bars i { width: auto; height: auto; padding: 6px 9px 9px; border-radius: 0; background: none; overflow: visible; font: 600 var(--fs-small)/1 var(--font-ui); font-style: normal; color: var(--c-ink); opacity: calc(0.48 + var(--on, 0) * 0.52); }
.svc-stack .stack-cards__index-bars i::after { inset: auto 9px 2px; height: 2px; border-radius: 1px; background: var(--c-brand); }
@container (width < 760px) {
  .svc-stack .stack-cards__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding: 10px 10px 18px; }
  .svc-stack .stack-cards__media { height: clamp(210px, 34svh, 280px); }
  .svc-stack .stack-cards__text { padding: 0 6px; }
  .svc-stack .stack-cards__title { font-size: clamp(1.5rem, 6.6cqi, 1.85rem); }
  .svc-stack .stack-cards__points { margin-top: var(--space-3); }
  .svc-stack .stack-cards__points li { padding: 0.55rem 0; font-size: var(--fs-small); }
  .svc-stack .stack-cards__index { padding: 0 8px 0 6px; gap: 4px; }
  .svc-stack .stack-cards__index-bars i { padding: 6px 6px 9px; }
  .svc-stack .stack-cards__index-bars i::after { inset: auto 6px 2px; }
  .svc-entry { min-width: 0; }
}

/* ---------- week: the words left, the booked week taking two thirds, on the ledger ---------- */
.svc-week__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.svc-week__head { margin: 0; }
.svc-week__stage { position: relative; }
.svc-week__scene { display: block; }
.svc-week__stage > .stop { top: -52px; right: 0; }
@media (max-width: 1000px) {
  .svc-week__in { grid-template-columns: minmax(0, 1fr); }
  .svc-week__stage { margin-top: 30px; }
}

/* ---------- close: the painter stays in the frame (he works at the right of his clip, by the window) ---------- */
#close .close-band__media video, #close .close-band__media img { object-position: 68% 40%; }

/* ---------- mix: the partner's photo, the plan's shares overlapping its edge, clear of her face ---------- */
.svc-mix__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.svc-mix__media { position: relative; aspect-ratio: 4 / 4.3; }
.svc-mix__media img { object-position: 30% 40%; }
.svc-mix__side .sec__head { margin-bottom: var(--space-5); }
.svc-mix__scene { display: block; position: relative; z-index: 2; margin-left: calc(-1 * clamp(70px, 8vw, 140px)); }
/* the ring's middle label ("20 clients a month") in the card's small ring: its lines a little closer and the whole
   label 4 px above the middle, so its widest line ("a month", at the foot) clears the ring's inner edge; the scene's
   13 px kept */
.svc-mix .svc-mix__scene .cs-center { padding-bottom: 8px; }
.svc-mix .svc-mix__scene .cs-center span { line-height: 1.05; }
@media (max-width: 900px) {
  .svc-mix__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-mix__side { display: contents; }
  .svc-mix__side .sec__head { order: 1; margin-bottom: var(--space-5); }
  .svc-mix__media { order: 2; aspect-ratio: 4 / 3; }
  .svc-mix__media img { object-position: 38% 35%; }
  .svc-mix__scene { order: 3; margin: -70px 10px 0; }
}

/* ---------- member fix, 23 Nov 2026: the header is the words alone; the services by category follow it ---------- */
.svc-hero .lead { max-width: 50rem; }
.svc-hero .lead strong { color: var(--c-ink); font-weight: 600; }
/* categories: the home tour's list on the left; the chosen category's card on a ruled ledger ground on the right */
.svc-cats__tabs .tour__tab { padding-block: 0.85rem 0.95rem; }
.svc-cats__stage { position: relative; display: grid; place-items: center; min-height: clamp(540px, 42vw, 600px); padding: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  background-color: var(--c-paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 47px, var(--c-line) 47px 48px); }
.svc-cats__stage::before { content: ""; position: absolute; left: clamp(20px, 6%, 56px); top: 0; bottom: 0; width: 1px; background: var(--c-line-strong); }
/* every panel in the same cell, the hidden ones invisible: the stage keeps the tallest card's height, so nothing under it
   moves as the tabs turn */
.svc-cats__panel { position: relative; z-index: 1; grid-area: 1 / 1; width: 100%; display: grid; place-items: center; }
.svc-cats__panel[hidden] { display: grid; visibility: hidden; }
.svc-cats__card { width: min(560px, 100%); display: grid; gap: 0.6rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.svc-cats__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.2rem; }
.svc-cats__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand); color: var(--c-on-brand); }
.svc-cats__icon svg { width: 24px; height: 24px; }
.svc-cats__count { font: 600 var(--fs-small)/1 var(--font-ui); letter-spacing: 0.06em; color: var(--c-meta); }
.svc-cats__card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: var(--tracking-h); }
.svc-cats__line { margin: 0; color: var(--c-ink-soft); }
.svc-cats__list { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid var(--c-line-strong); }
.svc-cats__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); }
.svc-cats__list svg { width: 14px; height: 14px; margin-top: 4px; fill: var(--c-brand); }
.svc-cats__list b { display: block; font: 600 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-ink); }
.svc-cats__list span { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
/* the chosen card rises into place */
.svc-cats__panel { transition: opacity var(--dur-med, 0.35s) var(--ease-out, ease-out), transform var(--dur-med, 0.35s) var(--ease-out, ease-out); }
.svc-cats__panel[hidden] { opacity: 0; transform: translateY(10px); transition: none; }
@media (max-width: 899px) {
  .svc-cats__tabs .tour__tab { flex: 0 0 72%; }
  .svc-cats__stage { min-height: 0; padding: 64px 14px 14px; } /* the stop icon stands on the ruled ground above the card */
  .svc-cats__stage::before { display: none; }
  .svc-cats__card { padding: 1.1rem 1.1rem 1.2rem; }
  .svc-cats__list li { padding: 0.6rem 0; }
}
