/* Lumina Clinic demo site.
   One stylesheet for both languages. Layout uses logical properties
   (inline-start / inline-end), so the Arabic pages are true right to left
   without a second stylesheet. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-05FF, U+2000-206F, U+20A0-20CF, U+2190-21FF;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/IBMPlexSans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-05FF, U+2000-206F, U+20A0-20CF, U+2190-21FF;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/IBMPlexSansArabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --mist: #eef4f3;
  --mist-deep: #dde9e7;
  --ink: #0c2f36;
  --ink-soft: #456065;
  --petrol: #0e4a54;
  --petrol-deep: #082b31;
  --night: #05201f;
  --glow: #f6a75c;
  --glow-soft: #fde6cf;
  --glow-deep: #8f4a0b;
  --line: #cfdcda;
  --on-dark: #ecf4f2;
  --on-dark-soft: #a9c6c4;
  --line-dark: #2b5960;
  --error: #a8261c;
  --error-on-dark: #ffb4a6;

  --font-display: "Readex Pro", "Plex", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Plex", "Segoe UI", Tahoma, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 28px;
  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { line-height: 1.4; }
h1 { font-size: clamp(2.25rem, 7.2vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.0625rem; font-weight: 500; }
:lang(ar) h1, :lang(ar) h2 { letter-spacing: 0; }
p { margin: 0; }
a { color: var(--petrol); text-underline-offset: 3px; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--glow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; touch-action: manipulation;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn svg { flex: none; }
.btn--primary { background: var(--petrol); color: #fff; }
.btn--primary:hover { background: var(--petrol-deep); }
.btn--glow { background: var(--glow); color: var(--ink); }
.btn--glow:hover { background: #ffbd7d; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--petrol); }
.on-dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark-soft); }
.btn--whatsapp { background: #0b5c3b; color: #fff; }
.btn--whatsapp:hover { background: #084a2f; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .header { backdrop-filter: blur(10px); }
}
.header__row { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.01em; white-space: nowrap; }
:lang(ar) .brand__name { letter-spacing: 0; }
.nav { display: none; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-size: 0.9688rem; border-radius: var(--radius-s);
}
.nav a:hover { background: var(--mist); }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.9688rem; font-weight: 600;
}
.lang:hover { border-color: var(--petrol); }
.header__book { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.nav.is-open {
  display: block; position: absolute; inset-inline: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  box-shadow: 0 18px 30px -18px rgba(8, 43, 49, 0.35);
}
.nav.is-open a { min-height: 48px; font-size: 1.0625rem; border-bottom: 1px solid var(--mist); border-radius: 0; padding: 0 4px; }
.nav.is-open li:last-child a { border-bottom: 0; }
@media (min-width: 1000px) {
  .nav, .nav.is-open { display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none; margin-inline-end: 8px; }
  .nav ul { display: flex; }
  .nav.is-open a { min-height: 44px; font-size: 0.9688rem; border: 0; padding: 0 12px; border-radius: var(--radius-s); }
  .menu-btn { display: none; }
  .header__book { display: inline-flex; min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero__grid { display: grid; gap: 28px; padding-block: 36px 44px; }
.hero__copy { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
:lang(ar) .hero h1 { max-width: 16ch; }
.hero__lede { margin-top: 18px; max-width: 34em; font-size: 1.125rem; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { display: grid; gap: 6px; margin-top: 26px; font-size: 0.9688rem; color: var(--ink-soft); }
.hero__facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero__facts svg { flex: none; margin-top: 5px; color: var(--petrol); }

.hero__stage { position: relative; min-height: 300px; display: flex; align-items: flex-end; padding: 150px 12px 12px; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(180deg, #fff7ee 0%, #fdeedd 100%); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun { transform-origin: 50% 50%; animation: sun-rise 1100ms var(--ease-out) both; }
.sun-ring { animation: ring-in 1400ms var(--ease-out) both; }
@keyframes sun-rise { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring-in { from { opacity: 0; } to { opacity: 1; } }

.next {
  position: relative; z-index: 1; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 20px; box-shadow: 0 30px 50px -34px rgba(8, 43, 49, 0.55);
}
.next__title { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; display: flex; align-items: center; gap: 10px; }
.next__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); flex: none; }
.next__list { display: grid; gap: 10px; margin-top: 14px; }
.next__slot {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  width: 100%; min-height: 64px; padding: 12px 16px; text-align: start;
  background: var(--mist); border: 2px solid transparent; border-radius: var(--radius-m);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.next__slot:hover { border-color: var(--petrol); background: #fff; }
.next__dept { font-size: 0.875rem; color: var(--ink-soft); grid-column: 1; }
.next__when { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; grid-column: 1; }
.next__go { grid-column: 2; grid-row: 1 / span 2; color: var(--petrol); }
.next__note { margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: 72px 84px; }
  .hero__stage { min-height: 540px; padding: 24px; }
  .next { max-width: 400px; margin-inline-start: auto; }
}
/* The language link is the only Arabic text on the English page: use a system face so the Arabic font files are not downloaded for it. */
html[lang="en"] a[lang="ar"] { font-family: "Segoe UI", Tahoma, system-ui, sans-serif; }
@media (min-width: 900px) {
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section--mist { background: var(--mist); }
.section__head { max-width: 44em; margin-bottom: 36px; }
.section__head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; }
@media (min-width: 900px) { .section { padding-block: 104px; } .section__head { margin-bottom: 52px; } }

/* Services */
.depts { display: grid; gap: 40px; }
.dept__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.dept__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--glow-soft); display: grid; place-items: center; color: var(--ink); flex: none; }
.treat { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--line); }
.treat p { grid-column: 1; color: var(--ink-soft); font-size: 0.9688rem; max-width: 40em; }
.treat__time { grid-column: 2; grid-row: 1; font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; padding-top: 3px; }
.treat__book {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 600; font-size: 0.9688rem;
}
.services__note { margin-top: 28px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 46em; }
@media (min-width: 900px) { .depts { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Doctors */
.doctors { display: grid; gap: 16px; }
.doctor { background: #fff; border-radius: var(--radius-l); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.doctor__avatar { grid-row: 1 / span 2; width: 76px; height: 76px; }
.doctor__role { color: var(--ink-soft); font-size: 0.9688rem; }
.doctor__meta { grid-column: 1 / -1; margin-top: 10px; display: grid; gap: 8px; font-size: 0.9375rem; }
.doctor__meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.doctor__meta dt { color: var(--ink-soft); }
.doctor__book { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 0.9688rem; margin-top: 4px; }
@media (min-width: 700px) { .doctors { grid-template-columns: 1fr 1fr; gap: 20px; } .doctor { padding: 28px; } }

/* ---------- Booking ---------- */
.book { background: var(--petrol-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.book .section__head p { color: var(--on-dark-soft); }
.book__shell { display: grid; gap: 20px; }
.book__panel { background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: 20px; min-width: 0; }
.book__panel :focus-visible { outline-color: var(--petrol); }
.on-dark .book__panel .btn--ghost { border-color: var(--line); color: var(--ink); }
.on-dark .book__panel .btn--ghost:hover { border-color: var(--petrol); }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps li { flex: 1; font-size: 0.8125rem; color: var(--ink-soft); padding-top: 10px; border-top: 4px solid var(--mist-deep); min-width: 0; }
.steps li span { display: none; }
.steps li.is-done { border-top-color: var(--petrol); }
.steps li[aria-current="step"] { border-top-color: var(--glow); color: var(--ink); font-weight: 600; }
@media (min-width: 620px) { .steps li span { display: inline; } }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step__legend { padding: 0; margin-bottom: 18px; display: block; width: 100%; }
.step__legend:focus { outline: none; }
.step__count { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 4px; }
.step__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
:lang(ar) .step__title { line-height: 1.5; }
.step__group { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin: 20px 0 10px; }
.step__group:first-of-type { margin-top: 0; }

.options { display: grid; gap: 8px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option__body {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  min-height: 56px; padding: 10px 16px;
  border: 2px solid var(--line); border-radius: var(--radius-m); background: #fff;
  transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.option__body--doctor { grid-template-columns: auto 1fr; }
.option__body--doctor svg { grid-row: 1 / span 2; width: 44px; height: 44px; }
.option__name { font-weight: 600; }
.option__sub { font-size: 0.875rem; color: var(--ink-soft); }
.option__body .option__sub { grid-column: 1; }
.option__body--doctor .option__sub, .option__body--doctor .option__name { grid-column: 2; }
.option__dur { grid-column: 2; grid-row: 1 / span 2; font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }
.option input:hover + .option__body { border-color: var(--petrol); }
.option input:checked + .option__body { border-color: var(--ink); background: var(--glow-soft); }
.option input:focus-visible + .option__body { outline: 3px solid var(--petrol); outline-offset: 3px; }
@media (min-width: 620px) { .options--two { grid-template-columns: 1fr 1fr; } }

.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; }
.day input, .slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.day__body {
  display: grid; justify-items: center; gap: 0; padding: 8px 2px; min-height: 64px;
  border: 2px solid var(--line); border-radius: var(--radius-m); background: #fff; line-height: 1.25;
}
.day__dow { font-size: 0.75rem; color: var(--ink-soft); }
.day__num { font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; }
.day__mon { font-size: 0.75rem; color: var(--ink-soft); }
.day input:hover + .day__body { border-color: var(--petrol); }
.day input:checked + .day__body { border-color: var(--ink); background: var(--glow-soft); }
.day input:checked + .day__body .day__dow, .day input:checked + .day__body .day__mon { color: var(--ink); }
.day input:focus-visible + .day__body, .slot input:focus-visible + .slot__body { outline: 3px solid var(--petrol); outline-offset: 2px; }
.day input:disabled { cursor: not-allowed; }
.day input:disabled + .day__body { background: var(--mist); border-color: var(--mist); color: var(--ink-soft); }
.day input:disabled + .day__body .day__num { text-decoration: line-through; font-weight: 300; }
@media (min-width: 620px) { .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } }

.times { margin-top: 22px; }
.times__date { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }
.times__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 0.875rem; color: var(--ink-soft); }
.times__legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line); background: #fff; flex: none; }
.key--taken { background: var(--mist); border-color: var(--mist); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.slot { position: relative; }
.slot__body {
  display: grid; place-items: center; min-height: 48px; padding: 4px;
  border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff;
  font-weight: 600; font-size: 0.9688rem; font-variant-numeric: tabular-nums; text-align: center;
}
.slot input:hover + .slot__body { border-color: var(--petrol); }
.slot input:checked + .slot__body { border-color: var(--ink); background: var(--glow); }
.slot input:disabled { cursor: not-allowed; }
.slot input:disabled + .slot__body { background: var(--mist); border-color: var(--mist); color: var(--ink-soft); font-weight: 400; text-decoration: line-through; }
.slot__mine { display: block; font-size: 0.6875rem; font-weight: 600; text-decoration: none; }
.slot--mine input:disabled + .slot__body { text-decoration: none; background: var(--glow-soft); border-color: var(--glow-soft); color: var(--ink); }
.period { font-size: 0.875rem; color: var(--ink-soft); margin-top: 16px; }
@media (min-width: 620px) { .slots { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.empty { padding: 18px; border-radius: var(--radius-m); background: var(--mist); margin-top: 12px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; max-width: 28em; }
.field label { font-weight: 600; }
.field__hint { font-size: 0.875rem; color: var(--ink-soft); }
.field input {
  min-height: 52px; padding: 10px 14px; width: 100%;
  border: 2px solid #5f7b7e; border-radius: var(--radius-s); background: #fff; font-size: 1.0625rem;
}
.field input:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9375rem; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.field__error svg { flex: none; margin-top: 4px; }
[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
.form-error { background: #fdecea; color: var(--error); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.form-error:empty { display: none; }
.privacy { font-size: 0.875rem; color: var(--ink-soft); max-width: 40em; }

.book__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.book__nav .btn--primary { margin-inline-start: auto; }

.summary { border: 1px solid var(--line-dark); border-radius: var(--radius-l); padding: 20px; align-self: start; }
.summary h3 { font-size: 1.125rem; }
.summary dl { display: grid; gap: 12px; margin-top: 14px; }
.summary dt { font-size: 0.875rem; color: var(--on-dark-soft); }
.summary dd { font-weight: 600; }
.summary dd.is-empty { font-weight: 400; color: var(--on-dark-soft); }
.summary__help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 0.9375rem; color: var(--on-dark-soft); }
.summary__help a { color: var(--on-dark); display: inline-block; padding-block: 10px; }

.done { text-align: start; grid-column: 1 / -1; }
.done__title + p { margin-top: 8px; }
.done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--glow); display: grid; place-items: center; margin-bottom: 18px; animation: pop 420ms var(--ease-out) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done__title:focus { outline: none; }
.done__ref { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--mist); display: inline-grid; gap: 2px; }
.done__ref span { font-size: 0.875rem; color: var(--ink-soft); }
.done__ref strong { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; letter-spacing: 0.04em; direction: ltr; }
.done__list { display: grid; gap: 0; margin-top: 20px; max-width: 34em; }
.done__list div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.done__list dt { color: var(--ink-soft); }
.done__list dd { font-weight: 600; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.done__demo { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 40em; }

@media (min-width: 960px) {
  .book__shell { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .book__panel { padding: 36px; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Insurance and payment ---------- */
.pay { display: grid; gap: 16px; }
.pay__card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.pay__card--lit { background: var(--glow-soft); border-color: var(--glow-soft); }
.pay__card p { margin-top: 10px; color: var(--ink-soft); }
.pay__card--lit p { color: var(--ink); }
.ticks { display: grid; gap: 10px; margin-top: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 6px; color: var(--petrol); }
@media (min-width: 900px) { .pay { grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; } }

/* ---------- Location ---------- */
.place { display: grid; gap: 24px; }
.place__map { border-radius: var(--radius-l); overflow: hidden; background: #d9e8e6; position: relative; }
.place__map svg { width: 100%; height: auto; }
.place__map figcaption { position: absolute; inset-inline-start: 14px; bottom: 12px; font-size: 0.8125rem; background: rgba(255,255,255,0.92); padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); }
.place__info { display: grid; gap: 22px; align-content: start; }
.place__info address { font-style: normal; }
.place__info > .open, .place__info > .btn { justify-self: start; }
.open { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.9375rem; }
.open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #8aa3a4; }
.open.is-open::before { background: #1d8a4e; }
.open:empty { display: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: start; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; padding-bottom: 8px; }
.hours th, .hours td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: end; font-variant-numeric: tabular-nums; }
.place__list { display: grid; gap: 8px; color: var(--ink-soft); }
@media (min-width: 900px) { .place { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding-block: 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; line-height: 1.35; }
.faq summary svg { flex: none; transition: transform 200ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 44em; }

/* ---------- Contact ---------- */
.contact { background: var(--mist); }
.contact__grid { display: grid; gap: 28px; }
.contact__ways { display: grid; gap: 0; }
.contact__ways div { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact__ways dt { font-size: 0.875rem; color: var(--ink-soft); }
.contact__ways dd a { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; text-decoration: none; color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.contact__ways dd a:hover { text-decoration: underline; }
.contact__cta { background: #fff; border-radius: var(--radius-l); padding: 28px; display: grid; gap: 14px; align-content: start; }
.contact__cta p { color: var(--ink-soft); }
.contact__cta .btn { justify-self: start; }
.contact__demo { font-size: 0.875rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-dark-soft); padding-block: 56px 88px; /* bottom room for the fixed demo label */ font-size: 0.9688rem; }
.footer a { color: var(--on-dark); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand { color: var(--on-dark); display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.footer__about { margin-top: 12px; max-width: 30em; }
.footer h2 { font-size: 1rem; color: var(--on-dark); margin-bottom: 8px; letter-spacing: 0; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 20px; }
.footer__legal p { max-width: 56em; font-size: 0.875rem; }
.maker { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--on-dark); min-height: 56px; }
.maker img { width: 190px; height: 114px; object-fit: contain; }
.maker:hover span { text-decoration: underline; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
  .footer__legal { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Fixed demo label ---------- */
.demo-label {
  position: fixed; z-index: 60; inset-inline-start: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(5, 32, 31, 0.6);
}
.demo-label:hover { background: var(--mist); }
.demo-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px var(--glow-soft); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
