/* ==========================================================
   Clínica Ângela Grassi
   Paleta: dourado (a partir do logo) e branco
   ========================================================== */

:root {
  --gold: #D4AA2C;
  --gold-light: #F3DC7A;
  --gold-soft: #FBF2D5;
  --gold-deep: #A87A10;      /* destaques em texto grande */
  --bronze: #85600C;         /* texto pequeno dourado (contraste) */
  --metal: linear-gradient(135deg, #A9790D 0%, #D9AE25 30%, #F5DF6E 50%, #D6AA22 70%, #A9790D 100%);
  --metal-soft: linear-gradient(135deg, #C99A1E 0%, #E8C547 45%, #F2DA6B 55%, #D1A425 100%);

  --heading: #3D2F10;        /* marrom dourado escuro para títulos */
  --text: #5F5443;
  --muted: #8E846F;
  --line: #EDE2C6;
  --white: #FFFFFF;
  --ivory: #FFFDF7;
  --cream: #FCF7EA;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow: 0 30px 60px -35px rgba(133, 96, 12, .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold-light); color: var(--heading); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--cream { background: var(--cream); }

/* ---------- Tipografia ---------- */
.gold-text,
.h2 em, .h3 em, .hero__title em {
  font-style: italic;
  font-weight: 300;
  background: var(--metal);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold-deep);
  -webkit-text-fill-color: transparent;
  animation: shine 8s ease-in-out infinite;
  padding-right: .06em;
}
@keyframes shine { 50% { background-position: 100% 0; } }

.h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--heading);
  margin: 0 0 24px;
}
.h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--heading);
  margin: 4px 0 22px;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 14px;
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s, box-shadow .4s, transform .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--gold-deep));
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--gold {
  background: var(--metal-soft);
  background-size: 160% 100%;
  color: var(--heading);
  --fill: var(--white);
  box-shadow: 0 14px 30px -14px rgba(169, 121, 13, .7);
}
.btn--gold:hover { border-color: var(--gold); }
.btn--ghost { color: var(--heading); border-color: var(--gold); --fill: var(--gold-soft); background: var(--white); }
.btn--sm { padding: 12px 22px; font-size: .88rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ---------- Abertura ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--white);
  transition: opacity .7s var(--ease), visibility .7s;
  animation: loaderOut .01s 3.5s forwards; /* caso o JS falhe */
}
.loader img { width: 130px; height: auto; opacity: 0; animation: logoIn 1.2s var(--ease-out) forwards; }
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ---------- Barra de progresso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.progress span { display: block; height: 100%; background: var(--metal); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cabeçalho ---------- */
/* Menu sempre fixo no topo, com a mesma altura e o mesmo fundo durante toda a rolagem */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(133, 96, 12, .3);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__logo { width: 62px; height: auto; flex: none; transition: transform .6s var(--ease-out); }
.brand:hover .brand__logo { transform: scale(1.06) rotate(-3deg); }
.brand__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; color: var(--heading); }
.brand__name small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-top: 7px; }

.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: .92rem; font-weight: 600; color: var(--text); transition: color .3s; }
.nav a:hover, .nav a.is-active { color: var(--gold-deep); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: var(--white); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--gold-deep); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ivory);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-out);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); color: var(--heading); line-height: 1.3;
  border-bottom: 1px solid var(--line); padding: 10px 0;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out), color .3s;
}
.mobile-menu nav a:hover { color: var(--gold-deep); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .26s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .32s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .38s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .44s; }
.mobile-menu .btn { justify-content: center; }

/* ---------- Início ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--gold-soft), transparent 70%),
    linear-gradient(180deg, var(--white), var(--ivory));
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: center; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 24px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.2vw, 6.2rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--heading);
  margin: 0 0 30px;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: var(--wd, 0s); }
.hero__title em { background: none; animation: none; -webkit-text-fill-color: currentColor; }
.hero__title em .w > span {
  background: var(--metal); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 8s ease-in-out infinite;
  padding-right: .06em;
}
.loaded .hero__title .w > span { transform: none; }
html:not(.js) .hero__title .w > span { transform: none; }

.hero__rotator { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--heading); margin: 0 0 16px; font-weight: 300; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; color: var(--gold-deep); font-style: italic; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); filter: blur(6px); transition: opacity .7s var(--ease), transform .8s var(--ease-out), filter .7s; white-space: nowrap; }
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-70%); filter: blur(6px); }

.hero__lead { max-width: 520px; font-size: 1.06rem; margin: 0 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 430px); }
.arch {
  position: relative; z-index: 2;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(133, 96, 12, .55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: scale(1.05); transition: transform 1.6s var(--ease-out); }
.hero__visual:hover .arch img { transform: scale(1.1); }
.arch__outline { position: absolute; z-index: 1; inset: -16px 16px 16px -16px; border: 1.5px solid var(--gold); border-radius: 999px 999px 28px 28px; }

/* ---------- Faixa ---------- */
.marquee { background: var(--metal); background-size: 200% 100%; overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 400; white-space: nowrap; color: var(--heading); }
.marquee__track span:nth-of-type(even) { font-style: italic; }
.marquee__track i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); opacity: .85; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Animação de entrada ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sobre ---------- */
.about { background: var(--white); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__frame img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.about__frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 18px; z-index: 2; pointer-events: none; }
.about__quote {
  position: absolute; right: -24px; bottom: 40px; max-width: 250px;
  background: var(--white); border: 1px solid var(--gold);
  padding: 22px 24px; border-radius: 18px;
  box-shadow: var(--shadow);
}
.about__quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--heading); }

.timeline { list-style: none; padding: 0; margin: 32px 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; color: var(--heading); font-weight: 500; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--metal); }
.timeline span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }

.about__mission { padding: 26px 28px; background: var(--cream); border-radius: 20px; border: 1px solid var(--line); margin-bottom: 34px; }
.about__mission h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--heading); }
.about__mission p { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats div { padding: 18px 16px; border-radius: 18px; background: var(--ivory); border: 1px solid var(--line); text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1; color: var(--gold-deep); }
.stats small { font-size: .82rem; color: var(--muted); }

/* ---------- Áreas ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head__text { max-width: 560px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  min-height: 340px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(243, 220, 122, .35), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.card__icon { width: 74px; height: 74px; margin-bottom: auto; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); transform: translateZ(40px); transition: background .4s, color .4s, transform .6s var(--ease-out); }
.card__icon svg { width: 40px; height: 40px; stroke-width: 1.4; }
.card:hover .card__icon { background: var(--metal); color: var(--white); transform: translateZ(40px) rotate(-8deg) scale(1.05); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--heading); margin: 30px 0 10px; transform: translateZ(26px); }
.card p { margin: 0 0 22px; font-size: .93rem; line-height: 1.6; transform: translateZ(18px); }
.card__more { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--bronze); margin-top: auto; }
.card__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(5px); }
.js .card[data-reveal].is-done { transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out); transition-delay: 0s; }

/* ---------- Tratamentos ---------- */
.treat { background: var(--white); }
.treat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.treat__media { position: relative; }
.treat__stack { position: sticky; top: 14vh; height: 72vh; max-height: 640px; border-radius: 28px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.treat__stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  clip-path: inset(100% 0 0 0);
  filter: sepia(.15) saturate(.95);
  transition: opacity .9s var(--ease), transform 1.6s var(--ease-out), clip-path 1.1s var(--ease-out);
}
.treat__stack img.is-active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
.treat__stack::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(243, 220, 122, .25), transparent 45%); pointer-events: none; }

.treat__item { min-height: 82vh; padding: 9vh 0; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s var(--ease); }
.treat__item.is-active { opacity: 1; }
.treat__item p { margin: 0 0 16px; }
.treat__inline { display: none; }
.note { padding: 16px 20px; background: var(--gold-soft); border-radius: 14px; font-size: .93rem; color: var(--heading); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 22px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--heading); background: var(--ivory); transition: background .3s, border-color .3s; }
.tags li:hover { background: var(--gold-soft); border-color: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pillars div { padding: 18px 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.pillars b { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.15rem; color: var(--heading); }
.pillars span { font-size: .84rem; line-height: 1.4; color: var(--muted); }
.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 8px 0 22px; font-size: .88rem; color: var(--heading); font-weight: 700; }
.meter__bar { height: 8px; border-radius: 99px; background: var(--gold-soft); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--metal); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out); }
.meter.is-in .meter__bar i { transform: scaleX(1); }
.meter b { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--gold-deep); }
.benefits__title { font-weight: 700; color: var(--heading); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.benefits li { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 500; }
.benefits li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat, var(--metal); }

/* ---------- Frase ---------- */
.manifesto { background: var(--gold-soft); padding: clamp(100px, 15vw, 180px) 0; }
.manifesto__text {
  margin: 0 auto; max-width: 1040px; text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.15; letter-spacing: -.025em;
  color: var(--heading);
}
.manifesto__text .mw { opacity: .18; transition: opacity .25s linear, color .25s; }
.manifesto__text .mw.is-lit { opacity: 1; }
.manifesto__text .mw.is-key { font-style: italic; color: var(--gold-deep); }

/* ---------- Como funciona ---------- */
.method { background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 30px 26px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease-out), box-shadow .4s; }
.steps li:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow); }
.steps__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--metal); color: var(--white); margin-bottom: 22px; transition: transform .5s var(--ease-out); }
.steps__icon svg { width: 26px; height: 26px; }
.steps li:hover .steps__icon { transform: rotate(-10deg) scale(1.08); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--heading); margin: 0 0 8px; }
.steps p { margin: 0; font-size: .95rem; }

/* ---------- Depoimentos ---------- */
.testi__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.testi__nav { display: flex; gap: 10px; margin-top: 30px; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); background: var(--white); color: var(--gold-deep); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease-out); }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--metal); color: var(--white); transform: scale(1.06); }

.slider { position: relative; display: grid; background: var(--white); border-radius: 28px; padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 340px; }
.slider::before { content: "“"; position: absolute; top: 4px; left: clamp(26px, 4vw, 48px); font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--gold-light); pointer-events: none; }
.slide { grid-area: 1 / 1; margin: 0; padding-top: 30px; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity .7s var(--ease), transform .9s var(--ease-out); display: flex; flex-direction: column; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { position: relative; margin: 0 0 26px; font-family: var(--serif); font-weight: 350; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--heading); }
.slide figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.dots { position: absolute; right: clamp(32px, 5vw, 60px); bottom: clamp(32px, 5vw, 56px); display: flex; gap: 8px; }
.dots button { width: 26px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: var(--gold-soft); overflow: hidden; position: relative; }
.dots button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.dots button.is-active { width: 48px; }
.dots button.is-active::after { animation: dotfill var(--slide-ms, 6500ms) linear forwards; }
.slider.is-paused .dots button.is-active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ---------- Instagram ---------- */
.insta { background: var(--white); padding: clamp(60px, 8vw, 100px) 0; }
.insta__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); border-radius: 32px; border: 1px solid var(--gold); background: linear-gradient(120deg, var(--gold-soft), var(--white) 70%); }
.insta__ring { flex: none; width: 128px; height: 128px; border-radius: 50%; padding: 4px; background: var(--metal); }
.insta__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 4px solid var(--white); }
.insta__copy { flex: 1; }
.insta__copy .h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.insta__copy p { margin: 0; max-width: 520px; }
.insta .kicker { margin-bottom: 8px; }

/* ---------- Contato ---------- */
.contact { background: var(--ivory); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 8px; }
.contact__list li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.contact__list a { color: var(--heading); font-weight: 600; transition: color .3s; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--gold-deep); }
.ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--metal); color: var(--white); transition: transform .4s var(--ease-out); }
.ico svg { width: 22px; height: 22px; }
.contact__list li:hover .ico { transform: rotate(-12deg) scale(1.06); }

.contact__side { display: grid; gap: 18px; align-content: start; }
.wa-form { background: var(--white); border-radius: 28px; padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wa-form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--heading); margin: 0; }
.wa-form > p { margin: 4px 0 24px; color: var(--muted); font-size: .93rem; }
.field { position: relative; display: block; margin-bottom: 18px; }
.field input, .field textarea { width: 100%; padding: 22px 18px 10px; border: 1px solid var(--line); border-radius: 14px; font: inherit; font-size: 1rem; color: var(--heading); background: var(--ivory); resize: vertical; transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field span { position: absolute; left: 18px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left; transition: transform .3s var(--ease), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.75); color: var(--bronze); }
.field.is-error input { border-color: #C0563B; }
.choices { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-size: .86rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .87rem; font-weight: 600; color: var(--heading); cursor: pointer; transition: background .3s, border-color .3s; }
.choices input:checked + span { background: var(--gold-soft); border-color: var(--gold); }
.choices input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wa-form .btn { width: 100%; justify-content: center; }
.map { border-radius: 24px; overflow: hidden; height: 240px; background: var(--cream); border: 1px solid var(--line); filter: sepia(.25) saturate(.9); transition: filter .5s; }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--cream); border-top: 3px solid transparent; border-image: var(--metal) 1; padding: 70px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.brand--footer .brand__logo { width: 96px; }
.brand--footer .brand__name { font-size: 2rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__nav a { font-weight: 600; color: var(--text); transition: color .3s; }
.footer__nav a:hover { color: var(--gold-deep); }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 84px 0 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
.to-top { color: var(--bronze); font-weight: 600; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6);
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(78%, 340px); order: -1; margin-top: 10px; }

  .about__grid, .testi__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .about__quote { right: 12px; bottom: -24px; }
  .about__copy { margin-top: 20px; }

  .treat__grid { grid-template-columns: 1fr; }
  .treat__media { display: none; }
  .treat__item { min-height: 0; padding: 0 0 70px; opacity: 1; }
  .treat__item:last-child { padding-bottom: 0; }
  .treat__inline { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 22px; margin-bottom: 26px; filter: sepia(.15) saturate(.95); }

  .insta__inner { flex-direction: column; text-align: center; }
  .insta__copy p { margin: 0 auto; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .brand__logo { width: 50px; }
  .brand__name { font-size: 1.2rem; }
  .brand__name small { font-size: .55rem; letter-spacing: .12em; }
  .brand--footer .brand__logo { width: 76px; }
  .brand--footer .brand__name { font-size: 1.6rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .rotator > span { white-space: normal; }
  .hero__rotator { min-height: 2.8em; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 0; }
  .pillars, .benefits { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stats div { padding: 14px 8px; }
  .slider { min-height: 420px; padding-bottom: 70px; }
  .dots { left: 32px; right: auto; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text .mw { opacity: 1; }
}

/* Ajustes finos */
.insta__inner { width: calc(100% - 2 * var(--gutter)); max-width: calc(1240px - 2 * var(--gutter)); }
.brand__name small { white-space: nowrap; }

/* Ícones dos tratamentos (traço dourado + preenchimento suave) */
.card__icon { width: 88px; height: 88px; background: radial-gradient(circle at 30% 25%, var(--white), var(--gold-soft) 70%); border: 1px solid var(--gold-light); box-shadow: 0 12px 24px -16px rgba(133, 96, 12, .5); }
.card__icon svg { width: 58px; height: 58px; stroke-width: 1.4; }
.card__icon .tint { fill: currentColor; fill-opacity: .18; }
.card__icon .band { fill: var(--white); }
.card:hover .card__icon { border-color: transparent; }
.card:hover .card__icon .band { fill: rgba(255, 255, 255, .25); }

/* Faixa da frase com foto de fundo */
.manifesto { position: relative; overflow: hidden; isolation: isolate; background: var(--gold-soft); }
.manifesto::before {
  content: ""; position: absolute; inset: -4%; z-index: -2;
  background: url("../img/relacao-medico-paciente.jpg") center 30% / cover no-repeat;
  animation: slowZoom 24s ease-in-out infinite alternate;
}
.manifesto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 85% at 50% 50%, rgba(255, 252, 242, .9) 0%, rgba(255, 250, 236, .8) 55%, rgba(251, 242, 213, .55) 100%),
    linear-gradient(180deg, rgba(251, 242, 213, .35), rgba(251, 242, 213, .35));
}
.manifesto__text { text-shadow: 0 1px 24px rgba(255, 252, 242, .9); }
.manifesto__text .mw { opacity: .3; }
.manifesto__text .mw.is-lit { opacity: 1; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }
