/* =========================================================
   NAILS BY SANDEEP - PREMIUM MOTION + WORDMARK  (v5)
   Only opacity and transform are animated so it stays fast.
   Everything is off for people who ask for reduced motion.
========================================================= */

/* ---------- wordmark (replaces the logo picture) ---------- */
.logo-link { text-decoration: none; }
.nbs-wordmark {
    --wm-1: #d93473; --wm-2: #a8456b; --wm-line: rgba(168, 69, 107, 0.45);
    display: inline-flex; flex-direction: column; align-items: stretch;
    line-height: 1; user-select: none;
}
.nbs-wm-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px; font-weight: 400; letter-spacing: 0.36em; text-transform: uppercase;
    padding-left: 0.36em; text-align: center;
    background: linear-gradient(100deg, var(--wm-1), var(--wm-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.nbs-wm-sub { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.nbs-wm-sub i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--wm-line)); }
.nbs-wm-sub i:last-child { background: linear-gradient(270deg, transparent, var(--wm-line)); }
.nbs-wm-sub em {
    font-family: Georgia, "Times New Roman", serif; font-style: italic;
    font-size: 13px; letter-spacing: 0.16em; color: var(--wm-2); white-space: nowrap;
}
html[data-nbs-theme="A"] .nbs-wordmark { --wm-1: #ffe1ea; --wm-2: #e9b9a3; --wm-line: rgba(233, 185, 163, 0.6); }
html[data-nbs-theme="A"] .nbs-wm-sub em { color: #e9b9a3; }
html[data-nbs-theme="B"] .nbs-wordmark { --wm-1: #8f3556; --wm-2: #b8506f; --wm-line: rgba(143, 53, 86, 0.4); }
@media (max-width: 760px) {
    .nbs-wm-main { font-size: 23px; }
    .nbs-wm-sub em { font-size: 11px; }
}

/* ---------- page change: soft fade in, quick fade out (never blocks) ---------- */
html.nbs-motion body { animation: nbsPageIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes nbsPageIn { from { opacity: 0; } }
html.nbs-leaving body { opacity: 0; transition: opacity 0.16s ease-in; }

/* ---------- JS drives scrolling ---------- */
html.nbs-motion { scroll-behavior: auto !important; }
/* while the page is gliding, pause decorative loops so every frame goes to scrolling */
html.nbs-scrolling .nx-slot::after,
html.nbs-scrolling .offer-tiers li::before { animation-play-state: paused !important; }
html.nbs-scrolling .service-card,
html.nbs-scrolling .services-page-card { pointer-events: none; }

/* ---------- reveal: things "fall" in and settle, every time they come into view ---------- */
@keyframes nbsRise { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes nbsDrop {
    0%   { opacity: 0; transform: translate3d(0, calc(var(--fall, 46px) * -1), 0) scale(0.97); animation-timing-function: cubic-bezier(0.3, 0.6, 0.35, 1); }
    58%  { opacity: 1; transform: translate3d(0, calc(var(--fall, 46px) * 0.12), 0) scale(1.003); animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
    80%  { transform: translate3d(0, calc(var(--fall, 46px) * -0.04), 0) scale(1); animation-timing-function: ease-out; }
    100% { opacity: 1; transform: none; }
}
html.nbs-motion .nbs-reveal:not(.in) { opacity: 0; }
html.nbs-motion .nbs-reveal.in {
    opacity: 1;
    animation: nbsDrop 1.05s backwards;
    animation-delay: calc(var(--i, 0) * 110ms);
}
html.nbs-motion :is(.service-card, .product-card, .press-on-feature-card, .contact-card, .contact-option-card, .about-detail-card).nbs-reveal { --fall: 80px; }

/* cards on the Services page rise one after another when a tab opens */
html.nbs-motion .service-cards-grid:not(.category-changing) > * {
    animation: nbsRise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Services page: tab row stays under the header ---------- */
.service-category-section { position: sticky; top: var(--nbs-hdr, 76px); z-index: 40; }
.service-category-button.nbs-landed { animation: nbsLanded 1.1s ease-out 1; }
@keyframes nbsLanded {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 160, 0.5); }
    100% { box-shadow: 0 0 0 16px rgba(255, 90, 160, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html.nbs-motion body { animation: none; }
    html.nbs-motion .nbs-reveal:not(.in) { opacity: 1; }
    html.nbs-motion .nbs-reveal.in,
    html.nbs-motion .service-cards-grid > * { animation: none !important; }
}

.nbs-cart-pill{white-space:nowrap;position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:900;display:flex;align-items:center;gap:14px;padding:14px 22px;border-radius:999px;background:var(--t-btn,linear-gradient(135deg,#d93473,#e44d87));color:var(--t-btnink,#fff);font:600 15px "DM Sans",system-ui,sans-serif;text-decoration:none;box-shadow:0 14px 34px rgba(0,0,0,.35);transform:translate(-50%,120%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s}
.nbs-cart-pill.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.nbs-cart-pill b{font-weight:700;opacity:.92}
.services-page-card-book.is-in-cart{filter:saturate(.85)}

/* speed: the footer is off-screen at first, so the browser skips drawing it until needed */
.site-footer{content-visibility:auto;contain-intrinsic-size:auto 520px}
/* speed: taps respond at once (no double-tap delay, no grey flash) */
a,button,[role="button"],input,select,textarea,label{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
