/* ==========================================================
   Dra. Andrieli Rossa · Bio do Instagram
   Mobile first. Tokens iguais aos da landing principal.
   ========================================================== */

:root {
  --cream: #F8F4EE;
  --cream-2: #F2EBE1;
  --champagne: #E8DCCB;
  --paper: #FFFDFA;
  --line: #E4D8C7;
  --line-soft: #EDE4D7;

  --ink: #2E231C;
  --ink-2: #5A4A3E;
  --muted: #76675B;

  --gold: #B08A56;
  --gold-soft: #CDB189;
  --gold-deep: #8A6636;
  --gold-grad: linear-gradient(180deg, #BC9763 0%, #946E3E 100%);
  --gold-grad-hover: linear-gradient(180deg, #B08A56 0%, #85612F 100%);
  --gold-light-grad: linear-gradient(180deg, #EBD9B6 0%, #D5B685 100%);

  --bronze-1: #3A2A1F;
  --bronze-2: #6A4D33;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(70, 48, 28, .05), 0 4px 14px rgba(70, 48, 28, .06);
  --shadow-md: 0 2px 6px rgba(70, 48, 28, .06), 0 14px 34px rgba(70, 48, 28, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --gutter: 20px;
  /* altura do retrato: cabe junto com nome, local e CTA na primeira tela do celular */
  --ph: clamp(188px, 30vh, 270px);
}
@supports (height: 1svh) { :root { --ph: clamp(188px, 30svh, 270px); } }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 420px at 50% 0, rgba(214, 186, 140, .26), rgba(214, 186, 140, 0) 70%),
    var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.15; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Estrutura ---------- */

.page {
  position: relative;
  overflow-x: clip;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(18px + env(safe-area-inset-bottom));
}
.deco-line {
  position: absolute; top: 0; right: 0;
  width: 92px; height: 440px;
  color: var(--gold-soft); opacity: .55;
  pointer-events: none;
}
.layout { position: relative; }

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

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
/* reflexo de luz, como na landing: no hover (desktop) e discreto em loop no toque */
.btn::after {
  content: ""; position: absolute; z-index: 1; top: -10%; bottom: -10%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .36) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
@keyframes btnShine { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(360%) skewX(-18deg); } }
@keyframes btnShineLoop { 0% { transform: translateX(-160%) skewX(-18deg); } 42%, 100% { transform: translateX(360%) skewX(-18deg); } }
@media (hover: hover) and (pointer: fine) { .btn:hover::after { animation: btnShine .9s var(--ease); } }
@media (hover: none), (pointer: coarse) { .btn::after { animation: btnShineLoop 3.2s var(--ease) infinite; animation-delay: var(--shine-delay, 0s); } }

.btn--gold {
  color: #fff;
  background: var(--gold-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px rgba(120, 84, 40, .22);
}
.btn--light {
  color: #3A2A1D;
  background: var(--gold-light-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 16px rgba(0, 0, 0, .18);
}
@media (hover: hover) {
  .btn--gold:hover { background: var(--gold-grad-hover); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 22px rgba(120, 84, 40, .28); transform: translateY(-1px); }
  .btn--light:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 22px rgba(0, 0, 0, .22); }
}
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- Perfil ---------- */

.profile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: calc(18px + env(safe-area-inset-top)) 0 26px;
}
.profile__inner { display: flex; flex-direction: column; align-items: center; width: 100%; }

.profile__mono img { width: auto; height: 40px; }

.portrait {
  position: relative;
  height: var(--ph);
  aspect-ratio: 4 / 5;
  margin-top: 16px;
}
.portrait::before { /* arco dourado externo */
  content: ""; position: absolute; inset: -8px;
  border: 1px solid rgba(176, 138, 86, .45);
  border-radius: 999px 999px 22px 22px;
  pointer-events: none;
}
.portrait__frame {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 16px 16px;
  background: var(--champagne);
  box-shadow: 0 22px 44px -22px rgba(70, 48, 28, .45), inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.profile__name {
  margin-top: 16px;
  font-family: var(--script); font-weight: 400;
  font-size: 46px; line-height: 1;
  color: var(--ink);
  letter-spacing: 0;
}
.profile__role {
  margin-top: 4px;
  font-family: var(--serif); font-size: 11.5px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep);
}
.profile__place {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 5px 14px 5px 10px;
  border-radius: 30px;
  background: rgba(255, 253, 250, .7);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--ink-2);
}
.profile__place .icon { width: 15px; height: 15px; color: var(--gold-deep); }
.profile__lead {
  margin-top: 12px;
  max-width: 330px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}
.profile__cta { width: 100%; max-width: 360px; margin-top: 20px; }

/* ---------- Links ---------- */

.links { display: grid; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 70px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.link-card:active { transform: scale(.985); }
.link-card__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--gold-deep);
}
.link-card__icon .icon { width: 21px; height: 21px; }
.link-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.link-card__text strong { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.link-card__text span { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.link-card__go { width: 18px; height: 18px; color: var(--gold); transition: transform .3s var(--ease); }
@media (hover: hover) {
  .link-card:hover { box-shadow: inset 0 0 0 1px var(--gold-soft), var(--shadow-md); transform: translateY(-1px); }
  .link-card:hover .link-card__go { transform: translateX(3px); }
}

/* ---------- Blocos ---------- */

.block { padding-top: 46px; scroll-margin-top: 16px; }
.block__head { margin-bottom: 18px; }
.block__head h2 { margin-top: 6px; font-size: 27px; }
.block__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }

/* Procedimentos */
.procs { display: grid; gap: 10px; }
.proc {
  display: flex; gap: 16px;
  padding: 20px 20px 16px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.proc__num {
  flex: none; padding-top: 3px;
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1;
  color: var(--gold);
}
.proc__tag {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.proc__tag span {
  padding: 3px 9px; border-radius: 20px;
  background: var(--gold-grad); color: #fff;
  font-size: 10px; letter-spacing: .1em;
}
.proc__title { margin-top: 6px; font-size: 22px; }
.proc__text { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.proc__more {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin-top: 4px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--gold-deep);
}
.proc__more .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
@media (hover: hover) { .proc__more:hover .icon { transform: translateX(4px); } }

.proc--featured {
  display: block;
  padding: 24px 22px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(214, 177, 122, .30) 0%, rgba(214, 177, 122, 0) 60%),
    linear-gradient(160deg, #FBF5EB 0%, var(--champagne) 100%);
  box-shadow: inset 0 0 0 1px rgba(205, 177, 137, .55), var(--shadow-sm);
}
.proc--featured .proc__title { font-size: 34px; margin-top: 8px; }
.proc--featured .proc__tag { color: var(--gold-deep); }

/* Resultados: faixa horizontal com rolagem nativa */
.strip-nav { display: none; gap: 8px; }
.strip-nav__btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--paper); color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, opacity .25s;
}
.strip-nav__btn .icon { width: 18px; height: 18px; }
.strip-nav__btn:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.strip-nav__btn:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .strip-nav { display: flex; } }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 76%;
  gap: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; }
.strip img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px;
  background: var(--champagne);
  box-shadow: var(--shadow-sm);
}

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin-top: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--gold-deep);
}
.text-link .icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
@media (hover: hover) { .text-link:hover .icon { transform: translateX(4px); } }

/* Localização + CTA final */
.visit {
  position: relative; overflow: hidden;
  padding: 30px 22px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(214, 177, 122, .28) 0%, rgba(214, 177, 122, 0) 55%),
    linear-gradient(115deg, var(--bronze-1) 0%, var(--bronze-2) 100%);
  box-shadow: 0 20px 44px -18px rgba(58, 42, 31, .45);
}
.visit__line { position: absolute; inset: 0; width: 100%; height: 100%; color: #D9B77F; opacity: .3; pointer-events: none; }
.visit > *:not(.visit__line) { position: relative; }
.visit .eyebrow { color: #D9B77F; }
.visit h2 { margin-top: 10px; font-size: 25px; color: #FBF3E6; }
.visit__pre { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 13.5px; color: #E8DACA; }
.text-link--light { color: #EBD9B6; }
.visit .text-link { display: flex; width: fit-content; margin-inline: auto; }
.visit__cta { display: flex; width: 100%; max-width: 340px; margin: 8px auto 0; }

/* ---------- Rodapé ---------- */

.footer {
  margin-top: 40px;
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px; line-height: 1.8; color: var(--muted);
}
.footer__logo { display: inline-block; margin-bottom: 12px; }
.footer__logo img { width: auto; height: 38px; }
.footer__credit a {
  display: inline-block; padding: 12px 4px; margin: -12px -4px;
  color: var(--ink-2); text-decoration: underline;
  text-decoration-color: var(--gold-soft); text-underline-offset: 3px;
}
.footer__credit a:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

/* ---------- Popup ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(46, 35, 28, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fadeIn .3s var(--ease);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 36px 22px calc(24px + env(safe-area-inset-bottom));
  background: var(--cream);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 70px rgba(46, 35, 28, .3);
  animation: sheetIn .4s var(--ease);
}
@supports (height: 1dvh) { .modal__dialog { max-height: 92dvh; } }
.modal__dialog::before { /* alça do bottom sheet */
  content: ""; position: absolute; left: 50%; top: 10px;
  width: 44px; height: 4px; margin-left: -22px;
  border-radius: 4px; background: var(--line);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: none; color: var(--ink-2); cursor: pointer;
  transition: background .25s;
}
.modal__close:hover { background: rgba(176, 138, 86, .12); }
.modal__close .icon { width: 22px; height: 22px; }
.modal .eyebrow { margin-bottom: 8px; }
.modal__title { font-size: 27px; margin-bottom: 8px; }
.modal__desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 22px; padding-right: 8px; }

.form .field { margin-bottom: 16px; }
.form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.form input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font: 16px/1 var(--sans); /* 16px evita o zoom automático do iOS */
  -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.form input::placeholder { color: #A7998C; }
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 86, .18); }
.form input[aria-invalid="true"] { border-color: #B4533C; }
.field__error { margin-top: 6px; font-size: 13px; color: #A3422B; }
.field__error:empty { display: none; }
.form .btn { margin-top: 6px; }
.form__note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Animações (discretas; não atrasam o CTA) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.profile__mono { animation: rise .55s var(--ease) both; }
.portrait { animation: pop .7s var(--ease) .05s both; }
.profile__name { animation: rise .6s var(--ease) .14s both; }
.profile__role, .profile__place { animation: rise .6s var(--ease) .2s both; }
.profile__lead { animation: rise .6s var(--ease) .24s both; }
.profile__cta { animation: rise .6s var(--ease) .28s both; }
.links .link-card { animation: rise .6s var(--ease) both; }
.links .link-card:nth-child(1) { animation-delay: .34s; }
.links .link-card:nth-child(2) { animation-delay: .39s; }
.links .link-card:nth-child(3) { animation-delay: .44s; }
.links .link-card:nth-child(4) { animation-delay: .49s; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .profile__name { font-size: 40px; }
  .link-card { gap: 12px; }
}

/* Tablet: mesma experiência, mais larga e com links em grade */
@media (min-width: 640px) {
  :root { --gutter: 32px; --ph: clamp(230px, 32vh, 300px); }
  @supports (height: 1svh) { :root { --ph: clamp(230px, 32svh, 300px); } }
  .page { max-width: 720px; }
  .deco-line { width: 140px; height: 560px; right: 0; }
  .profile { padding-top: 40px; padding-bottom: 34px; }
  .profile__mono img { height: 48px; }
  .profile__name { font-size: 56px; margin-top: 20px; }
  .profile__lead { max-width: 420px; font-size: 15.5px; }
  .links { grid-template-columns: 1fr 1fr; gap: 12px; }
  .block { padding-top: 56px; }
  .block__head h2 { font-size: 32px; }
  .procs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proc--featured { grid-column: 1 / -1; padding: 30px 30px 22px; }
  .proc--featured .proc__text { max-width: 480px; }
  .proc { padding: 22px 22px 16px; }
  .strip { grid-auto-columns: calc((100% - 20px) / 2.4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .visit { padding: 40px 32px 32px; }
  .visit h2 { font-size: 30px; }
  .footer { margin-top: 52px; }
  .modal { place-items: center; padding: 20px; }
  .modal__dialog { max-width: 440px; max-height: calc(100vh - 40px); padding: 40px 36px 30px; border-radius: var(--radius-lg); animation-name: dialogIn; }
  @supports (height: 1dvh) { .modal__dialog { max-height: calc(100dvh - 40px); } }
  .modal__dialog::before { left: 36px; right: 36px; top: 0; width: auto; height: 3px; margin: 0; border-radius: 0 0 3px 3px; background: var(--gold-grad); }
  .modal__title { font-size: 30px; }
}

/* Desktop: perfil fixo à esquerda (CTA sempre visível) e conteúdo à direita */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --ph: clamp(210px, 30vh, 320px); }
  @supports (height: 1svh) { :root { --ph: clamp(210px, 30svh, 320px); } }
  .page { max-width: 1180px; padding-top: 28px; }
  .deco-line { width: 180px; height: 720px; right: 0; opacity: .45; }
  .layout {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 56px; align-items: start;
  }
  .profile { position: sticky; top: 24px; padding: 0; }
  .profile__inner {
    padding: 28px 30px 28px;
    border-radius: 22px;
    background:
      radial-gradient(90% 60% at 50% 0%, rgba(214, 186, 140, .30), rgba(214, 186, 140, 0) 70%),
      var(--paper);
    box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-md);
  }
  .profile__name { font-size: 48px; white-space: nowrap; }
  .profile__mono img { height: 44px; }
  .profile__cta { max-width: none; }
  .content { padding-top: 6px; }
  .block { padding-top: 60px; }
  .block__head h2 { font-size: 34px; }
  .strip { grid-auto-columns: calc((100% - 20px) / 3); }
  .proc--featured .proc__title { font-size: 40px; }
  .footer { margin-top: 64px; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: 420px minmax(0, 1fr); gap: 72px; }
}
