:root {
  --black: #0f0d0e;
  --gold: #c9a24b;
  --blush: #f3e3e0;
  --cream: #fbf7f2;
  --ink: #231f20;
  --muted: #6b5f5c;
}

/* Gold text is used only on black. Phones first. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.preview-note {
  padding: .5rem 1rem;
  background: #fff1c2;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .75rem 1.25rem;
  background: var(--black);
}
.brand { color: var(--gold); font-size: 1.4rem; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.nav a { color: var(--cream); font-size: .95rem; text-decoration: none; padding: .25rem 0; }
.nav a:hover, .nav a.nav-appt { color: var(--gold); }
.nav a.nav-login, .nav .nav-out {
  padding: .1rem .9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}

.hero {
  padding: 3.5rem 1.25rem;
  border-top: 1px solid var(--gold);
  background: var(--black);
  color: var(--cream);
  text-align: center;
}
.hero h1 { margin: 0; color: var(--gold); font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.15; }
.tagline { margin: .75rem 0 1.75rem; }
.actions { display: flex; flex-direction: column; gap: .75rem; max-width: 520px; margin: 1.5rem auto 0; }
.tagline + .actions { margin-top: 0; }

.btn {
  display: inline-block;
  min-height: 48px;
  padding: .65rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn-call { background: var(--gold); color: var(--black); }
.btn-text { border-color: var(--gold); color: var(--gold); }
.btn-directions { background: var(--black); color: var(--cream); }
.btn-appt { border-color: var(--gold); background: var(--gold); color: var(--black); }
/* Appointments is the main button: Call beside it is only outlined. */
.btn-appt ~ .btn-call,
.actionbar .btn-call:not(:only-child) { border-color: var(--gold); background: transparent; color: var(--gold); }

.section { padding: 2.5rem 1.25rem; scroll-margin-top: 4rem; }
.section > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.section h2 { margin-top: 0; font-size: 1.8rem; text-align: center; }
#gallery, #visit { background: var(--blush); }
#visit { text-align: center; }
#visit a:not(.btn) { color: var(--ink); }

/* Booking, login, account and admin pages */
.section h1 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; line-height: 1.3; text-align: center; }
.shade { background: var(--blush); }
.center { text-align: center; }
[hidden] { display: none !important; }

.form { display: flex; flex-direction: column; gap: .5rem; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.form label, .label { margin-bottom: 0; font-weight: 600; }
.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: .5rem .75rem;
  border: 1px solid var(--muted);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: wait; }
.btn-dark { margin-top: .75rem; background: var(--black); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-light { border-color: var(--muted); background: transparent; color: var(--ink); }
.link { border: 0; background: none; padding: .5rem; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }
.hint { color: var(--muted); font-size: .9rem; text-align: center; }
.hint a { color: var(--ink); }
.good { margin: 0; color: #2f6b1f; font-weight: 600; text-align: center; }
.bad { margin: 0; color: #a32d2d; font-weight: 600; text-align: center; }
.done { text-align: center; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
.slots .hint { grid-column: 1 / -1; }
.slot, .tabs button {
  min-height: 44px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.slot[aria-pressed="true"] { background: var(--gold); font-weight: 700; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 520px; margin-bottom: 1rem; }
.tabs button { border-color: var(--black); }
.tabs button[aria-pressed="true"] { background: var(--black); color: var(--cream); }

.cards { display: flex; flex-direction: column; gap: .75rem; max-width: 640px; }
.card { padding: 1rem; border: 1px solid var(--blush); border-radius: 12px; background: #fff; }
.card p { margin: 0 0 .25rem; overflow-wrap: anywhere; }
.card a:not(.btn) { color: var(--ink); }
.card .bad { text-align: left; }
.when { font-weight: 700; }
.status { font-weight: 600; }
.status-pending { color: #7a5200; }
.status-confirmed { color: #2f6b1f; }
.status-declined, .status-cancelled { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.card > .btn { margin-top: .5rem; }

.hour-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .25rem .5rem; margin-bottom: .75rem; }
/* On a phone the day has its own line, so that AM and PM stay readable. */
.hour-row .check { display: flex; grid-column: 1 / -1; align-items: center; gap: .4rem; font-weight: 400; }
.hour-row input[type="checkbox"] { width: 1.25rem; height: 1.25rem; }
.form .hour-row input[type="time"] { min-width: 0; padding: .25rem .4rem; }

.service-category { max-width: 640px; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--blush);
}
.service-note { color: var(--muted); font-size: .9rem; }
.service-price { margin-left: auto; font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }

table.hours { width: 100%; max-width: 520px; border-collapse: collapse; }
table.hours th, table.hours td { padding: .6rem 0; border-bottom: 1px solid var(--blush); }
table.hours th { text-align: left; }
table.hours td { text-align: right; }

address { margin-bottom: 1rem; font-style: normal; }
.site-footer {
  padding: 1.5rem 1.5rem calc(84px + env(safe-area-inset-bottom)); /* room for the bottom bar */
  background: var(--black);
  color: var(--cream);
  text-align: center;
}

.actionbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--black);
}
.actionbar .btn { flex: 1; padding-left: .5rem; padding-right: .5rem; }
.actionbar .btn-appt { flex: 1.7; }

@media (min-width: 720px) {
  .site-footer { padding-bottom: 1.5rem; }
  .hour-row { grid-template-columns: 8.5rem 1fr 1fr; }
  .hour-row .check { grid-column: auto; }
  .actionbar { display: none; }
  .site-header { position: sticky; top: 0; z-index: 10; }
  .actions { flex-direction: row; justify-content: center; max-width: 720px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
