/* Dental Booking Kit — "Reservation Menu": deep teal stock, champagne foil */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF; }

/* Light working screen (staff) is the default; .patient turns the page to teal stock. */
:root {
  --teal: #12403f;
  --teal-deep: #0c3231;
  --teal-raise: #184b49;
  --champ: #c9a96e;
  --champ-hi: #e3cf9f;
  --ivory: #f4efe2;
  --mist: #c4ded6;
  --mist-2: #9cc4b8;
  --coral: #e8a08c;

  --paper: #fbfaf7;
  --paper-2: #f1ece0;
  --white: #ffffff;
  --ink: #12403f;
  --ink-soft: #46625f;
  --ink-faint: #6b817f;
  --rule: #e2dccd;
  --gold: #c9a96e;
  --gold-soft: #f3ead6;
  --gold-deep: #85693a;
  --red: #b5523b;
  --red-soft: #f7e4de;
  --green: #2e6b45;
  --band: #12403f;
  --band-text: #f4efe2;

  /* semantic, flipped by .patient */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-faint: var(--ink-faint);
  --line: var(--rule);
  --field: var(--white);
  --field-line: #b9c6c3;
  --hol: var(--red);

  --display: "Bodoni Moda", "Didot", serif;
  --text: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
.patient {
  --bg: var(--teal);
  --fg: var(--ivory);
  --fg-soft: var(--mist);
  --fg-faint: var(--mist-2);
  --line: rgba(255, 255, 255, .14);
  --field: rgba(255, 255, 255, .06);
  --field-line: rgba(255, 255, 255, .3);
  --hol: var(--coral);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--text); font-variant-numeric: tabular-nums lining-nums;
  caret-color: var(--champ); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--champ); color: var(--teal-deep); }
* { scrollbar-color: var(--fg-faint) transparent; scrollbar-width: thin; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

/* ── page frame ─────────────────────────────── */
.page { max-width: 1180px; margin: 0 auto; padding: 0 22px 200px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 0; }
.mark { font-size: 11.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--champ); }
.lang { display: inline-flex; gap: 2px; flex: none; }
.lang button { border: 0; background: none; padding: 6px 9px; min-height: 36px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; color: var(--fg-faint); border-radius: 999px; }
.lang button[aria-pressed="true"] { color: var(--champ-hi); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .55); }
.title { margin: 22px 0 0; font: 400 clamp(36px, 10vw, 60px)/1.02 var(--display); letter-spacing: -.01em; color: #f8f3e6; text-wrap: balance; }
.col-a .sec { border-top: 1px solid; border-image: linear-gradient(90deg, rgba(201, 169, 110, .55), rgba(201, 169, 110, .08)) 1; margin-top: 16px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.col-a, .col-b { min-width: 0; }
.sec { padding-top: 2px; }
.lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 8px; }
.lbl h2 { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--champ); }
.lbl > span { font-size: 12.5px; letter-spacing: .06em; color: var(--fg-faint); }

/* ── the visit: a menu of treatments ─────────── */
.svc-menu { display: grid; }
.item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; padding: 8px 0; min-height: 48px; font-size: 16.5px; color: var(--fg-soft);
  transition: color .25s var(--ease);
}
.item .nmw { display: grid; min-width: 0; line-height: 1.25; }
.item .nm { color: inherit; }
.item small { font-size: 12.5px; color: var(--fg-faint); white-space: nowrap; }
.item .ld { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 255, 255, .26); }
.item .fee { white-space: nowrap; font-family: var(--display); font-size: 17px; color: var(--ivory); }
.item .fee.ask { font-family: var(--text); font-size: 12.5px; color: var(--fg-faint); letter-spacing: .02em; }
.item::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%;
  background: var(--champ); transform: scale(0); transition: transform .35s var(--ease);
}
.item:hover { color: var(--ivory); }
.item[aria-checked="true"] { color: #fff9ea; }
.item[aria-checked="true"]::before { transform: scale(1); }
.item[aria-checked="true"] .fee { color: var(--champ-hi); }
.svc-detail { margin: 4px 0 0; font-size: 13.5px; color: var(--fg-faint); }
.svc-detail b { color: var(--fg-soft); font-weight: 500; }

.with { position: relative; margin-top: 14px; }
.with label { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint); pointer-events: none; }
.select {
  appearance: none; width: 100%; min-height: 50px; border: 1px solid var(--field-line); border-radius: 12px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  padding: 11px 42px 11px 15px; font-size: 16px; color: var(--fg); text-overflow: ellipsis;
}
.with .select { padding-left: 74px; }
.select option { color: #12403f; background: #fff; }
.select:hover { border-color: var(--champ); }
.select:focus { outline: none; border-color: var(--champ); box-shadow: 0 0 0 3px rgba(201, 169, 110, .28); }

/* ── the day: a strip of coming days ─────────── */
.strip-wrap { position: relative; display: flex; align-items: center; margin: 0 -22px; }
.strip { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; padding: 2px 22px 6px; scrollbar-width: none; flex: 1; }
.strip::-webkit-scrollbar { display: none; }
.icon-btn.edge { display: none; }
.day {
  flex: none; width: 50px; scroll-snap-align: start; border: 0; background: none; border-radius: 14px;
  display: grid; justify-items: center; align-content: start; gap: 2px; padding: 6px 0 8px; min-height: 92px; color: var(--fg);
  position: relative;
}
.day .w { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.day .num { position: relative; display: grid; place-items: center; width: 42px; height: 42px; font: 400 27px/1 var(--display); }
.day .num b { position: relative; z-index: 1; font-weight: 400; }
.day .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--champ); clip-path: circle(50% at 50% 50%); }
.day .disc.stamp { animation: stamp .5s var(--ease) both; }
@keyframes stamp { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
.day[aria-pressed="true"] .num { color: var(--teal-deep); }
.day .dot { border-radius: 50%; background: var(--champ); opacity: .85; }
.day .tag { font-size: 10px; line-height: 1.1; letter-spacing: .02em; color: var(--hol); max-width: 48px; text-align: center; }
.day.open { cursor: pointer; }
.day.open:hover { background: rgba(255, 255, 255, .05); }
.day.today .w { color: var(--champ-hi); }
.day.closed .num, .day.full .num { color: rgba(244, 239, 226, .32); }
.day.holiday .num { color: var(--hol); }
.day:disabled { cursor: default; }
.day.mstart::before { content: attr(data-month); position: absolute; left: -3px; top: -16px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--champ); white-space: nowrap; }
.cal-note { margin: 4px 0 0; font-size: 12.5px; color: var(--fg-faint); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.cal-note i { display: inline-block; border-radius: 50%; background: var(--champ); vertical-align: 1px; margin-right: 3px; }
.cal-note .red { color: var(--hol); }

/* ── the hour ───────────────────────────────── */
.tgroup { margin-top: 2px; }
.tgroup h3 { margin: 6px 0 2px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.tbtn {
  display: flex; align-items: baseline; gap: 6px; border: 0; border-bottom: 1px solid var(--line); background: none;
  padding: 10px 2px 9px; min-height: 46px; text-align: left; color: var(--fg); font-size: 16.5px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tbtn .st { font: 400 19px/1 var(--display); }
.tbtn .ld { flex: 1; min-width: 8px; border-bottom: 1px dotted rgba(255, 255, 255, .22); transform: translateY(-4px); }
.tbtn small { font-size: 12.5px; color: var(--fg-faint); white-space: nowrap; }
.tbtn:hover { background: rgba(255, 255, 255, .04); }
.tbtn[aria-checked="true"] { color: var(--champ-hi); border-bottom-color: var(--champ); background: rgba(201, 169, 110, .12); border-radius: 8px 8px 0 0; padding-left: 8px; padding-right: 8px; }
.tbtn[aria-checked="true"] small { color: var(--champ-hi); }
.muted { color: var(--fg-faint); font-size: 14px; margin: 4px 0; }
.skeleton { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.skeleton span { height: 46px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── form ───────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 14.5px; color: var(--fg-soft); }
.field .hint { font-size: 13px; color: var(--fg-faint); margin-top: -2px; }
.input {
  width: 100%; border: 1px solid var(--field-line); background: var(--field); border-radius: 12px;
  padding: 12px 14px; font-size: 17px; min-height: 50px; color: var(--fg); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--fg-faint); opacity: .8; }
.input:focus { outline: none; border-color: var(--champ); box-shadow: 0 0 0 3px rgba(201, 169, 110, .28); }
.input[aria-invalid="true"] { border-color: var(--hol); }
textarea.input { min-height: 84px; resize: vertical; }
.err { display: flex; gap: 6px; align-items: flex-start; color: var(--hol); font-size: 14px; font-weight: 500; }
.err .icon { width: 17px; height: 17px; margin-top: 2px; }
.formerr { background: rgba(232, 160, 140, .12); color: var(--hol); border: 1px solid var(--hol); border-radius: 12px; padding: 10px 12px; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.staff .formerr { background: var(--red-soft); }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 999px; color: var(--fg); }
.icon-btn:hover:not(:disabled) { background: rgba(127, 127, 127, .12); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ── the reserve band ───────────────────────── */
.band {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--teal-deep); color: var(--band-text);
  padding: 12px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(201, 169, 110, .35);
  box-shadow: 0 -10px 28px rgba(5, 25, 24, .35);
}
.band-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 10px; }
.band-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.band-name { font: 400 19px/1.1 var(--display); letter-spacing: .01em; }
.band-sub { font-size: 12.5px; color: var(--mist-2); margin-top: 2px; }
.band a { color: var(--band-text); }
.band .call { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid rgba(201, 169, 110, .5); border-radius: 999px; padding: 8px 14px; min-height: 40px; white-space: nowrap; }
.band .call .icon { width: 17px; height: 17px; color: var(--champ); }
.band .call:hover { border-color: var(--champ); }
.cta {
  width: 100%; border: 0; border-radius: 999px; background: var(--champ); color: var(--teal-deep);
  font: 600 16.5px/1.2 var(--text); letter-spacing: .03em; min-height: 54px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--ease), background .2s;
}
.cta:hover:not(:disabled) { background: var(--champ-hi); }
.cta:active:not(:disabled) { transform: scale(.985); }
.cta:disabled { background: var(--teal-raise); color: var(--mist-2); cursor: default; }
.cta.busy { cursor: progress; }
.sample { font-size: 11.5px; letter-spacing: .04em; color: var(--mist-2); text-align: center; }

/* ── the reservation card ───────────────────── */
.slip { max-width: 520px; margin: 22px auto 0; }
.slip-page { border: 1px solid rgba(201, 169, 110, .55); border-radius: 18px; padding: 22px 22px 24px; background: var(--teal-deep); box-shadow: 0 18px 40px rgba(5, 25, 24, .35); }
.slip-foot { margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-faint) !important; text-align: center; line-height: 1.7; }
.slip h2 { margin: 0; font: 400 38px/1.05 var(--display); color: #f8f3e6; }
.slip .big { display: flex; align-items: center; gap: 18px; margin: 20px 0 6px; }
.slip .bignum { position: relative; width: 104px; height: 104px; display: grid; place-items: center; font: 400 58px/1 var(--display); color: var(--teal-deep); flex: none; }
.slip .bignum b { position: relative; font-weight: 400; }
.slip .bignum .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--champ); animation: stamp .6s var(--ease) both; }
.slip .bignum.off { color: var(--fg-faint); border: 1px solid var(--line); border-radius: 50%; }
.slip .bigside .m { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--champ); }
.slip .bigside .t { font: 400 34px/1.1 var(--display); color: var(--ivory); }
.slip .bigside .e { font-size: 13.5px; color: var(--fg-faint); }
.slip dl { margin: 18px 0; display: grid; }
.slip dl div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.slip dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); }
.slip dl .ld { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .22); transform: translateY(-4px); }
.slip dd { margin: 0; font-size: 16px; color: var(--ivory); text-align: right; }
.slip p { margin: 0 0 14px; color: var(--fg-soft); }
.actions { display: grid; gap: 8px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; padding: 10px 18px; font-weight: 500; text-decoration: none; border: 1px solid var(--field-line); background: transparent; color: var(--fg); }
.btn:hover { border-color: var(--champ); }
.btn.solid { background: var(--champ); border-color: var(--champ); color: var(--teal-deep); font-weight: 600; }
.btn.solid:hover { background: var(--champ-hi); }
.btn.quiet { border-color: transparent; color: var(--fg-soft); }
.btn.danger { border-color: rgba(244, 239, 226, .45); color: var(--ivory); }
.btn.danger:hover { border-color: var(--ivory); background: rgba(255, 255, 255, .05); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* phone: one-row band (Reserve pill + Call), address and sample note on small lines */
@media (max-width: 959px) {
  .svc-detail { display: none; }
  .band { padding-top: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .band-in { grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
  .band-id { display: contents; }
  .band-id > div { grid-row: 2; grid-column: 1 / -1; text-align: center; }
  .band .band-name { display: none; }
  .band .band-sub { margin: 0; font-size: 11.5px; }
  .cta { grid-row: 1; grid-column: 1; }
  .band .call { grid-row: 1; grid-column: 2; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .band .call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .band .call .icon { width: 20px; height: 20px; }
  .sample { grid-column: 1 / -1; margin-top: -4px; font-size: 11px; }
}

/* "pick this next" pulse when the band button is pressed too early */
.nudge .day.open .num, .nudge .tbtn, .nudge .item { animation: nudge .9s var(--ease) 2; }
@keyframes nudge { 50% { color: var(--champ-hi); } }

/* ── wide screens: the menu left, the day and hour right ── */
@media (min-width: 960px) {
  .page { padding: 0 32px 150px; }
  .masthead { padding-top: 30px; }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 0 72px; align-items: start; }
  .title { margin-top: 34px; }
  .col-b { padding-top: 48px; }
  .strip-wrap { margin: 0 -8px; }
  .strip { padding: 2px 4px 6px; scroll-padding: 0 4px; }
  .icon-btn.edge { display: grid; flex: none; color: var(--champ); }
  .day { width: 58px; }
  .item { align-items: baseline; min-height: 44px; padding: 9px 0; }
  .item .nmw { display: flex; align-items: baseline; gap: 8px; }
  .item .ld { transform: translateY(-4px); }
  .band { padding-left: 32px; padding-right: 32px; }
  .band-in { max-width: 1116px; grid-template-columns: 1fr minmax(340px, 440px); align-items: center; column-gap: 32px; }
  .band-name { font-size: 22px; }
  .sample { grid-column: 1 / -1; text-align: left; }
}
