/* Be Quran Academy — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: #d59ab8;
  color: #4d1f38;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle entrance for hero (no JS required) */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex,
#hero .flex {
  animation: fadeUp 0.8s ease forwards;
}
#hero p { animation-delay: 0.15s; }
#hero a:first-of-type { animation-delay: 0.3s; }
#hero a:last-of-type { animation-delay: 0.4s; }
#hero .inline-flex { animation-delay: 0.1s; }
#hero .flex:last-child { animation-delay: 0.5s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
