/* ============================================================
   V SPA — Booking Calendar
   Italian Beauty & Wellness · Gold Coast
   Palette: cream/sand cards, dark ink text, fine gold borders
   ============================================================ */

:root {
  --gold: #B69F64;
  --gold-light: #CEC6B3;
  --gold-deep: #8F7B49;
  --cream: #ECE8DF;
  --sand: #F6F3EC;
  --ink: #2A251E;
  --ink-soft: #574F44;
  --white: #FFFFFF;

  --font-head: "Bodoni Moda", Didot, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --shadow-soft: 0 6px 24px -12px rgba(42, 37, 30, 0.18);
  --shadow-card: 0 2px 14px -8px rgba(42, 37, 30, 0.14);
  --border-gold: 1px solid var(--gold-light);
  --radius: 10px;
  --radius-sm: 6px;
  --tap: 44px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 0.8em; }

.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;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: var(--border-gold);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 600;
  color: var(--gold);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: var(--border-gold);
  background: var(--white);
  border-radius: 50%;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.06em;
}
.brand__tag {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep);
}
.site-header__loc {
  font-size: 13px; color: var(--ink-soft); margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Main ---------- */
.booking {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.booking__intro { margin-bottom: 28px; max-width: 640px; }
.booking__title { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.booking__subtitle { color: var(--ink-soft); font-size: 15px; }

/* ---------- Step indicator ---------- */
.steps {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; gap: 6px;
  counter-reset: step;
}
.steps__item {
  flex: 1 1 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 6px;
  font-size: 12px; color: var(--ink-soft);
  border-top: 2px solid var(--gold-light);
  transition: border-color .25s ease, color .25s ease;
}
.steps__item.is-active { border-top-color: var(--gold); color: var(--ink); font-weight: 600; }
.steps__item.is-done { border-top-color: var(--gold-deep); color: var(--gold-deep); }
.steps__dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--gold-light);
  background: var(--white); color: var(--ink-soft);
  flex: none;
}
.steps__item.is-active .steps__dot { background: var(--gold); color: var(--white); border-color: var(--gold); }
.steps__item.is-done .steps__dot { background: var(--gold-deep); color: var(--white); border-color: var(--gold-deep); }
.steps__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .steps__label { display: none; }
  .steps__item { justify-content: center; }
}

/* ---------- Layout ---------- */
.booking__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 920px) {
  .booking__layout { grid-template-columns: 1fr; }
}

/* ---------- Panel ---------- */
.booking__panel {
  background: var(--white);
  border: var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
@media (max-width: 560px) { .booking__panel { padding: 18px; } }

.step { border: 0; padding: 0; margin: 0; min-height: 120px; }
.step.is-hidden { display: none; }
.step__title {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 500;
  margin-bottom: 10px; padding: 0;
}
.step__hint {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 18px; max-width: 560px;
}

/* ---------- Option grids ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.option {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  min-height: var(--tap);
  padding: 14px 16px;
  background: var(--sand);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font: inherit; color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.option:hover { border-color: var(--gold); background: var(--cream); }
.option:active { transform: translateY(1px); }
.option.is-selected {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--gold), var(--shadow-soft);
}
.option__name { font-weight: 600; font-size: 15px; }
.option__meta { font-size: 13px; color: var(--ink-soft); }

/* ---------- Treatment list ---------- */
.treatment-list { display: flex; flex-direction: column; gap: 10px; }
.treatment {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--tap);
  padding: 14px 16px;
  background: var(--sand);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: left;
  font: inherit; color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.treatment:hover { border-color: var(--gold); background: var(--cream); }
.treatment.is-selected {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--gold), var(--shadow-soft);
}
.treatment__name { font-weight: 600; font-size: 15px; flex: 1 1 auto; }
.treatment__from { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.treatment__tag {
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: var(--white);
  border: 1px solid var(--gold-light);
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; flex: none;
}
.treatment__note {
  flex-basis: 100%; font-size: 12px; color: var(--ink-soft);
  padding-top: 2px;
}
@media (max-width: 560px) {
  .treatment { flex-wrap: wrap; }
  .treatment__from { flex-basis: 100%; padding-top: 2px; }
}

/* ---------- Step 2: Online booking path ---------- */
.online-booking.is-hidden,
.contact-only.is-hidden { display: none; }

.online-booking {
  margin-top: 22px;
  padding-top: 20px;
  border-top: var(--border-gold);
}
.online-booking__intro {
  font-size: 16px; color: var(--ink); margin-bottom: 12px;
}
.online-booking__explain {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 18px; max-width: 560px;
}
.online-booking__cta {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  margin-bottom: 12px;
}
.online-booking__avail {
  font-size: 12px; color: var(--gold-deep);
  letter-spacing: 0.02em; margin: 0;
}

/* ---------- Step 2: Contact-only path ---------- */
.contact-only {
  margin-top: 22px;
  padding-top: 20px;
  border-top: var(--border-gold);
}
.contact-intro {
  font-size: 15px; color: var(--ink-soft);
  margin-bottom: 18px; max-width: 540px;
}
.contact-card {
  background: var(--sand);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.contact-card__title {
  font-size: 18px; margin-bottom: 12px; color: var(--gold-deep);
}
.contact-card__list {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-card__list li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--ink); flex-wrap: wrap;
}
.contact-card__list li span:first-child {
  font-weight: 600; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.contact-card__list a {
  color: var(--gold-deep); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.contact-card__list a:hover { border-bottom-color: var(--gold); }
.contact-card__avail {
  margin: 12px 0 0; font-size: 13px; color: var(--ink-soft);
  font-style: italic;
}
.contact-card__pay {
  margin: 10px 0 0; font-size: 13px; color: var(--gold-deep);
  letter-spacing: 0.02em; font-weight: 500;
}
.contact-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.contact-actions .btn { flex: 1 1 200px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Summary ---------- */
.summary {
  position: sticky; top: 20px;
  background: var(--cream);
  border: var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
@media (max-width: 920px) {
  .summary { position: static; }
}
.summary__title { font-size: 18px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: var(--border-gold); }
.summary__list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row dt { font-size: 13px; color: var(--ink-soft); }
.summary__row dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.summary__foot {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.tz-badge {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: var(--white);
  border: 1px solid var(--gold-light);
  padding: 4px 8px; border-radius: 20px;
  white-space: nowrap;
}
.demo-badge {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--gold-deep); background: var(--white);
  border: 1px dashed var(--gold);
  padding: 4px 8px; border-radius: 20px;
}
.summary__note {
  margin: 14px 0 0; padding-top: 14px; border-top: var(--border-gold);
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}

/* ---------- Step navigation ---------- */
.stepnav {
  display: flex; gap: 12px; justify-content: flex-start;
  margin-top: 26px; padding-top: 20px; border-top: var(--border-gold);
}
.btn {
  min-height: var(--tap);
  padding: 12px 26px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn--primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold-light); }
.btn--ghost:hover { border-color: var(--gold); background: var(--cream); }
.is-hidden { display: none !important; }

.slots-empty { font-size: 14px; color: var(--ink-soft); padding: 8px 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--border-gold);
  background: var(--cream);
  padding: 18px 20px;
  text-align: center;
}
.site-footer p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
