:root {
  --fundo: #e9e2db;
  --pagina: #f5efe9;
  --cartao: #fbf8f4;
  --texto: #716650;
  --texto-suave: #847a69;
  --dourado: #a38b68;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 30px 16px;
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.biblioteca-icones {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icone {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pagina {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #ffffffa6;
  border-radius: 24px;
  background: var(--pagina);
  box-shadow: 0 16px 55px #64523c18;
}

/* Foto e apresentação */

.apresentacao {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 340px;
  background: #f6f0e9;
}

.foto-area {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e8d9c9;
}

.foto-area::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(
    to right,
    transparent 70%,
    #f6f0e9 100%
  );
  pointer-events: none;
}

.foto-profissional {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.foto-reserva {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e9dccb, #d2b99a);
}

.foto-reserva span {
  padding: 18px;
  border: 1px solid #a58c6b;
  border-radius: 50%;
  color: #8e7352;
  font-family: Georgia, serif;
  font-size: 33px;
}

.controle-foto {
  position: absolute;
  right: 10px;
  bottom: 25px;
  left: 10px;
  z-index: 5;
  text-align: center;
}

.selecionar-foto {
  min-height: 44px;
  padding: 11px 13px;
  border: none;
  border-radius: 8px;
  background: #927a59;
  color: white;
  font-size: 12px;
}

.selecionar-foto:hover {
  background: #7a6447;
}

#aviso-foto {
  margin: 8px 0 0;
  color: #57452d;
  font-size: 11px;
  line-height: 1.5;
}

.identidade {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 27px 19px 23px 8px;
  text-align: center;
}

.monograma {
  display: grid;
  place-items: center;
  width: 66px;
  height: 82px;
  margin-bottom: 12px;
  border: 1px solid var(--dourado);
  border-radius: 40px;
}

.monograma span {
  color: #9b8160;
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: -2px;
}

.marca-pequena {
  margin: 0 0 6px;
  font-size: 8px;
  letter-spacing: 4px;
}

h1 {
  margin: 0;
  color: #927a59;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.1;
}

.especialidade {
  margin: 8px 0 0;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 1.6;
}

.detalhe {
  width: 34px;
  height: 1px;
  margin: 19px 0 15px;
  background: #c4b298;
}

.texto-apresentacao {
  max-width: 200px;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.redes-topo {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.redes-topo a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e3d8c9;
  border-radius: 9px;
  background: #fffaf3;
  transition: transform 0.2s, background 0.2s;
}

.redes-topo .icone {
  width: 18px;
  height: 18px;
}

.redes-topo a:hover {
  transform: translateY(-3px);
  background: #eee5d8;
}

/* Links principais */

.lista-links {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -8px;
  padding: 0 28px 28px;
}

.cartao {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 94px;
  padding: 16px;
  border: 1px solid #e8e0d7;
  border-radius: 22px;
  background: var(--cartao);
  color: var(--texto);
  box-shadow:
    0 4px 6px #786c5920,
    inset 0 1px 0 #ffffff;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: aparecer 0.5s ease backwards;
}

.cartao:nth-child(2) {
  animation-delay: 0.07s;
}

.cartao:nth-child(3) {
  animation-delay: 0.14s;
}

.cartao:nth-child(4) {
  animation-delay: 0.21s;
}

.cartao:nth-child(5) {
  animation-delay: 0.28s;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cartao:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px #786c5926;
}

.cartao:active {
  transform: scale(0.98);
}

.circulo-icone {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid #eee5da;
  border-radius: 50%;
  background: #fffdf8;
  color: #8c7a5e;
  box-shadow: 0 2px 4px #796c5910;
}

.circulo-icone .icone {
  width: 26px;
  height: 26px;
}

.cartao-texto {
  flex: 1;
  min-width: 0;
}

.cartao-texto strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.cartao-texto > span {
  display: block;
  color: var(--texto-suave);
  font-size: 11px;
  line-height: 1.6;
}

.circulo-seta {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border: 1px solid #eee6dc;
  border-radius: 50%;
  background: #fffdf9;
  color: #99876a;
  transition: background 0.2s, color 0.2s;
}

.circulo-seta .icone {
  width: 15px;
  height: 15px;
}

.cartao:hover .circulo-seta {
  background: #927a59;
  color: white;
}

/* Rodapé */

.rodape {
  position: relative;
  padding: 29px 20px 23px;
  background: #fcf9f4;
  text-align: center;
}

.rodape::before {
  position: absolute;
  top: -14px;
  left: -10%;
  width: 120%;
  height: 28px;
  border-radius: 50% 50% 0 0;
  background: #fcf9f4;
  content: "";
}

.rodape-titulo {
  position: relative;
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
}

.rodape-divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 0;
}

.rodape-divisor span {
  width: 52px;
  height: 1px;
  background: #c7b798;
}

.rodape-divisor b {
  color: #b09a76;
  font-size: 11px;
  font-weight: normal;
}

.redes-rodape {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.redes-rodape a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #8c7a5e;
  transition: transform 0.2s, background 0.2s;
}

.redes-rodape a:hover {
  transform: translateY(-3px);
  background: #eee5d8;
}

.redes-rodape .icone {
  width: 21px;
  height: 21px;
}

.horario {
  margin: 10px 0 0;
  color: var(--texto-suave);
  font-size: 11px;
  line-height: 1.6;
}

.botao-compartilhar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1px solid #d9cbb7;
  border-radius: 24px;
  background: transparent;
  color: #856c4b;
  font-size: 12px;
}

.botao-compartilhar .icone {
  width: 17px;
  height: 17px;
}

.botao-compartilhar:hover {
  background: #eee5d8;
}

.aviso-compartilhar {
  min-height: 18px;
  margin: 10px 0 0;
  color: #847a69;
  font-size: 11px;
  line-height: 1.6;
}

.direitos {
  margin: 14px 0 0;
  color: #8b8274;
  font-size: 10px;
}

/* Janelas */

.modal {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid #e5d9c8;
  border-radius: 20px;
  background: #fcf9f4;
  color: var(--texto);
  box-shadow: 0 20px 70px #3d302b26;
}

.modal[open] {
  animation: abrir-modal 0.2s ease;
}

@keyframes abrir-modal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal::backdrop {
  background: #30261c80;
  backdrop-filter: blur(4px);
}

.modal-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.modal-etiqueta {
  margin: 0 0 9px;
  color: #9b8160;
  font-size: 9px;
  letter-spacing: 2px;
}

.modal h2 {
  margin: 0;
  color: #856c4b;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: normal;
}

.botao-fechar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #e7ded1;
  border-radius: 50%;
  background: white;
  color: var(--texto);
}

.botao-fechar:hover {
  background: #eee5d8;
}

.botao-fechar .icone {
  width: 19px;
  height: 19px;
}

.modal-descricao {
  margin: 20px 0;
  color: var(--texto-suave);
  font-size: 13px;
  line-height: 1.8;
}

/* Procedimentos */

.opcoes-procedimentos {
  display: grid;
  gap: 10px;
}

.opcao-procedimento {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 46px 14px 15px;
  border: 1px solid #e4dacd;
  border-radius: 10px;
  background: #fffdf9;
  color: #716650;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}

.opcao-procedimento::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 1px solid #c8b89f;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.opcao-procedimento:hover {
  border-color: #a38b68;
  background: #f5eee4;
}

.opcao-procedimento[aria-pressed="true"] {
  border-color: #927a59;
  background: #eee4d6;
  color: #624d31;
  font-weight: bold;
}

.opcao-procedimento[aria-pressed="true"]::after {
  border-color: #927a59;
  background: #927a59;
  box-shadow: inset 0 0 0 4px #eee4d6;
}

.selecao-texto {
  min-height: 42px;
  margin: 16px 0 0;
  color: #847a69;
  font-size: 12px;
  line-height: 1.7;
}

/* Formulário */

.campo {
  margin-top: 18px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.campo input,
.campo select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #ded2c0;
  border-radius: 9px;
  background: #fffdf9;
  color: #716650;
  font-size: 16px;
}

.campo input::placeholder {
  color: #958a78;
}

.botao-agendar {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: #927a59;
  color: white;
  text-align: center;
  font-size: 14px;
}

.botao-agendar:hover {
  background: #7a6447;
}

.aviso-formulario {
  margin: 14px 0 0;
  color: #847a69;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* Localização */

.endereco {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
}

.endereco > .icone {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #927a59;
}

.endereco strong {
  font-size: 14px;
}

.endereco p {
  margin: 8px 0 0;
  color: var(--texto-suave);
  font-size: 13px;
  line-height: 1.6;
}

.botao-secundario {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9cbb7;
  border-radius: 10px;
  background: transparent;
  color: #856c4b;
  font-size: 13px;
}

.botao-secundario:hover {
  background: #eee5d8;
}

/* Celular */

@media (max-width: 500px) {
  body {
    padding: 0;
    background: var(--pagina);
  }

  .pagina {
    max-width: 100%;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .apresentacao {
    min-height: 315px;
  }

  .lista-links {
    padding-right: 22px;
    padding-left: 22px;
  }

  .rodape {
    padding-bottom: calc(23px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .identidade {
    padding-right: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .texto-apresentacao {
    font-size: 10px;
  }

  .lista-links {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cartao {
    gap: 10px;
    padding: 14px;
  }

  .circulo-icone {
    width: 46px;
    height: 46px;
  }

  .cartao-texto strong {
    font-size: 11px;
  }

  .circulo-seta {
    width: 23px;
    height: 23px;
  }

  .redes-topo {
    gap: 4px;
  }

  .redes-topo a {
    width: 36px;
    height: 36px;
  }

  .modal {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}