/* =========================================================
   Dr. Jhon Arosquipa · Identidade Aros, versão escura
   Grafite + ouro do logo da clínica. Espaçamento compacto
   e profundidade por sombra, a pedido do Dr. Jhon.
   ========================================================= */
:root {
  --ink: #121417;
  --ink-2: #16191d;
  --slab: #1b1f24;
  --slab-2: #232830;
  --line: #2e343d;
  --text: #e8e4dc;
  --muted: #a29d93;
  --gold: #c9a45c;
  --gold-soft: #e2c78f;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .55);

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(40px, 6vw, 56px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h4, p { margin: 0; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead { color: var(--muted); max-width: 64ch; }
.h-section { font-size: clamp(30px, 4vw, 40px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 3px; border: 0;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  box-shadow: 0 2px 0 #8a6d33, 0 8px 18px rgba(201, 164, 92, .25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #8a6d33, 0 14px 28px rgba(201, 164, 92, .32); }
.btn--lg { padding: 14px 26px; letter-spacing: .02em; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* ---------- Cards (com brilho que segue o mouse, ver main.js) ---------- */
.card, .group {
  position: relative; overflow: hidden;
}
.card::after, .group::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 199, 143, .09), transparent 60%);
  transition: opacity .3s;
}
.card:hover::after, .group:hover::after { opacity: 1; }

.card {
  background: var(--slab); border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card p { color: var(--muted); font-size: 15px; }
.card__title { font-size: 26px; }

.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--slab-2); box-shadow: var(--shadow-1);
}
.chip b { color: var(--gold); font-weight: 600; }

/* ---------- Cabeçalho ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(27, 31, 36, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(22, 25, 29, .96); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; transition: padding .3s; }
.nav.is-scrolled .nav__inner { padding-block: 8px; }
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav__links { display: flex; gap: 22px; font-size: 14.5px; }
.nav__links a { color: var(--muted); text-decoration: none; position: relative; padding-block: 4px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 10px 16px; }
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--slab-2); box-shadow: var(--shadow-1); color: var(--text);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative;
  transition: transform .25s var(--ease), background .25s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Rodapé ---------- */
.footer { background: #0d0f11; padding-block: 32px; box-shadow: 0 -6px 18px rgba(0, 0, 0, .4); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; font-size: 14px; }
.footer__inner a { text-decoration: none; }
.footer__inner a:hover { color: var(--gold-soft); }
.footer__muted { color: var(--muted); }
.footer__copy { margin-left: auto; align-self: flex-end; }

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Home: topo (assinatura + foto em arco) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 75% at 80% 40%, rgba(201, 164, 92, .10), transparent 60%),
    radial-gradient(90% 90% at 10% 100%, #1a1d22, var(--ink) 70%);
}
.hero::before { /* textura sutil de grão */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 48px); align-items: center;
  padding-block: clamp(36px, 5vw, 56px) clamp(32px, 4vw, 44px);
}
.hero__text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; letter-spacing: .24em; }
.hero__eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold); }
.hero__name {
  font-weight: 500; font-size: clamp(64px, 9.4vw, 132px); line-height: .88; letter-spacing: -.01em;
  margin: 18px 0 24px; text-wrap: initial;
}
.hero__dr { display: block; font-style: italic; font-weight: 600; font-size: .3em; color: var(--gold-soft); margin-bottom: .2em; letter-spacing: 0; }
.hero__last {
  display: block; padding-left: .5em;
  background: linear-gradient(90deg, var(--text), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 18px; max-width: 470px; color: #cfc9be; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__photo {
  position: relative; justify-self: center;
  width: min(400px, 100%); aspect-ratio: 400 / 540;
}
.hero__arch {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 200px 200px 6px 6px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 164, 92, .25);
}
.hero__photo-img { /* folga vertical para o parallax */
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none;
  object-fit: cover; object-position: 46% 18%;
  filter: saturate(.75) brightness(.86) contrast(1.05); will-change: transform;
}
.hero__arch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 20, 23, .85)); }
.hero__ring { position: absolute; left: -5.5%; top: -4.07%; width: 111%; height: 108.15%; overflow: visible; pointer-events: none; }
.hero__ring path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .8; vector-effect: non-scaling-stroke; }
.hero__ring .hero__ring-inner { opacity: .35; }
.js .hero__ring path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.js .hero__ring .hero__ring-inner { transition-delay: .7s; }
.js .hero__photo.is-visible .hero__ring path { stroke-dashoffset: 0; }
.hero__badge {
  position: absolute; left: -46px; bottom: 2px; display: flex; gap: 12px; align-items: center; text-decoration: none;
  background: rgba(27, 31, 36, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 6px; padding: 14px 18px; box-shadow: var(--shadow-2);
  transition: transform .25s var(--ease);
}
.hero__badge:hover { transform: translateY(-3px); }
.hero__badge b { font-family: var(--display); font-size: 38px; line-height: 1; color: var(--gold-soft); font-weight: 600; }
.hero__badge > span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.hero__stars { display: block; color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.hero__sign {
  position: absolute; right: -64px; top: 60px; writing-mode: vertical-rl;
  font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: .3em; color: var(--muted);
}
.hero__strip { border-top: 1px solid var(--line); background: rgba(22, 25, 29, .7); }
.hero__strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 22px; font-size: 14px; color: var(--muted); }
.hero__strip b { color: var(--text); font-weight: 600; }
.hero__strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ---------- Home: Videoplastic ---------- */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.benefit {
  position: relative; overflow: hidden; isolation: isolate; cursor: default;
  background: var(--slab-2); border-radius: 8px; box-shadow: var(--shadow-1);
  padding: 14px 16px; font-weight: 500; font-size: 15px;
  display: flex; gap: 12px; align-items: center;
  transition: translate .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
/* Preenchimento dourado que nasce do canto dobrado */
.benefit::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 70%);
  clip-path: circle(0 at 100% 0);
  transition: clip-path .55s var(--ease);
}
/* Pontinha dobrada: metade de cima mostra o fundo da página, metade de baixo o verso do papel */
.benefit::after {
  content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0;
  background: linear-gradient(225deg, var(--ink) 50%, #a8843f 50%, #e9d3a3 100%);
  border-bottom-left-radius: 4px;
  box-shadow: -3px 3px 6px rgba(0, 0, 0, .35);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.benefit__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 164, 92, .12); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .3);
  transition: background .35s, box-shadow .35s, transform .5s var(--ease);
}
.benefit__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.benefit__icon svg path { stroke-dasharray: 60; stroke-dashoffset: 0; }

.benefit:hover, .benefit:focus-visible {
  translate: 0 -4px; color: #1a1408; outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .4), 0 22px 40px rgba(201, 164, 92, .22);
}
.benefit:hover::before, .benefit:focus-visible::before { clip-path: circle(150% at 100% 0); }
.benefit:hover::after, .benefit:focus-visible::after { width: 26px; height: 26px; }
.benefit:hover .benefit__icon, .benefit:focus-visible .benefit__icon {
  background: rgba(26, 20, 8, .1); box-shadow: inset 0 0 0 1px rgba(26, 20, 8, .35);
  transform: rotate(-8deg) scale(1.08);
}
.benefit:hover .benefit__icon svg, .benefit:focus-visible .benefit__icon svg { stroke: #1a1408; }
.benefit:hover .benefit__icon svg path, .benefit:focus-visible .benefit__icon svg path { animation: draw .9s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.group { background: var(--slab); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px 20px 6px; min-width: 0; }
.group .eyebrow { display: block; padding-bottom: 8px; }
.proc {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.proc__name { font-weight: 600; transition: color .2s; }
.proc__name { grid-column: 2; align-self: end; }
.proc__desc { grid-column: 2; align-self: start; color: var(--muted); font-size: 14.5px; }
.proc__arrow { grid-row: 1 / 3; grid-column: 3; align-self: center; color: var(--gold); transition: transform .2s var(--ease); }
.proc:hover .proc__name { color: var(--gold-soft); }
.proc:hover .proc__arrow { transform: translateX(5px); }

/* Ilustração didática de cada procedimento (SVG leve, anima só no hover) */
.proc__thumb {
  grid-row: 1 / 3; grid-column: 1;
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2e281d, #1b1f24 70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(201, 164, 92, .25);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.proc__thumb svg { width: 46px; height: 46px; overflow: visible; }
.proc__thumb path, .proc__thumb circle { fill: none; stroke: var(--gold-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.proc__thumb .ill-base { stroke: var(--gold); opacity: .9; }
.proc__thumb .ill-soft { stroke: var(--gold); opacity: .35; stroke-width: 1; }
.proc__thumb .ill-before { stroke-dasharray: 2 3; }
.proc__thumb .ill-dash { stroke-dasharray: 3 3; }
.proc__thumb .ill-fill, .proc__thumb .ill-dot { fill: var(--gold-soft); stroke: none; }
.proc__thumb .ill-arrow { transition: transform .5s var(--ease); }

.proc:hover .proc__thumb, .proc:focus-visible .proc__thumb {
  transform: scale(1.06); box-shadow: 0 10px 22px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(226, 199, 143, .6);
}
.proc:hover .ill-dash, .proc:focus-visible .ill-dash { animation: flow 1.2s linear infinite; }
.proc:hover .ill-arrow, .proc:focus-visible .ill-arrow { transform: translateY(-2px); }
.proc:hover .ill-arrow--in, .proc:focus-visible .ill-arrow--in { transform: scaleX(.85); transform-origin: 24px 20px; }
.proc:hover .ill-dot, .proc:focus-visible .ill-dot { animation: breathe 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.photo-card {
  position: relative; overflow: hidden;
  flex: 1; min-height: 170px; border-radius: var(--radius); box-shadow: var(--shadow-2);
  display: flex; align-items: flex-end; padding: 18px 20px; text-decoration: none;
}
.photo-card::before {
  content: ''; position: absolute; inset: 0;
  background: url('../fotos/dr-jhon-protese.jpg') center 28% / cover;
  transition: transform .6s var(--ease);
}
.photo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, .1) 30%, rgba(18, 20, 23, .92));
}
.photo-card:hover::before { transform: scale(1.05); }
.photo-card__caption { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 17px; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Ilustração: lente da videoendoscopia ---------- */
.vp-intro { display: grid; grid-template-columns: 1fr 300px; gap: clamp(20px, 4vw, 48px); align-items: center; }
.vp-intro > .stack { min-width: 0; }
.lens {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; justify-self: end;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1d2127 0%, var(--ink) 70%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(226, 199, 143, .08);
}
.lens::before { /* halo dourado */
  content: ''; position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(201, 164, 92, .16), transparent 62%);
}
.lens svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lens__rim { fill: none; stroke: var(--line); stroke-width: 1.5; }
.lens__ticks line { stroke: var(--gold); stroke-width: 1.2; opacity: .55; }
.lens__ticks { transform-origin: 200px 200px; animation: spin 90s linear infinite; }
.lens__dash { fill: none; stroke: var(--gold-soft); stroke-width: 1; stroke-dasharray: 2 9; opacity: .6; transform-origin: 200px 200px; animation: spin 40s linear infinite reverse; }
.lens__iris { transition: transform .4s var(--ease); }
.lens__glass { stroke: rgba(226, 199, 143, .35); stroke-width: 1.5; }
.lens__ring { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .45; }
.lens__ring--soft { opacity: .25; }
.lens__sweep { transform-origin: 200px 200px; animation: spin 6s linear infinite; mix-blend-mode: screen; }
.lens__cross { stroke: var(--gold-soft); stroke-width: 1.2; opacity: .8; }
.lens__dot { fill: var(--gold-soft); transform-origin: 200px 200px; animation: breathe 2.4s ease-in-out infinite; }
.lens__shine { fill: #fff; opacity: .06; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.8); } }

/* ---------- Ilustração: perfil em traço (cirurgias faciais) ---------- */
.faces { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; }
.faces__cards { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.faces__cards .card { flex: 1; justify-content: center; }
.face-art {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 70% 30%, #262119 0%, var(--slab) 55%, #15181c 100%);
  box-shadow: var(--shadow-2);
  display: grid; place-items: center; padding: 20px 10px 34px; min-height: 340px;
}
.face-art svg { width: 100%; max-width: 250px; height: auto; overflow: visible; }
.face-art__line { fill: none; stroke: url(#faceLine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(201, 164, 92, .45)); }
.face-art__line--thin { stroke-width: 1; opacity: .5; }
.face-art__brow { fill: var(--gold-soft); stroke: none; opacity: 0; transition: opacity .8s ease 1.2s; filter: drop-shadow(0 0 5px rgba(201, 164, 92, .45)); }
.face-art__detail { stroke-width: 1.5; }
.face-art__iris { fill: var(--gold-soft); opacity: 0; transition: opacity .8s ease 1.6s; }
.face-art.is-visible .face-art__iris, .face-art.is-visible .face-art__brow,
html:not(.js) .face-art__iris, html:not(.js) .face-art__brow { opacity: 1; }
.face-art__lift path { fill: none; stroke: var(--gold-soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 5; animation: flow 2.8s linear infinite; }
.face-art__spark { fill: var(--gold-soft); animation: twinkle 3.2s ease-in-out infinite; }
.face-art__caption { position: absolute; left: 16px; bottom: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* O traço se desenha quando a ilustração entra na tela */
.js .face-art .face-art__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.js .face-art .face-art__line--thin { transition-delay: 1.2s; }
.js .face-art .face-art__lift { opacity: 0; transition: opacity 1s ease 2s; }
.js .face-art.is-visible .face-art__line { stroke-dashoffset: 0; }
.js .face-art.is-visible .face-art__lift { opacity: 1; }

/* ---------- Home: Sobre e contato ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.about__photo {
  min-height: 420px; border-radius: 12px; box-shadow: var(--shadow-2);
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0) 55%, rgba(18, 20, 23, .8)),
    url('../fotos/dr-jhon-centro-cirurgico.jpg') center 30% / cover;
  filter: saturate(.8) brightness(.82);
}
.about a { color: var(--gold-soft); }

.cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #2a2418, var(--slab) 55%); border-radius: 12px; box-shadow: var(--shadow-2);
  padding: clamp(20px, 4vw, 32px);
}

/* ---------- Página de procedimento ---------- */
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--gold-soft); }
.top { display: grid; gap: 24px; }
.top--photo { grid-template-columns: 1.3fr .7fr; align-items: center; }
.top__photo { width: 100%; max-height: 460px; object-fit: cover; object-position: center 20%; border-radius: 12px; box-shadow: var(--shadow-2); filter: brightness(.85) saturate(.9); }
.head { display: flex; flex-direction: column; gap: 10px; }
.head h1 { font-size: clamp(38px, 6vw, 60px); }
.big { font-size: 19px; color: var(--text); }
.proc-cta { font-weight: 500; }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

/* ---------- Animações de entrada (ativadas pelo main.js) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(22, 25, 29, .98); box-shadow: 0 14px 24px rgba(0, 0, 0, .5);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .35s var(--ease), visibility .35s;
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__links a { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links a::after { display: none; }

  .hero__grid, .groups, .cards-2, .about, .top--photo, .vp-intro, .faces { grid-template-columns: 1fr; }
  .lens { justify-self: center; max-width: 240px; }
  .face-art { min-height: 300px; }
  .hero__photo { order: -1; width: min(260px, 68vw); margin-top: 8px; }
  .hero__badge { left: -16px; padding: 10px 14px; }
  .hero__badge b { font-size: 30px; }
  .hero__sign { display: none; }
  .hero__name { margin-top: 14px; }
  .hero__strip i { display: none; }
  .hero__strip-inner { justify-content: flex-start; font-size: 13px; padding-block: 16px; }
  .about__photo { min-height: 320px; }
  .photo-card { min-height: 260px; }
  .proc__thumb { width: 52px; height: 52px; }
  .proc__thumb svg { width: 40px; height: 40px; }
  .footer__copy { margin-left: 0; }
}

/* ---------- Depoimentos ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.score {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--slab); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 12px 18px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.score:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.score__num { font-family: 'Cormorant Garamond', serif; font-size: 44px; line-height: 1; color: var(--gold-soft); }
.score__label { font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; gap: 12px; padding: 22px 22px 18px; }
.review__quote { font-family: 'Cormorant Garamond', serif; font-size: 64px; line-height: .6; height: 26px; color: var(--gold); opacity: .8; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { color: var(--text); font-size: 16px; line-height: 1.6; }
.review__by { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.review__by span { color: var(--muted); font-size: 13px; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.reviews__more { align-self: flex-start; color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.reviews__more span { display: inline-block; transition: transform .2s var(--ease); }
.reviews__more:hover span { transform: translateX(4px); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } .review:nth-child(n+5) { display: none; } }

/* ---------- Videoplastic: painel que delimita a seção inteira ---------- */
.vp { background: var(--ink-2); border-block: 1px solid var(--line); }
.vp-panel {
  position: relative; border-radius: 14px; padding: clamp(20px, 3.5vw, 40px);
  background: linear-gradient(180deg, #1c2026, #15181c);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(201, 164, 92, .18);
}
.vp-panel::before { /* filete dourado no topo marca o início */
  content: ''; position: absolute; top: 0; left: clamp(20px, 3.5vw, 40px); right: clamp(20px, 3.5vw, 40px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.vp-tag { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(201, 164, 92, .1); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .35); }
.vp-panel .benefit, .vp-panel .group { background: var(--slab-2); }
.vp-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.vp-sub h3 { font-size: clamp(24px, 2.6vw, 30px); }
.vp-sub p { color: var(--muted); font-size: 14.5px; }
.vp-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.vp-end p { font-weight: 500; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .face-art .face-art__line { stroke-dashoffset: 0; }
  .js .face-art .face-art__lift { opacity: 1; }
}
