@import url("../arsenal/word-window.css");

/* Who we help (plan.md, "Who we help"): "Booked." with four trades inside its letters, the kinds' tour, the trades
   lighting with new clients on the designed ground, the roadmap over a handshake, the groomer's way in, the close. */

/* the header: the word on the navy, room under the fixed header, its line and the main button stacked under it */
.who-hero { padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem)) clamp(3.5rem, 2rem + 4vw, 6rem); }
.who-hero .word-window__after { flex-direction: column; gap: 1.5rem; }
.who-hero .word-window__line { color: var(--c-mist); }
.who-hero__cta { justify-items: center; margin-top: 0; }
.who-hero__cta .cta-note { justify-content: center; }
.who-hero__stop { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem) - 44px - 0.6rem); } /* just above the word's right end */
.ww-roof { --ww-focus: 50% 42%; }
.ww-florist { --ww-focus: 50% 40%; }
.ww-lawyer { --ww-focus: 50% 36%; }
.ww-dental { --ww-focus: 50% 40%; }

/* the kinds: seven tabs over one framed photo; each panel's glass card at its lower left */
.cat-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.cat-tab { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: 0.6rem 0.75rem; border: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-align: center; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.cat-tab:hover { background: var(--c-azure-hover); }
.cat-tab[aria-selected="true"] { background: var(--c-night); border-color: var(--c-night); color: var(--c-mist); }
.cat-tab__fill { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--kit-fill, 0) * 100%); background: var(--g-gold); }
.cat-tabs:not([data-kit-on]) .cat-tab__fill { display: none; }
.cat-stage { aspect-ratio: 16 / 8.2; }
.cat-panel { position: absolute; inset: 0; }
.cat-panel[hidden] { display: none; }
.cat-card { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.25rem; width: min(24rem, 44%); display: grid; gap: 0.5rem; justify-items: start; }
.cat-card h3 { font-size: var(--fs-h3); line-height: 1.2; color: #fff; }
.cat-card p { color: var(--c-mist-soft); margin-bottom: 0.4rem; }
.cat-panel__photo--tab-home { object-position: 50% 40%; }
.cat-panel__photo--tab-law { object-position: 70% 35%; }
.cat-panel__photo--tab-health { object-position: 60% 40%; }
.cat-panel__photo--tab-realestate { object-position: 60% 40%; }
.cat-panel__photo--tab-more { object-position: 65% 40%; }
@media (max-width: 900px) {
  .cat-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .cat-tab { flex: 1 1 auto; min-height: 2.75rem; padding: 0.45rem 0.8rem; font-size: 0.9rem; }
  .cat-stage { aspect-ratio: auto; }
  .cat-panel { position: relative; inset: auto; padding: 17rem 0.75rem 0.75rem; }
  .cat-card { position: relative; left: auto; bottom: auto; width: auto; }
  .cat-stage > .svc-stop { top: calc(17rem - 44px - 0.5rem); }
}

/* the signature: the trades across the azure, the stop above the wall's right end */
.kinds__scene { width: 100%; height: 420px; }
.kinds__stop { top: -3.4rem; right: 0; }
@media (max-width: 600px) {
  .kinds__scene { height: 400px; }
  .kinds__stop { top: auto; bottom: -3.4rem; } /* under the wall: above it, the lead's last line runs full width */
}

/* the roadmap made for any business: a wide photo, the handshake at its right, what the roadmap holds over the plain
   wall at its left; on a phone a tall crop, the roadmap's paper over the shelves at its top, the handshake under it */
.who-plan__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: center; }
.who-plan__pic { aspect-ratio: 16 / 9.5; }
.who-plan__photo { object-position: 0% 50%; }
.who-plan__est { left: 0.75rem; bottom: 0.75rem; width: clamp(270px, 42%, 340px); height: 320px; }
.who-plan__stop { left: calc(0.75rem + clamp(270px, 42%, 340px) + 0.5rem); bottom: 1rem; }
@media (max-width: 900px) {
  .who-plan__grid { grid-template-columns: 1fr; }
  .who-plan__pic { aspect-ratio: auto; height: 700px; }
  .who-plan__photo { object-position: 88% 50%; }
  .who-plan__est { inset: 0.75rem 0.75rem auto; width: auto; height: 330px; }
  .who-plan__stop { inset: calc(0.75rem + 330px + 0.5rem) 0.85rem auto auto; }
}

/* a way in for everyone else: the groomer at the middle, the chat over the wall at the right */
.who-anyway__pic { aspect-ratio: 16 / 8; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); --strip: 16rem; }
.who-anyway__photo { object-position: 50% 40%; }
.who-anyway__goal { right: 1.25rem; bottom: 1.25rem; width: min(380px, 36%); }
.who-anyway__stop { right: calc(1.25rem + min(380px, 36%) + 0.6rem); bottom: 1.25rem; }
@media (max-width: 900px) {
  .who-anyway__photo { object-position: 53% 30%; }
  .who-anyway__goal { min-height: 330px; } /* the whole chat's height from the start, so its growing moves nothing */
  .who-anyway__stop { bottom: auto; }
}

/* the close: the landscaper at the right, the words over the hedge at the left */
.who-close__photo { object-position: 70% 35%; }
@media (max-width: 760px) { .pclose .who-close__photo { object-position: 80% 30%; } }
