/* ============================================================
   LINK NA BIO — Dra. Thatyane Simão
   Direção: alto padrão · editorial · creme, café e dourado.
   Mobile-first; no desktop vira editorial em duas colunas.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--cafe);
  font: 300 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Grão de papel: textura sutil, sem peso de imagem */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .055;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block;
  font: 400 11px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold  { color: var(--gold-deep); }
.eyebrow--light { color: var(--gold-light); }

/* ============================================================
   CAPA
   ============================================================ */
.cover {
  position: relative;
  /* mobile: capa contida para nome + credenciais + CTA caberem na 1ª dobra */
  height: clamp(400px, 58svh, 540px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.cover picture, .cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.cover img {
  object-fit: cover; object-position: 50% 8%;
  animation: settle 2.4s var(--ease) both;
}
/* dissolve do retrato no marfim */
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(248,244,238,0) 38%, rgba(248,244,238,.72) 66%, var(--ivory) 92%),
    linear-gradient(90deg, rgba(248,244,238,.18), rgba(248,244,238,0) 40%);
}
.cover-in {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.cover-in .eyebrow { font-size: 12px; color: var(--cafe); animation: rise var(--dur) var(--ease) .2s both; }

.bio-name {
  margin-top: 10px;
  font: 400 clamp(44px, 12.5vw, 60px)/.92 var(--serif);
  letter-spacing: -.01em;
  color: var(--ink);
  animation: rise var(--dur) var(--ease) .35s both;
}
.bio-name em {
  font-style: italic; font-weight: 400;
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out 1.2s infinite;
  padding-right: .06em;
}
.rule {
  display: block; width: 56px; height: 1px; margin: 14px auto 10px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: grow 1s var(--ease) .55s both;
}
.bio-tag {
  font: italic 400 18px/1.3 var(--serif);
  color: var(--cafe);
  animation: rise var(--dur) var(--ease) .6s both;
}

/* ============================================================
   CORPO
   ============================================================ */
.bio-body {
  position: relative; z-index: 2;
  max-width: 520px; margin: 0 auto;
  padding: 6px var(--gutter) 40px;
}

/* ---------- Credenciais ---------- */
.creds {
  list-style: none; margin: 0 0 20px; padding: 14px 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.creds li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 0 6px; position: relative;
}
.creds li + li::before {
  content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line-soft);
}
.creds strong { font: 500 22px/1 var(--serif); color: var(--ink); letter-spacing: .01em; }
.creds span   { font: 400 10.5px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cafe); opacity: .78; }

/* ---------- CTA principal ---------- */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 44px;
  padding: 19px 28px;
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius-pill);
  font: 400 12.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.cta-arrow {
  width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 1.3;
  transition: transform .35s var(--ease);
}
.cta:hover { background: var(--cafe); }
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta:active { transform: scale(.99); }

/* ---------- Bloco com título ---------- */
.block { margin-bottom: 46px; }
.block-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 6px;
  font: 400 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep);
}
.block-title::before, .block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Acordeão de procedimentos ---------- */
.acc { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 34px 1fr 22px; align-items: center;
  padding: 19px 2px;
  transition: color .3s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc-n { font: italic 400 15px/1 var(--serif); color: var(--gold); }
.acc-t { font: 400 21px/1.2 var(--serif); color: var(--ink); }
.acc-x { position: relative; width: 14px; height: 14px; justify-self: end; }
.acc-x::before, .acc-x::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold-deep);
  transition: transform .4s var(--ease), opacity .3s;
}
.acc-x::after { transform: rotate(90deg); }
.acc[open] .acc-x::after { transform: rotate(0); opacity: 0; }
.acc summary:hover .acc-t { color: var(--gold-deep); }
.acc-b { padding: 0 2px 22px 34px; animation: rise .5s var(--ease) both; }
.acc-b p { font: 300 14.5px/1.75 var(--sans); color: var(--muted); margin-bottom: 14px; }
.acc-b a {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cafe);
  padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}
.acc-b a::after { content: "→"; letter-spacing: 0; transition: transform .3s var(--ease); }
.acc-b a:hover::after { transform: translateX(4px); }

/* ---------- Assinatura ---------- */
.quote {
  margin: 0 0 46px; padding: 0 8px; text-align: center; position: relative;
}
.quote::before {
  content: "\201C"; display: block; height: 34px;
  font: italic 400 72px/1 var(--serif); color: var(--gold);
}
.quote p { font: italic 400 22px/1.4 var(--serif); color: var(--cafe); }

/* ---------- Instituto ---------- */
.place {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.place-label { font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.place-hours { font: 400 20px/1.3 var(--serif); color: var(--ink); }
.place-hours em { font-style: italic; color: var(--gold-deep); margin-left: 4px; }
.place-city { margin-top: 10px; font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.place-addr { font: 300 14px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.place-map {
  margin-top: 10px;
  font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep);
  padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}

/* ---------- Social + rodapé ---------- */
.social { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }
.social a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--cafe);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.social a:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }

.foot {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 400 10.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.foot .credit a {
  color: var(--gold-deep); padding-bottom: 2px; border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.foot .credit a:hover { color: var(--cafe); border-color: var(--gold); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Desktop: editorial em duas colunas
   ============================================================ */
@media (min-width: 960px) {
  .bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
  .cover {
    position: sticky; top: 0; height: 100vh;
    align-items: flex-end;
  }
  .cover img { object-position: 50% 12%; }
  .cover::after {
    background:
      linear-gradient(180deg, rgba(248,244,238,0) 55%, rgba(248,244,238,.85) 88%, var(--ivory) 100%),
      linear-gradient(270deg, rgba(248,244,238,.55), rgba(248,244,238,0) 30%);
  }
  .cover-in { padding-bottom: 56px; }
  .bio-name { font-size: 76px; }
  .bio-body {
    max-width: 500px; width: 100%;
    padding: 12vh 48px 56px;
    align-self: start;
  }
}

/* ============================================================
   Animações
   ============================================================ */
@keyframes rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow    { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes settle  { from { transform: scale(1.06); filter: saturate(.85); } to { transform: scale(1); filter: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
