/* AvivaMente — Fundadora, foto AvivaWork e "O espaço" (mapa + tour da clínica) */

/* ---------- FUNDADORA ---------- */
.founder { padding: clamp(100px, 12vw, 170px) 0; }
.founder__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.founder__media { position: relative; padding: 0 16% 16% 0; }
.founder__media figure { margin: 0; overflow: hidden; }
.founder__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__main { border-radius: var(--r-lg); aspect-ratio: 4 / 5; box-shadow: var(--shadow-soft); }
.founder__main img { object-position: 50% 30%; }
.founder__float { position: absolute; border-radius: var(--r-md); border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(30, 10, 44, .45); }
.founder__float--a { right: 0; top: 10%; width: 44%; aspect-ratio: 4 / 3; }
.founder__float--b { right: 6%; bottom: 0; width: 32%; aspect-ratio: 3 / 4; }
.founder__float--b img { object-position: 27% 30%; }
.founder__media img.founder__sign { position: absolute; left: 30px; bottom: 0; width: clamp(170px, 25vw, 320px); height: auto; object-fit: contain; transform: rotate(-9deg); transform-origin: left bottom; pointer-events: none; }
.founder__name { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--plum-900); margin: 1.4rem 0 1.2rem; }
.founder__name span { display: block; font-family: var(--f-body); font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }
.founder__lead { font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.5; color: var(--plum-800); max-width: 52ch; }
.founder__text { color: var(--ink-soft); margin-top: 1rem; max-width: 56ch; }
.founder__projects { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.founder__projects li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.founder__projects strong { color: var(--plum-800); font-weight: 700; }
.founder__projects span { color: var(--ink-soft); font-size: .92rem; }
.founder__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .founder__inner { grid-template-columns: 1fr; }
  .founder__media { max-width: 560px; }
  .founder__projects { grid-template-columns: 1fr; }
}

/* ---------- AVIVAWORK foto ---------- */
.work__side { display: grid; gap: 14px; }
.work__photo { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.work__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }

/* ---------- O ESPAÇO ---------- */
.visit { padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.visit__track { position: relative; margin-top: 8px; }
.visit__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  margin: 0 clamp(8px, 1.4vw, 20px); border-radius: var(--r-xl); background: var(--sand); isolation: isolate;
}
.visit__sticky .visit__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.visit__map .maplibregl-canvas { outline: none; }
.visit__map .maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255, 253, 249, .7); border-radius: 8px 0 0 0; }
.visit.no-map .visit__map { background: url("assets/img/clinica/fachada-dia-800.webp") center / cover; filter: saturate(.85); }

/* Pin */
.visit-pin { position: relative; width: 54px; height: 54px; pointer-events: none; }
.visit-pin__drop { position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--plum-800); box-shadow: 0 12px 26px -8px rgba(30, 10, 44, .6); display: grid; place-items: center; }
.visit-pin__drop::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 0 5px rgba(131, 200, 156, .3); }
.visit-pin__ring { position: absolute; left: 50%; top: 100%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 2px solid var(--mint-600); animation: visitPulse 2.2s var(--ease-out) infinite; }
.visit-pin__label { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; background: var(--paper); color: var(--plum-900); font-weight: 700; font-size: .82rem; padding: .45em .9em; border-radius: 999px; box-shadow: var(--shadow-soft); }
.visit-dot { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--plum-800); pointer-events: none; }
.visit-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--plum-700); }
@keyframes visitPulse { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* Cenas (abrem como um portal a partir do pin) */
.visit__scenes {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 90% at 75% 40%, var(--plum-700), var(--plum-950) 70%);
  clip-path: circle(0px at var(--px, 50%) var(--py, 50%));
  transition: clip-path 1.25s cubic-bezier(.7, 0, .2, 1);
}
.visit.is-portal .visit__scenes { clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%)); }
.visit__scene { position: absolute; margin: 0; opacity: 0; transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); transform: scale(1.04);
  right: clamp(24px, 7vw, 120px); top: calc(50% + 34px); height: min(calc(100% - 190px), 760px); aspect-ratio: 9 / 16; translate: 0 -50%;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); background: var(--plum-900); }
.visit__scene.is-on { opacity: 1; transform: scale(1); }
.visit__scene video, .visit__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.visit__scene--slides img { opacity: 0; transition: opacity 1.2s ease, transform 6s linear; transform: scale(1.08); }
.visit__scene--slides img.is-on { opacity: 1; transform: scale(1); }

.visit__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(243, 236, 227, .55), transparent 45%); transition: opacity .8s; }
.visit.is-portal .visit__veil { opacity: 0; }

/* Linha do trajeto */
.visit__route { position: absolute; z-index: 4; top: 88px; left: 50%; transform: translateX(-50%); list-style: none; margin: 0; padding: 8px 14px; display: flex; gap: 4px; background: rgba(255, 253, 249, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(30, 10, 44, .5); }
.visit__route li { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); padding: 4px 8px; border-radius: 999px; transition: color .4s, background .4s; white-space: nowrap; }
.visit__route li span { width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; transition: background .4s; }
.visit__route li.is-past { color: var(--mint-600); }
.visit__route li.is-past span { background: currentColor; }
.visit__route li.is-active { color: var(--paper); background: var(--plum-800); }
.visit__route li.is-active span { background: var(--mint-400); border-color: var(--mint-400); }

.visit__coords { position: absolute; z-index: 4; right: clamp(16px, 2vw, 26px); bottom: 34px; margin: 0; font: 600 .72rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; color: var(--plum-800); background: rgba(255, 253, 249, .75); padding: .6em .9em; border-radius: 999px; transition: color .6s, background .6s; }
.visit.is-portal .visit__coords { color: var(--lilac-100); background: rgba(30, 10, 44, .5); }

/* Cartões dos passos (rolam por cima da cena fixa) */
.visit__steps { position: relative; z-index: 5; margin-top: -100vh; margin-top: -100svh; padding: 45svh 0 40svh; pointer-events: none; }
.visit__step {
  pointer-events: auto; width: min(430px, calc(100% - 48px)); margin: 0 0 75svh clamp(32px, 6vw, 100px);
  background: rgba(255, 253, 249, .93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-md); padding: clamp(22px, 2.4vw, 32px); box-shadow: 0 30px 60px -30px rgba(30, 10, 44, .45);
  opacity: .35; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.visit__step:last-child { margin-bottom: 0; }
.visit__step.is-active { opacity: 1; transform: none; }
.visit__n { font-family: var(--f-display); font-style: italic; color: var(--mint-600); font-size: 1.1rem; }
.visit__step h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); color: var(--plum-900); margin: .3rem 0 .6rem; line-height: 1.15; }
.visit__step p { color: var(--ink-soft); }

/* Como chegar */
.visit__arrive { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(60px, 8vw, 110px); align-items: stretch; }
.visit__card { background: var(--sand); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; }
.visit__card h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--plum-900); line-height: 1.15; }
.visit__addr { color: var(--ink-soft); margin: .5rem 0 1.6rem; }
.visit__go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.visit__chip { font: inherit; font-size: .9rem; font-weight: 700; color: var(--plum-800); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .7em 1.15em; cursor: pointer; text-decoration: none; transition: border-color .3s, background .3s; }
.visit__chip:hover { border-color: var(--plum-700); background: var(--lilac-100); }
.visit__near { margin-top: auto; padding-top: 1.8rem; }
.visit__near-btn { font: inherit; font-weight: 700; color: var(--mint-600); background: none; border: 0; padding: 0; display: inline-flex; gap: .5em; align-items: center; cursor: pointer; }
.visit__near-btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; }
.visit__near-out { color: var(--ink-soft); font-size: .9rem; margin-top: .4rem; }
.visit__near-out strong { color: var(--plum-900); }
.visit__gmap { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; background: url("assets/img/clinica/fachada-dia-800.webp") center / cover; }
.visit__gmap::before { content: ""; position: absolute; inset: 0; background: rgba(42, 15, 61, .55); }
.visit__gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.visit__gmap-load { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: .4rem; text-align: center; background: none; border: 0; color: var(--paper); font: inherit; cursor: pointer; }
.visit__gmap-load span { font-weight: 700; font-size: 1.05rem; padding: .9em 1.6em; border-radius: 999px; background: var(--mint-400); color: var(--plum-900); transition: transform .4s var(--ease-out); }
.visit__gmap-load:hover span { transform: scale(1.05); }
.visit__gmap-load small { opacity: .8; font-size: .78rem; }

/* Galeria */
.visit__gallery { margin-top: clamp(60px, 8vw, 100px); }
.visit__strip { list-style: none; margin: 0; padding: 0 max(20px, calc((100vw - var(--container)) / 2)) 16px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.visit__strip li { flex: 0 0 auto; scroll-snap-align: start; }
.visit__strip button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; }
.visit__strip img { display: block; height: clamp(220px, 26vw, 340px); width: auto; transition: transform .8s var(--ease-out); }
.visit__strip button:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 6, 30, .9); }
.lightbox[open] { display: grid; place-items: center; align-content: center; gap: 12px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--r-md); }
.lightbox p { color: var(--lilac-100); text-align: center; }

@media (max-width: 900px) {
  .visit__route { left: 12px; right: 12px; transform: none; justify-content: space-between; padding: 8px 10px; }
  .visit__route li { padding: 4px; font-size: 0; gap: 0; }
  .visit__route li.is-active { font-size: .72rem; gap: 6px; padding: 4px 10px; }
  .visit__scene { inset: 0; right: 0; top: 0; translate: none; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .visit__veil { background: linear-gradient(0deg, rgba(243, 236, 227, .5), transparent 50%); }
  .visit__step { margin-inline: auto; }
  .visit__arrive { grid-template-columns: 1fr; }
  .visit__coords { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .visit__scenes, .visit__scene, .visit__scene--slides img, .visit__step { transition: none; }
  .visit-pin__ring { animation: none; opacity: 0; }
}

/* ===== Ajustes do cliente (v2) ===== */
.work__lead + .work__lead { margin-top: .8rem; }
.svc__more { margin-top: auto; position: relative; z-index: 1; font-weight: 700; font-size: .9rem; color: var(--plum-800); text-decoration: none; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.svc__more:hover { color: var(--mint-600); }

.demands { padding-block: clamp(64px, 9vw, 120px); }
.team__about { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3.5vw, 48px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "head body" "links body"; column-gap: clamp(28px, 5vw, 72px); row-gap: 24px; align-items: start; }
.team__about-head { grid-area: head; }
.team__about-head .eyebrow { margin: 0 0 .6rem; }
.team__about h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; color: var(--plum-900); margin: 0; }
.team__about-body { grid-area: body; }
.team__about-body p { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 .9rem; max-width: 68ch; }
.team__about-body p:last-child { margin-bottom: 0; }
.team__links { grid-area: links; align-self: end; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.team__links a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.2em; border-radius: 999px; border: 0; font-weight: 700; font-size: .88rem; text-decoration: none; color: #fff; background: var(--plum-800); transition: transform .3s var(--ease-out), background .3s, box-shadow .3s; }
.team__links li:nth-child(1) a { background: var(--plum-800); }
.team__links li:nth-child(2) a { background: var(--mint-400); color: var(--plum-900); }
.team__links li:nth-child(3) a { background: var(--lilac-500); color: #fff; }
.team__links a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42,15,61,.22); }
.team__about { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .team__about { grid-template-columns: 1fr; grid-template-areas: "head" "body" "links"; row-gap: 20px; }
  .team__links { flex-direction: row; flex-wrap: wrap; }
  .team__links a { white-space: normal; }
}
#fachada { scroll-margin-top: -38svh; }

/* AvivaWork: foto vertical à esquerda, textos à direita */
.work__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; }
.work__inner .work__photo { aspect-ratio: auto; height: 100%; min-height: 560px; border-radius: var(--r-lg); position: relative; }
.work__inner .work__photo img { position: absolute; inset: 0; object-position: 50% 30%; }
.work__right { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.work__right .work__copy { margin: 0; }
.work__right .work__lead { margin-bottom: 0; }
.work__right .work__lead:last-of-type { margin-bottom: 28px; }
@media (max-width: 900px) {
  .work__inner { grid-template-columns: 1fr; }
  .work__inner .work__photo { aspect-ratio: 4 / 5; min-height: 0; height: auto; max-height: 70svh; }
}

/* Rodapé: links em duas colunas + chamada para parceiros */
.footer__grid { grid-template-columns: 1.3fr 1.2fr 1.1fr; }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; }
.footer__links nav { display: grid; gap: 8px; align-content: start; }
.footer__links h3 { font-family: var(--f-body, inherit); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-400); margin: 0 0 6px; }
.footer__partner { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); border: 1px dashed rgba(255,255,255,.25); display: grid; gap: 12px; font-size: .9rem; max-width: 36ch; }
.footer__partner strong { color: var(--cream); }
.footer__partner p { margin: 0; }
.footer__partner-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.2em; border-radius: 999px; background: var(--mint-400); color: var(--plum-900); font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.footer__review { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 40px; padding: 22px 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.footer__review-text { display: flex; align-items: center; gap: 12px 22px; flex: 1 1 420px; }
.footer__review p { margin: 0; font-size: .95rem; max-width: 58ch; }
@media (max-width: 640px) { .footer__review { padding: 20px; } .footer__review-text { flex-direction: column; align-items: flex-start; } .footer__review-btn { width: 100%; justify-content: center; } }
.footer__review strong { color: var(--cream); }
.footer__stars { display: flex; gap: 4px; flex: 0 0 auto; }
.footer__stars svg { width: 22px; height: 22px; fill: #F5B942; }
.footer__review-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.3em; border-radius: 999px; background: var(--cream); color: var(--plum-900); font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.footer__review-btn span { color: #E0A21F; margin-left: .35em; }
.footer__review-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.footer__partner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

/* Demandas clínicas: acordeão */
.demands__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.demand { border-top: 1px solid var(--line); }
.demand__btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; font-size: 1.02rem; line-height: 1.4; min-height: 56px; transition: color .3s; }
.demand__btn:hover, .demand.is-open .demand__btn { color: var(--plum-800); }
.demand__btn:focus-visible { outline: 2px solid var(--lilac-500); outline-offset: 2px; border-radius: 6px; }
.demand__n { font-family: var(--f-display); font-size: .9rem; color: var(--lilac-500); min-width: 2ch; font-variant-numeric: tabular-nums; }
.demand__t { flex: 1; font-weight: 500; }
.demand__i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac-100); transition: transform .4s var(--ease-out), background .3s; }
.demand__i svg { width: 14px; height: 14px; stroke: var(--plum-800); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.demand.is-open .demand__i { transform: rotate(45deg); background: var(--mint-400); }
.demand__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.demand.is-open .demand__panel { grid-template-rows: 1fr; }
.demand__inner { overflow: hidden; min-height: 0; padding-left: calc(2ch + 18px); }
.demand.is-open .demand__inner { padding-bottom: 20px; }
.demand__inner h3 { font-family: var(--f-body, inherit); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-600); margin: 4px 0 6px; }
.demand__inner h3:not(:first-child) { margin-top: 14px; }
.demand__inner p { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.demands__note { margin-top: 32px; font-size: .82rem; line-height: 1.55; color: var(--ink-soft); max-width: 78ch; }
@media (max-width: 760px) {
  .demands__list { grid-template-columns: 1fr; margin-top: 28px; }
  .demand__btn { font-size: .96rem; padding: 14px 0; }
  .demand__inner { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .demand__panel, .demand__i { transition: none; } }

/* Tag de título dentro da foto, canto superior esquerdo */
.member__tag { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; padding: .5em .85em; border-radius: 14px; background: rgba(255,253,249,.92); color: var(--plum-800); box-shadow: 0 2px 8px rgba(30,10,44,.12); max-width: calc(100% - 24px); }
.member__tag--medicina { background: var(--mint-400); color: var(--plum-900); }
.member__tag--psicanalise { background: var(--plum-800); color: #fff; }
@media (max-width: 640px) { .member__tag { left: 8px; top: 8px; font-size: .6rem; padding: .45em .7em; } }
