/* The page about Wander (/en/wander/, /es/wander/). Tokens only, from site.css.
   Shared parts (cards, gallery, facts, steps, cta band) come from parts.css; only this page's
   own blocks are here: the head with the portrait, the quotations, the two logos, the empty
   state, and the owner-only boxes that show in review mode. */

/* ---------- head: name and role beside the portrait; on a phone the portrait sits under the role */
.who-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 21rem);
  /* empty rows above and below the text centre it beside the portrait */
  grid-template-areas:
    ".       photo"
    "eyebrow photo"
    "title   photo"
    "role    photo"
    "lead    photo"
    "contact photo"
    ".       photo";
  grid-template-rows: 1fr auto auto auto auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.who-head__eyebrow { grid-area: eyebrow; }
.who-head__title { grid-area: title; }
.who-head__role {
  grid-area: role; margin-top: 0.7rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink-soft);
}
.who-head__lead { grid-area: lead; }
/* WhatsApp and the chat right under the lead, and how the languages work */
.who-head__contact { grid-area: contact; margin-top: 1.3rem; }
.who-head__buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.who-head__langs { margin-top: 0.8rem; max-width: 38rem; font-size: 0.98rem; color: var(--ink-soft); }
.who-head__photo {
  grid-area: photo; align-self: center; margin: 0;
  padding: 0.55rem; background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; box-shadow: 5px 6px 0 var(--gold);
  transform: rotate(1.2deg);
}
/* the studio portrait is 2:3; a 4:5 frame keeps his face and shoulders and drops the knees */
.who-head__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 8%; border-radius: 2px;
}

/* ---------- in his own words: quotations on cards, each with a pencilled topic */
.who-says { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1.8rem; align-items: start; }
.who-say {
  position: relative; margin: 0; padding: 2.1rem 1.6rem 1.4rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--wobble);
  box-shadow: 4px 5px 0 var(--rule);
}
.who-say:nth-child(4n + 1), .who-say:nth-child(4n + 4) { box-shadow: 4px 5px 0 var(--gold); }
.who-say__topic {
  position: absolute; top: -1.05rem; left: 1.1rem; padding: 0 0.5rem;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; line-height: 1;
  color: var(--gold-deep); background: var(--paper); transform: rotate(-2deg);
}
.who-say__quote { margin: 0; }
.who-say__quote p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.42; color: var(--ink); }
.who-say__meet { margin-top: 2rem; font-weight: 650; }

/* ---------- two hats: a logo tile on each card */
.who-hat { display: flex; flex-direction: column; }
.who-hat__logo {
  /* one fixed height, so both cards start their text on the same line */
  display: grid; place-items: center; height: 13rem; margin-bottom: 1.2rem; padding: 0.8rem;
  background: var(--card); border: 1.5px dashed var(--rule); border-radius: 6px 3px 7px 4px;
}
.who-hat__logo img { display: block; width: 100%; max-width: 15rem; height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* the company logo is its own navy square: shown as it is, not on a second navy. It fills the tile's height, so it
   carries the same weight as the law office's wide logo beside it (it looked undersized at 10.5rem); never wider
   than its grid track (at 320 px with 24 px text the track is narrower than the tile is tall) */
.who-hat__logo--square img { width: min(11.4rem, 100%); max-width: none; height: auto; aspect-ratio: 1; mix-blend-mode: normal; border-radius: 4px; }
.who-hat__label { font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--gold-deep); margin-bottom: 0.4rem; }


/* ---------- reaching him */
.who-reach__chat { margin-bottom: 1.8rem; }
.who-reach { max-width: 40rem; }
.who-reach a { font-weight: 650; white-space: nowrap; }
/* the WhatsApp number, the phone numbers and the email: a touch area of at least 44 px, the padding taken back by the margin */
.who-reach a[href^="https://wa.me/"], .who-reach a[href^="tel:"], .who-reach a[href^="mailto:"] { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem; }

.who-steps .step__text { max-width: 44rem; }

/* a page named in the checks that is not built yet: its name, not a link */
.who-check__page { font-weight: 650; }

/* ---------- for the owner only: hidden unless review mode is on */
.who-review-only { display: none; }
.is-review .who-review-only { display: block; }
.who-missing, .who-logos {
  margin-top: 2.4rem; padding: 1.2rem 1.4rem; max-width: 44rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px;
}
.who-missing__title, .who-logos__title { font-weight: 700; margin-bottom: 0.6rem; }
.who-missing__list { margin: 0; padding-left: 1.3em; display: grid; gap: 0.3rem; }
.who-logos__row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.who-logos__item { margin: 0; width: min(100%, 14rem); font-size: 0.85rem; color: var(--ink-soft); }
.who-logos__item img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; margin-bottom: 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  .who-head__photo, .who-say__topic { transform: none; }
}

/* ---------- phones */
@media (max-width: 48rem) {
  .who-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "role" "photo" "lead" "contact";
    grid-template-rows: none;
  }
  .who-head__photo { width: min(15rem, 72%); margin-top: 1.6rem; justify-self: start; }
  .who-says { grid-template-columns: minmax(0, 1fr); }
  .who-say { padding-inline: 1.25rem; }
  .who-say__quote p { font-size: 1.2rem; }
  .who-hat__logo { height: 11.5rem; }
  .who-hat__logo--square img { width: min(9.9rem, 100%); height: auto; }
}


/* ---------- testimonials: until the first one, one line with the button and one on consent; the disclosure
   folded under them (opened when testimonials show, in review mode and for printing). The rules are the form's. */
.who-disclosure { max-width: 46rem; margin: 0.9rem 0 0; padding: 0.9rem 1.1rem; background: var(--card); border-left: 4px solid var(--gold); border-radius: 2px 10px 4px 12px; }
.who-empty__failed { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.6rem; }
.who-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; max-width: 46rem; }
.who-t { padding: 1rem 1.2rem 1.1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; min-width: 0; overflow-wrap: anywhere; }
/* the list and the empty state obey `hidden` whatever display they are given */
.who-tlist[hidden], .who-empty [hidden] { display: none; }
.who-t__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; font-weight: 650; }
.who-t__meta, .who-t__rel, .who-t__translated { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }
.who-t__text { margin: 0.7rem 0 0; }
.who-t__toggle { font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; padding: 0.3rem 0; min-height: 44px; text-decoration: underline; cursor: pointer; }
.who-share { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.who-share[hidden], .who-share .btn[hidden] { display: none; }
.who-share__ask { font-size: 1.12rem; }
.who-tfold { max-width: 46rem; margin-top: 1.4rem; }
.who-tfold__summary { cursor: pointer; font-weight: 650; color: var(--ink-soft); padding-block: 0.5rem; }
.who-tfold__summary:hover { color: var(--ink); }
@media print { .who-share .btn { display: none; } }
.who-consent { margin-top: 0.8rem; max-width: 46rem; color: var(--ink-soft); }

/* ---------- what Prime Inversiones does: the company's own profile, attributed */
.who-profile__body { max-width: 46rem; }
.who-profile__mission { margin-top: 1.4rem; max-width: 46rem; }
.who-profile__sub { font-size: 1.3rem; margin: 2rem 0 0.7rem; }
.who-profile__list { margin: 0; padding-left: 1.2em; display: grid; gap: 0.45rem; max-width: 46rem; }
.who-profile__langs { margin-top: 1.4rem; max-width: 46rem; }

/* ---------- his law office, in its own words (a separate firm) */
.who-practice { max-width: 46rem; margin-top: 2.2rem; }
.who-practice__title { font-size: 1.3rem; margin-bottom: 0.8rem; }
.who-practice__areas-title { margin: 1.2rem 0 0.4rem; font-weight: 650; }
.who-practice__areas { margin: 0; padding-left: 1.2em; display: grid; gap: 0.35rem; }
.who-practice__areas .is-key { font-weight: 650; }
.who-practice__buyer { margin-top: 1rem; padding: 0.8rem 1rem; background: var(--card); border-left: 4px solid var(--gold); border-radius: 2px 10px 4px 12px; }
/* a long email address may break anywhere rather than push the page sideways at large text */
.who-reach a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.help-link { font-size: 0.92rem; font-weight: 600; margin-left: 0.6rem; }
