@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --pitch-900: #0e2b1c;
  --pitch-700: #17452b;
  --pitch-500: #1f5c38;
  --chalk: #f6f4ec;
  --chalk-dim: #d9d6c9;
  --amber: #e8a13d;
  --amber-dark: #c17f22;
  --line: #2c5d3f;
  --danger: #b7402f;
  --ink: #10201a;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .brand {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--pitch-700); }

.topbar {
  background: var(--pitch-900);
  color: var(--chalk);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  color: var(--chalk);
  text-decoration: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}

.nav { display: flex; gap: 20px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--chalk-dim); text-decoration: none; }
.nav a:hover { color: var(--chalk); }
.nav .pill {
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--chalk);
}
.nav .pill:hover { border-color: var(--amber); }

.container { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 1.8rem; margin: 0 0 6px; }
.page-head p { color: #4a5d53; margin: 0; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.field-card {
  background: #fff;
  border: 1px solid #e4e0d3;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-card h3 { margin: 0; font-size: 1.15rem; }
.field-card .meta { color: #5a6b60; font-size: 0.88rem; }
.field-card .price { color: var(--pitch-700); font-weight: 600; margin-top: 4px; }
.field-card .btn { margin-top: 10px; }

.btn {
  display: inline-block;
  background: var(--pitch-700);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--pitch-500); }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.amber:hover { background: var(--amber-dark); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--pitch-700);
  border: 1px solid var(--line);
}
.btn.danger { background: var(--danger); }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.week-nav .label { font-weight: 600; font-size: 1.05rem; }

.calendar-scroll { overflow-x: auto; border: 1px solid #e4e0d3; border-radius: var(--radius); }

table.calendar {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  background: #fff;
}
table.calendar th, table.calendar td {
  border: 1px solid #ece8db;
  text-align: center;
  padding: 0;
  height: 44px;
}
table.calendar th {
  background: var(--pitch-900);
  color: var(--chalk);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 4px;
}
table.calendar td.time-col {
  background: #faf9f4;
  color: #6a7a70;
  font-size: 0.78rem;
  width: 64px;
  font-weight: 500;
}

.slot { display: block; width: 100%; height: 100%; text-decoration: none; }
.slot.free { background: #e8f3ec; }
.slot.free:hover { background: #cfe9d9; }
.slot.booked {
  background: #f5e2df;
  color: var(--danger);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot.past { background: #f1f0ea; }

.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 0.82rem; color: #4a5d53; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .free i { background: #e8f3ec; border: 1px solid #bcdcc9; }
.legend .booked i { background: #f5e2df; border: 1px solid #e3b6ae; }
.legend .past i { background: #f1f0ea; border: 1px solid #dedcd0; }

form.panel {
  background: #fff;
  border: 1px solid #e4e0d3;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
}
form.panel label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 14px 0 6px;
}
form.panel label:first-of-type { margin-top: 0; }
form.panel input[type=text],
form.panel input[type=email],
form.panel input[type=password],
form.panel input[type=number],
form.panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6d2c3;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
form.panel .radio-row { display: flex; gap: 18px; margin-top: 4px; }
form.panel .radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
form.panel .hint { color: #6a7a70; font-size: 0.82rem; margin-top: 4px; }
form.panel .actions { margin-top: 20px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.alert.success { background: #e5f3ea; color: #1f5c38; border: 1px solid #bcdcc9; }
.alert.error   { background: #f8e6e3; color: #a5372a; border: 1px solid #e3b6ae; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e4e0d3; border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #ece8db; font-size: 0.9rem; }
table.list th { background: #faf9f4; font-weight: 600; color: #3d4d44; }
table.list tr:last-child td { border-bottom: none; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.badge.confirmed { background: #e5f3ea; color: #1f5c38; }
.badge.cancelled { background: #f1f0ea; color: #7a7566; }
.badge.recurring { background: #fdf0dc; color: var(--amber-dark); margin-left: 6px; }

footer { text-align: center; color: #8a9189; font-size: 0.82rem; padding: 24px; }
