/* Elegancy NR Nails — base das telas de agenda (agendamento e painel)
   Mesmos tokens do site. Mobile primeiro: tudo nasce pra tela de celular
   e alvos de toque têm no mínimo 44px. */
:root {
  color-scheme: light;
  --porcelana: #FBF7F5;
  --linho: #F5EDE9;
  --nude: #EBD9D2;
  --nude-2: #E2C8C0;
  --rose: #C99AA0;
  --rose-2: #A86F79;
  --tinta: #3A2C31;
  --tinta-2: #5F4C52;
  --nevoa: #8E7B81;
  --linha: #EADDD8;
  --linha-2: #DCC9C2;
  --branco: #FFFDFC;
  --ok: #5E8C6A;
  --ok-fundo: #EAF2EC;
  --alerta: #B0623F;
  --alerta-fundo: #F8ECE5;
  --erro: #A6423F;
  --erro-fundo: #F7E6E4;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --suave: cubic-bezier(.22, .61, .36, 1);
  --sedoso: cubic-bezier(.16, 1, .3, 1);
  --raio: 1.1rem;
  --margem: 1.15rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--porcelana);
  color: var(--tinta-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--rose-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sobrelinha {
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-2);
}
.titulo-pg {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.08;
  color: var(--tinta);
  letter-spacing: -.01em;
}
.titulo-pg em { font-style: italic; color: var(--rose-2); }

/* ────────── botões ────────── */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .9em 1.6em;
  border-radius: 99px;
  border: 1px solid var(--tinta);
  background: var(--tinta);
  color: var(--porcelana);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .5s var(--suave), border-color .5s var(--suave), color .5s var(--suave), opacity .3s;
}
.botao:hover { background: var(--rose-2); border-color: var(--rose-2); }
.botao:disabled { opacity: .45; pointer-events: none; }
.botao--leve { background: transparent; color: var(--tinta); border-color: var(--linha-2); }
.botao--leve:hover { background: var(--linho); border-color: var(--rose); color: var(--tinta); }
.botao--perigo { background: transparent; color: var(--erro); border-color: #E7C7C4; }
.botao--perigo:hover { background: var(--erro-fundo); border-color: var(--erro); color: var(--erro); }
.botao--mini { min-height: 40px; padding: .6em 1.1em; font-size: .68rem; }

/* ────────── campos ────────── */
.campo { display: grid; gap: .35rem; }
.campo label, .grupo legend {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.campo label small, .grupo legend small { text-transform: none; letter-spacing: 0; color: var(--nevoa); font-size: .8rem; margin-left: .3em; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1px solid var(--linha-2);
  border-radius: .9rem;
  background: var(--branco);
  font-size: 16px; /* 16px evita o zoom automático do iPhone ao focar */
  color: var(--tinta);
  transition: border-color .4s var(--suave), box-shadow .4s var(--suave);
  -webkit-appearance: none;
  appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E7B81' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.campo textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(201, 154, 160, .18);
}
.campo input::placeholder, .campo textarea::placeholder { color: #B9A9AE; }
.grupo { border: 0; display: grid; gap: .8rem; }

/* pílulas de escolha (pagamento, filtros) */
.pilulas { display: flex; flex-wrap: wrap; gap: .5rem; }
.pilula {
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--linha-2);
  border-radius: 99px;
  background: var(--branco);
  font-size: .92rem;
  color: var(--tinta-2);
  transition: border-color .4s var(--suave), background .4s var(--suave), color .4s var(--suave);
}
.pilula:hover { border-color: var(--rose); }
.pilula.is-on, .pilula[aria-pressed="true"], .pilula[aria-checked="true"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--porcelana);
}

/* ────────── carregando ────────── */
.carregando {
  width: 28px; height: 28px;
  margin: 2.5rem auto;
  border-radius: 50%;
  border: 1.5px solid var(--linha);
  border-top-color: var(--rose-2);
  animation: gira 1s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

.vazio {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--nevoa);
  border: 1px dashed var(--linha-2);
  border-radius: var(--raio);
  font-size: .95rem;
}
.vazio a, .vazio button.link { color: var(--rose-2); text-underline-offset: 3px; text-decoration: underline; }

/* ────────── aviso flutuante (toast) ────────── */
.aviso-flutuante {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 300;
  width: min(calc(100% - 2rem), 26rem);
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0;
  background: var(--tinta);
  color: var(--porcelana);
  padding: .95rem 1.2rem;
  border-radius: 1rem;
  font-size: .92rem;
  line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgba(58, 44, 49, .6);
  transition: transform .6s var(--sedoso), opacity .4s var(--suave);
  pointer-events: none;
}
.aviso-flutuante.is-on { transform: translate(-50%, 0); opacity: 1; }
.aviso-flutuante.is-erro { background: var(--erro); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
