/* Remicita — warm editorial theme */
:root {
  --accent: #bc4b2a;        /* terracotta */
  --accent-dark: #96371b;
  --accent-tint: #f7e7df;
  --bg: #faf6f0;            /* warm paper */
  --card: #ffffff;
  --text: #2a221b;
  --muted: #82755f;
  --border: #e9dfd1;
  --danger: #b3372f;
  --success: #33734b;
  --radius: 14px;
  --radius-sm: 10px;
  --control-h: 2.75rem;   /* one height for every field and button (44px) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* one keyboard-focus treatment everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
body.embed { background: transparent; }
body.embed .container { margin: 0.4rem auto 1rem; padding: 0 0.4rem; }

a { color: var(--accent-dark); }

h1, h2, .brand {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 1.45rem;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}
.brand::after { content: "."; color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: 1.1rem; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--accent-dark); }

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; padding: 0.6rem 1rem; }
  .nav-toggle { display: inline-flex; }
  .topbar nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.4rem 0 0.2rem;
  }
  .topbar nav.open { display: flex; }
  .topbar nav a,
  .topbar nav .linklike {
    display: block;
    width: 100%;
    padding: 0.7rem 0.2rem;
    font-size: 1rem;
    text-align: left;
    border-top: 1px solid var(--border);
  }
  .topbar nav form.inline { display: block; width: 100%; }
}

.container { max-width: 960px; margin: 1.8rem auto 4rem; padding: 0 1rem; }

h1 { font-size: 1.7rem; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }

.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(42, 34, 27, 0.04);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.1rem;
}
.card.narrow { max-width: 460px; margin: 2.5rem auto; }
.card.empty { text-align: center; color: var(--muted); }
.card > h2:first-of-type { margin-top: 0.2rem; }

/* ---------- forms: one control system ----------
   Every single-line control shares --control-h so fields, selects, date/time
   pickers, and the buttons beside them always line up. */
label { display: block; margin: 0.8rem 0; font-weight: 500; font-size: 0.95rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background-color: #fff;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], select {
  height: var(--control-h);
  padding: 0 0.8rem;
}
textarea { padding: 0.6rem 0.8rem; min-height: calc(var(--control-h) * 2); resize: vertical; }
textarea[readonly] { background-color: var(--bg); color: var(--muted); }
select {
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2382755f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
input[type=color] {
  margin-top: 0.35rem; height: var(--control-h); width: 5rem; padding: 0.3rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
input[type=checkbox], input[type=radio] {
  accent-color: var(--accent);
  width: 1.05rem; height: 1.05rem;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--accent-tint);
  outline-offset: 0;
  border-color: var(--accent);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.checkline { display: flex; align-items: center; gap: 0.5rem; }
.checkline input { width: 1.05rem; margin: 0; flex: none; }
.form-actions { margin-top: 1.4rem; display: flex; gap: 0.6rem; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 0.85rem; }
.inline { display: inline; }
input.hp { position: absolute; left: -9999px; height: 1px; width: 1px; }

/* buttons — default height matches form controls so mixed rows align */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  vertical-align: middle;
  min-height: var(--control-h);
  padding: 0 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.small { min-height: 2rem; padding: 0 0.85rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: default; }
.linklike {
  background: none; border: none; padding: 0; font: inherit; font-size: 0.95rem;
  color: var(--muted); font-weight: 500; cursor: pointer;
}
.linklike:hover { color: var(--accent-dark); }

/* flash */
.flash {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #e9f2ea;
  border: 1px solid #c4dcc9;
  color: #24512f;
}
.flash-error { background: #f9e8e5; border-color: #ecc4bc; color: #77281c; }
.flash-info { background: var(--accent-tint); border-color: #eacdbf; color: #7c3a20; }

/* tabs */
.tabs { display: flex; gap: 0.3rem; margin-bottom: 1rem; }
.tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.tab:hover { color: var(--accent-dark); }
.tab.active { background: var(--accent); color: #fff; }

/* booking + event rows */
.booking-row, .event-row { display: flex; align-items: flex-start; gap: 0.9rem; }
.booking-color { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.booking-info, .event-info { flex: 1; min-width: 0; }
.event-row.inactive { opacity: 0.6; }
.event-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
  background: var(--muted); color: #fff; border-radius: 6px;
  font-size: 0.7rem; padding: 0.1rem 0.4rem; vertical-align: middle;
}
.event-info textarea { font-size: 0.75rem; font-family: monospace; }

.table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.table td { padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--border); }

.details dt { font-weight: 600; margin-top: 0.7rem; }
.details dd { margin: 0; color: var(--muted); }

/* availability editor */
.avail-day {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.avail-day-name { width: 6.5rem; font-weight: 600; padding-top: 0.6rem; }
.avail-rows { display: flex; flex-direction: column; gap: 0.4rem; }
.avail-row { display: flex; align-items: center; gap: 0.4rem; }
.avail-row input[type=time] { width: 8rem; margin: 0; }
.avail-day .add-row { margin-top: 0.35rem; }
.unavailable-note { padding-top: 0.55rem; }
.override-form { display: flex; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.override-form label { margin: 0; }
.override-form input { width: auto; }
.override-form .checkline { margin-bottom: 0.65rem; } /* optically centers against control-height fields */
#ov-times { display: flex; gap: 0.8rem; }

/* ---------- public booking page ---------- */
.booking-wrap {
  display: grid;
  /* minmax(0, …) lets tracks shrink below their content's intrinsic width
     (the timezone select is ~300px wide by itself); without it the grid
     refuses to compress and overflow:hidden clips the calendar. */
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(42, 34, 27, 0.05);
  overflow: hidden;
  min-height: 480px;
}
@media (max-width: 760px) { .booking-wrap { grid-template-columns: minmax(0, 1fr); } }

.booking-side, .booking-main { min-width: 0; }

.booking-side {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background: #fffdf9;
  overflow-wrap: break-word;
}
@media (max-width: 760px) { .booking-side { border-right: none; border-bottom: 1px solid var(--border); } }
.booking-side h1 { margin: 0.2rem 0 0.8rem; font-size: 1.5rem; }
.booking-side .meta div { color: var(--muted); margin: 0.25rem 0; }
.booking-side .desc { color: var(--muted); font-size: 0.95rem; }
.tz-picker { margin-top: 1.4rem; font-size: 0.85rem; }

.booking-main { padding: 1.5rem; }

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem; font-weight: 600; font-family: var(--serif); font-size: 1.05rem;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dowcell { text-align: center; font-size: 0.75rem; color: var(--muted); padding-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: none;
  font: inherit;
  color: #d8cdbc;
  cursor: default;
}
.cal-day.available {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cal-day.available:hover { background: var(--accent); color: #fff; }
.cal-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 0; }

.slots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
.slot-btn {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.slot-btn:hover { background: var(--accent); color: #fff; }

/* ---------- landing page ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}
.hero-sub { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 34rem; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn.big { min-height: 3.1rem; padding: 0 1.7rem; font-size: 1.05rem; }
.hero-trust { margin-top: 1rem; }

/* hero mock booking card */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(42, 34, 27, 0.1);
  padding: 1.2rem 1.4rem 1.4rem;
  width: 100%;
  max-width: 320px;
  transform: rotate(1.5deg);
}
.mock-title { font-family: var(--serif); font-weight: 600; margin-bottom: 0.8rem; }
.mock-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.mock-cal span { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.mock-cal b {
  aspect-ratio: 1; border-radius: 50%; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.mock-cal b.on { background: var(--accent-tint); color: var(--accent-dark); }
.mock-cal b.on.sel { background: var(--accent); color: #fff; }
.mock-slots { display: flex; gap: 0.45rem; margin-top: 1rem; }
.mock-slots i {
  font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--accent-dark);
  border: 1px solid var(--accent); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.mock-slots i.sel { background: var(--accent); color: #fff; }

.landing-section { padding: 2.2rem 0 1rem; }
.landing-section > h2 {
  font-size: 1.6rem; text-align: center; margin: 0 0 1.8rem;
}

/* steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.steps h3 { margin: 0.4rem 0 0.3rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.steps code { font-size: 0.85em; background: var(--accent-tint); border-radius: 5px; padding: 0.1em 0.35em; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-family: var(--serif);
}

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.feature h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* pricing */
.pricing-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(42, 34, 27, 0.05);
  padding: 2rem 1.8rem;
}
.pricing-card .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; }
.pricing-card .btn { margin: 1rem 0 0.8rem; }
.pricing-card p.small { margin-bottom: 0; }

/* faq */
.faq { max-width: 640px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 0.35rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.55rem 0;
  list-style-position: inside;
}
.faq summary:hover { color: var(--accent-dark); }
.faq details p { margin: 0.2rem 0 0.8rem; color: var(--muted); }

/* closing cta band */
.cta-band {
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin: 2.5rem 0 1.5rem;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.cta-band p { margin: 0 0 1.3rem; opacity: 0.9; }
.btn.cta-invert { background: #fff; border-color: #fff; color: var(--accent-dark); }
.btn.cta-invert:hover { background: var(--accent-tint); border-color: var(--accent-tint); }

.landing-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 1rem 0 0; color: var(--muted); font-size: 0.9rem;
}
.landing-footer nav { display: flex; gap: 1rem; }
.landing-footer a { color: var(--muted); text-decoration: none; }
.landing-footer a:hover { color: var(--accent-dark); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 1.8rem 0 2rem; gap: 1.8rem; }
  .hero-visual { order: 2; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
}

/* small-screen polish */
@media (max-width: 640px) {
  .container { margin-top: 1.1rem; }
  h1 { font-size: 1.45rem; }
  .card { padding: 1rem 1.1rem; }
  .booking-side, .booking-main { padding: 1.1rem; }
  .avail-day-name { width: 100%; padding-top: 0; }
}

.done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: #fff;
  font-size: 2rem; line-height: 56px; text-align: center;
  margin: 1rem auto 0.5rem;
}
#step-done { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* legal pages (privacy policy, terms of service) */
.legal { max-width: 44rem; margin: 1.5rem auto 4rem; }
.legal h1 { margin-bottom: 0.2rem; }
.legal .effective { color: var(--muted); margin-top: 0; margin-bottom: 2rem; font-size: 0.95rem; }
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.4rem 0; }
