/* Public page: the portal's layout and type, in the clinic's own brand
   lavender (sampled from its Facebook posters, around #b0b0d0, deepened
   to #5a4f9c so white text on it is 6.9:1). Scoped to .site, so the
   sign-in page and the staff portal keep their navy and blue. */

.site {
  --accent: #5a4f9c;
  --accent-hover: #4c4288;
  --accent-press: #3f3673;
  --accent-tint: #efedf8;
  --accent-tint-2: #ddd8f0;
  --focus-ring: 0 0 0 3px rgb(90 79 156 / 0.32);
  --ground: #f5f4fa;
  --info: #5a4f9c; --info-bg: #efedf8; --info-line: #cbc4e8;
  --shadow-pop: 0 14px 34px -10px rgb(43 39 72 / 0.28), 0 3px 8px rgb(43 39 72 / 0.08);
  background: var(--surface);
}
.site ::selection { background: var(--accent-tint-2); }
.site .slot[aria-pressed="true"] small { color: #e4e0f7; }
.site .banner--info { color: #3f3673; }
.site .dialog::backdrop { background: rgb(43 39 72 / 0.42); }
.site .toast { background: #2b2748; }
.site-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.site-head { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-brand { padding: 0; color: var(--text); }
.site-brand:hover { color: var(--text); }
.site-brand .brand__sub { color: var(--text-3); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }

/* First viewport: the open times are the hero's proof */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 56px; align-items: center;
  padding: 56px 0 40px;
}
.hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 13ch; }
.hero__sub { margin-top: 16px; font-size: var(--fs-md); color: var(--text-2); max-width: 42ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__actions .btn { min-height: 48px; padding: 0 22px; font-size: var(--fs-md); }
.hero__facts { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--text-3); font-size: var(--fs-sm); }

.opentimes { padding: 20px; background: var(--ground); border-color: #e4e1ef; box-shadow: 0 24px 48px -28px rgb(43 39 72 / 0.35); }
.opentimes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.opentimes__head h2 { font-size: var(--fs-md); }
.opentimes__head .input { width: auto; max-width: 230px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: var(--fs-sm); }
.opentimes .slots { min-height: 112px; }
.opentimes .hint { margin-top: 12px; }
.opentimes__walkin { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e1ef;
  font-size: var(--fs-sm); color: var(--text-2); }
.opentimes__walkin .icon { flex: none; margin-top: 2px; color: var(--accent); }

.daystrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scroll-snap-type: x mandatory;
  mask-image: linear-gradient(to right, var(--surface) 82%, transparent); -webkit-mask-image: linear-gradient(to right, var(--surface) 82%, transparent); scrollbar-width: thin; }
.daystrip::after { content: ""; flex: none; width: 40px; }
.day {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px;
  min-width: 58px; padding: 7px 6px; border-radius: var(--r-control); border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; font-size: var(--fs-xs); color: var(--text-3);
  transition: border-color 120ms ease, transform 120ms var(--ease-out);
}
.day b { font-size: 1.05rem; color: var(--text); }
.day:hover { border-color: var(--accent); }
.day:active { transform: scale(0.97); }
.day[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #e4e0f7; }
.day[aria-selected="true"] b { color: #fff; }

.steps-band { padding: 8px 0 48px; }
.flow { list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow li { display: flex; gap: 12px; align-items: flex-start; }
.flow .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.flow strong { display: block; }
.flow span { color: var(--text-3); font-size: var(--fs-sm); }

.section { padding: 28px 0 56px; }
.section__title { font-size: var(--fs-xl); letter-spacing: -0.015em; margin-bottom: 20px; }

.pricelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pricelist li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pricelist h3 { font-size: var(--fs-md); }
.pricelist p { color: var(--text-3); font-size: var(--fs-sm); margin-top: 3px; max-width: 46ch; }
.pricelist__meta { display: grid; justify-items: end; align-content: start; gap: 2px; white-space: nowrap; }
.pricelist__meta strong { font-size: 1.05rem; }
.pricelist__meta span { color: var(--text-3); font-size: var(--fs-sm); }

.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.visit__facts { display: grid; grid-template-columns: 110px 1fr; gap: 14px 16px; margin: 0; }
.visit__facts dt { display: flex; gap: 8px; align-items: flex-start; color: var(--text-3); font-size: var(--fs-sm); padding-top: 2px; }
.visit__facts dt .icon { width: 16px; height: 16px; margin-top: 2px; }
.visit__facts dd { margin: 0; }
.posters__title { font-size: var(--fs-md); margin: 10px 0 14px; }
.posters { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  mask-image: linear-gradient(to right, var(--surface) 85%, transparent); -webkit-mask-image: linear-gradient(to right, var(--surface) 85%, transparent); scrollbar-width: thin; }
.posters li { scroll-snap-align: start; }
.posters img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-panel); border: 1px solid var(--line); }

.site-foot { border-top: 1px solid var(--line); background: var(--ground); }
.site-foot__inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; color: var(--text-3); font-size: var(--fs-sm); flex-wrap: wrap; }
.site-foot a { color: var(--text-2); }

/* Booking dialog */
.booking .dialog__head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bk-steps { list-style: none; padding: 0; margin: 10px 0 0; }
.bk-steps li { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: var(--fs-sm); color: var(--text-3); }
.bk-steps li.is-current { color: var(--text); font-weight: 600; }
.bk-steps li.is-current b { background: var(--accent); color: #fff; }
.bk-steps li.is-done b { background: var(--ok-bg); color: var(--ok); }
.bk-step { display: grid; gap: 16px; }
.bk-summary { padding: 10px 14px; background: var(--accent-tint); border-radius: var(--r-control); color: #3f3673; font-weight: 600; }
.otp { display: flex; gap: 10px; }
.otp__box {
  width: 52px; height: 60px; text-align: center; font-size: var(--fs-lg); font-weight: 700;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.otp__box:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.otp.is-invalid .otp__box { border-color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--text-3); cursor: default; text-decoration: none; }
.bk-done { justify-items: center; text-align: center; padding: 18px 0; }
.bk-done > .icon { width: 48px; height: 48px; color: var(--ok); }
.bk-done h3 { font-size: var(--fs-lg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .pricelist, .visit { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .site-nav a { display: none; }
}
@media (max-width: 480px) {
  .otp { gap: 6px; }
  .otp__box { width: 44px; height: 54px; }
}

/* Scrolling strips must scroll inside their column, never widen the page. */
.hero > *, .visit > *, .opentimes, .daystrip, .posters { min-width: 0; }
@media (max-width: 900px) {
  .hero, .visit { grid-template-columns: minmax(0, 1fr); }
  .posters { grid-auto-columns: minmax(160px, 70%); }
}

/* Book links in the fee list read as actions, not labels */
.pricelist__book { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.pricelist__book:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.pricelist__book .icon { width: 14px; height: 14px; }
