/* =============================================
   SPARK AUTOMATIONS — COMPONENTS
   Page-specific and reusable component styles
   Edit this file to update individual sections
   ============================================= */

/* ---- HERO ---- */
.spark-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: var(--black);
}

#lightning-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.spark-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.spark-hero h1 {
  max-width: 860px;
  margin: 0 auto 1.25rem;
  animation: fadeUp 0.8s ease 0.2s both;
  font-size: clamp(1.9rem, 4vw, 3.5rem) !important;
}

.spark-hero h1 .accent { color: var(--cyan); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-note {
  font-size: 0.83rem;
  color: var(--muted);
}

.hero-note span { color: var(--cyan); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
}

.page-hero .container { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero > p, .page-hero .hero-desc { font-size: 1.2rem; max-width: 600px; }

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  animation: fadeUp 1s ease 1s both;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--cyan), transparent);
  animation: lineDown 2s ease infinite;
}

@keyframes lineDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- COUNTER NUMBERS ---- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.counter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
}

.counter-card.orange::before { background: var(--orange); }
.counter-card:hover { border-color: var(--cyan); }
.counter-card.orange:hover { border-color: var(--orange); }

.counter-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-card.orange .counter-num { color: var(--orange); }
.counter-lbl { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* ---- PROCESS STEPS ---- */
.process-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 2.75rem;
  top: 3rem; bottom: 3rem;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--orange));
}

.process-step {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: start;
}

.process-step:last-child { border-bottom: none; }

.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step:last-child .step-num { border-color: var(--orange); color: var(--orange); }

/* ---- ACCORDION / FAQ ---- */
.spark-accordion { margin-top: 2.5rem; }

.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion-item.open { border-color: var(--cyan); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s;
}

.accordion-trigger:hover { color: var(--cyan); }

.accordion-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-top: -4px;
}

.accordion-item.open .accordion-arrow { transform: rotate(-135deg); margin-top: 4px; }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-body { max-height: 400px; }

.accordion-body-inner {
  padding: 0 1.8rem 1.5rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ---- TESTIMONIALS ---- */
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testi-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--cyan);
  opacity: 0.12;
  position: absolute;
  top: 0.5rem; left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testi-placeholder {
  background: rgba(0,212,255,0.05);
  border: 1px dashed rgba(0,212,255,0.3);
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.85rem;
}

.author-info strong { display: block; font-size: 0.9rem; color: var(--white); }
.author-info span { font-size: 0.8rem; color: var(--muted); }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }

/* ---- RESPONSIVE GRIDS ---- */
@media (max-width: 900px) {
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .process-step { grid-template-columns: 1fr; gap: 1rem; }
  .spark-hero { padding: 6rem 1.25rem 4rem; }
  .page-hero { padding: 8rem 1.25rem 4rem; }
}
