/* PRIVIS — custom styles that go beyond Tailwind utilities */

@font-face {
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Cairo', sans-serif;
}

/* Scroll-reveal (JS toggles .is-visible via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* Hide scrollbar on the horizontal-scroll Growth System band (mobile) */
.scroll-snap-row {
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scroll-snap-row::-webkit-scrollbar {
  display: none;
}
.scroll-snap-item {
  scroll-snap-align: center;
}

/* FAQ accordion panel animation */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}
.faq-panel > div {
  overflow: hidden;
}
.faq-item[data-open="true"] .faq-panel {
  grid-template-rows: 1fr;
}
.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 250ms ease;
}

/* Visible focus rings everywhere (AA accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #F0400C;
  outline-offset: 2px;
}

/* Scroll progress bar */
#scroll-progress {
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 100ms linear;
}

/* Mobile sticky CTA bar transition */
#mobile-cta-bar {
  transform: translateY(100%);
  transition: transform 250ms ease;
}
#mobile-cta-bar.is-visible {
  transform: translateY(0);
}

/* Subtle dot-grid texture used behind hero + dark sections */
.dot-grid {
  background-image: radial-gradient(rgba(240, 64, 12, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dot-grid-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Rounded highlight box that stays tidy across line-wraps */
.highlight-box {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Vertical auto-scrolling testimonial columns */
@keyframes marquee-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.marquee-track {
  animation-name: marquee-up;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.marquee-track.marquee-reverse {
  animation-direction: reverse;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Custom audio waveform player */
.audio-wave-fill {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 100ms linear;
}

/* Video facade play button pulse */
@keyframes privis-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 64, 12, 0.35); }
  50% { box-shadow: 0 0 0 18px rgba(240, 64, 12, 0); }
}
.play-pulse {
  animation: privis-pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .play-pulse {
    animation: none;
  }
}
