/* =============================================================================
   Tasteology & Co — public booking UI (black & gold)
   ============================================================================= */

:root {
  --ink: #f4ead0;
  --ink-soft: #c4b48a;
  --black: #0b0b0b;
  --paper: #141414;
  --gold: #d4af37;
  --gold-bright: #f0d78c;
  --gold-dark: #b8962e;
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  color-scheme: dark;
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--black);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: var(--gold);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 92px;
  width: auto;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

.hero {
  padding: 18px 0 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 8px 0 12px;
  color: var(--gold-bright);
}

.hero p {
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

.panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding-bottom: 64px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.nav-btn,
.slot-btn,
.primary,
.ghost {
  font-family: inherit;
  cursor: pointer;
}

.nav-btn,
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gold);
}

.nav-btn:hover,
.ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.dow,
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dow {
  margin-bottom: 8px;
}

.dow span {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.day:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.16);
}

.day.is-muted,
.day:disabled {
  color: #5c5340;
  cursor: default;
}

.day.has-slots {
  box-shadow: inset 0 -3px 0 var(--gold);
}

.day.is-selected {
  background: var(--gold);
  color: var(--black);
  box-shadow: none;
}

.slots-label {
  margin: 22px 0 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  min-height: 52px;
}

.slot-btn {
  border: 1px solid var(--line);
  background: #0f0f0f;
  border-radius: 12px;
  padding: 10px 8px;
  color: var(--ink);
}

.slot-btn:hover,
.slot-btn.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
}

.slot-btn.is-selected {
  font-weight: 600;
  background: var(--gold);
  color: var(--black);
}

.empty-slots {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.8rem;
  color: var(--gold-bright);
}

.form p.lede {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 12px 0 6px;
  color: var(--gold);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212, 175, 55, 0.35);
  border-color: var(--gold);
}

.primary {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: var(--gold);
  color: var(--black);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
}

.primary:hover {
  background: var(--gold-bright);
}

.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-error {
  color: var(--gold-bright);
  min-height: 1.2em;
  font-size: 0.9rem;
  margin-top: 8px;
}

.selected-slot {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.site-footer {
  padding: 12px 0 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--gold-bright);
}

.confirm-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.confirm-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.confirm-list a {
  word-break: break-all;
}

@media (max-width: 860px) {
  .panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 76px;
  }
}
