/* Patrícia Almeida, link na bio
   Direção: ficha de visagismo. Cores tiradas do ensaio (parede greige, blazer, fios, batom).
   Assinatura: linhas de mapeamento que se desenham sobre a sobrancelha. */

:root {
  /* Cor */
  --linho: #ECE7E3;
  --blazer: #FBFAF8;
  --fio: #2A201C;
  --sombra: #655952;
  --batom: #7B382F;
  --batom-press: #652C25;
  --traco: #D6CEC8;
  --foco: #2A201C;

  /* Tipo */
  --f-titulo: 'Marcellus', 'Times New Roman', serif;
  --f-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espaço */
  --gutter: 20px;
  --respiro: 72px;

  /* Motion */
  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-signature: 600ms;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);

  --shift-sm: 6px;
  --shift-md: 12px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-sm: 0px;
    --shift-md: 0px;
    --press-scale: 1;
    --motion-emphasis: 200ms;
    --motion-signature: 0ms;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--linho);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--linho);
  color: var(--fio);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

p, h1, h2, h3, figure, blockquote, ul, address { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

.pular {
  position: absolute;
  left: 12px;
  top: calc(12px + var(--safe-top));
  z-index: 20;
  padding: 12px 16px;
  background: var(--blazer);
  color: var(--fio);
  border-radius: 10px;
  transform: translateY(-160%);
}
.pular:focus-visible { transform: none; }

.pagina {
  max-width: 560px;
  margin: 0 auto;
}

/* Títulos e texto comuns */
.sec-titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(26px, 7.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.sec-texto {
  margin-top: 14px;
  color: var(--sombra);
  max-width: 34em;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

section {
  padding: var(--respiro) var(--gutter) 0;
  scroll-margin-top: 16px;
}

/* Botão principal (WhatsApp) */
.btn-agendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--batom);
  color: var(--blazer);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.btn-agendar i { font-size: 21px; }
.btn-agendar:active {
  transform: scale(var(--press-scale));
  background: var(--batom-press);
}
.btn-agendar.is-abrindo { background: var(--batom-press); }

@media (hover: hover) and (pointer: fine) {
  .btn-agendar:hover { background: var(--batom-press); }
}

/* ---------- Abertura ---------- */
.abertura { padding-bottom: 8px; }

.retrato {
  background: #968F89; /* a parede do estúdio, enquanto a foto chega */
}
.retrato img {
  width: 100%;
  height: min(125vw, 52vh, 700px);
  height: min(125vw, 52svh, 700px);
  min-height: 280px;
  object-fit: cover;
  object-position: 50% 16%;
}

.abertura__texto {
  padding: 20px var(--gutter) 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.nome {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(34px, 10.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.arroba {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sombra);
  font-size: 15px;
  text-decoration: none;
}
.arroba:active { color: var(--fio); }

.papel {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.45;
  max-width: 24em;
}

.nota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 6px;
  color: var(--sombra);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--traco);
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nota:active { color: var(--fio); }
.nota__estrela { width: 16px; height: 16px; fill: var(--fio); flex: none; }

/* ---------- Método (assinatura) ---------- */
.mapeamento { margin-top: 28px; }

.mapeamento__quadro {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  background: #D9A48A;
}
.mapeamento__quadro img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mapeamento__linhas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.linha {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0.92;
}

.ponto {
  fill: #FFFFFF;
  transform-box: fill-box;
  transform-origin: center;
}

/* Só esconde para desenhar quando o JS está presente */
.js .mapeamento .linha {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.js .mapeamento .ponto {
  opacity: 0;
  transform: scale(0.3);
}

.js .mapeamento.is-medido .linha {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--motion-signature) var(--ease-emphasis);
  transition-delay: calc(var(--n) * 160ms);
}
.js .mapeamento.is-medido .ponto {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--motion-standard) var(--ease-enter),
    transform var(--motion-standard) var(--ease-enter);
  transition-delay: calc(var(--n) * 160ms + 420ms);
}

.mapeamento__legenda {
  margin-top: 14px;
  font-size: 15px;
  color: var(--sombra);
  max-width: 30em;
}

/* ---------- Técnicas ---------- */
.grupo {
  margin: 32px 0 4px;
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: 15px;
  color: var(--sombra);
}

.lista-tecnicas { border-top: 1px solid var(--traco); }

.tecnica { border-bottom: 1px solid var(--traco); }

.tecnica__nome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  font-family: var(--f-titulo);
  font-size: 21px;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--motion-fast) var(--ease-standard);
}
.tecnica__nome::-webkit-details-marker { display: none; }
.tecnica__nome:active { color: var(--sombra); }

/* Sinal de + que vira × ao abrir */
.tecnica__sinal {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--traco);
  border-radius: 50%;
  transition:
    transform var(--motion-standard) var(--ease-emphasis),
    background-color var(--motion-standard) var(--ease-standard),
    border-color var(--motion-standard) var(--ease-standard);
}
.tecnica__sinal::before,
.tecnica__sinal::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--fio);
  transform: translate(-50%, -50%);
}
.tecnica__sinal::after { transform: translate(-50%, -50%) rotate(90deg); }

.tecnica[open] .tecnica__sinal {
  transform: rotate(45deg);
  background: var(--blazer);
  border-color: var(--blazer);
}

.tecnica__corpo {
  padding: 0 0 18px;
  color: var(--sombra);
}
.tecnica__corpo p { max-width: 32em; }

.tecnica[open] .tecnica__corpo {
  animation: surgir var(--motion-emphasis) var(--ease-enter);
}

@keyframes surgir {
  from { opacity: 0; transform: translateY(calc(var(--shift-sm) * -1)); }
}

.perguntar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  color: var(--batom);
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}
.perguntar i { font-size: 19px; }
.perguntar:active { color: var(--batom-press); }

/* ---------- Ritual ---------- */
.ritual__fotos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 28px;
}
.ritual__foto {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: #D8CFC6;
}
.ritual__foto--cafe { margin-top: 56px; }

.ritual .sec-texto { margin-top: 20px; }

/* ---------- Quem ---------- */
.quem {
  display: grid;
  gap: 24px;
}
.quem__foto {
  width: 72%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: #D8D2CD;
}
.quem__texto > p { margin-top: 14px; color: var(--sombra); }

.quem__fala {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--fio);
  font-family: var(--f-titulo);
  font-size: 22px;
  line-height: 1.3;
}

.credenciais {
  margin-top: 22px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.credenciais li {
  padding: 12px 0;
  border-top: 1px solid var(--traco);
}
.credenciais li:last-child { border-bottom: 1px solid var(--traco); }

/* ---------- Avaliações ---------- */
.placar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.placar__nota {
  font-family: var(--f-titulo);
  font-size: 56px;
  line-height: 1;
}
.placar__texto { color: var(--sombra); font-size: 15px; max-width: 12em; line-height: 1.35; }

.falas {
  margin-top: 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.fala {
  padding: 20px;
  background: var(--blazer);
  border-radius: 4px;
}
.fala blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.fala__autora { margin-top: 10px; font-size: 14px; color: var(--sombra); }

.link-seco {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}
.link-seco:active { color: var(--sombra); }

/* ---------- Visita ---------- */
.endereco {
  margin-top: 18px;
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
}

.horarios {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 16px;
}
.horarios caption {
  text-align: left;
  padding-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--sombra);
}
.horarios th,
.horarios td {
  padding: 11px 0;
  border-top: 1px solid var(--traco);
  text-align: left;
  font-weight: 400;
}
.horarios td { text-align: right; font-variant-numeric: tabular-nums; }
.horarios tr:last-child th,
.horarios tr:last-child td { border-bottom: 1px solid var(--traco); }
.horarios__fechado { color: var(--sombra); }

/* Hoje: marcado pelo JS */
.horarios .is-hoje th,
.horarios .is-hoje td { font-weight: 600; color: var(--fio); }
.horarios .is-hoje th::after {
  content: 'hoje';
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fio);
  color: var(--blazer);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.mapa { margin-top: 4px; }

.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fio);
  font: 600 16px/1.2 var(--f-texto);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-mapa:active { color: var(--sombra); }
.btn-mapa[aria-busy="true"] { color: var(--sombra); }
.btn-mapa__icone { width: 18px; height: 18px; fill: currentColor; flex: none; }

.mapa__quadro {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blazer);
}
.mapa__quadro:not([hidden]) { animation: surgir var(--motion-emphasis) var(--ease-enter); }
.mapa__quadro iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--motion-emphasis) var(--ease-standard);
}
.mapa__quadro.is-carregado iframe { opacity: 1; }

.visita__acoes {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.btn-rota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid var(--fio);
  border-radius: 14px;
  color: var(--fio);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
.btn-rota:active { transform: scale(var(--press-scale)); background: var(--blazer); }
.btn-rota__icone { width: 20px; height: 20px; fill: currentColor; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .btn-rota:hover { background: var(--blazer); }
}

/* ---------- Redes ---------- */
.redes {
  display: grid;
  gap: 0;
  margin-top: var(--respiro);
  padding: 0 var(--gutter);
}
.rede {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 0;
  border-top: 1px solid var(--traco);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--motion-fast) var(--ease-standard);
}
.rede:last-child { border-bottom: 1px solid var(--traco); }
.rede:active { opacity: 0.6; }
.rede__icone { width: 24px; font-size: 22px; text-align: center; }
.rede__corpo { display: grid; }
.rede__nome { font-weight: 600; }
.rede__conta { font-size: 14px; color: var(--sombra); }

/* ---------- Rodapé ---------- */
.rodape {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px var(--gutter) calc(32px + var(--safe-bottom));
  font-size: 13px;
  color: var(--sombra);
}
.js .rodape { padding-bottom: calc(104px + var(--safe-bottom)); }

/* ---------- Barra de agendamento ---------- */
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--linho);
  border-top: 1px solid var(--traco);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--motion-emphasis) var(--ease-exit),
    opacity var(--motion-standard) var(--ease-standard),
    visibility 0s linear var(--motion-emphasis);
}
.barra.is-visivel {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--motion-emphasis) var(--ease-enter),
    opacity var(--motion-standard) var(--ease-standard),
    visibility 0s;
}
.btn-agendar--barra { min-height: 52px; }

@media (prefers-reduced-motion: reduce) {
  /* A barra só aparece e some em fade */
  .barra { transform: none; }
  .tecnica__sinal { transition-duration: 0ms; }
  /* O mapeamento já nasce desenhado, sem traçado nem escala */
  .js .mapeamento .linha { stroke-dashoffset: 0; }
  .js .mapeamento .ponto { opacity: 1; transform: none; }
  .js .mapeamento.is-medido .linha,
  .js .mapeamento.is-medido .ponto { transition: none; }
}

/* Telas muito estreitas */
@media (max-width: 340px) {
  :root { --gutter: 16px; --respiro: 60px; }
  .tecnica__nome { font-size: 19px; }
  .placar__nota { font-size: 48px; }
}

/* Desktop: a coluna continua sendo a do celular */
@media (min-width: 600px) {
  .pagina { padding-top: 24px; }
  .retrato img { border-radius: 4px; }
  .mapeamento__quadro { margin-inline: 0; border-radius: 4px; }
}
