/* Webducator — shared styles beyond Tailwind utilities */

/* Petal shape: the teardrop from the Webducator logo.
   Rounded on three corners, sharp on one — rotate per use. */
.petal {
  border-radius: 62% 62% 62% 0;
  overflow: hidden;
}
.petal-alt {
  border-radius: 62% 0 62% 62%;
  overflow: hidden;
}

/* Five-petal divider row */
.petal-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 62% 62% 62% 0;
  transform: rotate(45deg);
  display: inline-block;
}

/* Petal list marker */
.petal-li {
  position: relative;
  padding-left: 1.75rem;
}
.petal-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 62% 62% 62% 0;
  transform: rotate(45deg);
  background: var(--petal, #21B44D);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #FC8A20;
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

/* Gentle reveal on scroll — only hides content when JS is running */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
