/* ============================================================
   Dr. Rafael — Cirurgia Vascular · Editorial Clínico
   Paleta: marfim / azul-marinho profundo / dourado suave
   ============================================================ */

:root {
  --ivory: #faf7f1;
  --cream: #f2ebdf;
  --white: #ffffff;
  --navy: #0e2e44;
  --navy-2: #0a2233;
  --ink: #1e2e3a;
  --slate: #5b6b77;
  --gold: #b8905a;
  --gold-2: #96713c;
  --line: rgba(14, 46, 68, 0.14);
  --wa: #25d366;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 12px rgba(14, 46, 68, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 46, 68, 0.1);
  --radius: 14px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

h1 em, h2 em {
  font-style: italic;
  color: var(--gold-2);
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--slate);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-2);
  box-shadow: 0 14px 40px rgba(184, 144, 90, 0.35);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: #1fb457;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: 0;
  transition: padding-top 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  padding-top: 0.7rem;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.9rem;
  padding-inline: 0;
  transition: min-height 0.4s var(--ease-out), max-width 0.45s var(--ease-out),
    padding-inline 0.4s var(--ease-out);
}

/* Vidro/cápsula no pseudo-elemento: ::before não é ancestral do menu
   mobile (position: fixed), então o backdrop-filter não prende o overlay */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(250, 247, 241, 0.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  box-shadow: 0 12px 36px rgba(14, 46, 68, 0.12);
  transition: opacity 0.4s var(--ease-out), border-radius 0.45s var(--ease-out);
}

/* Ao rolar, a barra vira uma cápsula flutuante e encolhe */
.site-header.is-scrolled .header-inner {
  max-width: min(940px, 100% - 1.6rem);
  min-height: 3.5rem;
  padding-inline: 1.6rem;
}

.site-header.is-scrolled .header-inner::before {
  opacity: 1;
  border-radius: 999px;
}

.site-header.is-scrolled .brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.02rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 60;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px 999px 999px 4px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), width 0.4s var(--ease-out),
    height 0.4s var(--ease-out), font-size 0.4s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav > a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav > a:not(.btn):hover::after,
.nav > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .btn {
  min-height: 2.7rem;
  padding: 0.5rem 1.3rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  z-index: 60;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  width: 1.1rem;
  height: 1.6px;
  background: var(--navy);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.8px) rotate(-45deg);
}

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

.hero {
  padding-top: clamp(7.5rem, 15vw, 10.5rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
  position: relative;
}

/* Aurora suave ao fundo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -12%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 660px;
  max-height: 660px;
  background: radial-gradient(circle, rgba(184, 144, 90, 0.17), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero::after {
  bottom: -20%;
  left: -12%;
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  background: radial-gradient(circle, rgba(14, 46, 68, 0.09), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.1); }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.3rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
}

/* Palavras do título (alvos do anime.js) */
.hero-title .w {
  display: inline-block;
  will-change: transform;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero-creds li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-creds li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* Entrada em cascata (hero e page-heros) */
[data-rise] {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.8s var(--ease-out) forwards;
}

[data-rise="1"] { animation-delay: 0.05s; }
[data-rise="2"] { animation-delay: 0.14s; }
[data-rise="3"] { animation-delay: 0.23s; }
[data-rise="4"] { animation-delay: 0.32s; }
[data-rise="5"] { animation-delay: 0.41s; }
[data-rise="6"] { animation-delay: 0.5s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Retrato em arco */
.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(420px, 88%);
}

.flow-lines {
  position: absolute;
  inset: -12% -18% auto -18%;
  width: 136%;
  z-index: 0;
  pointer-events: none;
}

.flow-lines path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease-out) forwards;
}

.flow-lines path:nth-child(1) { stroke: var(--gold); animation-delay: 0.35s; }
.flow-lines path:nth-child(2) { stroke: rgba(14, 46, 68, 0.3); animation-delay: 0.5s; }
.flow-lines path:nth-child(3) { stroke: rgba(184, 144, 90, 0.45); animation-delay: 0.65s; }

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 14rem 14rem var(--radius) var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  box-shadow: var(--shadow-md);
}

.portrait-frame img,
.portrait-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chip flutuante sobre o retrato/vídeo */
.hero-chip {
  position: absolute;
  z-index: 2;
  right: -0.7rem;
  top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  animation: floaty 6s ease-in-out infinite;
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  animation: dotpulse 2.2s ease-out infinite;
}

.portrait-badge {
  animation: floaty 7s ease-in-out 1.2s infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* Indicador de scroll */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.scroll-cue::after {
  content: "";
  width: 1.5px;
  height: 2.6rem;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: cueflow 2s ease-in-out infinite;
}

@keyframes cueflow {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Nota de resposta rápida sob os CTAs */
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin: -1.4rem 0 2.2rem;
}

.hero-note svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-2);
  flex: none;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.4rem;
}

.portrait-fallback strong {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.portrait-fallback span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.portrait-badge {
  position: absolute;
  z-index: 2;
  left: -0.9rem;
  bottom: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.portrait-badge svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--gold-2);
  flex: none;
}

.portrait-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.3;
}

.portrait-badge small {
  font-size: 0.72rem;
  color: var(--slate);
}

/* ---------- Faixa de números ---------- */

.stats {
  background: var(--navy-2);
  color: var(--white);
  padding-block: clamp(2.8rem, 5vw, 4rem);
}

.stats-grid {
  display: grid;
  gap: 2.2rem;
}

.stat {
  text-align: center;
  padding-inline: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 450;
  color: var(--gold);
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Sobre (home) ---------- */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-figure {
  position: relative;
  justify-self: center;
  width: min(380px, 90%);
}

.about-figure .portrait-frame {
  border-radius: var(--radius) 8rem var(--radius) var(--radius);
}

.about-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  margin-bottom: 1.2rem;
}

.about-copy p {
  color: var(--slate);
  margin-bottom: 1.1rem;
}

.about-signature {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-signature .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--navy);
}

.about-signature small {
  color: var(--slate);
  font-size: 0.82rem;
}

/* ---------- Cards de tratamentos ---------- */

.treatments {
  background: var(--cream);
}

.cards-grid {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleY(1);
}

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-2);
}

.card h3 {
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--slate);
  flex: 1;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}

.card:hover .card-link {
  color: var(--gold-2);
  gap: 0.7rem;
}

.section-cta {
  text-align: center;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

/* ---------- Diferenciais ---------- */

.features-grid {
  display: grid;
  gap: 1.2rem;
}

/* ---------- Hospitais parceiros ---------- */

.partners-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: space-between;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.partner-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.partner-logo-slot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  padding: 0.2rem;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}

.partner-logo-slot img {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: calc(100% - 0.4rem);
  height: calc(100% - 0.4rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.partner-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.feature {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature:hover {
  border-color: rgba(184, 144, 90, 0.5);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px 999px 999px 4px;
  background: rgba(184, 144, 90, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold-2);
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.93rem;
  color: var(--slate);
}

/* ---------- Jornada do paciente ---------- */

.journey {
  background: var(--cream);
}

.steps-grid {
  display: grid;
  gap: 2.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.4rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: rgba(184, 144, 90, 0.4);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2px;
  background: var(--gold);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--slate);
}

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

.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 380px);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.2rem 1.4rem;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  flex: 1;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  flex: none;
}

.testimonial figcaption strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.testimonial figcaption small {
  font-size: 0.78rem;
  color: var(--slate);
}

.swipe-hint {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- FAQ / Accordion ---------- */

.accordion {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
}

.acc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.acc-item.is-open {
  border-color: rgba(184, 144, 90, 0.55);
  box-shadow: var(--shadow-sm);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  min-height: 3.5rem;
}

.acc-icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}

.acc-icon::before {
  width: 0.75rem;
  height: 1.5px;
}

.acc-icon::after {
  width: 1.5px;
  height: 0.75rem;
}

.acc-item.is-open .acc-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.acc-item.is-open .acc-icon::before,
.acc-item.is-open .acc-icon::after {
  background: var(--white);
}

.acc-item.is-open .acc-icon::after {
  transform: rotate(90deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
}

.acc-panel p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.95rem;
  color: var(--slate);
}

/* ---------- CTA final ---------- */

.cta-banner {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(184, 144, 90, 0.22), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 75%);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-bottom: 0.9rem;
}

.cta-banner h2 em {
  color: var(--gold);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.cta-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

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

.site-footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3.2rem, 6vw, 4.5rem) 0 2rem;
  margin-top: clamp(4rem, 9vw, 7rem);
}

.footer-grid {
  display: grid;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 24rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.footer-col a {
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ---------- Botão voltar ao topo (tema vascular) ---------- */

.to-top {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px 999px 999px 4px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 0 10px 30px rgba(14, 46, 68, 0.28);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    background-color 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--navy-2);
  transform: translateY(-4px);
}

.to-top svg {
  width: 1.4rem;
  height: 1.4rem;
  overflow: visible;
}

/* A "célula" sobe pela veia ao passar o mouse — retorno venoso, lúdico */
.to-top .tt-cell {
  transform-box: fill-box;
  transform-origin: center;
}

.to-top:hover .tt-cell {
  animation: cellRise 1.1s var(--ease-out) infinite;
}

@keyframes cellRise {
  0% { transform: translateY(4px); opacity: 0; }
  30% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-9px); opacity: 0; }
}

/* ---------- Filtro de áreas (Tratamentos) ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.4rem);
}

.filter-chip {
  padding: 0.6rem 1.25rem;
  min-height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s,
    transform 0.2s var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.treatment-group.is-hidden {
  display: none;
}

.treatment-group.filtered-in {
  animation: fadeUp 0.5s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FAB WhatsApp ---------- */

.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.wa-fab svg {
  width: 1.7rem;
  height: 1.7rem;
}

.wa-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}

.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Páginas internas ---------- */

.page-hero {
  padding-top: clamp(7.5rem, 14vw, 10rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 450;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.page-hero p {
  color: var(--slate);
  max-width: 38rem;
  font-size: 1.08rem;
}

/* Timeline (sobre) */
.timeline {
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  padding-left: 1.8rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--gold), var(--line));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2.5px solid var(--gold);
}

.timeline-item small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--slate);
}

/* Grupos de tratamentos */
.treatment-group {
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}

.treatment-group:last-child {
  margin-bottom: 0;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.group-label h2 {
  font-size: 1.5rem;
  white-space: nowrap;
}

.group-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* Contato */
.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card .feature-icon {
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  font-size: 1.15rem;
}

.contact-card p {
  font-size: 0.93rem;
  color: var(--slate);
  flex: 1;
}

.contact-card a:not(.btn) {
  font-weight: 700;
  color: var(--navy);
}

.contact-card a:not(.btn):hover {
  color: var(--gold-2);
}

/* Formulário → WhatsApp */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 640px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.form-panel .field {
  margin-bottom: 1.3rem;
}

.form-panel label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-height: 3.1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-panel textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 144, 90, 0.18);
}

.form-note {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.9rem;
  text-align: center;
}

.map-placeholder {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px dashed rgba(14, 46, 68, 0.3);
  background: var(--cream);
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--slate);
  padding: 2rem;
}

.map-placeholder strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
}

/* ---------- Marquee de técnicas ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
  padding-block: 0.95rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-item::after {
  content: "✦";
  font-style: normal;
  color: var(--gold);
  font-size: 0.65rem;
  margin-inline: 2.4rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Vitrine de vídeos ---------- */

.showcase {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(184, 144, 90, 0.16), transparent 52%),
    var(--navy-2);
  color: var(--white);
}

.showcase .section-head h2 {
  color: var(--white);
}

.showcase .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.video-grid {
  display: grid;
  gap: 1.4rem;
}

.video-card {
  border-radius: calc(var(--radius) * 1.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0;
  transition: transform 0.35s var(--ease-out), border-color 0.3s,
    box-shadow 0.35s var(--ease-out);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 144, 90, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-card figcaption {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.video-card h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.video-card figcaption p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.video-card .card-link {
  color: var(--gold);
  margin-top: 0.4rem;
}

.video-card:hover .card-link {
  color: var(--white);
  gap: 0.7rem;
}

/* ---------- Figuras médicas animadas (anime.js) ---------- */

.acc-media {
  margin: 0 1.4rem 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.acc-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.med-figure {
  margin: 0 1.4rem 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.8rem;
}

.med-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.med-figure figcaption {
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
  padding: 0.6rem 0.4rem 0.4rem;
}

.med-figure .draw {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.med-figure .pop {
  transform-box: fill-box;
  transform-origin: center;
}

.med-figure .label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--slate);
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Acessibilidade / movimento reduzido ---------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-rise],
  .hero-title .w {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-track {
    grid-auto-columns: calc((100% - 2.4rem) / 3);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--ivory);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  }

  .nav > a:not(.btn) {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--navy);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }

  .nav .btn {
    min-height: 3.25rem;
    padding: 0.8rem 1.9rem;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out),
      background-color 0.2s;
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .nav > a:not(.btn),
  body.menu-open .nav .btn {
    opacity: 1;
    transform: none;
  }

  body.menu-open .nav > *:nth-child(1) { transition-delay: 0.08s; }
  body.menu-open .nav > *:nth-child(2) { transition-delay: 0.14s; }
  body.menu-open .nav > *:nth-child(3) { transition-delay: 0.2s; }
  body.menu-open .nav > *:nth-child(4) { transition-delay: 0.26s; }
  body.menu-open .nav > *:nth-child(5) { transition-delay: 0.32s; }

  body.menu-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
  }
}
