/* ============================================================
   V SPA Italian Beauty. Booking page.
   A compact branded shell around the native Services embed.
   Bodoni Moda + Inter, cream/gold palette, mobile-first.
   ============================================================ */

:root {
  --gold:        #B69F64;
  --gold-light:  #CEC6B3;
  --gold-deep:   #8F7B49;
  --cream:       #ECE8DF;
  --sand:        #F6F3EC;
  --ink:         #2A251E;
  --ink-soft:    #574F44;
  --muted:       #8A8071;
  --white:       #FFFFFF;
  --line:        rgba(182,159,100,.28);

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease:    cubic-bezier(.22,.61,.36,1);

  --tap: 44px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 1000; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.is-hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .85rem 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { height: 36px; width: auto; flex: 0 0 auto; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .18em; }
.brand-sub { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; opacity: .75; }
.site-header__right { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-header__link {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: .35rem 0;
  border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.site-header__link:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }

/* ---------- Main / intro ---------- */
.booking { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.4rem) 20px 3rem; }
.booking__intro { margin-bottom: 24px; }
.booking__title {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  text-transform: none; letter-spacing: -.2px;
  font-size: clamp(30px, 4vw, 38px); line-height: 1.1; margin-bottom: .55rem;
}
.booking__subtitle { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; margin-bottom: .4rem; }
.booking__payline { color: var(--muted); font-size: .8rem; letter-spacing: .06em; margin-bottom: 0; }

/* ---------- Native embed ---------- */
.embed { background: var(--white); border: 1px solid var(--line); padding: clamp(.4rem, 1.5vw, .8rem); }
.embed__wrap { position: relative; width: 100%; }
.embed__frame {
  /* form_embed.js can leave the iframe hidden/off-screen even after
     load; keep it always visible, in normal flow, interactive.
     Do NOT set a fixed height — preserve the helper's dynamic height. */
  width: 100% !important; border: none;
  display: block !important; position: relative !important;
  opacity: 1 !important; visibility: visible !important;
  left: auto !important; pointer-events: auto !important;
  min-height: 76vh; background: var(--sand);
}
.embed__loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: var(--sand);
  transition: opacity .4s var(--ease);
}
.embed__spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--gold-light); border-top-color: var(--gold);
  animation: vspin .8s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }
.embed__loading-text { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Collapsed fallback disclosure */
.embed__trouble { margin-top: .7rem; }
.embed__trouble > summary {
  cursor: pointer; list-style: none; font-size: .8rem; color: var(--ink-soft);
  letter-spacing: .04em; padding: .35rem 0;
}
.embed__trouble > summary::-webkit-details-marker { display: none; }
.embed__trouble > summary::before { content: "+ "; color: var(--gold-deep); }
.embed__trouble[open] > summary::before { content: "− "; }
.embed__trouble p { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.embed__trouble a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.embed__trouble > summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

/* ---------- Assistance section ---------- */
.assist { margin-top: 1.8rem; }
.assist__line { font-size: .92rem; color: var(--ink-soft); margin-bottom: .9rem; }
.assist__line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.assist__disclosure { border-top: 1px solid var(--line); }
.assist__disclosure > summary {
  cursor: pointer; list-style: none; font-size: .82rem; letter-spacing: .04em;
  color: var(--ink-soft); padding: .7rem 0;
  transition: color .3s var(--ease);
}
.assist__disclosure > summary::-webkit-details-marker { display: none; }
.assist__disclosure > summary::before { content: "+ "; color: var(--gold-deep); }
.assist__disclosure[open] > summary::before { content: "− "; }
.assist__disclosure > summary:hover { color: var(--gold-deep); }
.assist__disclosure > summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }

.assist__content { padding: .4rem 0 1rem; }
.assist__note { font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; max-width: 560px; }
.phone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.phone-list li { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.phone-list li span:first-child { color: var(--ink); font-size: .92rem; }
.phone-list li span:last-child { color: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream); padding: 1rem 20px; text-align: center; }
.site-footer p { font-size: .78rem; color: var(--ink-soft); margin: 0; letter-spacing: .02em; }

@media (max-width: 767px) {
  .site-header__right { width: 100%; justify-content: space-between; }
  .embed__frame { min-height: 68vh; }
}
@media (max-width: 375px) {
  .booking { padding: 1.2rem 16px 2.5rem; }
  .site-header__inner { padding: .75rem 16px; }
  .brand-mark { height: 30px; }
  .site-footer { padding: .9rem 16px; }
}
/* ---------- Mobile summary bar (postMessage bridge) ---------- */
/* Hidden everywhere by default; shown on <= 700px only when .is-ready */
.msum { display: none; }
.msum__bar {
  position: static; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--white);
  border-top: 1px solid var(--gold); box-shadow: 0 -6px 18px -10px rgba(42,37,30,.4);
}
.msum__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .8rem; letter-spacing: .04em; color: var(--white);
  background: transparent; border: 0; cursor: pointer; min-height: var(--tap); padding: 0;
}
.msum__chevron { font-size: 1rem; color: var(--gold); line-height: 1; }
.msum__label { text-transform: none; }
.msum__total-wrap { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; min-width: 0; }
.msum__total-label {
  font-family: var(--body); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1px;
}
.msum__total {
  font-family: var(--display); font-size: 1.05rem;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.msum__caveat { font-size: .72rem; color: var(--muted); margin: 0 0 .8rem; line-height: 1.5; }
.msum__action {
  font-family: var(--body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  min-height: var(--tap); padding: .5rem 1rem; border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.msum__action--solid { background: var(--gold); color: #fff; }
.msum__action--solid:hover { background: var(--gold-deep); }
.msum__action--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.msum__action--ghost:hover { background: var(--gold); color: #fff; }

/* Bottom-anchored sheet: bar always pinned to bottom; details (when open)
   sit directly above it. No full-screen overlay. */
.msum__details {
  position: static; flex: none; transform: none; transition: none;
  background: var(--cream); color: var(--ink); border-top: 1px solid var(--gold);
  padding: 1rem 16px 1.1rem; max-height: 42vh; overflow-y: auto;
  box-shadow: 0 -10px 30px -16px rgba(42,37,30,.45);
}
.msum__bar { position: static; }
.msum.is-open .msum__details { max-height: 42vh; }

.msum__summary {
  white-space: pre-line; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 .8rem;
}
.msum__action--ghost.msum__edit { display: inline-flex; }

@media (max-width: 700px) {
  .msum.is-ready {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    display: flex; flex-direction: column; height: auto; max-height: 60vh;
    background: transparent;
  }
  /* reserve room so the fixed bar never covers page controls */
  body.has-msum { padding-bottom: 84px; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 375px) {
  body.has-msum { padding-bottom: 96px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .msum__action { padding: .5rem .8rem; font-size: .72rem; }
}
@media (min-width: 701px) { .msum { display: none !important; } }
/* Hidden attribute must always win inside the mobile summary */
.msum [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .embed__spinner { animation: none; border-top-color: var(--gold-light); }
}
