/* ==========================================================================
   NZ beauty — reviews, booking form, FAQ, contact & map, footer, overlays
   ========================================================================== */

:root { --error: #8A2F35; }
:root[data-theme="dark"] { --error: #E3A39C; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg); text-align: center; overflow: hidden; }
.reviews__slider { position: relative; max-width: 940px; margin-inline: auto; }
.reviews__mark { height: 64px; font-family: var(--font-display); font-size: 9rem; line-height: .75; color: var(--accent-soft); user-select: none; }
.reviews__viewport { overflow: hidden; touch-action: pan-y; }
.reviews__track { display: flex; transition: transform .9s var(--ease); }
.review { flex: 0 0 100%; padding-inline: clamp(4px, 4vw, 48px); }
.review__text { font-family: var(--font-display); font-size: clamp(1.55rem, 1.05rem + 1.8vw, 2.6rem); font-style: italic; line-height: 1.32; }
.review__meta { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 34px; }
.review__meta::before { content: ""; width: 7px; height: 7px; margin-bottom: 14px; background: var(--accent-soft); transform: rotate(45deg); }
.review__name { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.review__service { font-size: .84rem; color: var(--muted); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; }
.dots { display: flex; align-items: center; gap: 6px; }
.dot { position: relative; width: 26px; height: 24px; transition: width .5s var(--ease); }
.dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); transition: background-color .4s var(--ease); }
.dot[aria-current="true"] { width: 52px; }
.dot[aria-current="true"]::before { background: var(--ink); }

/* ---------- Booking ---------- */
.booking { background: var(--bg-alt); transition: background-color .5s var(--ease); }
.booking__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.booking__aside { position: sticky; top: 110px; }
.booking__aside .section-head { margin-bottom: 0; }
.booking__list { margin-top: 40px; border-top: 1px solid var(--line); counter-reset: tips; }
.booking__list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-soft); }
.booking__list li::before { counter-increment: tips; content: counter(tips, decimal-leading-zero); min-width: 26px; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; line-height: 1.5; color: var(--accent); }
.booking__list-title { margin-top: 40px; font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.booking__list-title + .booking__list { margin-top: 16px; }
.booking__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8rem;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.chip-link svg { width: 16px; height: 16px; color: var(--accent); }
.chip-link:hover { border-color: var(--ink); }

.form-card { position: relative; padding: clamp(28px, 4.2vw, 60px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: background-color .5s var(--ease); }
.form-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); pointer-events: none; }
.form__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.field__opt { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.field__input {
  width: 100%; min-height: 50px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  -webkit-appearance: none; appearance: none; outline: none;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field__input::placeholder { color: var(--muted); opacity: .85; }
.field__input:focus { border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
textarea.field__input { min-height: 92px; resize: vertical; line-height: 1.6; }
input[type="date"].field__input { min-height: 50px; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1px solid var(--ink-soft); border-bottom: 1px solid var(--ink-soft);
  transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.select .field__input { padding-right: 28px; cursor: pointer; }
.select option, .select optgroup { background: var(--surface); color: var(--ink); }
.field__error { font-size: .78rem; line-height: 1.4; color: var(--error); }
.field.is-invalid .field__input { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }

.slots { min-width: 0; margin: 0; padding: 0; border: 0; }
.slots legend { display: block; width: 100%; margin-bottom: 14px; padding: 0; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span {
  display: grid; place-items: center; min-height: 44px;
  border: 1px solid var(--line-strong); font-size: .86rem; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.slot:hover input:not(:disabled):not(:checked) + span { border-color: var(--ink); }
.slot input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.slot input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.slot input:disabled { cursor: not-allowed; }
.slot input:disabled + span { opacity: .35; text-decoration: line-through; }
.slots__hint { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.field.is-invalid .slots__hint { border-color: var(--error); }

.check { position: relative; grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 14px; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--line-strong); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.check__box svg { width: 12px; height: 12px; color: var(--btn-ink); opacity: 0; transform: scale(.5); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--btn-bg); border-color: var(--btn-bg); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 1px solid var(--accent); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--error); }
.check-wrap { grid-column: 1 / -1; display: grid; gap: 8px; }
.check-group { grid-column: 1 / -1; display: grid; gap: 16px; padding-top: 4px; }

.form__summary { grid-column: 1 / -1; font-size: .88rem; color: var(--error); }
.form__actions { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__grid .section-head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0;
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.05rem + .8vw, 1.75rem); line-height: 1.25;
  transition: color .35s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .5s var(--ease), background-color .4s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 62ch; padding: 0 56px 28px 0; color: var(--ink-soft); }

/* ---------- Contact & map ---------- */
.contact { background: var(--bg-alt); transition: background-color .5s var(--ease); }
.contact__grid { display: grid; grid-template-columns: .92fr 1.08fr; background: var(--surface); border: 1px solid var(--line); transition: background-color .5s var(--ease); }
.contact__info { padding: clamp(32px, 4.4vw, 64px); }
.contact__info .section-head { margin-bottom: 0; }
.contact__list { margin-top: 40px; }
.contact__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row dt { padding-top: 3px; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact__row dd a { transition: color .3s var(--ease); }
.contact__row dd a:hover { color: var(--accent); }
.contact__links { display: grid; justify-items: start; gap: 4px; }
.hours { display: grid; gap: 10px; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.hours span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact__note { margin-top: 18px; font-size: .82rem; color: var(--muted); }

.map { position: relative; min-height: 560px; overflow: hidden; background: var(--surface-2); }
.map__canvas { position: absolute; inset: 0; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.map__veil { position: absolute; inset: 0; z-index: 800; display: flex; align-items: flex-end; justify-content: center; padding: 24px; cursor: pointer; }
.map__veil span { padding: 10px 18px; background: var(--surface); box-shadow: var(--shadow-md); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.map__veil:hover span, .map__veil:focus-visible span { opacity: 1; transform: none; }
.map.is-active .map__veil { display: none; }
.map .leaflet-container { width: 100%; height: 100%; background: var(--surface-2); font-family: var(--font-body); }
.map .leaflet-tile-pane { filter: var(--map-filter); transition: filter .6s var(--ease); }
.map .leaflet-control-zoom { border: 1px solid var(--line) !important; border-radius: 0; box-shadow: var(--shadow-md); }
.map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 0 !important; }
.map .leaflet-control-zoom a:hover { background: var(--surface-2); }
.map .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--muted); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--ink-soft); }
.map-pin-icon { background: none; border: 0; }
.map-pin { position: relative; width: 58px; height: 72px; }
.map-pin__body { position: absolute; left: 4px; top: 0; width: 50px; height: 50px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--btn-bg); box-shadow: var(--shadow-md); border: 2px solid var(--surface); }
.map-pin__mark { position: absolute; left: 4px; top: 0; width: 50px; height: 50px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; font-style: italic; color: var(--btn-ink); }
.map-pin__shadow { position: absolute; left: 50%; bottom: 6px; width: 22px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .28); transform: translateX(-50%); filter: blur(1px); }
.map-pin__pulse { position: absolute; left: 50%; bottom: 0; width: 22px; height: 22px; margin-left: -11px; border: 1px solid var(--accent); border-radius: 50%; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 28px; background: var(--deep); color: var(--deep-ink); transition: background-color .5s var(--ease); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--deep-line); }
.footer__logo { display: inline-block; width: min(220px, 60vw); }
.footer__logo img { width: 100%; height: auto; }
.footer__claim { margin-top: 28px; max-width: 16ch; font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.8rem); line-height: 1.1; }
.footer__claim em { font-style: italic; color: var(--gold-on-deep); }
.footer__title { margin-bottom: 20px; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--deep-muted); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { opacity: .88; transition: color .3s var(--ease), opacity .3s var(--ease); }
.footer__links a:hover { opacity: 1; color: var(--gold-on-deep); }
.footer__wordmark {
  margin: 40px 0 8px; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-size: clamp(3rem, 11vw, 10.5rem); line-height: .8; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(236, 228, 214, .07);
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--deep-line); font-size: .78rem; color: var(--deep-muted); }
.footer__bottom a { display: inline-flex; align-items: center; gap: 10px; color: var(--deep-ink); }
.footer__bottom svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(14, 12, 10, .95); color: #F4EFE6;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox__counter { font-size: .7rem; font-weight: 600; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.lightbox .icon-btn { border-color: rgba(244, 239, 230, .3); color: #F4EFE6; }
.lightbox .icon-btn:hover { border-color: rgba(244, 239, 230, .7); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(16px, 9vw, 130px); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.lightbox__img.is-loading { opacity: 0; transform: scale(.98); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__caption { padding: 18px var(--gutter) 26px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 20px;
  background: rgba(14, 12, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.modal__dialog {
  position: relative; width: min(100%, 580px); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow: auto;
  padding: clamp(34px, 5vw, 58px); background: var(--surface); text-align: center; box-shadow: var(--shadow-lg);
  transform: translateY(24px); transition: transform .6s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__seal { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 22px; border: 1px solid var(--accent-soft); border-radius: 50%; color: var(--accent); }
.modal__seal svg { width: 28px; height: 28px; }
.modal__title { font-size: 2.7rem; font-style: italic; }
.modal__text { margin-top: 12px; color: var(--ink-soft); }
.modal__summary { margin-top: 24px; padding: 16px 20px; max-height: 210px; overflow: auto; background: var(--surface-2); border-left: 2px solid var(--accent-soft); text-align: left; white-space: pre-wrap; font-size: .86rem; line-height: 1.7; color: var(--ink-soft); }
.modal__actions { margin-top: 26px; }
.modal__actions .btn { min-height: 56px; }

/* ---------- Responsive (components) ---------- */
@media (max-width: 960px) {
  .booking__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .booking__aside { position: static; }
  .map { min-height: 400px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; gap: 26px; }
  .contact__row { grid-template-columns: 1fr; gap: 6px; }
  .faq__a p { padding-right: 0; }
  .lightbox__nav { top: auto; bottom: -64px; transform: none; width: 48px; height: 48px; }
  .lightbox__stage { padding: 0 12px; }
  .lightbox__caption { padding-top: 76px; font-size: 1.25rem; }
  .lightbox__img { max-height: calc(100svh - 230px); }
  .reviews__controls { gap: 14px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .sticky-cta {
    position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80;
    display: flex; box-shadow: var(--shadow-lg);
    transform: translateY(160%); transition: transform .6s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
}
