/**
 * Nanotkar Studio — Conversion layer
 * Enquiry form + home "check your date" band, home reviews, sticky mobile bar,
 * cursor-follow glow on cards. Loaded last; uses the tokens from nanotkar-ui.css.
 */

/* ─────────────────────────────────────────────
 * HOME — CHECK YOUR DATE
 * ───────────────────────────────────────────── */
.ns-enquire {
  position: relative;
  padding: var(--ns-section-y) 2rem;
  border-top: 1px solid var(--ns-line);
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(243, 221, 213, 0.7) 0%, rgba(243, 221, 213, 0) 65%),
    var(--ns-paper);
}
.ns-enquire__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.ns-enquire__copy h2 {
  margin: 0 0 1.1rem;
  font-family: var(--ns-font-heading);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--ns-ink);
}
.ns-enquire__copy h2 em { font-style: italic; color: var(--ns-accent); }
.ns-enquire__copy > p { margin: 0 0 1.75rem; font-size: 0.98rem; line-height: 1.85; color: var(--ns-ink-soft); max-width: 34rem; }
.ns-enquire__points { margin: 0 0 2rem; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.ns-enquire__points li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; color: var(--ns-ink); }
.ns-enquire__points .ns-icon { flex: none; width: 1.15rem; height: 1.15rem; color: var(--ns-gilt-ink); stroke-width: 1.3; }
.ns-enquire__alt { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ns-enquire__card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--ns-gilt-soft);
  background: #fff;
  box-shadow: var(--ns-shadow-lift);
}

/* ─────────────────────────────────────────────
 * ENQUIRY FORM
 * ───────────────────────────────────────────── */
.ns-enquiry-form .ns-form__row { gap: 1.5rem; }
.ns-enquiry-form .ns-form__group { margin-bottom: 1.35rem; padding: 0; border: 0; }
.ns-enquiry-form .ns-form__label { display: block; margin-bottom: 0.2rem; padding: 0; }
.ns-enquiry-form .ns-form__textarea { min-height: 84px; border: 1px solid var(--ns-gilt-soft); padding: 0.75rem 0.9rem; resize: vertical; }
.ns-enquiry-form .ns-form__textarea:focus { border-color: var(--ns-accent); }
.ns-enquiry-form .ns-form__input,
.ns-enquiry-form .ns-form__select { width: 100%; }
.ns-enquiry-form .ns-b--block { width: 100%; margin-top: 0.4rem; }
.ns-enquiry__note { margin: 0.9rem 0 0; font-size: 0.74rem; line-height: 1.6; text-align: center; color: var(--ns-ink-muted); }
.ns-enquiry .ns-notice { margin-bottom: 1.5rem; }
.ns-enquiry__wa { display: block; margin-top: 0.6rem; color: #2F6A47; font-weight: 500; text-decoration: none; border-bottom: 1px solid #B9CDB5; width: fit-content; }
.ns-enquiry__wa:hover { color: #3F7D58; }

/* ─────────────────────────────────────────────
 * HOME — REVIEWS
 * ───────────────────────────────────────────── */
.ns-reviews { border-top: 1px solid var(--ns-line); background: var(--ns-cream); }
.ns-home-section--head-center.ns-reviews .ns-h2 { margin-bottom: 1rem; }
.ns-reviews__score { margin: 0 0 3rem; font-family: var(--ns-font-heading); font-size: 1.5rem; color: var(--ns-gilt-ink); letter-spacing: 0.04em; }
.ns-reviews__score-sub { font-family: var(--ns-font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ns-ink-muted); margin-left: 0.4rem; }
.ns-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  margin: 0 0 3rem;
  text-align: center;
}
.ns-reviews .ns-quote-card { margin: 0; display: flex; flex-direction: column; }
.ns-reviews .ns-quote-card__body { margin: 0; flex: 1; font-family: var(--ns-font-heading); font-size: 1.35rem; font-style: italic; font-weight: 300; line-height: 1.5; color: var(--ns-ink-soft); }
.ns-reviews .ns-quote-card__body p:not(.ns-quote-card__stars) { margin: 0; }
.ns-quote-card__who { margin-top: 1.5rem; font-family: var(--ns-font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ns-gilt-ink); }

/* ─────────────────────────────────────────────
 * CURSOR-FOLLOW GLOW (desktop pointers only; JS sets --gx / --gy)
 * ───────────────────────────────────────────── */
.ns-glow { position: relative; }
.ns-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(184, 155, 106, 0.2), rgba(176, 85, 96, 0.07) 45%, transparent 70%);
  transition: opacity 0.5s var(--ns-ease);
}
.ns-glow.is-glowing::after { opacity: 1; }

/* ─────────────────────────────────────────────
 * STICKY MOBILE BAR — Call · WhatsApp · Enquire
 * ───────────────────────────────────────────── */
.ns-mobilebar { display: none; }

@media (max-width: 768px) {
  .ns-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    border-top: 1px solid var(--ns-gilt-soft);
    background: rgba(251, 248, 243, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%);
    transition: transform 0.5s var(--ns-ease);
  }
  .ns-mobilebar.is-visible { transform: none; }
  body.ns-menu-open .ns-mobilebar { transform: translateY(110%); }

  .ns-mobilebar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
    padding: 0.5rem;
    color: var(--ns-ink);
    font-family: var(--ns-font-body);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .ns-mobilebar__item + .ns-mobilebar__item { border-left: 1px solid var(--ns-line); }
  .ns-mobilebar__item .ns-icon { width: 1.15rem; height: 1.15rem; flex: none; }
  .ns-mobilebar__item--wa { color: #2F6A47; }
  .ns-mobilebar__item--cta { background: var(--ns-accent); color: #fff; border-left-color: var(--ns-accent); }
  .ns-mobilebar__item:active { background: var(--ns-accent-soft); }
  .ns-mobilebar__item--cta:active { background: var(--ns-accent-dark); }

  /* the bar already carries WhatsApp; keep the other floating buttons clear of it */
  .ns-whatsapp-float { display: none !important; }
  body.ns-has-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.ns-has-bar .ns-ig-float,
  body.ns-has-bar .ns-back-to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.ns-has-bar .ns-back-to-top { right: 16px; }

  .ns-enquire { padding-left: 1.25rem; padding-right: 1.25rem; }
  .ns-enquire__grid { grid-template-columns: 1fr; }
  .ns-enquire__card { padding: 1.5rem 1.25rem; }
  .ns-enquiry-form .ns-form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 991px) {
  .ns-enquire__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
 * REDUCED MOTION
 * ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ns-glow::after { display: none; }
  .ns-mobilebar { transition: none; }
}
