/* ============================================================
   INTELIGENTIC — pages.css
   Styles for all inner service pages
   ============================================================ */

/* ── PAGE HERO (replaces full-screen slider) ── */
.page-hero {
  background: var(--ink);
  padding: 80px 48px 72px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* If a bg image is set via inline style, add overlay via pseudo */
.page-hero[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,20,0.72);
  pointer-events: none;
}
.page-hero[style*="background-image"] .page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(53,53,243,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 12px;
  color: rgba(244,243,239,0.4);
}
.breadcrumb a {
  color: rgba(244,243,239,0.4);
  text-decoration: none;
  transition: color var(--ease);
}
.breadcrumb a:hover { color: rgba(244,243,239,0.8); }
.breadcrumb span { color: rgba(244,243,239,0.2); }

.page-hero-eyebrow {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 20px;
  max-width: 800px;
}
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(244,243,239,0.6);
  max-width: 580px;
  margin-bottom: 36px;
  font-weight: 300;
}
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FEATURE GRID (2 or 3 col icon+text) ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.feat-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(53,53,243,0.08);
}
.feat-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}
.feat-card h3 {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feat-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

/* ── CHECKLIST ── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}
.checklist li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── TWO COLUMN TEXT+VISUAL ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-visual {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(244,243,239,0.08);
}
.split-stat:last-child { border-bottom: none; padding-bottom: 0; }
.split-stat-n {
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}
.split-stat-l { font-size: 13px; color: rgba(244,243,239,0.4); }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-q-text {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--muted);
  transition: all var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ── TECH STACK PILLS ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tech-pill {
  background: rgba(53,53,243,0.07);
  border: 1px solid rgba(53,53,243,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.2px;
}

/* ── PAGE ACTIVE NAV LINK ── */
.nav-links a.active { color: var(--blue); font-weight: 500; }

/* ── INNER PAGE CTA (smaller than home) ── */
.inner-cta {
  background: var(--ink);
  border-radius: 20px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.inner-cta-text h2 {
  font-family: var(--font-d);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 8px;
}
.inner-cta-text p {
  font-size: 15px;
  color: rgba(244,243,239,0.5);
  font-weight: 300;
}
.inner-cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── RESPONSIVE INNER PAGES ── */
@media (max-width: 960px) {
  .page-hero { padding: 60px 24px 56px; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feat-grid.two-col { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse { direction: ltr; }
  .inner-cta { padding: 40px 32px; flex-direction: column; text-align: center; }
  .inner-cta-actions { justify-content: center; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 34px; letter-spacing: -1.5px; }
}
