/* ═══════════════════════════════════════════════════════════════
   EZ · Seções editoriais (#371 Memberships · #372 Corpo clínico)
   Carregado só em procedimentos e clínica (PT/EN/ES).
   Mesma linguagem do hero card e do CTA com moldura: papel off-white,
   serif itálica bordô de display, filetes e losangos dourados.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ed-paper: #F5F7ED;
  --ed-paper-2: #EDE5D8;
  --ed-ink: #2A1A1C;
  --ed-muted: #7A5C5E;
  --ed-bordo: #600222;
  --ed-bordo-2: #4a0119;
  --ed-gold: #AC9164;
  --ed-gold-soft: rgba(172,145,100,0.45);
  --ed-serif: 'IvyOra Text', 'Cormorant Garamond', Georgia, serif;
  --ed-sans: 'Libre Franklin', system-ui, sans-serif;
  --ed-ease: cubic-bezier(.16,1,.3,1);
}

.ed-eyebrow {
  display: block;
  font-family: var(--ed-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--ed-gold);
}
.ed-rule-orn { display: block; width: 120px; height: 16px; }

/* Entrada com scroll: só esconde quando o JS confirmou que vai revelar */
.ed-js .ed-in { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ed-ease), transform 1.1s var(--ed-ease); transition-delay: var(--d, 0s); }
.ed-js .ed-in.is-in { opacity: 1; transform: none; }
.ed-js .ed-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ed-ease); transition-delay: var(--d, 0s); }
.ed-js .ed-mask.is-in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .ed-js .ed-in, .ed-js .ed-mask { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ───────────────────────── MEMBERSHIPS ───────────────────────── */
.mb {
  position: relative;
  background: var(--ed-paper);
  color: var(--ed-ink);
  padding: 120px 0 0;
  overflow: hidden;
}
.mb::before { /* moldura institucional da página inteira, como no hero card */
  content: ''; position: absolute; inset: 22px;
  border: 1px solid rgba(172,145,100,0.35);
  pointer-events: none;
}
.mb-wrap {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.mb-aside { position: sticky; top: 110px; }
.mb-title {
  font-family: var(--ed-serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(54px, 6.3vw, 100px);
  line-height: .92; letter-spacing: -0.01em;
  color: var(--ed-bordo);
  margin: 18px 0 22px;
}
.mb-title small { display: block; font-size: .42em; letter-spacing: 0; color: var(--ed-gold); margin-bottom: .15em; }
.mb-lede {
  font-family: var(--ed-sans); font-weight: 300;
  font-size: 15.5px; line-height: 1.85;
  color: #4a3640; max-width: 400px; margin: 22px 0 0;
}
.mb-arch {
  position: relative; margin-top: 44px;
  width: min(100%, 360px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--ed-paper), 0 0 0 9px var(--ed-gold-soft), 0 30px 60px -30px rgba(96,2,34,0.45);
}
.mb-arch img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  filter: sepia(0.12) saturate(0.85) contrast(1.05);
  transform: scale(1.08); transition: transform 2.4s var(--ed-ease);
}
.mb-arch.is-in img, .no-ed-js .mb-arch img { transform: scale(1); }
.mb-arch-cap {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-family: var(--ed-serif); font-style: italic; font-size: 15px; color: #F5F7ED;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

/* menu de assinatura */
.mb-menu { list-style: none; margin: 0; padding: 0; counter-reset: mb; }
.mb-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 28px;
  padding: 46px 0 50px;
  border-top: 1px solid var(--ed-gold-soft);
}
.mb-item:last-child { border-bottom: 1px solid var(--ed-gold-soft); }
.mb-num {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: 64px; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--ed-gold);
  transition: color .6s var(--ed-ease);
}
.mb-item:hover .mb-num { color: var(--ed-gold); }
.mb-head { display: block; }
.mb-name {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1;
  color: var(--ed-bordo); margin: 0;
}
.mb-name b { font-weight: 300; font-style: normal; font-size: .5em; letter-spacing: .18em; text-transform: uppercase; display: block; color: var(--ed-gold); margin-bottom: 10px; font-family: var(--ed-sans); }
.mb-freq {
  font-family: var(--ed-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ed-bordo);
  padding: 8px 0 7px; border-bottom: 1px solid var(--ed-bordo);
  white-space: nowrap;
  display: inline-block; margin-top: 16px;
}
.mb-desc {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45;
  color: #4a3640; margin: 18px 0 24px; max-width: 560px;
}
.mb-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mb-inc li {
  position: relative; padding-left: 26px;
  font-family: var(--ed-sans); font-weight: 300; font-size: 14px; line-height: 1.7;
  color: var(--ed-ink);
}
.mb-inc li::before {
  content: ''; position: absolute; left: 3px; top: .72em;
  width: 7px; height: 7px; background: var(--ed-gold); transform: rotate(45deg);
}

/* destaque: o mais completo, invertido em bordô */
.mb-item--feature {
  margin: 0 calc(-1 * clamp(20px, 3vw, 44px));
  padding-left: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px);
  background: var(--ed-bordo);
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(172,145,100,0.18), transparent 60%);
  border-top-color: transparent;
  color: #F5F7ED;
  box-shadow: 0 40px 80px -40px rgba(74,1,25,0.65);
}
.mb-item--feature + .mb-item, .mb-item--feature:last-child { border-top-color: transparent; }
.mb-item--feature .mb-name { color: #F5F7ED; }
.mb-item--feature .mb-desc { color: rgba(245,247,237,0.82); }
.mb-item--feature .mb-inc li { color: rgba(245,247,237,0.88); }
.mb-item--feature .mb-freq { color: #F5F7ED; border-bottom-color: var(--ed-gold); }
.mb-item--feature .mb-num { -webkit-text-stroke-color: var(--ed-gold); }
.mb-badge {
  position: absolute; top: 0; right: clamp(20px, 3vw, 44px);
  transform: translateY(-50%);
  background: var(--ed-gold); color: var(--ed-bordo-2);
  font-family: var(--ed-sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 9px 16px 8px;
}
.mb-item--feature .oc { position: absolute; width: 46px; height: 46px; pointer-events: none; }
.mb-item--feature .oc-bl { left: 10px; bottom: 10px; }
.mb-item--feature .oc-br { right: 10px; bottom: 10px; }

/* faixa Welcome Box */
.mb-welcome {
  position: relative; margin-top: 110px;
  background: var(--ed-bordo-2);
  color: #F5F7ED; overflow: hidden;
}
.mb-welcome-in {
  position: relative; z-index: 2;
  padding-left: max(clamp(20px, 5vw, 64px), calc((100vw - 1240px) / 2 + 64px));
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch; min-height: 420px;
}
.mb-welcome-txt { padding: 80px 0; display: flex; flex-direction: column; justify-content: center; }
.mb-welcome-big {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(58px, 9vw, 150px); line-height: .85;
  color: #F5F7ED; margin: 20px 0 26px; letter-spacing: -0.015em;
}
.mb-welcome-big span { color: var(--ed-gold); }
.mb-welcome-p { font-family: var(--ed-sans); font-weight: 300; font-size: 16px; line-height: 1.8; color: rgba(245,247,237,0.78); max-width: 440px; margin: 0; }
.mb-welcome-img { position: relative; }
.mb-welcome-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.85); }
.mb-welcome-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ed-bordo-2) 0%, rgba(74,1,25,0.25) 45%, rgba(74,1,25,0) 100%); }
.mb-welcome::before, .mb-welcome::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--ed-gold); opacity: .6; z-index: 3; }
.mb-welcome::before { top: 10px; } .mb-welcome::after { bottom: 10px; }

/* CTA */
.mb-cta { text-align: center; padding: 96px clamp(20px, 5vw, 64px) 120px; position: relative; }
.mb-cta-p {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--ed-bordo);
  max-width: 720px; margin: 0 auto 36px;
}
.mb-btn {
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 34px 21px 38px;
  background: var(--ed-bordo); color: #F5F7ED;
  font-family: var(--ed-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  outline: 1px solid var(--ed-gold); outline-offset: 5px;
  transition: background .4s var(--ed-ease), outline-offset .4s var(--ed-ease), transform .5s var(--ed-ease);
  will-change: transform;
}
.mb-btn:hover { background: var(--ed-bordo-2); outline-offset: 9px; }
.mb-btn-line { position: relative; display: inline-block; width: 34px; height: 1px; background: var(--ed-gold); transition: width .5s var(--ed-ease); }
.mb-btn-line::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--ed-gold); border-right: 1px solid var(--ed-gold); transform: rotate(45deg); }
.mb-btn:hover .mb-btn-line { width: 58px; }
.mb-btn svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 960px) {
  .mb { padding-top: 84px; }
  .mb::before { inset: 12px; }
  .mb-wrap { grid-template-columns: 1fr; gap: 40px; }
  .mb-aside { position: static; }
  .mb-arch { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; margin-top: 36px; }
  .mb-welcome-in { grid-template-columns: 1fr; min-height: 0; }
  .mb-welcome-in { padding: 0 clamp(20px, 5vw, 64px); }
  .mb-welcome-img { order: -1; height: 300px; margin: 0 calc(-1 * clamp(20px, 5vw, 64px)); }
  .mb-welcome-img::after { background: linear-gradient(0deg, var(--ed-bordo-2) 0%, rgba(74,1,25,0.2) 60%, rgba(74,1,25,0) 100%); }
  .mb-welcome-txt { padding: 30px 0 70px; }
}
@media (max-width: 560px) {
  .mb-title { font-size: 58px; }
  .mb-item { grid-template-columns: 1fr; padding: 38px 0 42px; }
  .mb-num { font-size: 48px; margin-bottom: 14px; }
  .mb-item--feature { margin: 26px -20px 0; padding: 44px 22px 46px; }
  .mb-badge { right: 22px; }
  .mb-desc { font-size: 19px; }
  .mb-welcome { margin-top: 70px; }
  .mb-welcome-big { font-size: 64px; }
  .mb-cta { padding: 72px 20px 92px; }
  .mb-btn { width: 100%; justify-content: center; padding: 20px 18px; letter-spacing: 2px; gap: 12px; }
  .mb-btn-line { display: none; }
}

/* ───────────────────────── CORPO CLÍNICO ───────────────────────── */
.tm {
  position: relative;
  background: var(--ed-paper);
  color: var(--ed-ink);
  padding: 130px 0 120px;
  overflow: hidden;
}
.tm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.tm-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px); align-items: end;
  padding-bottom: 64px; border-bottom: 1px solid var(--ed-gold-soft);
}
.tm-title {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(50px, 6.6vw, 104px); line-height: .94; letter-spacing: -0.01em;
  color: var(--ed-bordo); margin: 18px 0 0;
}
.tm-intro { font-family: var(--ed-sans); font-weight: 300; font-size: 15.5px; line-height: 1.85; color: #4a3640; margin: 0; }
.tm-lead {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
  font-family: var(--ed-serif); font-style: italic; font-size: 19px; color: var(--ed-bordo);
}
.tm-lead::before { content: ''; width: 7px; height: 7px; background: var(--ed-gold); transform: rotate(45deg); flex: none; }

.tm-band { position: relative; margin: 64px 0 0; height: clamp(220px, 30vw, 420px); overflow: hidden; }
.tm-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: sepia(0.12) saturate(0.85) contrast(1.04); }
.tm-band::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(245,247,237,0.55); pointer-events: none; }

.tm-person {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
  padding: 96px 0; border-bottom: 1px solid var(--ed-gold-soft);
}
.tm-person:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.tm-person:nth-of-type(even) .tm-mono { order: 2; justify-self: end; }
.tm-person:last-child { border-bottom: 0; padding-bottom: 0; }

/* monograma no oval-espelho da marca */
.tm-mono {
  --mx: 50%; --my: 30%;
  position: relative; width: min(100%, 340px); aspect-ratio: 5 / 6;
  border-radius: 50% / 50%;
  background: var(--ed-bordo);
  background-image: radial-gradient(70% 55% at var(--mx) var(--my), rgba(172,145,100,0.30), transparent 70%), linear-gradient(160deg, #6d0a2c, #3e0115);
  box-shadow: 0 0 0 8px var(--ed-paper), 0 0 0 9px var(--ed-gold), 0 0 0 16px var(--ed-paper), 0 0 0 17px var(--ed-gold-soft), 0 40px 70px -40px rgba(74,1,25,.7);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .8s var(--ed-ease);
}
.tm-mono:hover { transform: translateY(-6px); }
.tm-mono-l {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(110px, 12vw, 168px); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(226,207,191,0.85);
  transform: translateY(-4%);
}
.tm-mono-l span { color: var(--ed-gold); -webkit-text-stroke: 0; }
.tm-mono-cap {
  position: absolute; bottom: 13%; left: 0; right: 0; text-align: center;
  font-family: var(--ed-sans); font-size: 9.5px; font-weight: 600; letter-spacing: 5px; color: var(--ed-gold);
}
.tm-mono-cap::before, .tm-mono-cap::after { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--ed-gold); transform: rotate(45deg); vertical-align: middle; margin: 0 12px; position: relative; top: -2px; }

.tm-idx { font-family: var(--ed-sans); font-size: 10px; font-weight: 600; letter-spacing: 4px; color: var(--ed-gold); }
.tm-name {
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(42px, 4.8vw, 72px); line-height: .98; color: var(--ed-bordo);
  margin: 14px 0 12px;
}
.tm-cred { display: flex; align-items: center; gap: 14px; font-family: var(--ed-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 5px; color: var(--ed-gold); }
.tm-cred::after { content: ''; width: 64px; height: 1px; background: var(--ed-gold-soft); }
.tm-quote {
  position: relative; margin: 34px 0 26px; padding-left: 28px;
  font-family: var(--ed-serif); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.3; color: var(--ed-ink);
  border-left: 1px solid var(--ed-gold);
}
.tm-bio { font-family: var(--ed-sans); font-weight: 300; font-size: 15px; line-height: 1.9; color: #4a3640; margin: 0; max-width: 620px; }
.tm-path { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(172,145,100,0.25); max-width: 620px; }
.tm-path-k { display: block; font-family: var(--ed-sans); font-size: 9.5px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--ed-gold); margin-bottom: 12px; }
.tm-path ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.tm-path li { font-family: var(--ed-serif); font-style: italic; font-size: 18px; color: var(--ed-bordo); white-space: nowrap; }
.tm-path li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--ed-gold); transform: rotate(45deg); margin-right: 12px; vertical-align: middle; position: relative; top: -2px; }

@media (max-width: 900px) {
  .tm { padding: 90px 0 80px; }
  .tm-head { grid-template-columns: 1fr; gap: 26px; padding-bottom: 44px; }
  .tm-band { margin-top: 44px; }
  .tm-person, .tm-person:nth-of-type(even) { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; }
  .tm-person:nth-of-type(even) .tm-mono { order: 0; justify-self: start; }
  .tm-mono { width: 64%; max-width: 260px; margin-left: 18px; }
}
@media (max-width: 560px) {
  .tm-title { font-size: 52px; }
  .tm-name { font-size: 46px; }
  .tm-quote { font-size: 24px; padding-left: 20px; }
  .tm-path ul { flex-direction: column; gap: 8px; }
  .tm-path li { font-size: 17px; white-space: normal; }
  .tm-band { margin-left: -20px; margin-right: -20px; }
}
