/* ============================================================
   MOTION / ANIMATION LAYER
   Everything here degrades gracefully and is disabled by
   prefers-reduced-motion (see the block at the end).
   ============================================================ */

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.75, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.75, 0.3, 1),
    filter 0.7s ease;
  filter: blur(2px);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* variants */
[data-reveal="left"]  { transform: translateX(-18px); }
[data-reveal="right"] { transform: translateX(18px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }

/* ---------- hero entrance ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-badge, .tod-chip { animation: fadeIn 0.9s 0.1s both; }
.hero h1               { animation: riseIn 0.9s 0.2s both; }
.hero-sub              { animation: riseIn 0.9s 0.34s both; }
.hero-actions          { animation: riseIn 0.9s 0.46s both; }
.hero-stats            { animation: riseIn 0.9s 0.58s both; }

/* parallax hook (set by JS as --py) */
.hero-slide.on {
  background-position: center calc(50% + var(--py, 0px));
  transition: opacity 1.4s ease, background-position 0.1s linear;
}

/* ---------- header behaviour ---------- */
.hdr { transition: box-shadow 0.3s ease, background 0.6s ease, padding 0.3s ease; }
.hdr.compact .wrap { min-height: 62px; }
.hdr.compact .logo-mark { width: 38px; height: 38px; flex-basis: 38px; }
.hdr.compact .logo-txt .n1 { font-size: 1.05rem; }

/* animated underline on nav hover */
.nav a { position: relative; }
.nav a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.28s ease, left 0.28s ease;
}
.nav a:hover::before { width: 46%; left: 27%; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn-wa::after { background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%); }

/* ripple on click */
.btn:active { transform: translateY(0) scale(0.985); }

/* ---------- cards ---------- */
.card {
  transition:
    transform 0.34s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.34s ease,
    border-color 0.34s ease;
}

/* image tilt-in on hover */
.card-media img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease; }

/* activity rings pop */
.act-card .ring { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease; }
.act-card:hover .ring { transform: translateY(-6px) scale(1.02); box-shadow: 0 22px 50px rgba(16, 40, 30, 0.18); }

/* why tiles */
.why { transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.6s ease; }
.why:hover .why-ico { transform: rotate(-6deg) scale(1.06); }
.why-ico { transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* testimonial lift */
.tst { transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.6s ease; }
.tst:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(212, 160, 23, 0.4); }

/* ---------- gallery ---------- */
.gal a img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease; }
.gal a:hover img { filter: saturate(1.12) brightness(1.04); }
.gal a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(212, 160, 23, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}
.gal a:hover::after { box-shadow: inset 0 0 0 3px rgba(212, 160, 23, 0.85); }

/* lightbox */
.lightbox { opacity: 0; transition: opacity 0.28s ease; }
.lightbox.on { opacity: 1; }
.lightbox img { transform: scale(0.96); transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1); }
.lightbox.on img { transform: scale(1); }

/* ---------- counters ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- footer link underline ---------- */
.ftr a { position: relative; transition: color 0.2s ease; }
.ftr ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.26s ease;
}
.ftr ul a:hover::after { width: 100%; }

/* social buttons */
.ftr-social a { transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease; }

/* ---------- FAB pulse ---------- */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- mobile bar slide-up ---------- */
@keyframes barIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.mobile-bar { animation: barIn 0.5s 0.4s both; }

/* ---------- sticky booking bar (tour pages) ---------- */
.sticky-book {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--tod-card, #fff);
  border-top: 1px solid var(--tod-line, #e4ded2);
  box-shadow: 0 -8px 26px rgba(16, 40, 30, 0.14);
  transform: translateY(140%);
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.sticky-book.show { transform: translateY(0); }
.sticky-book .sb-price {
  font-family: var(--font-head, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tod-heading, #0a2b20);
  line-height: 1.1;
}
.sticky-book .sb-price small {
  display: block;
  font-family: var(--font-body, sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  color: #78847f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sticky-book .btn { flex: 1; }
.sticky-book .btn-wa { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 901px) { .sticky-book { display: none; } }

/* ---------- price pill pop ---------- */
@keyframes popIn {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.price-chip { animation: popIn 0.5s 0.5s both; }

/* ---------- section separators ---------- */
.sec { position: relative; }

/* sun / moon arc that sits behind the hero heading */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-badge .dot { animation: floatY 4s ease-in-out infinite; }

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-badge, .tod-chip, .hero h1, .hero-sub, .hero-actions, .hero-stats,
  .price-chip, .mobile-bar {
    animation: none !important;
  }
  .btn::after { display: none; }
  .hero-slide.on { background-position: center; }
}
