/* ==========================================================================
   PawStay — motion layer (public pages)
   Progressive enhancement: nothing is hidden unless <html> carries .ps-anim,
   which the head script only adds when the visitor allows motion (and removes
   again after 2.5 s if motion.js never loaded). Only transform / opacity move.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.2, .75, .15, 1); --ease-soft: cubic-bezier(.4, 0, .2, 1); --ease-pop: cubic-bezier(.3, 1.45, .5, 1); }

/* ---------- 1. reveal on scroll ---------- */
.ps-anim [data-rv]:not(.rv-done) { transition: opacity .75s var(--ease-out) var(--rv-d, 0ms), transform .9s var(--ease-out) var(--rv-d, 0ms); }
.ps-anim [data-rv]:not(.rv-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
.ps-anim [data-rv="left"]:not(.rv-in) { transform: translate3d(-36px, 0, 0); }
.ps-anim [data-rv="right"]:not(.rv-in) { transform: translate3d(36px, 0, 0); }
.ps-anim [data-rv="scale"]:not(.rv-in) { transform: translate3d(0, 18px, 0) scale(.94); }
.ps-anim [data-rv="fade"]:not(.rv-in) { transform: none; }
/* photos: soft zoom-out as they reveal */
.ps-anim [data-rv-img] img { transition: transform 1.6s var(--ease-out) var(--rv-d, 0ms); }
.ps-anim [data-rv-img]:not(.rv-in) img { transform: scale(1.14); }

/* headline word stagger */
.ps-anim [data-split]:not(.h-split) { opacity: 0; }
.h-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.h-split .w > span { display: inline-block; transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--ease-out) var(--wd, 0ms); }
.h-split.go .w > span { transform: none; }

/* ---------- 2. hover micro-interactions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .svc-card, .pkg, .team-card, .review, .opt, .ov-card { transition: transform .35s var(--ease-soft), box-shadow .35s, border-color .2s; }
  .svc-card:hover, .pkg:hover, .team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .svc-card .ico-float { transition: transform .45s var(--ease-pop); }
  .svc-card:hover .ico-float { transform: rotate(-12deg) scale(1.08); }
  .review:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
  .addon { transition: transform .25s var(--ease-soft), border-color .2s; }
  .addon:hover { transform: translateY(-2px); border-color: var(--accent); }
  .btn:active { transform: translateY(1px); }
  .btn-accent .bi-arrow-right, .btn .bi-arrow-right { transition: transform .25s var(--ease-out); }
  .btn:hover .bi-arrow-right { transform: translateX(4px); }
  .socials a { transition: background-color .2s, color .2s, transform .25s var(--ease-pop); }
  .socials a:hover { transform: translateY(-3px); }
  .faq details > div { animation: none; }
  .ps-anim .faq details[open] > div { animation: ps-up .45s var(--ease-out) both; }
}
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
@keyframes ps-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   3. HOME — hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero > .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 5vw, 70px); line-height: 1.04; margin-bottom: 22px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-proof .av-stack img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.hero-proof .rt b { display: block; font-size: 15px; }
.hero-proof .rt span { font-size: 13.5px; color: var(--muted); }
.hero-proof .vline { width: 1px; height: 36px; background: var(--border); }
.hero-proof .mini { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.hero-proof .mini i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; }
.hero-paws { position: absolute; left: -70px; bottom: -110px; width: 240px; color: var(--accent); opacity: .08; pointer-events: none; }

.hx { position: relative; height: 620px; }
.hx-layer { position: absolute; will-change: transform; }
.hx-l-arch { right: 20px; top: 0; width: 66%; height: 588px; }
.hx-arch { position: relative; width: 100%; height: 100%; border-radius: 400px 400px 36px 36px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.hx-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70% !important; }
.hx-l-ring { right: 44px; top: -24px; width: 66%; height: 588px; pointer-events: none; }
.hx-ring { width: 100%; height: 100%; overflow: visible; }
.hx-ring path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.hx-ring circle { fill: var(--accent); }
.hx-l-sun { left: 8%; top: 18px; width: 150px; height: 150px; }
.hx-sun { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--shadow-lg); background: var(--surface-3); }
.hx-sun img { width: 100%; height: 100%; object-fit: cover; }
.hx-l-rate { right: 0; top: 46px; }
.hx-rate { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.hx-rate .st { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-size: 14px; }
.hx-rate b { color: var(--text); }
.hx-l-rc { left: 0; top: 190px; width: 300px; }
.hx-l-book { right: 0; bottom: 6px; width: 290px; }
.hx-l-paws { left: 4%; bottom: 0; width: 190px; }
.hx-paws { width: 100%; overflow: visible; color: var(--accent); }
.hx-paws .pp { fill: currentColor; opacity: .55; }

/* hero stage animation (only with .ps-anim) — classes s1..s6 added by motion.js */
.ps-anim [data-hx] .hx-l-rc .rc-card { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.ps-anim [data-hx]:not(.s1) .hx-l-rc .rc-card { opacity: 0; transform: translate3d(-20px, 24px, 0) rotate(-3deg); }
.ps-anim [data-hx] .rc-photo img { transition: opacity .5s, transform .8s var(--ease-pop); }
.ps-anim [data-hx]:not(.s2) .rc-photo img { opacity: 0; transform: scale(.6); }
.ps-anim [data-hx] .rc-rows li { transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.ps-anim [data-hx] .rc-rows .tick { transition: opacity .3s, transform .5s var(--ease-pop); }
.ps-anim [data-hx]:not(.s3) .rc-rows li:nth-child(1), .ps-anim [data-hx]:not(.s3) .rc-rows li:nth-child(2) { opacity: .25; }
.ps-anim [data-hx]:not(.s3) .rc-rows li:nth-child(1) .tick, .ps-anim [data-hx]:not(.s3) .rc-rows li:nth-child(2) .tick { opacity: 0; transform: scale(.2); }
.ps-anim [data-hx]:not(.s4) .rc-rows li:nth-child(3) { opacity: .25; }
.ps-anim [data-hx]:not(.s4) .rc-rows li:nth-child(3) .tick { opacity: 0; transform: scale(.2); }
.ps-anim [data-hx] .rc-mood .rc-chip { transition: opacity .35s, transform .55s var(--ease-pop); }
.ps-anim [data-hx]:not(.s5) .rc-mood .rc-chip { opacity: 0; transform: scale(.4); }
.ps-anim [data-hx] .rc-mood .rc-chip:nth-child(2) { transition-delay: .12s; }
.ps-anim [data-hx] .rc-mood .rc-chip:nth-child(3) { transition-delay: .24s; }
.ps-anim [data-hx].s6 .rc-sent .s-a { opacity: 1; }
.ps-anim [data-hx]:not(.s6) .rc-sent .s-a { opacity: 0; transform: translateY(14px); }
.ps-anim [data-hx].s6 .rc-sent .s-b { opacity: 0; transform: translateY(-14px); }
.ps-anim [data-hx] .rc-sent { transition: background-color .4s; }
.ps-anim [data-hx].s6 .rc-sent { background: var(--ok); }
[data-theme="dark"].ps-anim [data-hx].s6 .rc-sent { background: #166534; }
/* final state without animation */
html:not(.ps-anim) .rc-sent .s-a { opacity: 1; }
html:not(.ps-anim) .rc-sent .s-b { opacity: 0; }
html:not(.ps-anim) .rc-sent { background: var(--ok); }
html:not(.ps-anim) .rc-toast { display: none; }
[data-theme="dark"]:not(.ps-anim) .rc-sent { background: #166534; }

.ps-anim [data-hx] .hx-l-book .bk-card { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.ps-anim [data-hx]:not(.go) .hx-l-book .bk-card { opacity: 0; transform: translate3d(24px, 30px, 0); }
.ps-anim [data-hx] .bk-nights i { transform-origin: left; transition: transform .5s var(--ease-out); }
.ps-anim [data-hx]:not(.go) .bk-nights i { transform: scaleX(0); }
.ps-anim [data-hx] .bk-nights i:nth-child(2) { transition-delay: .9s; }
.ps-anim [data-hx] .bk-nights i:nth-child(1) { transition-delay: .75s; }
.ps-anim [data-hx] .bk-nights i:nth-child(3) { transition-delay: 1.05s; }
.ps-anim [data-hx] .bk-nights i:nth-child(4) { transition-delay: 1.2s; }
.ps-anim [data-hx] .hx-arch { transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); }
.ps-anim [data-hx]:not(.go) .hx-arch { opacity: 0; transform: translate3d(0, 40px, 0) scale(.96); }
.ps-anim [data-hx] .hx-arch img { transition: transform 2.2s var(--ease-out); }
.ps-anim [data-hx]:not(.go) .hx-arch img { transform: scale(1.18); }
.ps-anim [data-hx] .hx-sun, .ps-anim [data-hx] .hx-rate { transition: opacity .6s var(--ease-out) .5s, transform .9s var(--ease-pop) .5s; }
.ps-anim [data-hx]:not(.go) .hx-sun, .ps-anim [data-hx]:not(.go) .hx-rate { opacity: 0; transform: scale(.6); }
.ps-anim [data-hx] .hx-ring path { stroke-dasharray: var(--len, 1600); stroke-dashoffset: var(--len, 1600); transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.ps-anim [data-hx].go .hx-ring path { stroke-dashoffset: 0; }
.ps-anim [data-hx] .hx-ring circle { transition: opacity .4s 2.3s; }
.ps-anim [data-hx]:not(.go) .hx-ring circle { opacity: 0; }
.ps-anim [data-hx] .hx-paws .pp { transition: opacity .3s; }
.ps-anim [data-hx]:not(.go) .hx-paws .pp { opacity: 0; }
.ps-anim [data-hx] .hx-paws .pp:nth-child(1) { transition-delay: 1.0s; }
.ps-anim [data-hx] .hx-paws .pp:nth-child(2) { transition-delay: 1.25s; }
.ps-anim [data-hx] .hx-paws .pp:nth-child(3) { transition-delay: 1.5s; }
.ps-anim [data-hx] .hx-paws .pp:nth-child(4) { transition-delay: 1.75s; }
.ps-anim [data-hx] .hx-paws .pp:nth-child(5) { transition-delay: 2.0s; }
/* gentle float after entrance */
@keyframes ps-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
.ps-anim [data-hx].go .hx-rate { animation: ps-bob 5s ease-in-out 2.4s infinite; }
.ps-anim [data-hx].go .bk-wrap { animation: ps-bob 6s ease-in-out 3s infinite; }
.ps-anim .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: ps-ping 2s var(--ease-out) infinite; }
@keyframes ps-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- 4. path draws (how it works, CTA scribble) ---------- */
.steps4 .flow-line .draw { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.ps-anim .steps4 .flow-line .draw { stroke-dashoffset: calc(1 - var(--p, 0)); }
.ps-anim .step .num { transition: transform .6s var(--ease-pop), border-color .4s, background-color .4s, color .4s; }
.ps-anim .step:not(.on) .num { transform: scale(.86); }
.ps-anim .step.on .num { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.ps-anim .step.on .num small { background: var(--brand-fill); }
.ps-anim [data-draw] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) .3s; }
.ps-anim [data-draw].rv-in path, .ps-anim .rv-in [data-draw] path { stroke-dashoffset: 0; }

/* ---------- 5. suites tabs auto-cycle ---------- */
.ps-anim [data-sc].auto .suite-tabs .on .sc-bar { animation: ps-bar 6s linear forwards; }
@keyframes ps-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ps-anim .suite-info .tab-panel.on { animation: ps-up .55s var(--ease-out) both; }

/* ---------- 6. report-card phone feed ---------- */
.ps-anim [data-feed] .rc-post { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.ps-anim [data-feed]:not(.rv-in) .rc-post { opacity: 0; transform: translate3d(0, 40px, 0); }
.ps-anim [data-feed] .rc-post:nth-child(2) { transition-delay: .25s; }
.ps-anim [data-feed] .rc-post:nth-child(3) { transition-delay: .5s; }
.ps-anim [data-feed] .rc-chip { transition: opacity .3s, transform .5s var(--ease-pop); }
.ps-anim [data-feed]:not(.rv-in) .rc-chip { opacity: 0; transform: scale(.5); }
.ps-anim [data-feed].rv-in .rc-post:nth-child(1) .rc-chip:nth-child(1) { transition-delay: .7s; }
.ps-anim [data-feed].rv-in .rc-post:nth-child(1) .rc-chip:nth-child(2) { transition-delay: .8s; }
.ps-anim [data-feed].rv-in .rc-post:nth-child(1) .rc-chip:nth-child(3) { transition-delay: .9s; }
.ps-anim [data-feed].rv-in .rc-post:nth-child(1) .rc-chip:nth-child(4) { transition-delay: 1s; }
.ps-anim .rc-feed-scroll { animation: ps-feed 16s ease-in-out 2.5s infinite; }
@keyframes ps-feed { 0%, 30% { transform: translate3d(0, 0, 0); } 45%, 75% { transform: translate3d(0, -300px, 0); } 90%, 100% { transform: translate3d(0, 0, 0); } }
.ps-anim .rc-toast { animation: ps-toast 8s var(--ease-out) 1.5s infinite; }
@keyframes ps-toast { 0% { opacity: 0; transform: translate3d(0, -20px, 0) scale(.95); } 8%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translate3d(0, -20px, 0) scale(.95); } }
.rc-toast { position: absolute; left: 14px; right: 14px; top: 44px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 12.5px; }
.rc-toast .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-fill); color: #fff; display: grid; place-items: center; flex: none; }
.rc-toast b { display: block; font-size: 13px; }

/* ---------- 7. marquee ---------- */
.ps-anim [data-marquee] .mq-track { animation: ps-mq var(--mq-dur, 60s) linear infinite; }
.ps-anim [data-marquee].rev .mq-track { animation-direction: reverse; }
.ps-anim [data-marquee]:hover .mq-track { animation-play-state: paused; }
@keyframes ps-mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 8. gallery tilt + CTA ---------- */
.ps-anim .cta-band .cta-photo img { transition: transform 1.6s var(--ease-out); }
.ps-anim .cta-band:not(.rv-in) .cta-photo img { transform: scale(1.15) translate3d(30px, 0, 0); }
.ps-anim .pkg.featured { transition-delay: 0s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- hero responsive ---------- */
@media (max-width: 1279px) {
  .hx { height: 560px; }
  .hx-l-arch { height: 530px; }
  .hx-l-ring { height: 530px; }
  .hx-l-rc { width: 272px; top: 170px; }
  .hx-l-book { width: 262px; }
  .hx-l-sun, .hx-sun { width: 124px; height: 124px; }
}
@media (max-width: 1099px) {
  .hero > .container { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 48px; }
  .hero .lead { max-width: 640px; }
  .hx { height: 600px; max-width: 680px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .hero > .container { padding-top: 34px; padding-bottom: 48px; }
  .hero h1 { font-size: 42px; }
  .hero-proof .vline { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hx { height: 620px; }
  .hx-l-arch { width: 84%; height: 400px; right: 0; }
  .hx-l-ring { display: none; }
  .hx-l-sun { left: 0; top: 6px; }
  .hx-l-sun, .hx-sun { width: 92px; height: 92px; }
  .hx-sun { border-width: 4px; }
  .hx-l-rate { display: none; }
  .hx-rate { height: 40px; font-size: 12.5px; }
  .hx-l-rc { width: 262px; left: 0; top: 236px; }
  .rc-card .rc-hd b, .rc-card .rc-hd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rc-card .rc-hd > div { min-width: 0; }
  .rc-photo { height: 96px; }
  .rc-rows li { min-height: 30px; font-size: 12px; }
  .hx-l-book { display: none; }
  .hx-l-paws { display: none; }
}
@media (max-width: 380px) {
  .hx-l-rc { width: 244px; }
}
