/* Brand palette taken from the 50th anniversary logo: navy wordmark, gold numerals, aqua wave, hibiscus. */
:root {
  --navy: #16306b;
  --navy-deep: #0e1f47;
  --gold: #b9861c;
  --gold-soft: #f4dc95;
  --aqua: #2aa3cc;
  --aqua-soft: #e4f4fa;
  --hibiscus: #d23a68;
  --ink: #1a2340;
  --muted: #5d6683;
  --paper: #fbfaf6;
  --sand: #f3eee2;
  --white: #ffffff;
  --line: rgba(22, 48, 107, 0.13);
  --ok: #1f7a54;
  --ok-soft: #e2f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbefd2;
  --danger: #b4233f;
  --danger-soft: #fbe4e8;
  --radius: 6px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy-deep); line-height: 1.15; margin: 0 0 0.5em; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600; color: var(--gold); margin: 0 0 12px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.empty { color: var(--muted); }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--navy);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--aqua-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--white); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-small { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); font-size: 15px; font-weight: 400; color: var(--ink);
}
textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
label.check input { width: auto; margin: 0; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: var(--radius); font-size: 14px; margin: 0 0 14px; }

/* Badges + flash messages */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-reserved { background: var(--warn-soft); color: var(--warn); }
.badge-completed { background: var(--ok-soft); color: var(--ok); }
.badge-cancelled, .badge-expired { background: var(--danger-soft); color: var(--danger); }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--danger-soft); color: var(--danger); }

.error-page main { max-width: 480px; margin: 15vh auto; padding: 0 24px; text-align: center; }

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