/* Site do cliente — identidade nude/bege. */
:root {
  --creme: #faf6f1;
  --areia: #f1e8dd;
  --areia-forte: #e6d7c6;
  --nude: #d8bea6;
  --caramelo: #a87b57;
  --caramelo-escuro: #8a6243;
  --dourado: #b8925a;
  --texto: #3b3029;
  --muted: #8a7b6f;
  --borda: #e8ddd1;
  --branco: #fffdfa;
  --verde: #4f7a5a;
  --erro: #b4523f;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(59, 48, 41, .05), 0 8px 24px rgba(59, 48, 41, .07);
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--texto);
  background: var(--creme);
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .2px; }

/* ---------- Logo (monograma em círculo dourado fino) ---------- */
.logo { display: flex; justify-content: center; }
.logo img, .logo-monograma {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--dourado); padding: 6px; background: var(--branco);
  box-shadow: 0 0 0 6px var(--branco), 0 0 0 7px var(--areia-forte);
}
.logo-monograma { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--caramelo-escuro); }
.logo-iniciais { font-family: var(--serif); font-size: 40px; line-height: 1; font-style: italic; }
.logo-nome { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .3px; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--caramelo); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--caramelo-escuro); }
.btn-primario:disabled { background: var(--nude); cursor: not-allowed; }
.btn-linha { background: transparent; border-color: var(--areia-forte); color: var(--texto); }
.btn-linha:hover { border-color: var(--caramelo); }
.btn-whats { background: #3f7d5c; color: #fff; }
.btn-whats:hover { background: #356a4e; }
.btn small { font-size: 12px; font-weight: 400; opacity: .9; }

/* ================= Página inicial ================= */
.home-hero {
  text-align: center; padding: 56px 20px 40px;
  background: linear-gradient(180deg, var(--areia) 0%, var(--creme) 100%);
  border-bottom: 1px solid var(--borda);
}
.home-hero h1 { font-size: clamp(34px, 7vw, 52px); margin: 22px 0 4px; }
.home-subtitulo { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--caramelo); margin: 0; }
.home-slogan { max-width: 440px; margin: 16px auto 28px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.home-cta { min-width: 260px; font-size: 16px; padding: 16px 30px; box-shadow: 0 10px 24px rgba(168, 123, 87, .28); }

.home-contatos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 26px auto 0; }
.contato {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px;
  background: var(--branco); border: 1px solid var(--borda); border-radius: 14px;
  text-decoration: none; font-size: 13px; color: var(--texto); transition: border-color .15s, transform .15s;
}
.contato:hover { border-color: var(--caramelo); transform: translateY(-2px); }
.contato svg { width: 22px; height: 22px; color: var(--caramelo); }

.home-secao { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.home-secao > h2 { text-align: center; font-size: 28px; margin: 0 0 6px; }
.home-secao > .sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.membro {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px;
  box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 4px;
}
.membro-inicial {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--areia); color: var(--caramelo-escuro); font-family: var(--serif); font-size: 20px; font-style: italic;
}
.membro-inicial { overflow: hidden; }
.membro-inicial img { width: 100%; height: 100%; object-fit: cover; display: block; }
.membro .membro-inicial:has(img) { width: 72px; height: 72px; }
.membro strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.membro span { color: var(--muted); font-size: 14px; }
.membro .preco { color: var(--caramelo); font-size: 13px; margin-top: 6px; }
.membro a { margin-top: 12px; font-size: 14px; color: var(--caramelo-escuro); font-weight: 500; text-decoration: none; }
.membro a:hover { text-decoration: underline; }

.horario-card { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px 22px; box-shadow: var(--sombra); }
.horario-linha { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--borda); font-size: 15px; }
.horario-linha:last-child { border-bottom: 0; }
.horario-linha.hoje { color: var(--caramelo-escuro); font-weight: 500; }
.horario-linha .fechado { color: var(--muted); }

.home-rodape { text-align: center; padding: 44px 20px 36px; color: var(--muted); font-size: 13px; }
.home-rodape .endereco { display: block; margin-bottom: 6px; }

/* ================= Agendamento ================= */
.ag-topo { background: var(--branco); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 10; }
.ag-topo-in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.ag-topo .logo img, .ag-topo .logo-monograma { width: 40px; height: 40px; padding: 2px; box-shadow: none; }
.ag-topo .logo-iniciais { font-size: 16px; }
.ag-topo-nome { font-family: var(--serif); font-size: 20px; text-decoration: none; }
.ag-topo-link { margin-left: auto; font-size: 14px; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

.ag-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 880px) { .ag-wrap { grid-template-columns: 1fr; padding-top: 20px; } .ag-resumo { display: none; } }

.etapas { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; }
.etapas li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.etapas li::before { content: ''; height: 3px; border-radius: 3px; background: var(--areia-forte); }
.etapas li.feito::before { background: var(--nude); }
.etapas li.ativo::before { background: var(--caramelo); }
.etapas li.ativo { color: var(--texto); font-weight: 500; }
@media (max-width: 480px) { .etapas li span { display: none; } .etapas li.ativo span { display: inline; } }

.etapa h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 6px; }
.etapa .sub { color: var(--muted); margin: 0 0 22px; }

/* profissionais */
.lista-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card-prof {
  text-align: left; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 18px; display: flex; align-items: center; gap: 14px; transition: border-color .15s, box-shadow .15s;
}
.card-prof:hover { border-color: var(--nude); box-shadow: var(--sombra); }
.card-prof.sel { border-color: var(--caramelo); box-shadow: 0 0 0 1px var(--caramelo); }
.card-prof .membro-inicial { margin: 0; flex: none; }
.card-prof .membro-inicial:has(img) { width: 52px; height: 52px; }
.card-prof strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.card-prof small { color: var(--muted); font-size: 13px; }

/* serviços */
.busca { display: flex; align-items: center; gap: 8px; background: var(--branco); border: 1px solid var(--borda); border-radius: 12px; padding: 0 14px; margin-bottom: 16px; color: var(--muted); }
.busca:focus-within { border-color: var(--caramelo); }
.busca svg { width: 18px; height: 18px; flex: none; }
.busca input { border: 0; outline: 0; background: transparent; padding: 13px 0; flex: 1; font: inherit; min-width: 0; color: var(--texto); }
.lista-serv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.card-serv {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; padding: 16px 44px 16px 16px;
  transition: border-color .15s, background .15s;
}
.card-serv:hover { border-color: var(--nude); }
.card-serv input { position: absolute; opacity: 0; pointer-events: none; }
.card-serv strong { font-weight: 500; font-size: 15px; }
.card-serv .desc { color: var(--muted); font-size: 13px; line-height: 1.35; }
.card-serv .meta { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.card-serv .meta b { color: var(--caramelo-escuro); font-weight: 500; }
.card-serv::after {
  content: ''; position: absolute; top: 16px; right: 14px; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--nude); background: var(--branco);
}
.card-serv.sel { border-color: var(--caramelo); background: #fbf4ec; }
.card-serv.sel::after { background: var(--caramelo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--caramelo); }
.card-serv input:focus-visible ~ strong { text-decoration: underline; }

/* calendário */
.agenda-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 680px) { .agenda-grid { grid-template-columns: 1fr; } }
.calendario { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; }
.cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-topo strong { font-family: var(--serif); font-weight: 500; font-size: 18px; text-transform: capitalize; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda); background: var(--branco); font-size: 18px; line-height: 1; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-semana span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 4px 0; }
.cal-dia { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; font-size: 14px; position: relative; }
.cal-dia:hover:not(:disabled) { background: var(--areia); }
.cal-dia:disabled { color: #cdbfb2; cursor: default; }
.cal-dia.hoje::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--caramelo); }
.cal-dia.sel { background: var(--caramelo); color: #fff; }
.cal-dia.sel::after { background: #fff; }

.horarios-box h3 { font-size: 18px; margin: 0 0 4px; }
.horarios-box .data-escolhida { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.horarios-box .data-escolhida::first-letter { text-transform: uppercase; }
.turno { margin-bottom: 16px; }
.turno-nome { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.hora { border: 1px solid var(--borda); background: var(--branco); border-radius: 10px; padding: 10px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.hora:hover { border-color: var(--caramelo); }
.hora.sel { background: var(--caramelo); border-color: var(--caramelo); color: #fff; }

.vazio { color: var(--muted); text-align: center; padding: 24px 12px; font-size: 14px; margin: 0; background: var(--branco); border: 1px dashed var(--borda); border-radius: 14px; }
.erro { color: var(--erro); }

/* dados */
.form-dados { display: grid; gap: 14px; max-width: 520px; }
.form-dados label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .2px; }
.form-dados input, .form-dados textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--borda); border-radius: 12px;
  font: inherit; font-size: 16px; background: var(--branco); color: var(--texto);
}
.form-dados input:focus, .form-dados textarea:focus { outline: none; border-color: var(--caramelo); box-shadow: 0 0 0 3px rgba(168, 123, 87, .15); }
.opcional { color: var(--muted); font-weight: 400; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.aviso-dados { font-size: 13px; color: var(--muted); margin: 0; }

/* resumo lateral */
.ag-resumo { position: sticky; top: 90px; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); }
.ag-resumo h2 { font-size: 20px; margin: 0 0 14px; }
.resumo-vazio { color: var(--muted); font-size: 14px; margin: 0; }
.resumo-linha { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.resumo-linha span { color: var(--muted); }
.resumo-linha strong { font-weight: 500; text-align: right; }
.resumo-itens { list-style: none; padding: 10px 0; margin: 8px 0; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); font-size: 14px; }
.resumo-itens li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.resumo-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.resumo-total strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--caramelo-escuro); }
.ag-resumo .btn { width: 100%; margin-top: 16px; }

/* barra de ações (celular e etapas) */
.ag-acoes { display: flex; gap: 10px; margin-top: 28px; }
.ag-acoes .btn-primario { flex: 1; max-width: 320px; }
@media (max-width: 880px) {
  .ag-acoes {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 20;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 250, .96); border-top: 1px solid var(--borda); backdrop-filter: blur(6px);
  }
  .ag-acoes .btn-primario { max-width: none; flex-direction: column; gap: 2px; }
}
@media (min-width: 881px) { .ag-acoes .btn small { display: none; } }

/* sucesso */
.sucesso { max-width: 520px; text-align: center; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.sucesso-icone { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; background: #e8efe6; color: var(--verde); font-size: 30px; }
.sucesso h1 { margin: 0; }
.sucesso p { margin: 0 0 8px; color: var(--muted); }
.sucesso .ticket { text-align: left; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; margin-bottom: 6px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(59, 48, 41, .45); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal-caixa { background: var(--branco); border-radius: var(--raio); padding: 22px; width: 100%; max-width: 400px; }
.modal-caixa h3 { margin: 0 0 8px; font-size: 22px; }
.modal-caixa .btn { width: 100%; margin-top: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 16px); opacity: 0;
  background: var(--texto); color: var(--creme); padding: 12px 16px; border-radius: 12px; font-size: 14px;
  max-width: calc(100% - 32px); width: max-content; transition: all .25s; z-index: 40; pointer-events: none;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
