/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* ============================================================
   Motion layer — page entrance, staggered reveals, hover glow
   ============================================================ */
:root {
  --sa-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sa-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Soft page entrance; gated on .js-motion so no-JS users see content */
.js-motion body {
  animation: sa-page-in 0.5s ease-out both;
}

/* Headings that aren't already handled by .reveal */
.js-motion .sa-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--sa-ease), transform 0.7s var(--sa-ease);
}
.js-motion .sa-fade.is-in {
  opacity: 1;
  transform: none;
}

/* Feature boxes: equal height happens in markup, this is the interaction */
.sa-box {
  transition:
    opacity 0.7s var(--sa-ease),
    transform 0.35s var(--sa-ease),
    border-color 0.35s ease,
    box-shadow 0.35s var(--sa-ease);
}
.sa-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 60px -34px rgba(var(--cl-accent), 0.55),
    0 10px 28px -18px rgba(0, 0, 0, 0.65);
}
.sa-box-icon {
  transition: transform 0.35s var(--sa-ease);
}
.sa-box:hover .sa-box-icon {
  transform: translateY(-1px) rotate(-6deg) scale(1.06);
}

/* Cursor-follow glow inside boxes (coordinates set by custom.js) */
.sa-spot {
  position: relative;
  isolation: isolate;
}
.sa-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--sa-x, 50%) var(--sa-y, 0%),
    rgba(var(--cl-accent), 0.16),
    transparent 62%
  );
  transition: opacity 0.35s ease;
}
.sa-spot:hover::after {
  opacity: 1;
}

/* Header pill reacts once the page is scrolled */
.edner-header > .container > div:first-child {
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}
.edner-header.is-scrolled > .container > div:first-child {
  border-color: rgba(var(--cl-accent), 0.42);
  box-shadow:
    0 20px 45px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(var(--cl-accent), 0.08) inset;
}

/* Nicer focus states for keyboard users */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid rgba(var(--cl-accent), 0.8);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Respect reduced motion: no animation, everything visible */
@media (prefers-reduced-motion: reduce) {
  .js-motion body,
  .js-motion .sa-fade {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sa-box,
  .sa-box:hover {
    transform: none !important;
    transition: none !important;
  }
  .sa-spot::after {
    display: none;
  }
}
