/* Public firm profile - builds on landing.css. Layout follows the width of
   .lp (container queries) so it works full-bleed and inside the app shell. */

.cpx-hero { padding: 3rem 0 5.5rem; }
body.has-app-sidebar .cpx-hero { padding-top: calc(var(--navbar-h, 72px) + 2rem); }
.cpx-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.cpx-logo-wrap { flex-shrink: 0; }
.cpx-logo { width: 112px; height: 112px; border-radius: 28px; object-fit: cover; background: #fff; border: 4px solid rgba(255, 255, 255, .95); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); display: block; }
.cpx-logo--fallback { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-2)); }
.cpx-id { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.cpx-name { font-size: clamp(1.7rem, 5.5cqi, 2.8rem); font-weight: 800; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.cpx-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem .7rem; }
.cpx-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 800; color: #e6e9ff; }
.cpx-tag--ok { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .35); color: #86efc4; }
.cpx-meta-i { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: #c5cae6; font-weight: 600; }
.cpx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .3rem; }
.cpx-icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.cpx-icon-btn:hover { background: rgba(255, 255, 255, .16); }
.cpx-copied { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .3rem .7rem; border-radius: 8px; background: #fff; color: var(--lp-ink); font-size: .74rem; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s; }
.cpx-icon-btn.is-done .cpx-copied { opacity: 1; }
#follow-btn.is-following { background: #fff; color: var(--lp-ink) !important; border-color: #fff; }
.cpx-follow { display: flex; gap: 1.4rem; color: #aab1d6; font-size: .88rem; }
.cpx-follow a { color: #dfe3fa; font-weight: 600; text-decoration: none; }
.cpx-follow a:hover { text-decoration: underline; }
.cpx-follow b { color: #fff; font-size: 1.05rem; margin-inline-end: .2rem; }

@container lp (min-width: 760px) {
    .cpx-logo { width: 132px; height: 132px; border-radius: 34px; }
}
}

/* body */
.cpx-body { background: var(--lp-bg); padding: 0 0 4rem; }
.cpx-strip { position: relative; z-index: 2; margin-top: -3rem; display: flex; flex-wrap: wrap; justify-content: center; border-radius: 20px; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 24px 50px -22px rgba(15, 22, 40, .35); overflow: hidden; }
.cpx-strip > div { flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.1rem .8rem; }
.cpx-strip > div + div { border-inline-start: 1px solid var(--lp-line); }
.cpx-strip b { font-size: 1.6rem; font-weight: 800; color: var(--lp-text); line-height: 1.2; }
.cpx-strip span { font-size: .8rem; color: var(--lp-muted); font-weight: 700; }
.cpx-strip-price b { color: #96700b; }

.cpx-layout { margin-top: 1.6rem; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.cpx-strip:not(:first-child) ~ .cpx-layout { margin-top: 1.6rem; }
.cpx-body > .lp-wrap > .cpx-layout:first-child { margin-top: -3rem; position: relative; z-index: 2; }
.cpx-main, .cpx-aside { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.cpx-card { padding: 1.6rem; border-radius: var(--lp-radius); background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); }
.cpx-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.cpx-card h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(180deg, var(--lp-brand), var(--lp-brand-2)); }
.cpx-about { color: var(--lp-text); line-height: 1.95; overflow-wrap: anywhere; }
.cpx-card--hint { border-style: dashed; background: #fbfbff; }
.cpx-card--hint p { color: var(--lp-muted); margin-bottom: 1rem; }
.cpx-card--new { text-align: center; color: var(--lp-muted); }

.cpx-team { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cpx-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1.2rem .8rem; border-radius: 18px; background: var(--lp-bg); border: 1px solid var(--lp-line); text-decoration: none; color: inherit; transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.cpx-member:hover { transform: translateY(-4px); border-color: #b9b4f7; background: #fff; }
.cpx-member-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: .4rem; }
.cpx-member-av--fb { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-2)); }
.cpx-member-name { font-weight: 800; line-height: 1.4; }
.cpx-member-spec { font-size: .8rem; font-weight: 700; color: var(--lp-brand); }
.cpx-member-exp { font-size: .76rem; color: var(--lp-muted); }

.cpx-stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cpx-stats > div { display: flex; flex-direction: column; align-items: center; padding: 1rem .5rem; border-radius: 16px; background: var(--lp-bg); }
.cpx-stats b { font-size: 1.5rem; font-weight: 800; }
.cpx-stats span { font-size: .8rem; color: var(--lp-muted); font-weight: 700; }

.cpx-info { display: grid; gap: 1rem; }
.cpx-info li { display: flex; gap: .8rem; align-items: flex-start; }
.cpx-info-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(79, 70, 229, .1); color: var(--lp-brand); }
.cpx-info small { display: block; font-size: .76rem; color: var(--lp-muted); font-weight: 700; }
.cpx-info strong, .cpx-info a { font-weight: 800; color: var(--lp-text); text-decoration: none; overflow-wrap: anywhere; }
.cpx-info a:hover { color: var(--lp-brand); }
.cpx-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.cpx-badges span { padding: .2rem .65rem; border-radius: 999px; background: var(--lp-bg); font-size: .76rem; font-weight: 800; }
.cpx-wide { width: 100%; margin-top: 1.2rem; }
.cpx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cpx-chips span { padding: .4rem .9rem; border-radius: 999px; background: rgba(79, 70, 229, .08); border: 1px solid rgba(79, 70, 229, .18); color: var(--lp-brand); font-size: .85rem; font-weight: 700; }

@container lp (min-width: 900px) {
    .cpx-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .cpx-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
    .cpx-aside { position: sticky; top: 88px; }
}

/* firm practice areas, branches and the title under a team member's name */
.cpx-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.cpx-area { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--lp-bg, #f8fafc); border: 1px solid var(--lp-line, #e2e8f0); border-inline-start: 4px solid #6366f1; }
.cpx-area b { font-size: .98rem; color: var(--lp-text, #0f172a); }
.cpx-area span { font-size: .85rem; line-height: 1.7; color: var(--lp-muted, #64748b); }
.cpx-member-pos { display: block; margin-top: 2px; font-size: .78rem; font-weight: 700; color: #b45309; line-height: 1.5; text-align: center; }
.cpx-branch { display: flex; flex-direction: column; gap: .25rem; padding: .8rem 0; border-top: 1px dashed var(--lp-line, #e2e8f0); font-size: .86rem; color: var(--lp-muted, #64748b); }
.cpx-branch:first-of-type { border-top: 0; padding-top: 0; }
.cpx-branch b { color: var(--lp-text, #0f172a); font-size: .92rem; }

/* ===== firm page: richer hero + stat cards ===== */
.cpx-hero { position: relative; overflow: hidden; border-radius: 0 0 44px 44px; isolation: isolate; }
.cpx-hero .lp-hero-bg {
  background:
    radial-gradient(55% 60% at 88% -5%, rgba(168, 85, 247, .55), transparent 68%),
    radial-gradient(45% 55% at 0% 105%, rgba(79, 70, 229, .5), transparent 70%),
    radial-gradient(30% 40% at 50% 120%, rgba(251, 191, 36, .32), transparent 70%),
    radial-gradient(22% 30% at 12% 8%, rgba(56, 189, 248, .16), transparent 70%),
    linear-gradient(180deg, #080d1d, #0e1638 70%, #15235a);
}
/* a faint scales-of-justice watermark, concentric rings and a gold edge line */
.cpx-hero .lp-hero-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.09' stroke-width='.45' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18'/><path d='M5 7h14'/><path d='M5 7l-3 7a3 3 0 0 0 6 0z'/><path d='M19 7l-3 7a3 3 0 0 0 6 0z'/><path d='M8 21h8'/></svg>") no-repeat 92% 55% / min(46vw, 460px),
    radial-gradient(circle at 92% 55%, transparent 0 17%, rgba(255, 255, 255, .05) 17.3% 17.6%, transparent 17.9% 24%, rgba(255, 255, 255, .04) 24.3% 24.6%, transparent 25% 33%, rgba(255, 255, 255, .03) 33.3% 33.6%, transparent 34%),
    radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
html[dir="rtl"] .cpx-hero .lp-hero-bg::before { background-position: 8% 55%, 8% 55%, 0 0; }
.cpx-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #fbbf24, #a855f7, transparent); opacity: .8; z-index: 1; }

.cpx-strip { background: transparent; border: 0; box-shadow: none; overflow: visible; gap: .9rem; margin-top: -3.4rem; padding-inline: .2rem; }
.cpx-strip > div { flex: 0 1 190px; flex-direction: row; align-items: center; gap: .85rem; padding: 1rem 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 18px 38px -20px rgba(15, 22, 40, .45); text-align: start; transition: transform .2s, box-shadow .2s; }
.cpx-strip > div:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -22px rgba(15, 22, 40, .55); }
.cpx-strip > div + div { border-inline-start: 1px solid var(--lp-line); }
.cpx-strip > div i { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-style: normal; font-size: 1.35rem; background: linear-gradient(135deg, #ede9fe, #e0e7ff); }
.cpx-s-lawyers i::before { content: '⚖️'; }
.cpx-s-spec i::before { content: '🗂️'; }
.cpx-s-price i::before { content: '💰'; }
.cpx-s-price i { background: linear-gradient(135deg, #fef3c7, #fde68a) !important; }
.cpx-strip > div b { display: block; font-size: 1.55rem; line-height: 1.1; }
.cpx-strip > div span { display: block; margin-top: 2px; font-size: .8rem; }
@media (max-width: 575px) {
  .cpx-hero { border-radius: 0 0 32px 32px; }
  .cpx-strip { margin-top: -3rem; gap: .6rem; }
  .cpx-strip > div { flex: 1 1 calc(50% - .6rem); padding: .85rem .9rem; }
  .cpx-strip > div i { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 13px; }
  .cpx-strip > div b { font-size: 1.3rem; }
}
