@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #261d16;
  --dark: #1c1712;
  --paper: #f8f5ee;
  --card: #fffcf7;
  --muted: #64574a;
  --gold: #e5b77b;
  --gold-dark: #6a4222;
  --line: #e5d9c9;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: #b2824a30; }
:focus-visible { outline: 2px solid #9a602a; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: 12px; left: 12px; transform: translateY(-180%); background: var(--card); padding: 12px; }
.skip-link:focus { transform: none; }

.header {
  position: relative;
  border-bottom: 1px solid #504032;
  background: var(--dark);
  color: #fff7eb;
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 23px; }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 12px; }
.brand img { width: 45px; height: 43px; object-fit: contain; mix-blend-mode: screen; }
.brand strong { display: block; font-size: 17px; line-height: 1.22; letter-spacing: -.025em; }
.brand small { display: block; color: #e0bd96; font-size: 12px; margin-top: 2px; }
.header-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: auto;
  color: #ebdac8;
  font-size: 13px;
}
.header-location .icon { color: var(--gold); width: 16px; }
.header-location:hover { color: var(--gold); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.button:active { transform: translateY(1px); }
.button-gold { color: #281a10; background: var(--gold); }
.button-gold:hover { background: #f2c891; }
.button-dark { background: #36271c; color: #fff8ec; }
.button-dark:hover { background: #513622; }

.catalogue { padding-block: 36px 52px; }
.catalogue-heading {
  position: relative;
  padding: 2px 0 22px 17px;
}
.catalogue-heading::before {
  content: "";
  position: absolute;
  inset: 7px auto 25px 0;
  width: 3px;
  border-radius: 4px;
  background: #ba854b;
}
.catalogue-heading h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.05; letter-spacing: -.055em; font-weight: 700; }
.catalogue-heading p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.attendance { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 7px; }
.attendance button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
}
.attendance button:hover { text-decoration: underline; text-underline-offset: 3px; }
.attendance .icon { width: 16px; height: 16px; }
.therapist-banner {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) 1.12fr;
  min-height: 330px;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid #493728;
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 15%, #6f492e 0, transparent 34%),
    var(--dark);
  color: #fff8ed;
  box-shadow: 0 12px 32px #35241620;
}
.therapist-banner > img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: 50% 43%;
}
.banner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(27px, 5vw, 56px);
}
.banner-copy > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.banner-copy h2 {
  max-width: 560px;
  margin-top: 9px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.banner-copy p { margin: 12px 0 20px; color: #e5d4c3; font-size: 15px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 3px 7px #3c2a1210;
  transition: border-color .24s, box-shadow .24s;
}
.card-image { aspect-ratio: 1.48; overflow: hidden; background: #e2d6c5; }
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  transition: transform .42s cubic-bezier(.2,.65,.3,1);
}
@media (hover: hover) {
  .service-card:hover { border-color: #d1b99d; box-shadow: 0 10px 24px #3c2a121d; }
  .service-card:hover .card-image img { transform: scale(1.035); }
}
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }
.card-copy h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.18; letter-spacing: -.035em; }
.card-copy > p { color: var(--muted); font-size: 14px; line-height: 1.47; margin-bottom: 14px; }
.card-button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  margin-top: auto;
  border: 1px solid #ddc9ae;
  border-radius: 7px;
  background: #f8f0e2;
  color: #49301d;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.card-button:hover { background: #efdfc6; border-color: #d0b18a; }
.card-button .icon { width: 17px; height: 17px; }
.card-arrow { margin-left: auto; }
.image-note { margin-top: 17px; color: var(--muted); font-size: 12px; }

.footer { background: var(--dark); color: #fff7eb; padding: 24px 0; }
.footer-inner, .footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px 23px; }
.footer h2 { font-size: 16px; }
.footer p { color: #e0bd96; font-size: 13px; margin-top: 3px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; }
.footer-links a:hover, .footer-links .icon { color: var(--gold); }

dialog {
  width: min(510px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #d8c8b2;
  border-radius: 15px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px #08050279;
  overscroll-behavior: contain;
}
dialog[open] { animation: reveal .22s both; }
dialog::backdrop { background: #1a110bb0; backdrop-filter: blur(3px); }
.dialog-shell { position: relative; padding: 25px; }
dialog h2 { padding-right: 43px; font-size: clamp(25px, 7vw, 34px); line-height: 1.14; letter-spacing: -.04em; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.close-booking { position: absolute; top: 15px; right: 15px; }
.close-booking:hover { background: #eee3d4; }
.booking-intro { color: var(--muted); margin: 9px 0 15px; font-size: 14px; }
#booking-form { display: grid; gap: 11px; }
.field, .place legend, .date-field > p { min-width: 0; font-size: 13px; font-weight: 700; }
.field { display: block; }
.field span, .date-field > p span { color: var(--muted); font-weight: 400; }
.field select, .field input, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid #d5c6b4;
  border-radius: 7px;
  background: var(--card);
  padding: 7px 9px;
  font-size: 16px;
  font-weight: 400;
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.4; }
.place { min-width: 0; padding: 0; margin: 0; border: 0; }
.place-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.place-options label { position: relative; }
.place-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.place-options span { display: grid; place-items: center; min-height: 44px; padding: 5px 11px; border: 1px solid #d5c6b4; border-radius: 30px; font-size: 13px; cursor: pointer; }
.place-options input:checked + span { background: #38291e; border-color: #38291e; color: #fff6e9; }
.place-options input:focus-visible + span { outline: 2px solid #9a602a; outline-offset: 2px; }
.date-time-fields { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(150px, .9fr); gap: 8px; align-items: end; }
.date-selects { display: grid; grid-template-columns: .72fr .9fr 1.1fr; gap: 6px; margin-top: 4px; }
.date-selects select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d5c6b4;
  border-radius: 7px;
  background: var(--card);
  padding: 7px;
  font-size: 16px;
}
.message-preview { background: #eee4d5; border-radius: 7px; padding: 9px 11px; }
.message-preview span { display: block; margin-bottom: 3px; color: #5a3a23; font-size: 11px; font-weight: 700; }
.message-preview p { white-space: pre-line; color: #3c3024; font-size: 13px; line-height: 1.44; }
.booking-cta { width: 100%; }
.booking-cta .icon:last-child { width: 16px; margin-left: auto; }
.booking-cta .icon:first-child { margin-right: auto; }
.booking-actions { position: relative; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1090px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 795px) {
  .wrap { width: calc(100% - 40px); }
  .therapist-banner { grid-template-columns: .9fr 1.1fr; min-height: 310px; }
  .therapist-banner > img { max-height: 330px; }
  .banner-copy { padding: 25px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; gap: 10px; }
  .header-location { display: none; }
  .brand { gap: 7px; }
  .brand img { width: 35px; height: 35px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; }
  .header-cta { min-height: 44px; margin-left: auto; padding-inline: 10px; }
  .catalogue { padding-block: 24px 30px; }
  .catalogue-heading { padding: 1px 0 8px 12px; }
  .catalogue-heading::before { inset: 4px auto 16px 0; }
  .catalogue-heading h1 { font-size: clamp(29px, 8.5vw, 42px); }
  .catalogue-heading p { margin-top: 7px; font-size: 14px; }
  .attendance { margin-top: 3px; }
  .therapist-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 5px 0 18px;
    border-radius: 14px;
  }
  .therapist-banner > img {
    height: 245px;
    max-height: none;
    object-position: 50% 38%;
  }
  .banner-copy { padding: 21px 18px 22px; }
  .banner-copy > span { font-size: 10px; }
  .banner-copy h2 { margin-top: 6px; font-size: 26px; }
  .banner-copy p { margin: 8px 0 15px; font-size: 13px; }
  .banner-copy .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; gap: 13px; }
  .card-image { aspect-ratio: 1.54; }
  .card-copy h2 { font-size: 21px; }
  .card-button { min-height: 47px; }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }
  .dialog-shell {
    max-height: 92dvh;
    overflow-y: auto;
    padding: 22px 16px calc(12px + env(safe-area-inset-bottom));
  }
  dialog h2 { font-size: 27px; }
  .close-booking { top: 12px; right: 12px; }
  .booking-intro { padding-right: 28px; margin: 7px 0 13px; font-size: 13px; }
  #booking-form { gap: 10px; }
  .date-time-fields { grid-template-columns: 1fr; gap: 10px; }
  .date-selects { grid-template-columns: .72fr .9fr 1fr; gap: 7px; }
  .date-selects select { min-height: 48px; }
  .place-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-options span { padding-inline: 5px; font-size: 12px; text-align: center; }
  .message-preview { max-height: 142px; overflow-y: auto; }
  .booking-actions {
    position: sticky;
    z-index: 2;
    bottom: calc(-12px - env(safe-area-inset-bottom));
    margin: 0 -4px;
    padding: 9px 4px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, #f8f5ee00, var(--paper) 22%);
  }
  .booking-cta { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
