@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fontes/playfair-display-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fontes/playfair-display-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url("./assets/fontes/raleway-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Raleway;
  src: url("./assets/fontes/raleway-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5efe6;
  --porcelain: #e9dcc9;
  --ink: #231f20;
  --olive: #6e5b3f;
  --muted: #625748;
  --rule: #d7cbb9;
  --display: "Playfair Display", Georgia, serif;
  --body: Raleway, Arial, sans-serif;
  --ease: cubic-bezier(.5, 1, .89, 1);
  --gutter: clamp(1.25rem, 5.5vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
p, h1 { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
::selection { color: var(--ink); background: #dcc7a4; }
.frame { width: min(55rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.profile { isolation: isolate; position: relative; }
.profile-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  max-width: 79rem;
  margin-inline: auto;
  overflow: hidden;
}
.profile-room { width: 100%; height: 100%; object-fit: cover; object-position: 57% 47%; opacity: .5; }
.profile-scene::before, .profile-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.profile-scene::before {
  background: linear-gradient(90deg, var(--paper), rgb(245 239 230 / 95%) 15%, rgb(245 239 230 / 69%) 38%, rgb(245 239 230 / 10%) 69%, rgb(245 239 230 / 9%) 79%, var(--paper));
}
.profile-scene::after {
  background: linear-gradient(0deg, var(--paper), rgb(245 239 230 / 57%) 16%, transparent 47%);
}
.masthead { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-block: 1.55rem .65rem; }
.wordmark { width: 6.75rem; height: auto; }
.place { display: inline-flex; align-items: center; gap: .4rem; color: #524633; font-size: .875rem; font-weight: 600; }
.profile-body { position: relative; display: grid; align-items: center; min-height: 20.45rem; }
.portrait {
  position: absolute;
  inset: -1.25rem 4% 0 auto;
  width: 43%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, black 0 61%, rgb(0 0 0 / 95%) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0 61%, rgb(0 0 0 / 95%) 72%, transparent 100%);
}
.portrait img {
  width: min(100%, 20.75rem);
  height: auto;
  /* Compensa a margem transparente de cada retrato para alinhar o rosto. */
  translate: var(--portrait-offset-x, 0%) 0;
}
.identity { position: relative; width: 54%; padding: 1.25rem 0 2.5rem; }
h1 {
  font: 400 clamp(3.3rem, 6.2vw, 4.8rem)/1.015 var(--display);
  letter-spacing: -.044em;
}
h1 em { display: block; color: var(--olive); font-weight: inherit; }
.specialty { margin-top: 1.15rem; font-size: 1.125rem; }
.credentials { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.credentials span + span { display: inline-flex; gap: .6rem; align-items: center; }
.credentials span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #8c7857; }

.links { position: relative; padding-top: .5rem; }
.banner-grid, .social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.banner-grid { grid-auto-rows: 1fr; gap: .875rem; }
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: .8rem;
  min-height: 9.3rem;
  padding: 1.35rem 1.75rem;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(140 120 87 / 24%);
}
.banner-photo, .banner::after { position: absolute; z-index: -1; inset: 0; }
.banner-photo { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; pointer-events: none; }
.banner-label { display: block; }
.banner-title { display: block; font: 400 clamp(1.55rem, 2.65vw, 1.97rem)/1.13 var(--display); letter-spacing: -.025em; }
.banner-title em { display: block; font-weight: 400; }
.banner-detail { display: block; margin-top: .55rem; font-size: .875rem; line-height: 1.48; }

.booking, .blog {
  grid-column: 1 / -1;
  padding-inline: 2rem;
}
.booking {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 8px 20px rgb(35 31 32 / 12%);
}
.booking .banner-photo { width: 64%; left: auto; object-position: 55% 48%; }
.booking::after { background: linear-gradient(90deg, var(--ink) 0 39%, rgb(35 31 32 / 92%) 55%, rgb(35 31 32 / 53%) 79%, rgb(35 31 32 / 63%)); }
.booking .banner-title { font-size: clamp(1.65rem, 3.1vw, 2.2rem); }
.booking .banner-detail { color: #f1e8d9; margin-top: .25rem; }
.booking-icon { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; flex: none; border: 1px solid rgb(245 239 230 / 58%); border-radius: 50%; }
.booking-icon svg { width: 1.8rem; height: 1.8rem; }
.clinic .banner-label, .certification .banner-label { max-width: 80%; }
.clinic, .blog { background: var(--porcelain); }
.clinic .banner-photo { left: auto; width: 68%; object-position: 40% 61%; }
.clinic::after { background: linear-gradient(90deg, var(--porcelain) 0 31%, rgb(233 220 201 / 98%) 42%, rgb(233 220 201 / 75%) 55%, rgb(233 220 201 / 7%) 76%); }
.clinic .banner-title em, .blog .banner-title em { color: #635035; }
.clinic .banner-detail, .blog .banner-detail { color: #504331; }
.certification { color: var(--paper); background: #65543d; }
.certification .banner-photo { left: auto; width: 60%; object-position: 77% 42%; }
.certification::after { background: linear-gradient(90deg, #65543d 0 36%, rgb(101 84 61 / 94%) 48%, rgb(81 65 44 / 58%) 64%, rgb(55 43 29 / 12%)); }
.certification .banner-title em { color: #f2e3ca; }
.blog .banner-photo {
  left: auto;
  width: min(52%, 18rem);
  object-position: center 16%;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 16%) 24%, black 43%);
  mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 16%) 24%, black 43%);
}
.blog .banner-label { max-width: 65%; }
.blog .banner-title em { display: inline-block; }
.social-links { margin-top: 1.25rem; border-block: 1px solid var(--rule); }
.social {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 5rem;
  padding: .9rem 1.75rem;
  position: relative;
  text-decoration: none;
}
.social + .social::before { content: ""; position: absolute; left: 0; height: 2rem; width: 1px; background: var(--rule); }
.social-icon { flex: none; color: var(--olive); }
.clinic:last-child, .social:only-child { grid-column: 1 / -1; }
.social:only-child { flex-direction: row; align-items: center; }
.social-title { display: block; font-size: 1rem; font-weight: 600; }
.social-handle { display: block; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding-block: .8rem 1.9rem;
  color: #6b604f;
  font-size: .77rem;
  line-height: 1.5;
}
.tax-id { display: block; margin-top: .1rem; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.05rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: #b9ac98; text-underline-offset: .24em; }

.directory { padding-block: clamp(2rem, 6vw, 4rem) 2rem; }
.directory h1 { margin-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.directory h1 em { display: inline; }
.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.directory-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .65rem 1rem;
  min-height: 6.2rem;
  color: var(--ink);
  background: #eee4d6;
  border-radius: .8rem;
  text-decoration: none;
}
.directory-portrait {
  flex: 0 0 4.1rem;
  height: 5.4rem;
  overflow: hidden;
  mask-image: linear-gradient(black 75%, transparent);
}
.directory-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; translate: var(--portrait-offset-x) 0; }
.directory-name { display: block; font: 400 1.45rem/1.2 var(--display); }
.directory-detail { display: block; margin-top: .3rem; color: var(--muted); font-size: .83rem; }
.directory-card:hover .directory-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.directory + .footer { border-top: 1px solid var(--rule); }

@media (hover: hover) and (pointer: fine) {
  .banner:hover .banner-detail, .social:hover .social-title { text-decoration: underline; text-underline-offset: .23em; }
  .footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  .profile-room { animation: room-arrival 1.8s var(--ease) both; transform-origin: 70% 50%; }
  .portrait img { animation: portrait-arrival 1.4s var(--ease) both; }
  .identity h1 { animation: text-arrival 1.4s var(--ease) both; }
  .identity p { animation: text-arrival 1.1s var(--ease) .08s both; }
  .identity .credentials { animation-delay: .16s; }
  @keyframes room-arrival { from { transform: scale(1.1); } to { transform: scale(1); } }
  @keyframes portrait-arrival { from { opacity: .3; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes text-arrival { from { opacity: .25; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .banner-photo { transition: transform .5s var(--ease); transform-origin: right center; }
  .banner:hover .banner-photo { transform: scale(1.035); }
}

@media (max-width: 46rem) {
  .footer { flex-direction: column; align-items: flex-start; padding-top: 1rem; }
  .social { padding-inline: 1.1rem; }
}
@media (max-width: 40rem) {
  .directory-list { grid-template-columns: 1fr; }
  :root { --portrait-height: clamp(12rem, 52vw, 16.3rem); }
  .masthead { padding-block: 1rem .3rem; }
  .wordmark { width: 5.6rem; }
  .place { font-size: .8125rem; }
  .profile-scene { bottom: auto; height: calc(4.15rem + var(--portrait-height)); }
  .profile-room { opacity: .52; object-position: 49% 55%; }
  .profile-scene::before { background: linear-gradient(90deg, rgb(245 239 230 / 37%), rgb(245 239 230 / 27%) 45%, rgb(245 239 230 / 21%)); }
  .profile-scene::after { background: linear-gradient(to top, var(--paper), rgb(245 239 230 / 62%) 17%, transparent 48%, rgb(245 239 230 / 42%) 100%); }
  .profile-body { display: flex; flex-direction: column; min-height: 0; }
  .portrait { position: relative; inset: auto; width: 100%; height: var(--portrait-height); margin-top: .3rem; }
  .portrait img { width: clamp(12.3rem, 55vw, 16.75rem); }
  .identity { width: 100%; padding: 0 0 1.45rem; margin-top: -.22rem; text-align: center; }
  h1 { font-size: clamp(2.12rem, 10.25vw, 3.25rem); line-height: 1.13; letter-spacing: -.041em; }
  h1 em { display: inline; }
  .specialty { margin-top: .4rem; font-size: 1rem; }
  .credentials { margin-top: .35rem; font-size: .8125rem; justify-content: center; }
  .links { padding-top: .2rem; }
  .banner-grid { grid-template-columns: 1fr; gap: .7rem; }
  .banner { min-height: 7.7rem; border-radius: .7rem; padding: 1.12rem 1.25rem; }
  .booking .banner-title { font-size: clamp(1.4rem, 6vw, 1.82rem); }
  .booking .banner-detail { font-size: .83rem; max-width: 27ch; }
  .booking .banner-photo { width: 58%; }
  .booking::after { background: linear-gradient(90deg, var(--ink) 0 41%, rgb(35 31 32 / 92%) 63%, rgb(35 31 32 / 48%)); }
  .booking-icon { width: 2.5rem; height: 2.5rem; }
  .booking-icon svg { width: 1.55rem; height: 1.55rem; }
  .banner-title { font-size: clamp(1.55rem, 6.6vw, 1.95rem); }
  .banner-detail { margin-top: .38rem; }
  .social-links { margin-top: 1rem; }
  .social { gap: .65rem; padding: .85rem .45rem; min-height: 4.65rem; }
  .social + .social { padding-left: .9rem; }
  .social-icon { width: 1.3rem; height: 1.3rem; }
  .social-title { font-size: .93rem; }
  .social-handle { font-size: .765rem; }
  .footer { align-items: center; text-align: center; padding-block: 1.25rem 1rem; }
  .footer nav { justify-content: center; }
}
@media (max-width: 23rem) {
  :root { --gutter: 1rem; }
  .social { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .social + .social::before { top: 50%; transform: translateY(-50%); }
}
