/* Move kiropraktikk – prototype styles
   Supplements Tailwind utility classes with the handful of things
   utilities don't cover cleanly: focus rings, reveal animation,
   the sticky mobile CTA bar, and the accordion chevron. */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #123D2E;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* Visible focus ring everywhere, keyboard only */
:focus-visible {
  outline: 3px solid #123D2E;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Signature gradient echoing the Move logo (lilla -> turkis), used sparingly
   as a decorative accent only - never carries button text (contrast reasons) */
.brand-gradient {
  background-image: linear-gradient(90deg, #522482 0%, #1F7A5C 55%, #35AD89 100%);
}

/* Buttons: press feedback per design-grunnmal state matrix */
.btn-primary:active,
.btn-ghost:active {
  transform: scale(0.98);
}

/* Scroll reveal – content is visible by default (no-JS / slow-JS safe).
   JS opts individual elements into the hidden starting state by adding
   .reveal-armed right before it starts observing them, so a script
   failure never leaves content permanently invisible. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

/* FAQ accordion chevron (native <details>/<summary>) */
details.faq summary {
  list-style: none;
  cursor: pointer;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq .chevron {
  transition: transform 0.25s ease;
}

details.faq[open] .chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  details.faq .chevron {
    transition: none;
  }
}

/* Honeypot field – hidden from sighted users and keyboard/tab order,
   left in the accessibility tree so bots that blanket-fill forms trip it */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile nav panel */
#mobile-menu[data-open="false"] {
  display: none;
}
