/* ===== Анимации ===== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, .05, .25, 1); }

/* ---------- Двете линии горе ---------- */
/* 1. Тънка цветна линия най-горе, по цялата ширина. Стои на място.
   2. Линия под менюто (под логото), която расте отляво надясно с превъртането.
   И двете са направени с рамка, защото браузърът закръгля рамките до цели пиксели на екрана
   и ръбът им остава чист и при мащаб 125–150 %. */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 100;
  border-top: 1px solid var(--accent);
  border-image: linear-gradient(90deg, var(--accent), #e2a487, var(--accent)) 1;
  pointer-events: none;
}
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  border-top: 1px solid var(--accent);
  border-image: linear-gradient(90deg, var(--accent), #e2a487) 1;
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* ---------- Split lines (titles) ---------- */
.ln { display: block; overflow: hidden; padding: .12em 0 .18em; margin: -.12em 0 -.18em; }
.ln__in { display: block; }
.js .split .ln__in {
  transform: translateY(112%) rotate(3deg); transform-origin: 0 0;
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms + var(--d, 0ms));
}
.js .split.is-in .ln__in { transform: none; }

/* ---------- Fade-up reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-settled { transition-delay: 0ms; }

/* staggered children */
.js [data-stagger] > * { opacity: 0; transform: translateY(44px); }
.js [data-stagger]:not(.is-settled) > * {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--sd, 0ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Image curtain reveal ---------- */
.js .reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io);
  transition-delay: var(--d, 0ms);
}
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-clip img, .js .reveal-clip iframe {
  scale: 1.3;
  transition: scale 2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal-clip.is-in img { scale: 1.12; }
.js .reveal-clip.is-in iframe { scale: 1; }

/* ---------- Diamond gallery ---------- */
.diamonds .dm img { translate: -50% calc(-50% + var(--py, 0px)); }
.js .diamonds .dm:not(.dm--blank) {
  opacity: 0; scale: .2;
  transition: opacity .7s var(--ease), scale 1.1s cubic-bezier(.3,1.35,.5,1);
  transition-delay: calc(var(--dist, 0) * 110ms);
}
.js .diamonds.is-in .dm { opacity: 1; scale: 1; }
.js .diamonds:not(.is-settled) .dm img { transition-delay: calc(var(--dist, 0) * 110ms + 150ms); transition-duration: 1.6s; }
.js .diamonds:not(.is-in) .dm img { scale: 1.6; }
.dm--brand { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { background: var(--accent-2); } }

/* Lightbox */
.lightbox:not([hidden]) { animation: lbFade .35s var(--ease); }
.lightbox:not([hidden]) img { animation: lbZoom .55s var(--ease); }
@keyframes lbFade { from { opacity: 0; } }
@keyframes lbZoom { from { opacity: 0; scale: .85; } }

/* ---------- Floating chips ---------- */
.hero__chip { animation: float 6s ease-in-out infinite; }
.hero__chip--b { animation-delay: -2s; }
.hero__chip--c { animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -9px; } }

/* ---------- Spinning badge ---------- */
.spin { animation: spin 22s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Marquee (JS-driven when available) ---------- */
.js .marquee__track.is-driven { animation: none; will-change: transform; }

/* ---------- Buttons: magnetic + shine ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .3s, color .3s, border-color .3s, transform .2s, translate .35s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* ---------- Service cards: tilt + spotlight ---------- */
.service { position: relative; overflow: hidden; transform-style: preserve-3d; }
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(181,96,63,.14), transparent 60%);
  transition: opacity .4s;
}
.service--feature::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%); }
.service:hover::before { opacity: 1; }
.service.is-tilting { transition: transform .12s linear, box-shadow .25s; }
.service__foot a { display: inline-block; transition: translate .3s var(--ease); }
.service:hover .service__foot a { translate: 5px 0; }

/* ---------- Accordion list cascade ---------- */
details[open] .plist li, details[open] > p { animation: rise .55s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Booking widget cascade ---------- */
.choice, .day, .slot { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 30ms); }
.choice { transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.choice:hover { transform: translateX(4px); }
.done__icon { animation: pop .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pop { from { transform: scale(0) rotate(-45deg); } }

/* ---------- Stats ---------- */
.stats b[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--accent); opacity: 0;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s;
  }
  .cursor span { font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-on { opacity: .9; }
  .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(181,96,63,.25); }
  .cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); }
  .cursor.is-view span { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .split .ln__in, .js [data-reveal], .js [data-stagger] > *, .js .reveal-clip, .js .reveal-clip img { transform: none !important; opacity: 1 !important; clip-path: none !important; scale: 1 !important; }
  .cursor { display: none !important; }
}
