/* ═══════════════════════════════════════════════════════════════════
   PRAAZAD CONTENT PAGES — Shared Styles
   Applied on all /problems-we-solve, /growth-systems, /businesses-we-help,
   and all sub-pages. Extends the base design system in styles.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page Hero ─────────────────────────────────────────────────── */
.praazad-system .page-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: white;
  padding-top: clamp(100px, 12vh, 140px);
  padding-bottom: clamp(60px, 8vh, 80px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.praazad-system .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24; /* range 0.18 - 0.28 */
  z-index: 0;
  filter: grayscale(10%) contrast(110%);
}

.praazad-system .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.6); /* range 0.55 - 0.65 */
  z-index: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.praazad-system .hero-inner,
.praazad-system .section-inner {
  position: relative;
  z-index: 10;
  max-width: 1150px; /* balanced range 1100-1200px */
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.05 !important;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: white;
}

.page-hero .hero-hook {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem) !important;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* Theme Accents (Applied via Generator) */
.theme-blue { --accent: #2563EB; --accent-soft: rgba(37, 99, 235, 0.1); --accent-glow: rgba(37, 99, 235, 0.3); }
.theme-red  { --accent: #DC2626; --accent-soft: rgba(220, 38, 38, 0.1); --accent-glow: rgba(220, 38, 38, 0.3); }
.theme-green { --accent: #16A34A; --accent-soft: rgba(22, 163, 74, 0.1); --accent-glow: rgba(22, 163, 74, 0.3); }
.theme-yellow { --accent: #CA8A04; --accent-soft: rgba(202, 138, 4, 0.1); --accent-glow: rgba(202, 138, 4, 0.3); }
.theme-purple { --accent: #8B5CF6; --accent-soft: rgba(139, 92, 246, 0.1); --accent-glow: rgba(139, 92, 246, 0.3); }

/* Business Pages Hero Optimization (Specific to .theme-green) */
.theme-green .hero-bg-image {
  opacity: 0.52; /* Increased for better visual depth on industry pages */
}

.theme-green .hero-overlay {
  background: rgba(2, 6, 23, 0.65); /* Slightly darker overlay for readability */
}

.praazad-system .page-section {
  padding: clamp(64px, 8vw, 80px) 0;
  position: relative;
  background: #f8fafc;
  color: #1e293b;
}

.praazad-system .section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent, #2563EB);
  background: var(--accent-soft, rgba(37, 99, 235, 0.08));
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.praazad-system .page-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.1 !important;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.page-section p {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem) !important;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
}

/* Dark variant matching homepage depth */
.praazad-system .page-section.page-section-dark {
  background: #0f172a;
  color: white;
}

.praazad-system .page-section-dark .section-label {
  color: #60a5fa;
}

.praazad-system .page-section-dark h2 {
  color: white;
}

.praazad-system .page-section-dark p {
  color: #94a3b8;
}

/* ── Process Steps (Premium Cards) ─────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 3rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.process-card:hover {
  border-color: rgba(37,99,235,0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.process-card .step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent, #2563EB);
  opacity: 0.3;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.process-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: inherit; /* Allow section to define color */
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.praazad-system .page-section-dark .process-card h4 {
  color: white;
}

.praazad-system .page-section:not(.page-section-dark) .process-card h4 {
  color: #0f172a;
}

.process-card p {
  font-size: 1rem !important;
  color: #94a3b8 !important;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── FAQ Accordion (Clean & Premium) ───────────────────────────── */
.faq-list {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 800;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--accent, #2563EB);
  padding-left: 0.5rem;
}

.faq-question .faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-question .faq-icon {
  background: var(--accent, #2563EB);
  transform: rotate(180deg);
}

.faq-item.active .faq-question .faq-icon svg {
  stroke: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 2.5rem;
}

/* ── Internal Links Grid (Glassmorphism) ───────────────────────── */
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.internal-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.internal-link-card:hover {
  border-color: var(--accent, #2563EB);
  background: white;
  box-shadow: 0 20px 40px var(--accent-soft, rgba(37, 99, 235, 0.1));
  transform: translateY(-5px);
  color: var(--accent, #2563EB);
}

.internal-link-card .link-arrow {
  margin-left: auto;
  color: #94a3b8;
  transition: all 0.4s ease;
}

.internal-link-card:hover .link-arrow {
  color: #2563EB;
  transform: translateX(6px);
}

/* ── Page CTA (Premium Hero Style) ─────────────────────────────── */
.page-cta {
  text-align: center;
  padding: clamp(100px, 12vw, 180px) var(--side-pad);
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-cta h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 900;
  color: white;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-cta .cta-btn {
  display: inline-block;
  padding: 1.5rem 4rem;
  background: #2563EB;
  color: white;
  border-radius: 1.25rem;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.page-cta .cta-btn:hover {
  transform: scale(1.05) translateY(-5px);
  background: #3b82f6;
  box-shadow: 0 35px 80px rgba(37, 99, 235, 0.5);
}

/* ── Hub Page Card Grid (Homepage Style) ────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.praazad-system .hub-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.03); /* Subtle dark on light */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 2.5rem;
  text-decoration: none;
  color: #1e293b !important; /* Slate-800 for better contrast */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.praazad-system .page-section-dark .hub-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: white !important;
}

.hub-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  transition: all 0.5s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.hub-card:hover .hub-card-img {
  opacity: 1;
  transform: scale(1.03);
}

.praazad-system .hub-card:hover {
  border-color: var(--accent, #2563EB);
  background: white;
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.1);
  color: var(--accent, #2563EB) !important;
}

.praazad-system .page-section-dark .hub-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.4);
  color: white !important;
}

.praazad-system .hub-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: inherit !important;
}

.praazad-system .hub-card-desc {
  font-size: 0.95rem !important;
  line-height: 1.6;
  opacity: 1 !important;
  margin-bottom: 0;
  color: inherit !important;
}

/* Light mode specifics for descriptions */
.praazad-system .page-section:not(.page-section-dark) .hub-card-desc {
  color: #475569 !important;
}

/* Dark mode specifics for descriptions */
.praazad-system .page-section-dark .hub-card-desc {
  color: #94a3b8 !important;
}

.praazad-system .hub-card .hub-arrow {
  margin-top: 2rem;
  color: var(--accent, #2563EB);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.praazad-system .hub-card:hover .hub-arrow {
  transform: translateX(8px);
}


/* ── Industry Cards (Premium List) ────────────────────────────── */
.praazad-system .industry-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 4px solid #2563EB;
  border-radius: 2rem;
  text-decoration: none;
  color: #1e293b !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1.5rem;
}

.praazad-system .page-section-dark .industry-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: white !important;
}

.praazad-system .industry-card:hover {
  border-color: var(--accent, #2563EB);
  border-left-width: 8px;
  background: white;
  transform: translateX(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.praazad-system .page-section-dark .industry-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.praazad-system .industry-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: inherit;
}

.praazad-system .industry-card p {
  font-size: 0.95rem !important;
  color: inherit !important;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    padding-top: 160px;
    padding-bottom: 80px;
  }

  .page-hero h1 {
    font-size: 2.25rem !important;
  }

  .page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-section h2 {
    font-size: 2rem !important;
  }

  .hub-grid, .process-grid, .internal-links-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    padding: 2rem;
    gap: 1rem;
    flex-direction: column;
    text-align: center;
  }
}

/* ── Animations (Reveal on Scroll) ──────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

/* ── Entrance Overrides (Styles from styles.css) ──────────────── */
.page-content .main-site-content {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-content nav {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* ── Fallback for Missing Variables ────────────────────────── */
:root {
  --section-space: clamp(64px, 8vw, 80px);
  --side-pad: 24px;
}
