/* ==========================================================
   Pragat Global — site styles
   (converted from the React project's index.css + component
   state styles; the brand palette lives in the Tailwind CDN
   config inside index.html)
   ========================================================== */

:root {
  --color-brand-500: #86b81c;
  --color-brand-600: #6d9c15;
  --color-ink: #14170f;
  --color-ink-soft: #5c6157;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #ffffff;
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-brand-500);
  color: #fff;
}

/* ---------- GSAP prepared states ---------- */
.gsap-reveal {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
.gsap-no-js .gsap-reveal,
.gsap-ready .gsap-reveal.gsap-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .gsap-reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- marquee ---------- */
@keyframes marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-x var(--marquee-duration, 32s) linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.float-y {
  animation: float-y 4.5s ease-in-out infinite;
}

@keyframes ping-soft {
  0% {
    transform: scale(0.6);
    opacity: 0.75;
  }
  80%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.ping-soft {
  animation: ping-soft 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  scrollbar-width: none;
}

/* ----------------------------------------------------------
   Component state styles (managed by js/main.js)
   ---------------------------------------------------------- */

/* ---------- header ---------- */
#header-bar {
  transition: box-shadow 300ms;
}
#header-bar.is-stuck {
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.35);
}

/* ---------- mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  transition:
    max-height 500ms,
    opacity 500ms;
}
#mobile-menu.menu-open {
  max-height: 24rem;
  opacity: 1;
}

/* ---------- hero slider ---------- */
.hero-slide {
  opacity: 0;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-dot {
  height: 4px;
  width: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 500ms;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  transition: all 400ms;
}
.faq-item:hover {
  border-color: #d8ebb0; /* brand-200 */
}
.faq-item.open {
  border-color: #bedd80; /* brand-300 */
  background: rgba(245, 250, 234, 0.8); /* brand-50/80 */
  box-shadow: 0 18px 40px -32px rgba(20, 23, 15, 0.6);
}

.faq-num {
  color: rgba(92, 97, 87, 0.6); /* ink-soft/60 */
  transition: color 300ms;
}
.faq-item.open .faq-num {
  color: var(--color-brand-600);
}

.faq-item.open .faq-badge {
  transform: rotate(180deg);
  background: var(--color-brand-500);
  color: #ffffff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
