/* ==========================================================================
   Mahima Growth Labs — One-Page Home
   Hero frame, focus banner, scroll-reveal animation, FAQ accordion.
   ========================================================================== */

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
  will-change: transform, opacity;
}

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

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

/* ---------------- Hero (one-page) ---------------- */
.hero-onepage {
  position: relative;
  padding-block: var(--space-9) var(--space-9);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Ambient animated gradient orbs — the "wow" backdrop glow */
.hero-onepage::before,
.hero-onepage::after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.35;
  animation: orbDrift 16s ease-in-out infinite;
  pointer-events: none;
}

.hero-onepage::before {
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--color-teal-400), transparent 70%);
}

.hero-onepage::after {
  top: -120px;
  right: -200px;
  background: radial-gradient(circle, var(--color-violet-500), transparent 70%);
  animation-delay: -8s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-onepage::before,
  .hero-onepage::after {
    animation: none;
  }
}

.hero-onepage__inner {
  max-width: 820px;
  margin-inline: auto;
}

.hero-onepage__title {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

/* Kinetic word-by-word reveal, applied via JS to .hero-onepage__title */
.word-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word-reveal .word > span {
  display: inline-block;
  transform: translateY(115%);
  animation: wordUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 70ms + 150ms);
}

@keyframes wordUp {
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal .word > span {
    animation: none;
    transform: translateY(0);
  }
}

.hero-onepage__title .text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .hero-onepage__title {
    font-size: var(--fs-3xl);
  }

  .hero-onepage::before,
  .hero-onepage::after {
    width: 320px;
    height: 320px;
    filter: blur(70px);
  }
}

/* Rounded animated "browser frame" panel, inspired by scroll-reveal studio sites */
.hero-frame {
  max-width: 960px;
  margin: var(--space-9) auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #10131c, #1a1530);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-dark);
}

.hero-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.18);
}

.hero-frame__label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-frame__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  animation: focusPulse 2.2s ease-in-out infinite;
}

/* ---------------- Hero background video ----------------
   Short (10s), silent, looping video produced for Mahima Growth Labs
   (campaign chart / ad mockup / process cards / wordmark). Not autoplayed
   under prefers-reduced-motion — js/main.js leaves it on its poster frame
   in that case, so no separate reduced-motion CSS is needed here. */
.reel-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #0d1526;
}

@media (max-width: 768px) {
  .reel-video {
    aspect-ratio: 4 / 5;
  }
}

/* ---------------- Marquee ticker ---------------- */
.marquee {
  background-color: var(--color-bg-dark);
  border-block: 1px solid var(--color-border-dark);
  overflow: hidden;
  padding-block: var(--space-4);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-7);
  animation: marqueeScroll 26s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.marquee__item span {
  color: var(--color-accent);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------------- Focus banner (Meta Ads notice) ---------------- */
.focus-banner {
  background-color: var(--color-navy-950);
}

.focus-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.focus-banner__badge {
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: var(--fs-sm);
  animation: focusPulse 2.2s ease-in-out infinite;
}

@keyframes focusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .focus-banner__badge {
    animation: none;
  }
}

.focus-banner__text {
  margin: 0;
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-sm);
}

.focus-banner__text strong {
  color: var(--color-text-inverse);
}

@media (max-width: 600px) {
  .focus-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ---------------- Footer grid (one-page: 3 columns instead of 4) ---------------- */
.footer-grid--onepage {
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 768px) {
  .footer-grid--onepage {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------- FAQ Accordion (shared, previously services.css) ---------------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-navy-950);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--transition-base);
}

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

.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: var(--space-5);
}

.faq-answer p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .faq-question {
    font-size: var(--fs-base);
  }
}
