/* Booking page, round 3: terracotta glass (reference: projects/booking-system/assets/ref-glass-widget.webp).
   Background photo: assets/img/bg-leaf-800.webp (phones) and bg-leaf-1600.webp (desktop), crops of the untouched original bg-terracotta-leaf.webp. */
:root {
  --cream: #FFF6EA; --ink-g: #FFF4E6; --muted-g: #F1DCC8; --brown: #3A1A0C; --brown-d: #2B120A;
  --burnt: #B5481A; --burnt-h: #9A3C13; --leaf: #B8D98B; --leaf-d: #46601F; --sand: #E8CDB0;
  --glass-edge: rgba(255, 236, 216, .24);
  /* type scale (rem): small 0.82 / body 0.95 / lead 1.05 / title 1.3 / display 2.8 ; spacing 4-8-12-16-24 */
  --fs-s: .82rem; --fs-b: .95rem; --fs-l: 1.05rem; --fs-t: 1.3rem; --fs-d: clamp(1.7rem, 7vw, 2.8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html { background: #7A3217; scroll-behavior: auto; }
body { background: transparent; color: var(--ink-g); min-height: 100vh; display: flex; flex-direction: column; }
/* fixed full-bleed photo: cover, centred on the leaf, never stretched. A pseudo-element (not background-attachment: fixed) keeps iOS happy. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #7A3217 url(/booking/assets/img/bg-leaf-800.webp) 56% 50% / cover no-repeat; }
@media (min-width: 700px) { body::before { background-image: url(/booking/assets/img/bg-leaf-1600.webp); background-position: 68% 50%; } }
a { color: #FFD9B8; }
a:hover { color: #fff; }

/* header band: the CRM logo is white, so the band is dark brown glass */
.masthead { background: #2B120A; border-bottom: 1px solid var(--glass-edge); backdrop-filter: none; position: sticky; top: 0; z-index: 50; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .masthead { background: rgba(43, 18, 10, .84); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
}
.masthead .brand { min-height: 44px; min-width: 44px; }
.masthead .brand .logo { height: 40px; width: auto; display: block; }
.masthead .wrap { display: flex; justify-content: center; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.masthead .brand { display: flex; align-items: center; justify-content: center; }

/* glass panels: solid fallback first, translucent + blur when supported */
.glass { background: #4A1F10; border: 1px solid var(--glass-edge); border-radius: 26px; box-shadow: 0 20px 56px rgba(20, 6, 2, .34), 0 2px 6px rgba(20, 6, 2, .18), inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 0 22px rgba(255, 236, 216, .04); color: var(--ink-g); animation: bkIn .55s var(--ease) both; }
.glass.main { animation-delay: .08s; }
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(58, 24, 12, .70); -webkit-backdrop-filter: blur(20px) saturate(125%); backdrop-filter: blur(20px) saturate(125%); }
  .glass.side { background: rgba(88, 34, 14, .70); }
}

.bk { flex: 1 0 auto; width: 100%; max-width: 1060px; margin: 0 auto; padding: 20px 14px 32px; display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.bk .banner { grid-column: 1 / -1; background: #FFF6EA; color: var(--brown); border: 1px solid var(--sand); border-radius: 14px; padding: 8px 12px; font-family: var(--mono); font-size: .8rem; }
.bk h1 { font-size: clamp(1.6rem, 6.4vw, 2rem); line-height: 1.15; letter-spacing: -.005em; margin: 0; color: var(--cream); text-align: center; }
.bk h1:focus { outline: none; }
.bk h2 { font-family: var(--serif); font-size: var(--fs-t); font-weight: 400; margin: 24px 0 8px; color: var(--cream); }
.bk h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.bk [hidden] { display: none !important; }
.bk .panel { padding: 24px 18px 24px; min-width: 0; }

/* left card */
.bk .side { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.bk .photo { width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--cream); background: var(--cream); object-fit: cover; margin: 0 auto 14px; box-shadow: 0 8px 22px rgba(20, 6, 2, .4); }
.bk .side .lede { margin: 12px 0 0; color: var(--ink-g); font-size: var(--fs-b); line-height: 1.55; }
.bk .lead-on-brand { margin: 14px 0 0; color: var(--ink-g); }
.bk .reassure { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid rgba(255, 236, 216, .28); color: var(--muted-g); font-size: var(--fs-b); line-height: 1.5; text-align: left; }
.bk .reassure li { margin: 6px 0; padding-left: 20px; position: relative; }
.bk .reassure li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* controls on glass */
.bk label { display: block; font-size: .92rem; margin-bottom: 6px; color: var(--ink-g); font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.bk input[type=text], .bk input[type=email], .bk input[type=tel], .bk select, .bk textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--brown); background: #FFF8F0; border: 1px solid #D9B79C; border-radius: 14px; }
.bk textarea { min-height: 96px; resize: vertical; }
.bk ::placeholder { color: #7A5A48; opacity: 1; }
.bk input:focus-visible, .bk select:focus-visible, .bk textarea:focus-visible, .bk button:focus-visible, .bk a:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.bk .hint { font-size: .86rem; color: var(--muted-g); margin: 5px 0 0; }
.bk .err { color: #FFD0BA; font-size: .9rem; margin: 5px 0 0; font-weight: 600; }
.bk [aria-invalid=true] { border-color: #FF9E7A; border-width: 2px; }
.bk .field { margin-bottom: 18px; }
.bk .consent { display: flex; gap: 12px; align-items: flex-start; }
.bk .consent input { width: 26px; height: 26px; flex: none; margin: 2px 0 0; accent-color: var(--burnt); }
.bk .consent label { margin: 0; font-size: .95rem; }
.bk .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk .btn { min-height: 46px; cursor: pointer; justify-content: center; border-radius: 999px; padding: 10px 24px; background: var(--burnt); color: #fff; border: 1px solid #E8A07C; font-weight: 600; }
.bk .btn { transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.bk .btn:hover { background: var(--burnt-h); color: #fff; border-color: #F2B697; transform: translateY(-1px); }
.bk .btn:active { transform: none; }
.bk .btn.ghost { background: rgba(43, 18, 10, .5); color: var(--cream); border: 1px solid rgba(255, 244, 230, .6); }
.bk .btn.ghost:hover { background: rgba(255, 244, 230, .22); color: #fff; border-color: var(--cream); }
.bk .btn[disabled] { opacity: .6; cursor: not-allowed; }
.bk .btn-row { margin-top: 20px; }
.bk .alert { border-radius: 16px; border: 1px solid #E8A07C; background: var(--cream); color: var(--brown); padding: 12px 14px; margin: 14px 0; }
.bk .alert .btn.ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.bk .ok { border-radius: 18px; border: 1px solid #A9C97C; background: #EEF5DF; color: #1F2E0D; padding: 16px 18px; margin: 0 0 14px; }
.bk .ok .hint, .bk .ok dt { color: #3B4F1E; }
.bk .ok a { color: #1F4D12; }
.bk dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 4px 0 12px; }
.bk dt { color: var(--muted-g); } .bk dd { margin: 0; word-break: break-word; }
.bk .linkbox { word-break: break-all; font-family: var(--mono); font-size: .8rem; background: var(--cream); color: var(--brown); border-radius: 12px; padding: 10px 12px; }
.bk .chosen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 10px 14px; background: rgba(43, 18, 10, .4); border: 1px solid rgba(255, 236, 216, .3); border-radius: 18px; }
.bk .chosen-when { margin: 0; font-weight: 600; color: var(--cream); }
.bk .chosen .btn { padding: 6px 16px; min-height: 44px; }
.bk .hint#call-lang { margin: 0 0 16px; }

/* main card: toolbar, big heading, week strip / month grid, slots */
.bk .cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: space-between; }
.bk .seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 244, 230, .13); border: 1px solid rgba(255, 236, 216, .22); }
.bk .seg-btn { min-height: 40px; min-width: 88px; padding: 0 18px; font: inherit; font-size: var(--fs-b); cursor: pointer; border: 0; border-radius: 999px; background: transparent; color: var(--ink-g); transition: background .2s var(--ease), color .2s var(--ease); }
.bk .seg-btn[aria-pressed=true] { background: var(--cream); color: var(--brown); font-weight: 600; box-shadow: 0 2px 8px rgba(20, 6, 2, .25); }
.bk .seg-btn:hover:not([aria-pressed=true]) { background: rgba(255, 244, 230, .16); }
.bk .tzrow { display: flex; align-items: center; gap: 8px; margin: 0; flex: 1 1 240px; min-width: 0; justify-content: flex-end; }
.bk .tzrow label { margin: 0; font-size: .85rem; white-space: nowrap; color: var(--muted-g); }
.bk .tzrow select { width: 100%; max-width: 300px; flex: 1 1 0; min-width: 0; font-size: .9rem; border-radius: 999px; }
.bk .big { display: flex; justify-content: flex-start; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; gap: .3em; margin: 20px 0 8px; font-family: var(--serif); line-height: 1.1; color: var(--cream); }
.bk .big-m, .bk .big-d { font-size: var(--fs-d); font-weight: 400; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(20, 6, 2, .3); }
.bk .cal-nav-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 4px 0 2px; }
.bk .cal-range { margin: 0; text-align: center; font-size: var(--fs-b); color: var(--ink-g); font-weight: 600; }
.bk .cal-nav { min-height: 44px; min-width: 44px; background: rgba(255, 244, 230, .12); border: 0; color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.bk .cal-nav { transition: background .2s var(--ease); }
.bk .cal-nav:hover:not(:disabled) { background: rgba(255, 244, 230, .24); }
.bk .cal-nav:disabled { opacity: .5; cursor: default; }
.bk .cal-wk, .bk .cal-grid { display: grid; justify-items: center; column-gap: 2px; }
.bk .cal-wk span { font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted-g); padding: 10px 0 2px; }
.bk .cal-day { position: relative; width: 100%; max-width: 56px; height: 52px; min-height: 44px; padding: 0 0 8px; margin: 3px 0; font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer;
  background: none; color: var(--ink-g); border: 0; border-radius: 14px; transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.bk .cal-day:hover:not(:disabled):not([aria-pressed=true]) { background: rgba(255, 244, 230, .18); }
.bk .cal-day:disabled { color: #DCC1A8; font-weight: 400; cursor: default; }
.bk .cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--leaf); }
.bk .cal-day[aria-pressed=true] { background: var(--cream); color: var(--brown); box-shadow: 0 4px 14px rgba(20, 6, 2, .3); }
.bk .cal-day[aria-pressed=true].has::after { background: var(--leaf-d); }
.bk .cal-legend { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; font-size: var(--fs-s); color: var(--muted-g); }
.bk .cal-legend::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }
.bk .slots-day { margin: 12px 0 2px; font-weight: 600; color: var(--cream); font-size: var(--fs-l); }
.bk .slots { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.bk .tslot { display: block; width: 100%; min-height: 44px; padding: 6px 8px; font: inherit; font-size: var(--fs-b); font-variant-numeric: tabular-nums; cursor: pointer; text-align: center;
  background: rgba(255, 244, 230, .12); color: var(--cream); border: 1px solid rgba(255, 236, 216, .34); border-radius: 14px; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.bk .tslot:hover { background: rgba(255, 244, 230, .24); border-color: var(--cream); transform: translateY(-1px); }
.bk .tslot[aria-pressed=true] { background: var(--cream); color: var(--brown); border-color: var(--cream); font-weight: 700; box-shadow: 0 0 0 3px rgba(184, 217, 139, .55), 0 4px 12px rgba(20, 6, 2, .3); transform: none; }
.bk .slots-wrap > h2 { margin-top: 18px; }
@media (min-width: 768px) {
  .bk { padding: 32px 20px 40px; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .bk .panel { padding: 28px 28px 30px; }
  .bk .slots { grid-template-columns: repeat(3, 1fr); }
  .bk .photo { width: 132px; height: 132px; }
  .bk .slots-wrap .slots { max-height: 296px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: rgba(255, 236, 216, .4) transparent; }
}
@media (min-width: 1100px) { .bk .slots { grid-template-columns: repeat(4, 1fr); } }
.bk .main > :first-child { margin-top: 0; }

/* footer: glass band so the text never sits on the bare photo */
footer.site { background: #2B120A; color: var(--ink-g); border-top: 1px solid var(--glass-edge); padding: 16px 0; margin-top: 8px; font-size: var(--fs-s); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  footer.site { background: rgba(43, 18, 10, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
footer.site .colophon { margin: 0; padding: 0; border: 0; color: var(--ink-g); font-size: .78rem; letter-spacing: .06em; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; text-align: center; }
.pv-banner { background: #17201A; color: #fff; text-align: center; padding: 8px 12px; font: 600 .85rem/1.3 ui-monospace, Menlo, monospace; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.bk .req { color: #F2B48C; font-weight: 600; }
