/* SIDISAH shared interaction and motion layer. Keep motion quiet, useful and accessible. */
:root {
  --ui-ease: cubic-bezier(.2, .75, .25, 1);
  --ui-duration: 220ms;
  --ui-focus: #c59527;
}
html { scroll-behavior: smooth; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ui-focus) !important;
  outline-offset: 3px;
}
:where(button, .btn, [role="button"]) {
  transition: transform var(--ui-duration) var(--ui-ease), box-shadow var(--ui-duration) ease, background-color var(--ui-duration) ease, color var(--ui-duration) ease;
}
:where(button, .btn, [role="button"]):active { transform: translateY(1px) scale(.985); }
:where(input, select, textarea) {
  transition: border-color var(--ui-duration) ease, box-shadow var(--ui-duration) ease, background-color var(--ui-duration) ease;
}
:where(input, select, textarea):focus { box-shadow: 0 0 0 4px rgba(45, 122, 84, .12); }
:where(.card-surface, .dashboard-card, .kpi-card, .faq-item, .faq-card) {
  transition: box-shadow 260ms var(--ui-ease), border-color 220ms ease, background-color 220ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :where(.card-surface, .dashboard-card, .kpi-card, .faq-item, .faq-card):not(.dashboard-card--map):hover {
    box-shadow: 0 16px 38px rgba(13, 38, 26, .10);
  }
  :where(.btn, .gradient-btn, .mini-map-cta):hover { filter: brightness(1.035); }
}
/* Gentle entrance for major page surfaces and existing staggered elements. */
@keyframes sidisah-page-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
body > .app-layout,
body > main,
body > .auth-page,
body > #app,
body > .min-h-screen {
  animation: sidisah-page-enter 360ms var(--ui-ease) both;
}
.fade-in-up { animation-duration: 460ms; animation-timing-function: var(--ui-ease); animation-delay: var(--d, 0ms); }
.timeline-stepper > div { animation: sidisah-page-enter 360ms var(--ui-ease) both; }
.timeline-stepper > div:nth-child(2) { animation-delay: 55ms; }
.timeline-stepper > div:nth-child(3) { animation-delay: 110ms; }
.timeline-stepper > div:nth-child(4) { animation-delay: 165ms; }
@media (max-width: 640px) {
  :root { --ui-duration: 170ms; }
  :where(.card-surface, .dashboard-card, .kpi-card):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
