/* ==========================================================================
   Clínica Somais — style.css
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f4f2ed;
  --paper: #ffffff;
  --sand: #ece6d8;
  --ink: #18263c;
  --navy: #1e2b42;
  --blue: #475c77;
  --blue-300: #a9b4c6;
  --blue-100: #e6eaf1;
  --gold: #816611;
  --gold-300: #cdb05a;
  --muted: #5a6577;
  --line: rgba(24, 38, 60, 0.12);

  --r-xl: clamp(26px, 3.2vw, 44px);
  --r-lg: clamp(20px, 2.2vw, 30px);
  --r-md: 16px;

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --sec: clamp(76px, 10vw, 152px);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--navy); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); position: relative; }

/* ---------- Typography ---------------------------------------------------- */

.h1, .h2, .h3 { font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.h1 { font-size: clamp(2.7rem, 6.6vw, 6.1rem); line-height: 0.98; }
.h2 { font-size: clamp(2.15rem, 4.7vw, 4.4rem); line-height: 1.02; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; }

.h1 em, .h2 em, .h3 em, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--gold);
  font-size: 1.08em;
  padding-right: 0.04em;
}

.lead { font-size: clamp(1.06rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

.nb { white-space: nowrap; }
.plus { display: inline-block; width: 0.62em; height: 0.62em; color: var(--gold); vertical-align: 0.04em; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-ico-bg: #fff; --btn-ico-fg: var(--navy); --btn-fill: var(--gold);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 6px 6px 6px 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill); border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn__ico {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--btn-ico-bg); color: var(--btn-ico-fg);
  transition: transform 0.55s var(--ease);
}
.btn__ico svg { width: 20px; height: 20px; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover .btn__ico, .btn:focus-visible .btn__ico { transform: rotate(-45deg); }
.btn:hover .btn__ico--wa, .btn:focus-visible .btn__ico--wa { transform: scale(1.08) rotate(8deg); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-ico-bg: var(--navy); --btn-ico-fg: #fff; --btn-fill: var(--gold-300); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; --btn-ico-bg: #fff; --btn-ico-fg: var(--gold); --btn-fill: var(--navy); }
.btn--sm { min-height: 46px; padding: 4px 4px 4px 20px; font-size: 0.9375rem; gap: 10px; }
.btn--sm .btn__ico { width: 38px; height: 38px; }
.btn--sm .btn__ico svg { width: 17px; height: 17px; }
.btn--plain { padding-inline: 24px; }

.play {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 500; letter-spacing: -0.01em;
}
.play__ico {
  position: relative; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.play__ico::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--blue);
  opacity: 0; animation: ping 2.6s var(--ease) infinite;
}
.play__ico svg { width: 16px; height: 16px; margin-left: 2px; }
.play:hover .play__ico { background: var(--navy); color: #fff; transform: scale(1.06); }
.play span:last-child { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.play:hover span:last-child { border-color: currentColor; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
  padding-bottom: 2px;
}
.link svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.link:hover { background-size: 100% 1px; }
.link:hover svg { transform: translate(3px, -3px); }

.footer__base .credit { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Intro curtain ------------------------------------------------- */

.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--navy);
  pointer-events: none;
  animation: intro-out 0.9s var(--ease-io) 0.75s forwards;
}
.intro img {
  width: 76px; height: 76px;
  filter: brightness(0) invert(1);
  animation: intro-mark 0.9s var(--ease) both;
}
@keyframes intro-mark { from { opacity: 0; transform: scale(0.6) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro { clip-path: inset(0 0 0 0); }

/* ---------- Header -------------------------------------------------------- */

.header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
  pointer-events: auto;
  width: min(100% - 24px, 1180px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(24, 38, 60, 0.04), 0 14px 40px -18px rgba(24, 38, 60, 0.28);
  transition: background 0.4s, box-shadow 0.4s;
}
.header.is-scrolled .header__bar { background: rgba(255, 255, 255, 0.88); }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 450; letter-spacing: -0.01em; color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.nav a:hover { background: rgba(71, 92, 119, 0.1); }
.nav a.is-active { background: var(--blue-100); color: var(--navy); }
.header__cta { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-100); place-items: center; position: relative;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--navy);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gut) 34px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu-open .mobile-menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.22;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-menu nav a small { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-300); letter-spacing: 0; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition-delay: calc(0.2s + var(--i, 0) * 60ms); }
.mobile-menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.menu-open body { overflow: hidden; }

/* ---------- Hero ---------------------------------------------------------- */

.hero { position: relative; padding: clamp(118px, 15vh, 176px) 0 clamp(36px, 5vw, 64px); }
.hero__glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__glow i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.75;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow i:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -12vw; top: -6vw; background: #dfe6f1; }
.hero__glow i:nth-child(2) { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; right: 22vw; bottom: -10vw; background: #efe6cc; animation-duration: 23s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.12); } }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4.5vw, 80px); align-items: end;
}
.hero__copy { padding-bottom: clamp(0px, 2vw, 28px); }
.hero__title { margin-top: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: line-up 1.1s var(--ease) forwards; animation-delay: calc(1.05s + var(--i, 0) * 110ms); }
.hero__title .plus { transform: scale(0) rotate(-180deg); animation: plus-in 0.9s var(--ease) forwards; animation-delay: calc(1.5s + var(--i, 0) * 110ms); }
@keyframes line-up { to { transform: none; } }
@keyframes plus-in { to { transform: none; } }

.hero__lead { margin-top: clamp(22px, 2.6vw, 34px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(26px, 3vw, 40px); }
.fade-up { opacity: 0; transform: translateY(22px); animation: fade-up 1s var(--ease) forwards; animation-delay: calc(1.45s + var(--i, 0) * 110ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(22px, 4vw, 56px); margin-top: clamp(36px, 5vw, 68px); padding-top: clamp(22px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.stats dt { white-space: nowrap; font-size: clamp(1.7rem, 3.4vw, 3.1rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.stats dt .plus { width: 0.42em; height: 0.42em; align-self: center; margin-right: 4px; }
.stats dd { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.35; max-width: 13em; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; overflow: hidden;
  height: clamp(430px, 74vh, 760px);
  border-radius: var(--r-xl);
  background: var(--blue-100);
  clip-path: inset(100% 0 0 0 round var(--r-xl));
  animation: frame-in 1.4s var(--ease-io) 0.95s forwards;
}
@keyframes frame-in { to { clip-path: inset(0 0 0 0 round var(--r-xl)); } }
.hero__frame img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 42%;
  will-change: transform;
}
.hero__frame-zoom { position: absolute; inset: 0; transform: scale(1.25); animation: zoom-out 2s var(--ease) 0.95s forwards; }
@keyframes zoom-out { to { transform: none; } }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  box-shadow: 0 12px 30px -16px rgba(24, 38, 60, 0.4);
}
.chip__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-300); flex: none; }
.chip.is-open .chip__dot { background: #2fa36b; }
.chip.is-open .chip__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease) infinite; }
.hero__chip { position: absolute; top: 18px; right: 18px; z-index: 2; }
.hero__place {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  padding: 14px 18px; border-radius: 20px;
  background: rgba(30, 43, 66, 0.72); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.875rem; line-height: 1.35;
}
.hero__place b { display: block; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.hero__place span { color: rgba(255, 255, 255, 0.72); }

.badge {
  position: absolute; left: clamp(-64px, -4.5vw, -30px); bottom: clamp(28px, 6vw, 72px); z-index: 3;
  width: clamp(112px, 11vw, 156px); aspect-ratio: 1;
  border-radius: 50%; background: #fff;
  box-shadow: 0 24px 50px -22px rgba(24, 38, 60, 0.5);
  display: grid; place-items: center;
}
.badge__spin { position: absolute; inset: 0; will-change: transform; }
.badge__ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge__ring text { font-family: var(--sans); font-size: 13.2px; font-weight: 500; letter-spacing: 0.16em; fill: var(--blue); text-transform: uppercase; }
.badge img { width: 40%; height: auto; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ------------------------------------------------------- */

.marquee { overflow: hidden; padding-block: clamp(26px, 4vw, 54px); border-block: 1px solid var(--line); margin-top: clamp(20px, 3vw, 44px); }
.marquee__shift { will-change: transform; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  font-size: clamp(2.6rem, 8vw, 7.2rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; white-space: nowrap;
  color: var(--navy);
}
.marquee__group span.alt { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--gold); }
.marquee__group span.out { color: transparent; -webkit-text-stroke: 1px var(--blue); }
.marquee__group svg { width: clamp(22px, 3.6vw, 52px); height: auto; aspect-ratio: 1; color: var(--gold); margin-inline: clamp(18px, 3vw, 46px); flex: none; animation: spin 9s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal system ------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 85ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .clip { clip-path: inset(14% 10% 14% 10% round var(--r-xl)); transition: clip-path 1.5s var(--ease-io); }
.js .clip.is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.js .clip > img, .js .clip > .par { transform-origin: center; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--blue-100); }
.frame > img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* ---------- Sobre --------------------------------------------------------- */

.sec-head { display: grid; gap: 22px; }
.sec-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 28px clamp(28px, 5vw, 96px); }
.sec-head--split .lead { justify-self: end; }

.statement {
  margin-top: 26px;
  font-size: clamp(1.85rem, 4.5vw, 4.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.06;
  max-width: 20em; text-wrap: balance;
}
.statement .w { transition: opacity 0.25s linear; }
.statement em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--gold); font-size: 1.06em; }

.sobre__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(48px, 7vw, 104px); align-items: start; }
.sobre__media { position: relative; padding-bottom: clamp(56px, 9vw, 130px); }
.sobre__media .frame--main { aspect-ratio: 3 / 2.15; }
.sobre__media .frame--float {
  position: absolute; right: clamp(-28px, -2vw, -12px); bottom: 0; width: 46%; aspect-ratio: 4 / 3.2;
  border-radius: var(--r-lg); border: 8px solid var(--bg); box-sizing: content-box;
}
.js .sobre__media .frame--float.clip { clip-path: inset(14% 10% 14% 10% round var(--r-lg)); }
.js .sobre__media .frame--float.clip.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.sobre__tag {
  position: absolute; left: 18px; top: 18px; z-index: 2;
}
.sobre__text { display: grid; gap: 22px; padding-top: clamp(0px, 3vw, 44px); color: var(--muted); }
.sobre__text .big { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; }
.sobre__text strong { color: var(--ink); font-weight: 550; }
.sobre__text .btn { justify-self: start; margin-top: 12px; }

/* ---------- Missão / Visão / Valores ------------------------------------- */

.panel { width: min(100% - 24px, 1560px); margin-inline: auto; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.panel--navy { background: var(--navy); color: #fff; }
.panel--navy .eyebrow { color: var(--blue-300); }
.panel--navy .eyebrow svg, .panel--navy .plus { color: var(--gold-300); }
.panel--navy .h2 em, .panel--navy .h3 em { color: var(--gold-300); }
.panel--sand { background: var(--sand); }
.panel--blue { background: var(--blue-100); }
.panel__in { padding-block: clamp(64px, 8vw, 128px); }

.mvv__mark { position: absolute; right: -6%; top: -18%; width: min(46vw, 620px); opacity: 0.05; filter: brightness(0) invert(1); pointer-events: none; will-change: transform; }
.mvv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.mvv__card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 2.6vw, 40px); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; gap: 18px; min-height: 100%;
  transition: transform 0.7s var(--ease), border-color 0.4s;
}
.mvv__card::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  left: calc(var(--mx, 50%) - 210px); top: calc(var(--my, 50%) - 210px);
  background: radial-gradient(closest-side, rgba(205, 176, 90, 0.2), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.mvv__card:hover { transform: translateY(-6px); border-color: rgba(205, 176, 90, 0.4); }
.mvv__card:hover::before { opacity: 1; }
.mvv__n { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-300); }
.mvv__n svg { width: 22px; height: 22px; transition: transform 0.8s var(--ease); }
.mvv__card:hover .mvv__n svg { transform: rotate(180deg); }
.mvv__card .h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); margin-top: clamp(20px, 4vw, 64px); }
.mvv__card p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; }
.mvv__card p strong { color: #fff; font-weight: 500; }

/* ---------- Especialidades ----------------------------------------------- */

.esp__list { margin-top: clamp(40px, 5vw, 76px); border-top: 1px solid var(--line); }
.esp { border-bottom: 1px solid var(--line); }
.esp a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.25fr) auto 52px; align-items: center; gap: clamp(14px, 2.4vw, 40px);
  padding: clamp(20px, 2.3vw, 32px) clamp(4px, 1vw, 16px);
  transition: padding 0.6s var(--ease), color 0.4s;
}
.esp a::before {
  content: ""; position: absolute; inset: 6px -8px; z-index: -1; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: 0 24px 60px -34px rgba(24, 38, 60, 0.35);
  opacity: 0; transform: scale(0.985); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.esp__n { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.esp__t { font-size: clamp(1.5rem, 2.9vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.esp__d { color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.esp__av { display: flex; padding-left: 12px; }
.esp__av img { flex: none; max-width: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -12px; transition: margin 0.6s var(--ease), border-color 0.4s; background: var(--blue-100); }
.esp__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.4s var(--ease), color 0.4s, transform 0.6s var(--ease), border-color 0.4s; }
.esp__go svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .esp a:hover { padding-inline: clamp(16px, 2.2vw, 34px); }
  .esp a:hover::before { opacity: 1; transform: none; }
  .esp a:hover .esp__av img { margin-left: -4px; border-color: var(--paper); }
  .esp a:hover .esp__go { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }
}

/* ---------- Profissionais ------------------------------------------------ */

.filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.filters button {
  padding: 11px 20px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted);
  transition: background 0.4s var(--ease), color 0.3s;
}
.filters button sup { font-size: 0.7em; margin-left: 4px; opacity: 0.6; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.5vw, 22px); margin-top: clamp(32px, 4vw, 56px); transition: opacity 0.3s; }
.team.is-switching { opacity: 0; }
.pro.is-hidden { display: none; }
.pro__media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 4; background: var(--blue-100); }
.pro__media > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 22%); transition: transform 1.2s var(--ease), filter 0.6s; }
.pro__toggle {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.86); color: var(--gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s;
}
.pro__toggle svg { width: 18px; height: 18px; }
.pro__panel {
  position: absolute; inset: 6px; z-index: 2; border-radius: calc(var(--r-lg) - 6px);
  background: rgba(30, 43, 66, 0.9); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 12px;
  transform: translateY(calc(100% + 12px)); visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s 0.7s;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.pro__panel-t { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-300); padding-right: 46px; line-height: 1.2; }
.pro__panel ul { display: grid; gap: 7px; font-size: 0.9rem; line-height: 1.35; }
.pro__panel li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: start; }
.pro__panel li svg { width: 9px; height: 9px; margin-top: 0.42em; color: var(--gold-300); }
.pro__panel p { font-size: 0.875rem; line-height: 1.45; color: rgba(255, 255, 255, 0.84); }
.pro__panel .btn { margin-top: auto; align-self: flex-start; flex: none; }
.pro.is-open .pro__panel { transform: none; visibility: visible; transition: transform 0.7s var(--ease), visibility 0s; }
.pro.is-open .pro__toggle { transform: rotate(135deg); background: var(--gold-300); color: var(--navy); }
.pro.is-open .pro__media > img { transform: scale(1.08); }
@media (hover: hover) {
  .pro__media:hover > img { transform: scale(1.05); }
  .pro__toggle:hover { background: var(--navy); color: #fff; }
  .pro.is-open .pro__toggle:hover { background: #fff; color: var(--navy); }
}
.pro__body { padding: 16px 4px 0; display: grid; gap: 4px; }
.pro__name { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.pro__role { font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.pro__body .link { margin-top: 8px; font-size: 0.9rem; color: var(--blue); justify-self: start; }

.team-cta { margin-top: clamp(44px, 6vw, 84px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--blue-100); }
.team-cta p { font-size: clamp(1.25rem, 2.1vw, 1.9rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; max-width: 24em; }

/* ---------- Dra. Karen ---------------------------------------------------- */

.karen__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.karen__media { position: relative; }
.karen__media .frame { aspect-ratio: 4 / 5; }
.karen__media .frame > img { object-position: 50% 30%; }
.karen__card {
  position: absolute; right: clamp(-28px, -2.4vw, -10px); bottom: clamp(20px, 4vw, 52px); z-index: 2;
  background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 24px 50px -24px rgba(24, 38, 60, 0.45);
  display: grid; gap: 2px; will-change: transform;
}
.karen__card b { font-weight: 500; letter-spacing: -0.02em; font-size: 1.05rem; }
.karen__card span { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }
.karen__text { display: grid; gap: 18px; color: #4d5767; }
.karen__text .h2 { margin: 14px 0 10px; color: var(--ink); }
.karen__text strong { color: var(--ink); font-weight: 550; }
.karen__text .big { font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 14px; border-top: 1px solid rgba(24, 38, 60, 0.18); }
.timeline li { position: relative; padding: 18px 16px 0 0; display: grid; gap: 4px; align-content: start; }
.timeline li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.timeline span { font-size: 0.875rem; line-height: 1.4; color: var(--ink); }
.karen__text .btn { justify-self: start; margin-top: 18px; }

/* ---------- Depoimentos --------------------------------------------------- */

.depo__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.depo__ctrl { display: flex; align-items: center; gap: 10px; margin-top: clamp(24px, 3vw, 44px); }
.depo__ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.4s var(--ease), color 0.3s, border-color 0.3s; }
.depo__ctrl button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.depo__ctrl svg { width: 20px; height: 20px; }
.depo__ctrl button:first-child svg { transform: rotate(180deg); }
.depo__count { margin-left: 12px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.95rem; }
.depo__count b { color: var(--ink); font-weight: 500; }
.depo__stage { position: relative; display: grid; }
.depo__quote-mark { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 9vw, 9rem); line-height: 0.6; color: var(--gold); height: 0.42em; display: block; }
.depo__slide { grid-area: 1 / 1; display: grid; gap: 26px; align-content: start; }
.js .depo__slide { opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), visibility 0s 0.8s; }
.js .depo__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.9s var(--ease) 0.15s, transform 1s var(--ease) 0.15s, visibility 0s; }
.depo__slide blockquote { font-size: clamp(1.6rem, 3.5vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.depo__slide figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.depo__slide figcaption svg { width: 14px; height: 14px; color: var(--gold); }
.depo__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: clamp(30px, 4vw, 56px); }
.depo__bars i { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.depo__bars i::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.depo__bars i.is-done::after { transform: none; }
.depo__bars i.is-active::after { animation: bar var(--dur, 6500ms) linear forwards; }
.depo.is-paused .depo__bars i.is-active::after { animation-play-state: paused; }
@keyframes bar { to { transform: none; } }

/* ---------- Contato ------------------------------------------------------- */

.contato__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.contato__top .lead { color: #4d5767; }
.contato__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contato__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 76px); }
.info { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.info__card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 2.3vw, 32px); display: grid; gap: 10px; align-content: start; transition: transform 0.6s var(--ease); }
.info__card:hover { transform: translateY(-4px); }
.info__card h3 { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 10px; }
.info__card h3 svg { width: 12px; height: 12px; color: var(--gold); }
.info__card p, .info__card address { font-style: normal; font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.info__card small { font-size: 0.9rem; color: var(--muted); letter-spacing: 0; font-weight: 400; display: block; margin-top: 4px; }
.info__card .link { font-size: 0.95rem; color: var(--blue); justify-self: start; margin-top: 6px; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: #dfe4ec; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.6) contrast(1.02); transition: filter 0.6s; }
.map:hover iframe { filter: none; }

/* ---------- Footer -------------------------------------------------------- */

.footer { margin: clamp(12px, 1.4vw, 20px) auto 12px; }
.footer__in { padding-block: clamp(56px, 7vw, 104px) 28px; }
.footer__big { font-size: clamp(3rem, 12.5vw, 12.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; white-space: nowrap; display: flex; align-items: center; gap: 0.16em; }
.footer__big .plus { width: 0.5em; height: 0.5em; animation: spin 14s linear infinite; }
.footer__big em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--gold-300); }
.footer__cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px 28px; margin-top: clamp(44px, 6vw, 88px); padding-top: clamp(30px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer__cols p { color: rgba(255, 255, 255, 0.66); font-size: 0.95rem; max-width: 22em; margin-top: 18px; }
.footer__cols h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 14px; }
.footer__cols li { margin-bottom: 8px; color: rgba(255, 255, 255, 0.82); font-size: 0.975rem; }
.footer__cols li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; padding-bottom: 1px; }
.footer__cols li a:hover { background-size: 100% 1px; color: #fff; }
.social { display: flex; gap: 8px; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; transition: background 0.4s var(--ease), color 0.3s, transform 0.5s var(--ease), border-color 0.3s; }
.social a:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: clamp(36px, 5vw, 64px); font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.to-top { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; }
.to-top i { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s; }
.to-top i svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.to-top:hover i { transform: translateY(-4px); background: var(--gold-300); }

/* ---------- Floating WhatsApp + progress --------------------------------- */

.fab {
  position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -12px rgba(18, 140, 70, 0.6);
  transform: translateY(120px) scale(0.6); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}
.fab.is-on { transform: none; opacity: 1; }
.fab svg { width: 28px; height: 28px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #25d366; animation: ping 2.8s var(--ease) infinite; }
.fab:hover { transform: scale(1.08); }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--gold)); pointer-events: none; }

/* ---------- Video dialog -------------------------------------------------- */

.video { border: 0; padding: 0; background: transparent; width: min(1080px, 100% - 28px); max-width: none; overflow: visible; }
.video::backdrop { background: rgba(16, 24, 38, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video[open] { animation: video-in 0.6s var(--ease); }
@keyframes video-in { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
.video__box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__close { position: absolute; right: 0; top: -58px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.video__close:hover { transform: rotate(90deg); }
.video__close svg { width: 18px; height: 18px; transform: rotate(45deg); }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1180px) {
  .nav a { padding-inline: 10px; font-size: 0.9rem; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .esp a { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.1fr) auto 52px; }
}

@media (min-width: 1021px) and (max-width: 1260px) {
  .badge { bottom: 36%; }
}

@media (max-width: 1020px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: grid; }
  .header__bar { padding: 7px 7px 7px 18px; }
  .header__logo img { height: 30px; }

  .hero__grid { grid-template-columns: 1fr; gap: 76px; }
  .hero__frame { height: clamp(420px, 96vw, 680px); }
  .badge { left: auto; right: 20px; bottom: auto; top: -56px; }
  .hero__chip { right: auto; left: 16px; top: 16px; }
  .hero__place { left: 16px; right: auto; bottom: 16px; }

  .sec-head--split { grid-template-columns: 1fr; }
  .sec-head--split .lead { justify-self: start; }
  .sobre__grid, .karen__grid, .depo__grid, .contato__top, .contato__grid { grid-template-columns: 1fr; }
  .mvv__grid { grid-template-columns: 1fr; }
  .mvv__card .h3 { margin-top: 8px; }
  .esp a { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 8px; padding-block: 22px; }
  .esp__d { grid-column: 2 / -1; grid-row: 2; }
  .esp__av { grid-column: 2; grid-row: 3; margin-top: 6px; }
  .esp__av img { width: 40px; height: 40px; }
  .esp__go { grid-column: 3; grid-row: 1 / span 1; width: 44px; height: 44px; }
  .karen__media { max-width: 560px; }
  .karen__card { right: 14px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .map { min-height: 360px; }
}

@media (max-width: 720px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .pro__panel { padding: 16px 14px 12px; }
  .pro__panel ul { font-size: 0.82rem; }
  .pro__panel p { font-size: 0.8rem; }
  .pro__toggle { width: 40px; height: 40px; right: 8px; top: 8px; }
  .pro__panel .btn { display: none; }
  .stats { grid-template-columns: auto auto auto; justify-content: space-between; gap: 14px; }
  .stats dd { max-width: 9.5em; }
  .stats dd { font-size: 0.8rem; }
  .sobre__media .frame--float { width: 56%; right: -6px; border-width: 6px; }
  .filters { border-radius: 26px; }
  .filters button { padding: 10px 14px; font-size: 0.875rem; }
  .team-cta { flex-direction: column; align-items: flex-start; }
  .btn { min-height: 54px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .footer__base { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__place { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .marquee__track { animation: none; }
  .js .reveal, .js .clip { opacity: 1; transform: none; clip-path: none; }
}

@media print {
  .header, .fab, .intro, .progress, .mobile-menu { display: none !important; }
  .js .reveal, .js .clip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
