/* Custom styles that go beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 0;
}

/* Offset anchor targets so the fixed header doesn't cover section titles */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: 130px;
}

/* Header shrink state (toggled via JS on scroll) */
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(8, 26, 46, 0.12);
}

/* Simple fade-up reveal animation, triggered via JS IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Materials tab states */
.material-tab {
  color: #4c6f99;
  border-color: transparent;
}

.material-tab:hover {
  color: #f97316;
}

.material-tab.is-active {
  color: #f97316;
  border-color: #f97316;
  font-weight: 700;
}

/* FAQ accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Mobile menu link active state helper */
.mobile-link:last-of-type {
  border-bottom: none;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: #1a3a60;
  border-radius: 9999px;
}
