/* =========================================================================
   RE/MAX כחול לבן נתניה — agent.css
   08 · הצוות  and  09 · עמוד סוכן.

   The airy pole of the design. The catalog is a working tool and is allowed to
   be tight; these two pages are where someone decides whether they trust a
   person, so they get room.

   The envelope crop on the portraits is declared in brand.css alongside the
   homepage strip, so all three share one definition.
   ========================================================================= */

/* ══════════════════════════════════════════════════ 08 · THE TEAM */
.team { padding-block: calc(var(--hdr-h) + clamp(1.5rem, 3vw, 2.5rem)) var(--sec); }
.team .sec-head h1 {
  font-size: var(--t-lg); font-variation-settings: 'wght' 700;
  letter-spacing: -.032em; line-height: 1;
}
.team-lede { font-size: var(--t-lead); color: var(--muted); max-width: 46ch; line-height: 1.7; }

.team-grid {
  display: grid; gap: clamp(1.25rem, 2.4vw, 2.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.mate { position: relative; }
.mate-shot {
  display: block; position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--paper-2);
}
.mate-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e-out); }
.mate a:hover .mate-shot img { transform: scale(1.045); }
.mate-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,17,34,.42), transparent 52%);
  transition: background .6s var(--e-out);
}
.mate a:hover .mate-shot::after {
  background: linear-gradient(to top, rgba(0,83,161,.58), rgba(0,83,161,.1) 40%, transparent 64%);
}

/* the two agents with no photograph yet. A monogram in the brand's navy reads
   as a deliberate placeholder; a stock silhouette reads as a mistake */
.mate-mono {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--navy-2); color: rgba(255,255,255,.9);
  font-size: clamp(2.5rem, 5vw, 4rem); font-variation-settings: 'wght' 500;
  letter-spacing: -.04em;
}
.mate-mono.is-big { font-size: clamp(4rem, 9vw, 7rem); }

.mate-meta { display: block; padding-block-start: .8rem; }
.mate-meta b {
  display: block; font-size: 1.0625rem; font-variation-settings: 'wght' 500;
  letter-spacing: -.02em; position: relative; width: fit-content;
}
.mate-meta b::after {
  content: ''; position: absolute; inset-block-end: -3px; inset-inline-start: 0;
  width: 0; height: 3px; background: var(--band); transition: width .5s var(--e-out);
}
.mate a:hover .mate-meta b::after { width: 100%; }
.mate-meta > span { display: block; font-size: var(--t-meta); color: var(--muted-2); }

/* WhatsApp rides the corner of the portrait — one tap, without opening the page */
.mate-wa {
  position: absolute; z-index: 2; inset-block-start: .6rem; inset-inline-end: .6rem;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 100px;
  background: #1FA855; color: #fff; opacity: 0;
  transition: opacity .3s var(--e-out), transform .3s var(--e-out), background .3s;
}
.mate:hover .mate-wa, .mate-wa:focus-visible { opacity: 1; }
.mate-wa:hover { background: #17853F; transform: scale(1.08); }
@media (hover: none) { .mate-wa { opacity: 1; } }

.team-foot {
  margin-block-start: clamp(2.5rem, 5vw, 4rem); padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline;
  color: var(--muted); font-size: var(--t-meta);
}

/* ══════════════════════════════════════════════════ 09 · THE AGENT PAGE
   Handed to one person at a time, usually on a phone, often mid-conversation.
   So: the face, the name and the way to reply, all above the fold. */
.mate-page { padding-block: calc(var(--hdr-h) + clamp(1.5rem, 3vw, 2.5rem)) var(--sec); }

.mate-hero { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .mate-hero { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }

.mate-hero-shot {
  position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden;
  background: var(--paper-2); max-width: 380px;
}
.mate-hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.mate-cuff { position: absolute; inset-block-end: 0; inset-inline-start: 0; z-index: 2; display: flex; }
.mate-cuff i { display: block; width: clamp(44px, 5vw, 74px); height: var(--band-h); }
.mate-cuff i:nth-child(1) { background: var(--blue); }
.mate-cuff i:nth-child(2) { background: #fff; }
.mate-cuff i:nth-child(3) { background: var(--red); }

.mate-hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; }
.mate-hero-side > .label { color: var(--red); }
.mate-hero-side h1 { font-size: var(--t-lg); line-height: 1; letter-spacing: -.038em; }

.mate-areas { width: 100%; }
.mate-areas .label { display: block; color: var(--muted-2); margin-block-end: .6rem; }
.mate-areas ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.mate-areas a {
  display: inline-block; padding: .35rem .8rem; border-radius: 2px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: var(--t-meta); font-variation-settings: 'wght' 500;
  transition: background .3s, color .3s, box-shadow .3s;
}
.mate-areas a:hover { background: var(--blue); color: #fff; box-shadow: none; }

.mate-go { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mate-mail { font-size: var(--t-meta); color: var(--muted); border-block-end: 1px solid var(--line); }
.mate-mail:hover { color: var(--red); border-color: var(--red); }

.mate-bio { color: var(--muted); font-size: var(--t-lead); line-height: 1.75; max-width: 58ch; }
.mate-bio p + p { margin-block-start: .9rem; }

.mate-video { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.mate-video iframe, .mate-video video { width: 100%; aspect-ratio: 16/9; height: auto; }

.mate-props, .mate-quotes { margin-block-start: clamp(3rem, 6vw, 5rem); }

.mate-quote-grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: 1fr; }
@media (min-width: 760px)  { .mate-quote-grid { grid-template-columns: repeat(2, 1fr); } }
.mate-quote {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper-2);
  border-inline-start: var(--band-h) solid transparent; border-image: var(--band-v) 1;
}
.mate-quote blockquote p {
  font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.65;
  letter-spacing: -.014em; color: var(--ink);
}
.mate-quote .quote-rule { height: 3px; width: 40px; background: var(--band); }
.mate-quote cite { font-style: normal; font-size: var(--t-meta); color: var(--muted-2); }

.mate-back { margin-block-start: clamp(2.5rem, 5vw, 4rem); }

/* ── the club badge (client round 6.8.2026): the network's ranking, worn
   quietly under the name — three bands and the club, no medal drawn ── */
.mate-club {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-block-start: .875rem;
  padding: .45rem .9rem;
  background: var(--paper-2); border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-meta); font-variation-settings: 'wght' 500;
  letter-spacing: .02em; color: var(--navy-2);
}
.mate-club > span { display: inline-flex; width: 22px; height: 4px; }
.mate-club > span i { flex: 1; }
.mate-club > span i:nth-child(1) { background: var(--blue); }
.mate-club > span i:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); }
.mate-club > span i:nth-child(3) { background: var(--red); }
