:root {
  --cream: #f5efe3;
  --sand: #e3d7c4;
  --ink: #24211d;
  --muted: #655d53;
  --charcoal: #232323;
  --charcoal-soft: #2d2d2d;
  --accent: #b4432d;
  --accent-dark: #8f3321;
  --gold: #b68b3f;
  --line: rgba(36, 33, 29, 0.12);
  --success-bg: #eef6ee;
  --success-text: #215a2a;
  --error-bg: #f9e8e4;
  --error-text: #8a2f21;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: var(--charcoal);
  color: #f7f2ea;
  font-size: 0.95rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  font-weight: 700;
}

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
}

.brand-title {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button {
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.button,
.button-outline,
.button-secondary,
.link-button {
  display: inline-block;
  padding: 0.92rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #faf8f4;
}

.link-button {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  color: var(--accent);
}

.page-hero,
.staff-hero {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(20, 18, 15, 0.58), rgba(20, 18, 15, 0.64)),
    url("../old-site/newhack6.jpg") center center / cover no-repeat;
  color: #fff;
}

.page-hero h1,
.staff-hero h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.page-hero h1,
.staff-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.page-hero p,
.staff-hero p {
  max-width: 44rem;
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.section {
  padding: 4rem 0;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
}

.intro-copy,
.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callout {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: #faf8f4;
  color: var(--ink);
  line-height: 1.65;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  color: var(--ink);
}

.field label .required-mark {
  color: var(--accent);
  margin-left: 0.2rem;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

.field-error {
  display: none;
  color: var(--error-text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.field-error.is-visible {
  display: block;
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(138, 47, 33, 0.6);
  background: #fff8f6;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(36, 33, 29, 0.18);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.checkbox-row input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.status-message {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  line-height: 1.6;
}

.status-message.is-visible {
  display: block;
}

.status-message.is-success {
  background: var(--success-bg);
  border-color: rgba(33, 90, 42, 0.18);
  color: var(--success-text);
}

.status-message.is-error {
  background: var(--error-bg);
  border-color: rgba(138, 47, 33, 0.18);
  color: var(--error-text);
}

.steps-list,
.contact-list,
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.steps-list li,
.detail-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.steps-list strong,
.detail-list strong,
.contact-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.login-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.login-card {
  width: min(520px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
}

.staff-shell {
  padding: 2rem 0 4rem;
}

.staff-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem;
}

.summary-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.summary-card span {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
}

.toolbar {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toolbar input,
.toolbar select {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(36, 33, 29, 0.18);
  background: #fff;
  font: inherit;
}

.toolbar input {
  flex: 1 1 240px;
}

.request-list {
  display: grid;
  gap: 0.85rem;
}

.request-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.request-card.is-active {
  border-color: rgba(180, 67, 45, 0.5);
  box-shadow: inset 0 0 0 1px rgba(180, 67, 45, 0.18);
}

.request-card-header,
.request-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.request-card-header {
  margin-bottom: 0.6rem;
}

.request-card-title {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.request-card-copy,
.request-card-meta,
.detail-copy {
  color: var(--muted);
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new {
  background: #f9efe6;
  color: #97503d;
}

.badge-contacted {
  background: #eeeaf8;
  color: #59408c;
}

.badge-scheduled {
  background: #e9f3eb;
  color: #2c6a37;
}

.badge-closed {
  background: #ececec;
  color: #5a5a5a;
}

.detail-panel {
  min-height: 420px;
}

.detail-panel h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-section + .detail-section {
  margin-top: 1.3rem;
}

.detail-grid {
  display: grid;
  gap: 0.8rem;
}

.detail-panel textarea,
.detail-panel select,
.detail-panel input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(36, 33, 29, 0.18);
  background: #fff;
  font: inherit;
}

.empty-state {
  padding: 1rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .columns-2,
  .dashboard-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav .container,
  .topbar .container,
  .footer .container {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }
}

/* Scheduler Core public pages remain separate from the existing request workflow. */
.scheduler-notice { margin: 1rem 0; padding: 1rem; border-left: 4px solid var(--gold); background: #faf8f4; color: var(--ink); line-height: 1.6; }
.scheduler-shell { min-height: calc(100vh - 210px); padding: 4rem 0; }
.scheduler-shell > .container { max-width: 760px; }
.time-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.time-option { text-align: left; padding: 0.8rem; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; }
.time-option strong, .time-option span { display: block; }
.time-option span { margin-top: 0.2rem; color: var(--muted); font-size: 0.82rem; }
.time-option:hover, .time-option:focus-visible, .time-option.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.time-option.is-limited { background: #fff9ef; }
.scheduler-empty { margin: 0; padding: 1rem; border: 1px dashed var(--line); color: var(--muted); line-height: 1.6; }
.confirmation-card h1, .manage-card h1 { font-size: clamp(2.35rem, 6vw, 3.8rem); margin-bottom: 1rem; }
.confirmation-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.confirmation-details div { padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirmation-details dt { margin-bottom: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.confirmation-details dd { margin: 0; font-weight: 700; }
.manage-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.button-danger { padding: 0.92rem 1.4rem; border: 1px solid rgba(138,47,33,.32); background: #fff6f3; color: var(--error-text); font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.reschedule-box { display: grid; gap: .8rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.reschedule-box select { padding: .9rem .95rem; border: 1px solid rgba(36,33,29,.18); background: #fff; font: inherit; }
.button:disabled { cursor: not-allowed; opacity: .6; }
@media (max-width: 640px) { .time-options, .confirmation-details { grid-template-columns: 1fr; } .scheduler-shell { padding: 2rem 0; } }
/* Core-only staff dashboard. */
.schedule-toolbar, .core-section-heading, .appointment-card-header, .appointment-actions, .dialog-heading { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.schedule-toolbar { margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--line); background: #fff; }
.schedule-toolbar input { padding: .78rem; border: 1px solid var(--line); font: inherit; }.date-picker-label { font-weight: 700; }
.core-dashboard { display: grid; gap: 1.5rem; }.core-section, .history-section { padding: 1.4rem; border: 1px solid var(--line); background: #fff; }.core-section-heading { justify-content: space-between; }.core-section-heading h2 { font-size: 2rem; }
.count-chip { min-width: 2rem; padding: .3rem .65rem; border-radius: 999px; background: var(--charcoal); color: #fff; text-align: center; font-weight: 700; }.section-note { margin: .8rem 0 1rem; color: var(--muted); line-height: 1.55; }.core-card-list { display: grid; gap: .8rem; }
.core-appointment-card { padding: 1rem; border: 1px solid var(--line); background: #faf8f4; }.appointment-card-header { justify-content: space-between; margin-bottom: .55rem; }.appointment-time { color: var(--accent-dark); font-family: "Oswald", Arial, sans-serif; font-size: 1.4rem; letter-spacing: .04em; }.core-appointment-card h3 { font-size: 1.45rem; margin-bottom: .85rem; }
.appointment-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 0; }.appointment-details div, .appointment-phone { display: grid; gap: .15rem; min-width: 0; }.appointment-details dt, .appointment-details span, .appointment-phone span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.appointment-details dd { margin: 0; overflow-wrap: anywhere; }.appointment-actions { margin-top: 1rem; }
.badge-pending { background: #f9efe6; color: #97503d; }.badge-scheduled { background: #e9f3eb; color: #2c6a37; }.badge-cancelled,.badge-completed,.badge-closed { background: #ececec; color: #555; }.badge-overbooked { background: #fff1d7; color: #714b08; }
.history-section summary { cursor: pointer; font-family: "Oswald", Arial, sans-serif; font-size: 1.35rem; text-transform: uppercase; }.history-section .core-card-list { margin-top: 1rem; opacity: .75; }
.staff-dialog { width: min(620px, calc(100% - 2rem)); border: 1px solid var(--line); padding: 1.5rem; color: var(--ink); background: #fff; }.staff-dialog::backdrop { background: rgba(20,18,15,.6); }.dialog-heading { justify-content: space-between; }.dialog-heading h2 { font-size: 2rem; }.dialog-close { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }.staff-dialog .field { margin-top: 1rem; }.staff-dialog .time-options { margin-top: .5rem; }.staff-dialog .time-option:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 760px) { .schedule-toolbar { align-items: stretch; }.schedule-toolbar > * { flex: 1 1 42%; }.date-picker-label { display: none; }.appointment-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }.appointment-actions > * { flex: 1 1 auto; text-align: center; }.core-section, .history-section { padding: 1rem; } }
/* Staff schedule scanability pass. */
.schedule-toolbar { justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; background: #fffdfa; }
.schedule-date-context { display: grid; gap: .1rem; min-width: 13rem; }.schedule-date-label { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }.schedule-date-context strong { font-family: "Oswald", Arial, sans-serif; font-size: 1.5rem; letter-spacing: .025em; text-transform: uppercase; }.schedule-date-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }.schedule-date-actions .button-secondary { padding: .7rem .85rem; font-size: .8rem; }
.core-section { padding: 1.5rem; box-shadow: 0 8px 24px rgba(36, 33, 29, .035); }.core-section--pending { border-top: 4px solid var(--accent); }.core-section--scheduled { border-top: 4px solid #5b8160; }.core-section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.25rem); }.core-section--pending .count-chip { background: var(--accent); }.core-section--scheduled .count-chip { background: #416747; }.section-note { max-width: 48rem; }
.core-card-list { gap: .65rem; }.core-appointment-card { padding: 1rem 1.1rem; background: #fff; border-left: 4px solid transparent; }.core-appointment-card--pending { border-left-color: var(--accent); }.core-appointment-card--scheduled { border-left-color: #5b8160; }.appointment-card-header { margin-bottom: .35rem; }.appointment-time { font-size: 1.55rem; }.core-appointment-card h3 { font-size: 1.6rem; margin-bottom: .65rem; }
.appointment-details { grid-template-columns: minmax(9rem, 1.4fr) minmax(8rem, 1fr) minmax(8rem, 1fr); gap: .7rem 1rem; }.appointment-phone { grid-column: 1; }.appointment-notes { grid-column: 2 / -1; }.appointment-notes dd { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.appointment-actions { gap: .55rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--line); }.appointment-actions .button, .appointment-actions .button-secondary, .appointment-actions .button-danger { padding: .65rem .85rem; font-size: .79rem; }.action-confirm { order: -2; }.action-change { order: -1; }.action-call { margin-left: auto; }.action-cancel { opacity: .82; }
.history-section { background: transparent; border-style: dashed; }.history-section summary { color: var(--muted); font-size: 1.1rem; }.history-section .core-appointment-card { background: #faf8f4; }.badge-overbooked { border: 1px solid rgba(113, 75, 8, .24); }
@media (max-width: 760px) { .schedule-toolbar { align-items: stretch; }.schedule-date-context { min-width: 0; }.schedule-date-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.schedule-date-actions input { min-width: 0; width: 100%; }.schedule-date-actions .date-picker-label { display: block; grid-column: 1 / -1; }.appointment-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }.appointment-phone, .appointment-notes { grid-column: auto; }.appointment-notes { grid-column: 1 / -1; }.appointment-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.appointment-actions > * { width: 100%; }.action-call { margin-left: 0; } }