:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --ink: #241a17;
  --muted: #7a6a63;
  --accent: #9a4a3a;
  --accent-soft: #f3e2da;
  --gold: #b98a44;
  --border: #e8dcd2;
  --reserved: #efe9e4;
  --error: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.hero {
  text-align: center;
  padding: 44px 16px 30px;
  background: linear-gradient(180deg, #2b1d19, #4a2c24);
  color: #f7ece4;
}
.hero-eyebrow { letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; color: #d9b48f; margin: 0 0 10px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.05; margin: 0; }
.hero h1 span { font-size: .52em; letter-spacing: .28em; text-transform: uppercase; color: #e8cfae; }
.hero-info { color: #e9d8cb; margin: 16px 0 0; }
section { margin-top: 34px; }
h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
h3 { margin: 22px 0 10px; color: var(--accent); font-size: 1rem; letter-spacing: .04em; }
.step {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .9rem; flex: none;
}
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 600; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.service {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px; color: inherit;
  display: flex; align-items: center; gap: 12px;
}
.service:hover { border-color: var(--gold); }
.service.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.service-info {
  flex: 1; min-width: 0; text-align: left; background: transparent; border: 0;
  padding: 4px 2px; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 4px;
}
.service-name { font-weight: 650; }
.service-meta { color: var(--muted); }
.photo-thumb {
  flex: none; width: 64px; height: 64px; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; background: var(--reserved);
  cursor: zoom-in;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photos { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.hero-thumb { width: 54px; height: 72px; border-color: rgba(255,255,255,.35); }
.photo-dialog {
  border: 0; border-radius: 18px; padding: 12px; max-width: min(92vw, 560px);
  background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.photo-dialog::backdrop { background: rgba(20,12,10,.72); }
.photo-dialog img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 12px; object-fit: contain; }
.photo-dialog p { margin: 10px 4px 2px; text-align: center; font-weight: 650; }
.photo-close {
  position: absolute; top: 8px; right: 8px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(36,26,23,.82); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day {
  flex: none; min-width: 72px; padding: 10px 8px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-transform: capitalize;
}
.day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time {
  padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.time.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.time:disabled { cursor: not-allowed; color: var(--muted); background: var(--reserved); }
.time.reserved strong { text-decoration: line-through; }
.time small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 16px;
}
.summary p { margin: 4px 0; }
label { display: block; font-weight: 600; margin: 14px 0; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit;
}
.primary {
  display: block; width: 100%; text-align: center; padding: 15px; border: 0; border-radius: 14px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; margin-top: 16px;
}
.primary:disabled { opacity: .6; cursor: wait; }
.primary.whatsapp { background: #1f7a3d; }
.ghost {
  margin-top: 12px; padding: 11px 16px; border-radius: 12px; font: inherit; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: inherit;
}
.success { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
footer { text-align: center; color: var(--muted); padding: 24px 16px 40px; }

/* Agenda admin: limpa e direta */
.admin { max-width: 680px; }
.admin-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.admin-header h1 { margin-bottom: 2px; }
.admin-header .ghost { margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.admin-tools label { margin: 0; }
.admin-tools input { width: auto; }
.admin-tools .ghost { margin-top: 0; }
.agenda-day { text-transform: capitalize; margin: 26px 0 10px; font-size: 1.05rem; }
.booking {
  display: flex; justify-content: space-between; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
}
.booking-main { display: flex; flex-direction: column; gap: 2px; }
.booking-main a { color: #1f7a3d; font-weight: 600; text-decoration: none; }
.cancel {
  flex: none; border: 1px solid #e3b7b2; color: var(--error); background: #fff5f4;
  border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer;
}
.cancel:disabled { opacity: .6; }
