:root {
  --bg: #0c0b0a;
  --panel: #161412;
  --panel-2: #1f1c19;
  --line: #2d2823;
  --text: #f2ece3;
  --muted: #a39a8c;
  --gold: #d4a95f;
  --copper: #b7714a;
  --ok: #7fb37a;
  --error: #e0796c;
  --radius: 14px;
  --display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --body-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212, 169, 95, 0.12), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(183, 113, 74, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.6rem; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(12, 11, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0.12em; color: var(--gold); }
.brand small { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.92rem; }
.nav a { color: var(--text); }
.greeting { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #140f0b; font: 700 0.95rem var(--body-font); letter-spacing: 0.03em;
  cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; filter: none; }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--error); border: 1px solid rgba(224, 121, 108, 0.5); }
.btn-google { background: #f2ece3; color: #111; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 6rem) clamp(3rem, 7vw, 5rem);
  max-width: 1100px;
}
.eyebrow { margin: 0 0 1rem; color: var(--copper); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem; font-weight: 700; }
.hero h1 { font-size: clamp(4rem, 13vw, 9.5rem); line-height: 0.9; }
.hero h1 span { color: var(--gold); }
.lead { max-width: 36rem; color: var(--muted); font-size: 1.1rem; margin: 1.5rem 0 2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 6vw, 6rem); border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.card p { margin-top: 0; }

.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: relative; overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}
.service .meta { color: var(--muted); margin: 0.2rem 0 0.8rem; font-size: 0.9rem; }
.service .price { font-family: var(--display); font-size: 2.2rem; color: var(--gold); margin: 0; letter-spacing: 0.03em; }

/* ---------- Booking form ---------- */
.booking { display: grid; gap: 1.6rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.05em; padding: 0;
}
legend span {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--gold); color: #140f0b; font: 700 0.85rem var(--body-font);
}

.options { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; flex-direction: column; gap: 0.15rem; height: 100%;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
  transition: border-color 0.15s, background 0.15s;
}
.option small { color: var(--muted); }
.option:hover span { border-color: #4a4139; }
.option input:checked + span { border-color: var(--gold); background: rgba(212, 169, 95, 0.1); box-shadow: 0 0 0 1px var(--gold) inset; }
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.day {
  flex: 0 0 auto; min-width: 4.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: 0.7rem 0.5rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: inherit; cursor: pointer; text-transform: capitalize;
}
.day small { color: var(--muted); text-transform: capitalize; }
.day b { font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1; }
.day em { font-style: normal; font-size: 0.7rem; color: var(--error); text-transform: uppercase; letter-spacing: 0.1em; }
.day:hover:not(:disabled) { border-color: #4a4139; }
.day[aria-pressed="true"] { border-color: var(--gold); background: rgba(212, 169, 95, 0.12); }
.day:disabled { opacity: 0.4; cursor: not-allowed; }

.times { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.time {
  padding: 0.65rem 0.4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: 500 0.95rem var(--body-font); cursor: pointer;
}
.time:hover { border-color: #4a4139; }
.time[aria-pressed="true"] { background: var(--gold); color: #140f0b; border-color: var(--gold); font-weight: 700; }

.field { display: grid; gap: 0.4rem; max-width: 22rem; margin-bottom: 1.2rem; }
.field span { color: var(--muted); font-size: 0.9rem; }
.field em { font-style: normal; color: var(--muted); opacity: 0.7; }
input[type="tel"], input[type="date"] {
  font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; width: 100%;
  color-scheme: dark;
}
input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.summary { color: var(--muted); margin: 0 0 1rem; }
.msg { min-height: 1.4em; margin: 1rem 0 0; font-size: 0.95rem; }
.msg.ok { color: var(--ok); }
.msg.error { color: var(--error); }

/* ---------- My bookings ---------- */
.list { display: grid; gap: 0.7rem; }
.booking-item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.booking-item p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.92rem; }
.booking-item.cancelled { opacity: 0.55; }
.status { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { padding: 2rem clamp(1rem, 6vw, 6rem); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer p { margin: 0; }

/* ---------- Admin panel ---------- */
.admin-title { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--gold); margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.field-inline { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.field-inline input { width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 0.8rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); background: var(--panel-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.row-cancelled td { opacity: 0.5; text-decoration: line-through; }
.row-past td { color: var(--muted); }
.status-ok { color: var(--ok); }
.status-cancelled { color: var(--error); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .top { flex-direction: column; align-items: flex-start; }
  .nav { gap: 0.8rem; }
  .booking-item { grid-template-columns: 1fr; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 0.25rem 0; }
  .table td[data-label=""]:empty { display: none; }
  .table td::before { content: attr(data-label); display: inline-block; min-width: 6.5rem; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .table td[data-label=""]::before { content: none; }
}

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