/* ==========================================================================
   Dra. Mirtes Leite — Bio
   ========================================================================== */
:root{
  --bg:         #F1E7D6;   /* areia — fundo principal */
  --surface:    #E8DCC4;   /* areia levemente mais escura — cartões */
  --line:       rgba(43,38,28,0.13);
  --text:       #2F2A21;   /* marrom‑carvão quente, para texto */
  --text-mute:  #7C7160;   /* marrom‑acinzentado suave */
  --sage:       #7E9673;
  --sage-deep:  #56705F;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1{ font-family: var(--serif); margin: 0; font-weight: 500; }

.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.card{
  width: 100%;
  max-width: 460px;
  padding: 56px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo{
  margin-top: 8px;
  width: 156px; height: 156px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.photo img{
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: saturate(0.92) contrast(1.02);
}

.name{ font-size: 1.7rem; letter-spacing: -0.01em; }
.role{
  margin: 8px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.crm{
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* breathing signature */
.breath{
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 220px;
  margin: 26px 0 28px;
}
.breath span{
  flex: 1; height: 1px; background: var(--line);
  animation: breathe-line 4.6s ease-in-out infinite;
}
.breath i{
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  flex-shrink: 0; font-style: normal;
  animation: breathe-dot 4.6s ease-in-out infinite;
}
@keyframes breathe-line{
  0%, 100%{ transform: scaleX(0.55); opacity: 0.55; }
  50%{ transform: scaleX(1); opacity: 1; }
}
@keyframes breathe-dot{
  0%, 100%{ transform: scale(0.85); box-shadow: 0 0 0 0 rgba(126,150,115,0.35); }
  50%{ transform: scale(1.15); box-shadow: 0 0 0 6px rgba(126,150,115,0); }
}
@media (prefers-reduced-motion: reduce){
  .breath span, .breath i{ animation: none; }
}

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--sage);
  color: #1B2617;
  font-size: 0.98rem; font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover{ transform: translateY(-2px); background: #8FA982; }

.links{
  width: 100%;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.accordion:has(.item[aria-expanded="true"]){ border-color: var(--sage); }

.item{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}

.item--link{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.25s ease;
}
.item--link:hover{ border-color: var(--sage); }

.item__plus{
  position: relative;
  width: 12px; height: 12px; flex-shrink: 0;
}
.item__plus::before, .item__plus::after{
  content: ""; position: absolute; background: var(--text-mute);
  transition: transform 0.3s ease, background 0.3s ease;
}
.item__plus::before{ top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.item__plus::after{ left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.item[aria-expanded="true"] .item__plus::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }
.item[aria-expanded="true"] .item__plus::before{ background: var(--sage); }

.item__arrow{ color: var(--text-mute); font-size: 0.95rem; flex-shrink: 0; }
.item--link:hover .item__arrow{ color: var(--sage); }

.panel-wrap{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.panel-wrap.is-open{ grid-template-rows: 1fr; }

.panel{
  overflow: hidden;
  min-height: 0;
  text-align: left;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.panel p, .panel .tags{
  margin: 0 20px 16px;
}
.panel p:first-child{ margin-top: 2px; }
.panel p:last-child, .panel .tags{ margin-bottom: 18px; }

.tags{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tags li{
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.footer{
  margin-top: 40px;
  color: var(--text-mute);
  font-size: 0.8rem;
}
.footer p{ margin: 0 0 6px; }
.footer__rights{ opacity: 0.7; }
.footer__credit{ opacity: 0.7; margin-bottom: 0; }
.footer__credit a{ text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.footer__credit a:hover{ color: var(--sage); }

@media (max-width: 380px){
  .card{ padding: 44px 20px 32px; }
}