/* ============================================================
   SOLARI — Components
   Buttons, header/nav, cards, forms, tabs, badges, footer.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--primary {
  background: var(--color-brand-blue-500);
  color: var(--color-text-on-dark);
}
.btn--primary:hover { background: var(--color-brand-blue-700); color: var(--color-text-on-dark); }

.btn--accent {
  background: var(--color-brand-accent);
  color: var(--color-text-on-dark);
}
.btn--accent:hover { background: var(--color-brand-accent-strong); color: var(--color-text-on-dark); }

.btn--ghost {
  background: transparent;
  color: var(--color-brand-blue-500);
  border-color: var(--color-brand-blue-300);
}
.btn--ghost:hover { background: var(--color-brand-blue-100); color: var(--color-brand-blue-700); }

.btn--soft {
  background: var(--color-brand-blue-200);
  color: var(--color-brand-blue-700);
}
.btn--soft:hover { background: var(--color-brand-blue-300); }

.btn--sm { padding: 8px 16px; font-size: var(--fs-12); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-16); }
.btn--block { width: 100%; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-header-bg);
  z-index: var(--z-sticky);
  box-shadow: 0 1px 0 rgba(43, 49, 66, 0.04);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-nav--right { justify-content: flex-end; }
.site-nav a {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-header-ink);
}
.site-nav a:hover { color: var(--color-header-accent); }
.site-nav a.is-active { color: var(--color-header-accent); }

/* Logo wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
}
.brand__mark {
  font-family: var(--font-script);
  font-size: var(--fs-32);
  color: var(--color-header-ink-soft);
  letter-spacing: 0;
}
.brand__flourish {
  width: 22px; height: 22px;
  color: var(--color-brand-accent);
}
.brand__caption {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand-blue-500);
  text-align: center;
  margin-top: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: var(--fs-20);
  color: var(--color-brand-blue-700);
  cursor: pointer;
}
@media (max-width: 880px) {
  .site-header__inner { grid-template-columns: auto auto auto; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-brand-blue-100);
  position: relative;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--color-brand-accent);
  color: var(--color-text-on-dark);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { font-family: var(--font-serif); font-size: var(--fs-20); margin: 0; color: var(--color-brand-blue-700); }
.card__meta { display: flex; gap: var(--space-3); font-size: var(--fs-14); color: var(--color-text-muted); }
.card__meta span + span::before { content: '|'; margin-right: var(--space-3); color: var(--color-text-soft); }
.card__price { font-family: var(--font-serif); font-size: var(--fs-18); color: var(--color-brand-blue-500); }
.card__cta { margin-top: auto; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-7);
}
.tabs__item {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: 0; border-left: 0; border-right: 0;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.tabs__item:hover { color: var(--color-brand-blue-500); }
.tabs__item.is-active {
  color: var(--color-brand-blue-700);
  border-bottom-color: var(--color-brand-accent);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.badge--pending   { background: var(--color-status-pending-bg);   color: var(--color-status-pending); }
.badge--confirmed { background: var(--color-status-confirmed-bg); color: var(--color-status-confirmed); }
.badge--cancelled { background: var(--color-status-cancelled-bg); color: var(--color-status-cancelled); }
.badge--completed { background: var(--color-status-completed-bg); color: var(--color-status-completed); }
.badge--soft      { background: var(--color-brand-blue-100);     color: var(--color-brand-blue-700); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field__label {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
.field__hint { font-size: var(--fs-12); color: var(--color-text-soft); }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-16);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-brand-blue-400);
  box-shadow: var(--shadow-focus);
}
.textarea { min-height: 120px; resize: vertical; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-text-on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,49,66,0.05) 0%, rgba(43,49,66,0.45) 70%);
}
.hero__inner {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  max-width: 880px;
}
.hero__title {
  font-family: var(--font-script);
  font-weight: var(--fw-regular);
  color: #fff;
  font-size: clamp(var(--fs-40), 7vw, 5.5rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin-bottom: var(--space-5);
}
.hero__sub {
  font-size: var(--fs-18);
  color: rgba(255,255,255,0.9);
  max-width: 56ch;
  margin: 0 auto var(--space-6);
  line-height: var(--lh-loose);
}
.hero__cta { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.hero__pager {
  position: absolute; left: 0; right: 0; bottom: var(--space-5);
  display: flex; gap: var(--space-2); justify-content: center;
}
.hero__pager span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.hero__pager span.is-active { background: #fff; }

/* ---------- Page header band (for inner pages) ---------- */
.page-header {
  background: var(--color-header-bg);
  padding: var(--space-7) 0 var(--space-7);
  text-align: center;
}
.page-header__title {
  font-family: var(--font-script);
  font-size: clamp(var(--fs-40), 5vw, var(--fs-56));
  color: var(--color-header-ink);
  margin: 0;
}
.page-header__sub {
  margin-top: var(--space-3);
  font-size: var(--fs-16);
  color: var(--color-header-ink);
  opacity: 0.8;
}

/* ---------- Team portraits — alternating row layout ---------- */
.team-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}

.member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
}
/* Even rows flip portrait to the right */
.member:nth-child(even) .member__avatar { order: 2; justify-self: end; }
.member:nth-child(even) .member__body   { order: 1; text-align: right; }

.member__avatar {
  width: clamp(280px, 36vw, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #D9DDE2; /* neutral portrait grey, matches reference */
  box-shadow: 0 8px 30px rgba(43, 49, 66, 0.10);
  justify-self: start;
}
.member__avatar img,
.member__avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.member__body { max-width: 44ch; }
.member__name {
  font-family: var(--font-serif);
  font-size: var(--fs-32);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-tight);
}
.member__role {
  font-size: var(--fs-16);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  line-height: var(--lh-snug);
}
.member__bio {
  font-size: var(--fs-16);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}
.member__rule {
  display: inline-block;
  width: 48px; height: 1px; background: var(--color-brand-blue-300);
  margin: 0 0 var(--space-5);
  border: 0;
}
.member:nth-child(even) .member__body { margin-left: auto; }
.member:nth-child(even) .member__rule { margin-left: auto; }

@media (max-width: 880px) {
  .member { grid-template-columns: 1fr; gap: var(--space-5); text-align: center; }
  .member:nth-child(even) .member__avatar,
  .member:nth-child(even) .member__body {
    order: initial; justify-self: center; text-align: center;
  }
  .member__avatar { width: 240px; }
  .member__body { margin: 0 auto; }
  .member:nth-child(even) .member__body { margin: 0 auto; }
  .member:nth-child(even) .member__rule { margin: 0 auto var(--space-5); }
  .member__name { font-size: var(--fs-24); }
}

/* ---------- Booking flow ---------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.steps li { list-style: none; }
.steps__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--fs-14);
}
.steps__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-brand-blue-100);
  color: var(--color-brand-blue-500);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
}
.steps__item.is-active .steps__num { background: var(--color-brand-blue-500); color: #fff; }
.steps__item.is-active { color: var(--color-brand-blue-700); font-weight: var(--fw-medium); }
.steps__divider {
  width: 36px; height: 1px;
  background: var(--color-divider);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: var(--fs-14);
}
.calendar__head, .calendar__cell {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
}
.calendar__head { font-weight: var(--fw-semibold); color: var(--color-text-muted); font-size: var(--fs-12); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.calendar__cell { background: var(--color-bg-muted); color: var(--color-text); cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.calendar__cell:hover { background: var(--color-brand-blue-100); }
.calendar__cell.is-blocked { color: var(--color-text-soft); background: transparent; cursor: not-allowed; text-decoration: line-through; }
.calendar__cell.is-selected { background: var(--color-brand-blue-500); color: #fff; }
.calendar__cell.is-today { outline: 2px solid var(--color-brand-blue-300); }

/* ------------------------------------------------------------
   Inline calendar widget (public booking date picker)
   ------------------------------------------------------------ */
.cal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.cal__title { font-family: var(--font-serif); font-size: var(--fs-18); color: var(--color-brand-blue-700); }
.cal__nav {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-18);
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cal__nav:hover { background: var(--color-brand-blue-100); color: var(--color-brand-blue-700); }

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal__weekdays {
  margin-bottom: 6px;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}
.cal__day {
  border: 0;
  background: transparent;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-14);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cal__day:hover:not(:disabled):not(.is-blank) {
  background: var(--color-brand-blue-100);
  color: var(--color-brand-blue-700);
}
.cal__day.is-today { outline: 1.5px solid var(--color-brand-blue-300); outline-offset: -2px; }
.cal__day.is-selected {
  background: var(--color-brand-blue-500);
  color: #fff;
  font-weight: var(--fw-semibold);
}
.cal__day.is-selected:hover { background: var(--color-brand-blue-700); color: #fff; }
.cal__day.is-past { color: var(--color-text-soft); cursor: not-allowed; opacity: 0.5; }
.cal__day.is-blank { visibility: hidden; }
.cal__hint {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-12);
  color: var(--color-text-soft);
  text-align: center;
}

/* Mobile: shrink cells slightly */
@media (max-width: 480px) {
  .cal { padding: var(--space-3); }
  .cal__day { height: 38px; font-size: var(--fs-13); }
}

/* Slot grouping (Morning / Afternoon / Evening) -------------------- */
.slot-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.slot-section__label {
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-3);
}
.slot {
  text-align: center;
  font-size: var(--fs-14);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.slot:hover { border-color: var(--color-brand-blue-400); color: var(--color-brand-blue-700); }
.slot.is-selected { background: var(--color-brand-blue-500); color: #fff; border-color: var(--color-brand-blue-500); }
.slot.is-disabled { color: var(--color-text-soft); background: var(--color-bg-muted); cursor: not-allowed; text-decoration: line-through; }

.summary-card {
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}
.summary-card dt { color: var(--color-text-muted); font-size: var(--fs-14); }
.summary-card dd { margin: 0 0 var(--space-3); font-weight: var(--fw-medium); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-brand-blue-700);
  color: rgba(255,255,255,0.85);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
.site-footer__brand .brand__mark { color: #fff; }
.site-footer__brand .brand__caption { color: rgba(255,255,255,0.7); }
.site-footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-3);
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__bottom {
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.6);
}

/* ---------- Featurelet (icon + text block) ---------- */
.feature {
  text-align: center;
  padding: var(--space-5);
}
.feature__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-brand-blue-100);
  color: var(--color-brand-blue-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.feature__title { font-family: var(--font-serif); font-size: var(--fs-20); margin-bottom: var(--space-2); color: var(--color-brand-blue-700); }
.feature__text { color: var(--color-text-muted); font-size: var(--fs-14); line-height: var(--lh-loose); }

/* ---------- Testimonial ---------- */
.testimonial {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6);
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  color: var(--color-brand-blue-700);
  margin-bottom: var(--space-5);
}
.testimonial__attr {
  font-size: var(--fs-14);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ---------- Style guide swatches ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-4); }
.swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.swatch__chip { height: 90px; }
.swatch__meta { padding: var(--space-3); font-size: var(--fs-12); }
.swatch__name { font-weight: var(--fw-semibold); color: var(--color-text); }
.swatch__hex  { color: var(--color-text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ============================================================
   Prompt 15 — Mobile / Responsive Polish (public site)
   ============================================================ */

/* Touch-friendly button hit areas across the public site. */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 36px; padding: 8px 14px; }
}

/* Hero stack: smaller font scales, more breathing room, image priority shrinks. */
@media (max-width: 768px) {
  .hero { min-height: 70vh; padding: var(--space-6) 0; }
  .hero__title { font-size: clamp(28px, 7vw, 44px); }
  .hero__sub   { font-size: var(--fs-15); }
  .hero__inner { padding: var(--space-4); text-align: center; }
}

/* Two-column section copy stacks on phones. */
@media (max-width: 768px) {
  .section .container > .grid-2 { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Modal dialog: fill more of the screen on phones so the form is reachable. */
@media (max-width: 640px) {
  .modal,
  .modal__dialog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 100vh;
  }
  .modal__body { padding: var(--space-4); }
  .modal__foot {
    position: sticky;
    bottom: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
  }
}

/* Form rows stack at narrow widths; native input types take over keyboards. */
@media (max-width: 640px) {
  .field--row { flex-direction: column; align-items: stretch; }
  .field--row .input,
  .field--row .select { width: 100%; }
}

/* Footer columns collapse to a single column on very narrow screens. */
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .site-footer__bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ============================================================
   2026-05-13 Audit — Responsiveness fixes (R3-R8)
   ============================================================ */

/* (R3) Public mobile nav: the toggle button adds .is-open to
   .site-header__inner, but until now no rule actually revealed the
   nav. Below 880px, open the nav as a stacked drop-panel. */
@media (max-width: 880px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto auto;
  }
  .site-header__inner.is-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--color-header-bg);
    padding: var(--space-3) var(--space-5);
    gap: var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 16px rgba(43, 49, 66, 0.08);
    z-index: var(--z-sticky);
  }
  .site-header__inner.is-open .site-nav--right {
    top: calc(100% + 1px);
    border-top: 0;
  }
  .site-header__inner.is-open .site-nav a {
    padding: var(--space-2) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* (R4) Booking-flow step indicator: drop the fixed dividers + tighten
   spacing so a 3- or 4-step indicator fits at 360px. */
@media (max-width: 480px) {
  .steps {
    gap: var(--space-2);
    margin-bottom: var(--space-5);
  }
  .steps__divider { width: 16px; }
  .steps__item   { font-size: var(--fs-12); gap: 6px; }
  .steps__num    { width: 24px; height: 24px; font-size: var(--fs-12); }
}

/* (R5) Hero min-heights cause vertical overflow on landscape phones.
   Cap to the viewport so short-height devices don't get a full
   blank scrollable hero. */
@media (max-height: 600px) and (orientation: landscape) {
  .hero      { min-height: 100svh; }
  .home-hero { min-height: 100svh; }
}
@media (max-width: 480px) {
  .hero        { min-height: 420px; }
  .home-hero   { min-height: 480px; }
  .hero__inner { padding: var(--space-6) var(--space-4); }
}

/* (R6 + R7) The booking view uses inline grid-template-columns:1.3fr 1fr
   on the outer grid AND on the Your-Details inner grid. Inline styles
   beat anything outside !important, so override explicitly. Scoped to
   #bookingForm to avoid leaking to other inline-style grids. */
@media (max-width: 880px) {
  #bookingForm .grid,
  #bookingForm .grid--2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-5) !important;
  }
  #bookingForm .summary-card { margin-top: var(--space-4); }
  #bookingForm aside h3      { margin-top: var(--space-5); }
}

/* (R6b) Signed-in banner wraps the email + edit button onto a new line
   instead of squishing them on phones. */
@media (max-width: 640px) {
  .signed-in-banner       { flex-wrap: wrap; gap: var(--space-3); }
  .signed-in-banner__body { flex: 1 1 100%; }
}

/* (R8) Tap-target floor of 44pt on calendar chevrons (were 36px — fails
   iOS HIG) and the time-slot pills. */
@media (max-width: 768px) {
  .cal__nav { width: 44px; height: 44px; font-size: var(--fs-20); }
  .slot     { min-height: 44px; }
}

/* (R8b) Full-width primary buttons on phones so booking CTAs are
   unmissable. Scoped to forms so the desktop hero isn't affected. */
@media (max-width: 480px) {
  #bookingForm .btn,
  form.account-form .btn,
  .form-stack .btn { width: 100%; }
}

/* Prevent body horizontal scroll caused by stray oversized children
   (a common gotcha on inline-styled views). overflow-x:clip preserves
   sticky positioning where overflow:hidden would break it. */
html, body { overflow-x: clip; }

/* Honour the user's motion preference site-wide, not just on the home
   page's decorative musical notes. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Improve focus rings for keyboard users — outline beats box-shadow
   on form fields because it doesn't get clipped by overflow:hidden
   containers. Mirrors the base.css :focus-visible style. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-brand-blue-400);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
}

/* ---------- Touch targets ----------
   Deploy standard requires every button and link to be at least 44x44px on
   touch devices. These rules only grow the hit area — padding and flex
   centring — so the visual weight of the type is unchanged.
   Scoped to coarse pointers and small screens so mouse-driven desktop
   layouts keep their tighter spacing. */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.tabs__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (pointer: coarse), (max-width: 880px) {
  .site-footer__list a,
  .site-footer__bottom a,
  .site-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    /* Short nav words ("Book") are otherwise only ~37px wide. */
    min-width: 44px;
  }

  /* The footer lists space their items by gap; shrink it to absorb the extra
     height so the columns do not grow taller than they were. */
  .site-footer__list { gap: 0; }

  /* The bottom row is short words ("Terms", "Admin") — tall enough after the
     rule above, but still narrower than a fingertip. */
  .site-footer__bottom a {
    min-width: 44px;
    justify-content: center;
  }

  /* The footer brand lockup is a link too. */
  .site-footer__brand > a,
  .site-footer .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Phone and email links anywhere on the site — the ones most likely to be
     tapped in a hurry, and the easiest to miss. */
  a[href^="mailto:"],
  a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
