/* Progressive motion: no content is hidden while waiting for JavaScript. */
[data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .sx-reveal.sx-visible {
    animation: sx-enter .82s cubic-bezier(.18,.72,.22,1) both;
    animation-delay: var(--sx-delay, 0ms);
  }

  .sx-image-reveal.sx-visible {
    animation: sx-image-enter 1.05s cubic-bezier(.18,.72,.22,1) both;
    animation-delay: var(--sx-delay, 0ms);
  }

  .sx-reveal.sx-visible .eyebrow,
  .sx-image-reveal.sx-visible figcaption {
    animation: sx-detail-enter .7s ease-out both;
    animation-delay: calc(var(--sx-delay, 0ms) + 180ms);
  }

  @keyframes sx-enter {
    from { opacity: .48; transform: translate3d(0, 32px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }

  @keyframes sx-image-enter {
    from { opacity: .62; transform: translate3d(0, 24px, 0) scale(.975); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  @keyframes sx-detail-enter {
    from { opacity: .45; transform: translate3d(0, 9px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }

  @keyframes sx-rule-enter {
    from { opacity: 0; transform: scaleX(.1); }
    to { opacity: 1; transform: scaleX(1); }
  }

  .sectionhead:not(.center),
  .modern-section-heading { position: relative; }

  .sectionhead:not(.center).sx-visible::after,
  .modern-section-heading.sx-visible::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 66px;
    height: 2px;
    background: var(--coral, #ff815f);
    transform-origin: left center;
    animation: sx-rule-enter .72s ease-out both;
    animation-delay: calc(var(--sx-delay, 0ms) + 260ms);
  }

  .photocard img,
  .areacard img,
  .modern-service-card .service-image img,
  .modern-guides a,
  .card,
  .price,
  .btn,
  .modern-textlink span {
    transition-duration: .38s;
    transition-timing-function: cubic-bezier(.18,.72,.22,1);
  }

  .photocard:hover img,
  .photocard:focus-visible img,
  .areacard:hover img,
  .areacard:focus-visible img,
  .modern-service-card:hover .service-image img,
  .modern-service-card:focus-visible .service-image img { transform: scale(1.065); }

  .card:hover,
  .card:focus-within,
  .price:hover,
  .price:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(7,42,41,.1);
  }

  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,42,41,.15); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .faq summary::after { transition: transform .28s ease; }
  .faq details[open] summary::after { color: var(--coral, #ff815f); }
  .faq details[open] > :not(summary) { animation: sx-detail-enter .36s ease-out both; }
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .sx-parallax {
    transform: translate3d(0, var(--sx-parallax-y, 0px), 0) scale(1.07);
  }
  .sx-parallax-active { will-change: transform; }
}

.sx-scroll-progress {
  position: fixed;
  z-index: 110;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-mid, #377a73), var(--coral, #ff815f));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.sx-back-to-top {
  position: fixed;
  z-index: 60;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(7,59,58,.2);
  border-radius: 999px;
  background: var(--paper, #fff);
  color: var(--teal, #073b3a);
  box-shadow: 0 12px 36px rgba(7,59,58,.14);
  font: 600 .8rem/1 var(--sans, Arial, sans-serif);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.sx-back-to-top[hidden] { display: none !important; }
.sx-back-to-top:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(7,59,58,.2); }
.sx-back-to-top:focus-visible { outline: 3px solid var(--coral, #ff815f); outline-offset: 3px; }

.header { transition: box-shadow .32s ease, background-color .32s ease; }
.header.sx-scrolled { box-shadow: 0 8px 28px rgba(7,42,41,.11); }

.pagehero .photo,
.split .photo { overflow: hidden; border-radius: var(--radius, 16px); }

@media (max-width: 640px) {
  .sx-back-to-top { right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-reveal.sx-visible,
  .sx-image-reveal.sx-visible,
  .sx-reveal.sx-visible .eyebrow,
  .sx-image-reveal.sx-visible figcaption,
  .faq details[open] > :not(summary) { animation: none !important; }
  .sectionhead.sx-visible::after,
  .modern-section-heading.sx-visible::after { animation: none !important; }
  .sx-parallax { transform: none !important; will-change: auto !important; }
  .sx-back-to-top, .header { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
