/* ==========================================================================
   Liberty Broillet Flute — booking pages
   To match your site, change the colors/fonts in the :root block below.
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --text: #23262b;
  --muted: #666b73;
  --line: #e2ddd5;
  --accent: #4a7a4b;
  --accent-ink: #ffffff;
  --accent-soft: #e6eedb;
  --brass: #b8232b;
  --red: #c0262d;
  --cream: #f4efd9;
  --danger: #a73b2f;
  --danger-soft: #fbeae7;
  --ok: #2f6b45;
  --ok-soft: #e6f2ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 38, 43, .06), 0 6px 24px rgba(35, 38, 43, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --surface-2: #23282d;
    --text: #eceae6;
    --muted: #a0a5ac;
    --line: #30363c;
    --accent: #8fbf8a;
    --accent-ink: #10190f;
    --accent-soft: #243322;
    --brass: #e8918a;
    --danger: #ef8b7e;
    --danger-soft: #3a2420;
    --ok: #7cc79a;
    --ok-soft: #1d3025;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px 64px; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ---------- site header, menu, footer (shared by homepage + booking page) ---------- */
.band {
  background: #f6f1de url("images/brand-shapes.svg") center / cover no-repeat;
}
.band .inner { max-width: 960px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: flex-end; }
.logo {
  background: #fff; color: #23262b; text-decoration: none; text-align: center;
  padding: 12px 20px 10px; border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(60,70,40,.12);
  border: 6px solid rgba(197, 211, 165, .85); display: block;
}
.logo .nm { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 2.3rem); letter-spacing: .03em; color: #c0262d; line-height: 1.1; }
.logo .sub { display: block; font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; margin-top: 4px; color: #23262b; }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 12px; max-width: 960px; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.nav a {
  display: block; padding: 13px 14px; text-decoration: none; color: var(--text);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.nav .book a { color: var(--accent); }
/* Sticky footer: always pinned to the bottom of the browser window, and on short pages it sits at the bottom too */
body:has(.foot-bar) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.foot-bar) > .wrap { width: 100%; }
.foot-bar {
  background: var(--accent); color: var(--accent-ink);
  margin-top: auto; position: sticky; bottom: 0; z-index: 20;
  box-shadow: 0 -4px 16px rgba(35, 38, 43, .12);
}
.foot-bar .inner { max-width: 960px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 8px 36px; flex-wrap: wrap; justify-content: center; letter-spacing: .06em; }
.foot-bar a { color: inherit; text-decoration: none; }
.foot-bar a:hover { text-decoration: underline; }
.foot-bar .k { color: #ffd9d4; font-weight: 700; margin-right: 8px; }
@media (prefers-color-scheme: dark) { .foot-bar .k { color: #7a1f1a; } }

/* ---------- header ---------- */
.site-head { padding: 28px 0 8px; }
.site-head .back { display: inline-block; font-size: .9rem; text-decoration: none; margin-bottom: 22px; }
.site-head .back:hover { text-decoration: underline; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 8px; }
.lede { max-width: 60ch; margin-top: 10px; color: var(--muted); font-size: 1.05rem; white-space: pre-line; }

/* ---------- cards & steps ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 20px;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .85rem; flex: none;
}

/* ---------- lesson length choices ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice label {
  display: block; height: 100%;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.choice input:hover + label { border-color: var(--accent); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.choice .c-name { font-weight: 600; display: block; }
.choice .c-meta { color: var(--muted); font-size: .9rem; display: block; margin-top: 2px; }

/* ---------- calendar ---------- */
.picker { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .picker { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day {
  aspect-ratio: 1 / 1; min-height: 40px;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font: inherit; font-size: .95rem;
  display: grid; place-items: center; position: relative;
}
.cal-day:disabled { opacity: .45; cursor: default; }
.cal-day.avail {
  color: var(--text); background: var(--accent-soft); font-weight: 600; cursor: pointer; opacity: 1;
}
.cal-day.avail:hover { outline: 2px solid var(--accent); }
.cal-day.avail:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cal-day.today::after {
  content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
}
.cal-day.selected { background: var(--accent); color: var(--accent-ink); }
.cal-note { margin-top: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--accent-soft); vertical-align: -1px; margin-right: 6px; }

.slots-title { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.slot {
  min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
}
.slot:hover { border-color: var(--accent); }
.slot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty-state { color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  border: 1.5px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* ---------- messages ---------- */
.alert { border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; }
.alert.err { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--accent-soft); color: var(--text); }

.summary { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.linkbox { word-break: break-all; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin: 8px 0; }
.spinner { color: var(--muted); padding: 24px 0; }

/* ---------- admin ---------- */
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 22px; }
.tab {
  border: 0; background: transparent; font: inherit; color: var(--muted);
  padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.seg button { border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.row-list { display: grid; gap: 10px; }
.bk {
  display: grid; gap: 6px 16px; grid-template-columns: 1fr; align-items: start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface);
}
@media (min-width: 700px) { .bk { grid-template-columns: 200px 1fr auto; } }
.bk .when { font-weight: 600; }
.bk.cancelled { opacity: .6; }
.pill { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.day-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 700px) { .day-row { grid-template-columns: 120px 1fr; } }
.day-row:last-child { border-bottom: 0; }
.day-name { font-weight: 600; padding-top: 10px; }
.win { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.win input { width: 140px; }
.row-edit { display: grid; gap: 10px; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
@media (min-width: 700px) { .row-edit.types { grid-template-columns: 1.4fr 110px 110px 1.6fr auto; align-items: end; } .row-edit.blocks { grid-template-columns: 170px 170px 1fr auto; align-items: end; } }
.num-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.savebar {
  position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line);
  padding: 12px 0; margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.login-card { max-width: 420px; margin: 40px auto 0; }

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