/* ============================================================
   Book with Michelle Muncy-Silva — booking pages
   Tokens lifted from michellemuncysilvasite.vercel.app so this
   reads as the same site: warm cream ground, deep teal accent,
   Newsreader (display) + Public Sans (body).
   ============================================================ */

:root {
  --bg: oklch(97% 0.012 75);
  --surface: oklch(93% 0.014 70);
  --ink: oklch(24% 0.015 50);
  --ink-soft: oklch(45% 0.02 50);
  --teal: oklch(36% 0.05 195);
  --teal-deep: oklch(30% 0.055 195);
  --teal-ink: oklch(97% 0.01 195);
  --teal-wash: oklch(36% 0.05 195 / 0.1);
  --line: oklch(85% 0.012 70);
  --warn: oklch(48% 0.13 25);
  --warn-wash: oklch(48% 0.13 25 / 0.09);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ---------- Header / footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 64px;
  border-bottom: 1px solid var(--line);
}

.site-header .wordmark {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.site-header .back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-bottom-color var(--dur-fast) var(--ease-out-quart),
              transform var(--dur-fast) var(--ease-out-quart);
}

.site-header .back-link:hover,
.site-header .back-link:focus-visible {
  border-bottom-color: var(--teal-deep);
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 64px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer a { border-bottom: 1px solid var(--line); }
.site-footer a:hover { border-bottom-color: var(--teal); }

.site-footer .socials { display: flex; gap: 24px; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 64px 40px;
  max-width: 780px;
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero .tagline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- Page body ---------- */

main { padding: 0 64px 88px; }

.container { max-width: 900px; }

h2 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 6px;
}

.section-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ---------- Choice cards (index) ---------- */

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.choice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
}

.choice-card:hover { transform: translateY(-3px); border-color: var(--teal); }

.choice-card h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
}

.choice-card .meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}

.choice-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  flex: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--teal-ink);
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  display: inline-block;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out-quart),
              transform var(--dur-base) var(--ease-out-quart);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }

.aside-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
}

.aside-note strong { color: var(--ink); }

/* ---------- Slot loading states ---------- */

.slots-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  color: var(--ink-soft);
}

.slots-state a { color: var(--teal); border-bottom: 1px solid var(--teal); }

/* ---------- Scheduler ---------- */

.scheduler {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.cal-panel {
  flex: 0 0 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 19px;
}

.cal-nav {
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.cal-nav:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 4px 0 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 3px;
  color: var(--ink-soft);
}

span.cal-day.off { opacity: 0.4; }

button.cal-day.available {
  background: var(--teal-wash);
  border: 1.5px solid transparent;
  color: var(--teal-deep);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

button.cal-day.available:hover { border-color: var(--teal); }

button.cal-day.available.selected {
  background: var(--teal);
  color: var(--teal-ink);
}

.times-panel { flex: 1; min-width: 0; }

.times-title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 12px;
}

.times {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.times-empty { color: var(--ink-soft); font-size: 14px; }

.time-btn {
  width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

.time-btn:hover { border-color: var(--teal); }

.time-btn.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--teal-ink);
}

/* ---------- Booking form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  margin-top: 40px;
  max-width: 640px;
}

.form-card h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 12px;
}

.picked {
  font-size: 15px;
  background: var(--bg);
  border-radius: 3px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.picked a { color: var(--teal); border-bottom: 1px solid var(--teal); }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.field-required label::after { content: " *"; color: var(--teal); }

.hint { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); }

.form-error {
  background: var(--warn-wash);
  border-left: 3px solid var(--warn);
  border-radius: 0 3px 3px 0;
  color: var(--warn);
  font-size: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.form-note { margin-top: 16px; margin-bottom: 0; }

/* ---------- Success ---------- */

.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 4px;
  padding: 48px 36px;
  max-width: 640px;
}

.success-card h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 14px;
}

.success-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-header, .site-footer { padding: 22px 28px; }
  .hero { padding: 48px 28px 32px; }
  main { padding: 0 28px 64px; }
  .scheduler { flex-direction: column; }
  .cal-panel { flex: none; width: 100%; max-width: 380px; }
  .times { max-height: none; }
}

@media (max-width: 480px) {
  .site-header, .site-footer { padding: 20px 20px; }
  .hero { padding: 40px 20px 28px; }
  main { padding: 0 20px 56px; }
  .form-card { padding: 24px 20px; }
  .choice-card { padding: 26px 22px; }
}
