/* Iron + Ivy tools. Light cream and gold with silver, set against the salon's black.
   Display type: Jost (a free stand-in for the website's Kiona). Body: Questrial, as on ironandivyhair.com. */

:root {
  --bg: #f6f1e9;
  --bg-2: #efe7da;
  --paper: #fffcf7;
  --ink: #171615;
  --ink-2: #4b4743;
  --muted: #77726b;
  --silver: #a7a8aa;
  --silver-2: #cfd0d2;
  --line: #e3dacb;
  --line-2: #d6cab6;
  --gold: #b08d57;
  --gold-ink: #7e6130;
  --gold-soft: #f2e8d6;
  --dark: #141312;
  --dark-2: #23211f;
  --dark-line: #3a3733;
  --danger: #9b3b2e;
  --danger-soft: #f6e4e0;
  --ok: #4c6b4a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 22, 21, .05), 0 8px 24px rgba(23, 22, 21, .06);
  --display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --body: 'Questrial', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: 20px; letter-spacing: .16em; }
h3 { font-size: 14px; letter-spacing: .18em; font-weight: 400; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--display); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--dark); color: #ece7df; border-bottom: 1px solid var(--dark-line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.site-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #ece7df; }
.logo { display: block; }
.logo svg { width: 100%; height: auto; }
.site-header .brand .logo { width: 62px; color: #d9d6d0; }
.site-header .brand .brand-label { font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); border-left: 1px solid var(--dark-line); padding-left: 14px; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: #b9b5ae; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.desk-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--silver); margin: 0; white-space: nowrap; }
.desk-pick select { background: var(--dark-2); border: 1px solid var(--dark-line); color: #ece7df; border-radius: 999px; padding: 6px 28px 6px 12px; font-size: 13px; }
.link-btn { background: none; border: 1px solid var(--dark-line); color: #b9b5ae; border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; font-family: var(--display); }
.link-btn:hover { color: #fff; border-color: var(--silver); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .site-header .brand .brand-label { display: none; }
  .site-header .brand { flex-shrink: 0; }
  .site-header .brand .logo { width: 48px; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 8px 10px; letter-spacing: .14em; font-size: 11px; }
  .desk-pick select { max-width: 120px; }
  .header-tools { margin-left: auto; }
  .desk-pick .label { display: none; }
}

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #f6f1e9;
  border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.btn:hover { background: #2c2a27; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #9c7a46; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: #e2bdb5; }
.btn.small { padding: 7px 14px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
.arrow::after { content: '\2197'; font-family: var(--body); letter-spacing: 0; }

label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; font-family: var(--display); }
.field { margin-bottom: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 15px; min-height: 42px;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.page-head { padding: 34px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 0; }

/* ---------- status chips ---------- */
/* Bright, solid colours for the stages that still need someone to act; calm ones once it's done. */
:root {
  --s-not-ordered: #e0453a;
  --s-paid: #f29d12;
  --s-ordered: #2f6fe0;
  --s-arrived: #1f9d55;
  --s-prepped: #8b45c9;
  --s-installed: #262422;
  --s-cancelled: #a19a91;
}
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.st-not-ordered { background: var(--s-not-ordered); color: #fff; }
.st-paid { background: var(--s-paid); color: #2e1d00; }
.st-ordered { background: var(--s-ordered); color: #fff; }
.st-arrived { background: var(--s-arrived); color: #fff; }
.st-prepped { background: var(--s-prepped); color: #fff; }
.st-installed { background: var(--s-installed); color: #efe9df; }
.st-cancelled { background: #ece8e2; color: #7a746c; text-decoration: line-through; }

/* ---------- modal and toast ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 18px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.modal::backdrop { background: rgba(20, 19, 18, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--paper); flex-wrap: wrap; }
.close-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--dark); color: #f3eee6; padding: 12px 20px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 1000; font-size: 14px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: var(--danger); }

.site-foot { padding: 28px 0; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .card-pad { padding: 16px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}
