/* ============================================================================
   AGENDAÍ — TEMA ÚNICO DA PÁGINA PÚBLICA (Mobile-first, papel creme & borda marcada)
   A profissional altera apenas --accent.
   ============================================================================ */

:root {
  --bg-cream: #FAF5EE;
  --surface: #FFFFFF;
  --ink: #2B2226;
  --ink-muted: #6E5C64;
  --accent: #A8475F;
  --rose-soft: #F2D4DA;
  --sage: #6F8F86;
  --border-w: 2px;
  --shadow: 4px 4px 0px #2B2226;
  --shadow-sm: 3px 3px 0px #2B2226;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(43, 34, 38, 0.05) 1px, transparent 0);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.tabular-nums { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.pub-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 56px;
}

/* Topbar */
.pub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(43, 34, 38, 0.14);
  margin-bottom: 20px;
}

.pub-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.pub-welcome {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Display Headings */
.pub-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.pub-h1 em, .pub-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.pub-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

/* Hard-bordered cards */
.pub-card {
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

/* Polaroid frame */
.polaroid {
  background: #FFFFFF;
  border: var(--border-w) solid var(--ink);
  padding: 10px 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(-1.5deg);
  max-width: 300px;
  margin: 14px auto;
}

.polaroid.tilt-right { transform: rotate(1.5deg); }

.polaroid-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 72px;
  height: 20px;
  background: rgba(242, 212, 218, 0.85);
  border: 1.5px solid var(--ink);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  display: block;
  background: var(--rose-soft);
}

.polaroid-cap {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* Pill Buttons */
.pub-btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}

.pub-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.pub-btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.pub-btn-sage {
  background: var(--sage);
  color: #FFFFFF;
}

.pub-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-card {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.12s ease;
}

.link-card.primary {
  background: var(--accent);
  color: #FFFFFF;
}

.link-card:active { transform: translate(2px, 2px); }

/* Carousel */
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 14px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 82%;
  max-width: 290px;
  scroll-snap-align: center;
}

/* 4 Passos */
.steps-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

.step-card {
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid var(--ink);
  margin-bottom: 8px;
}

/* Horários de atendimento */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.hours-row.today {
  background: var(--rose-soft);
  border: 1.5px solid var(--ink);
  font-weight: 800;
}

/* Comparador Antes/Depois arrastável */
.ba-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;
  background: var(--rose-soft);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #FFFFFF;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* Forms inside agendar / valores */
.pub-input, .pub-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: var(--border-w) solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.pub-input:focus, .pub-select:focus {
  border-color: var(--accent);
}

.choice-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: var(--border-w) solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.choice-btn.active {
  background: var(--accent);
  color: #FFFFFF;
}

.choice-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Booking calendar */
.pub-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.pub-cal-day {
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-cal-day.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-style: dashed;
}

.pub-cal-day.selected {
  background: var(--accent);
  color: #FFFFFF;
}

/* Modal */
.pub-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 34, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pub-modal {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-cream);
  border: var(--border-w) solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.pub-alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: var(--border-w) solid var(--ink);
  background: var(--rose-soft);
  font-size: 14px;
  margin-bottom: 12px;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pub-table th, .pub-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(43, 34, 38, 0.14);
  text-align: left;
}

.pub-table th {
  font-weight: 800;
  color: var(--ink-muted);
}
