/* ===== SERVICE PAGE SHARED STYLES ===== */
/* Shared header & footer for all service pages */
/* Extends styles.css â€“ link both in each service page */

/* Page body offset for double sticky header */
body { padding-top: 115px; }

/* ===== SERVICE HERO ===== */
.sp-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
  margin-bottom: 0;
  max-width: 100%;
}
.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-grad, linear-gradient(135deg, rgba(108,99,255,0.25) 0%, rgba(0,212,255,0.1) 100%));
  z-index: 0;
}
.sp-hero-bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  top: -100px; right: -100px;
  background: var(--glow-color, #6c63ff);
  pointer-events: none;
}
.sp-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  z-index: 1;
  flex-wrap: wrap;
  width: 100%;
}
.sp-hero-content { flex: 1; min-width: 280px; }
.sp-hero-visual { flex: 1; min-width: 280px; max-width: 460px; }
.sp-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.sp-breadcrumb a { color: var(--primary); }
.sp-breadcrumb i { font-size: 10px; }
.sp-hero h1 { font-family: var(--font2); font-size: clamp(34px,5vw,58px); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.sp-hero p { font-size: 17px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; max-width: 540px; }
.sp-hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px 24px;
  max-width: 1280px;
  margin: 0 auto 24px;
}
.stat-box {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all .3s;
}
.stat-box:hover { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.06); transform: translateY(-4px); }
.stat-box .snum { font-family: var(--font2); font-size: 40px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-box .ssuf { font-size: 24px; font-weight: 700; color: var(--muted); }
.stat-box p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-box .sicon { font-size: 22px; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== CONTENT SECTIONS ===== */
.sp-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}
.sp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sp-two-col.rev { direction: rtl; }
.sp-two-col.rev > * { direction: ltr; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 12px; transition: all .3s;
}
.feature-item:hover { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.06); }
.feature-item .fi-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(108,99,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-item .fi-icon i { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.feature-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== CHART CARD ===== */
.chart-card {
  background: linear-gradient(160deg, rgba(10,15,46,0.88) 0%, rgba(5,8,22,0.82) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.chart-card h4 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.chart-card h4 i { color: var(--accent); }
canvas { width: 100% !important; }

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 24px;
  margin-top: 8px;
}
.process-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all .3s;
}
.process-step:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.step-num { font-family: var(--font2); font-size: 48px; font-weight: 900; color: rgba(108,99,255,0.12); position: absolute; top: 12px; right: 16px; line-height: 1; }
.step-icon { font-size: 24px; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== PRICING HIGHLIGHT ===== */
.sp-pricing { background: linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%); max-width: 100%; padding: 70px 24px; }
.sp-pricing > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.sp-price-cards { display: flex; gap: 20px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
.sp-price-card {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all .3s;
  position: relative;
}
.sp-price-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.sp-price-card.best { border-color: rgba(108,99,255,0.5); background: rgba(108,99,255,0.07); }
.sp-price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 50px; }
.sp-price-card h4 { font-family: var(--font2); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.sp-price-card .amount { font-family: var(--font2); font-size: 32px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 12px 0 4px; }
.sp-price-card .amount-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.sp-price-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.sp-price-card ul li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sp-price-card ul li i { color: #22c55e; font-size: 11px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: rgba(108,99,255,0.3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; font-size: 15px; font-weight: 600;
  user-select: none;
}
.faq-q i { transition: transform .3s; color: var(--primary); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; padding: 0 20px; }
.faq-a p { color: var(--muted); font-size: 14px; line-height: 1.8; padding-bottom: 16px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,255,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 24px;
  text-align: center;
}
.cta-band h2 { font-family: var(--font2); font-size: clamp(28px,4vw,44px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto 28px; }
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btns .btn-primary,
.cta-btns .btn-ghost,
.cta-btns a.btn-ghost {
  padding: 13px 28px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== COMPARISON TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.compare-table th { background: rgba(108,99,255,0.12); color: var(--text); font-size: 13px; font-weight: 600; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table td { padding: 12px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.04); }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .good { color: #22c55e; font-weight: 600; }
.compare-table .bad { color: var(--accent2); }
.compare-table .mid { color: #facc15; }

/* ===== TESTIMONIAL ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; margin-top: 8px; }
.testi-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all .3s; }
.testi-card:hover { border-color: rgba(108,99,255,0.25); transform: translateY(-4px); }
.testi-stars { color: #facc15; font-size: 13px; margin-bottom: 12px; }
.testi-card p { font-size: 14px; color: var(--muted); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-author strong { font-size: 13px; font-weight: 600; display: block; }
.testi-author span { font-size: 12px; color: var(--muted); }

/* ===== INFO CARDS ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.info-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all .3s; }
.info-card:hover { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.06); transform: translateY(-4px); }
.info-card .ic-icon { font-size: 26px; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.info-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== FLOATING VISUAL CARDS ===== */
.visual-stack { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.vis-card {
  background: linear-gradient(160deg, rgba(10,15,46,0.92) 0%, rgba(5,8,22,0.88) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.vis-card-sm {
  position: absolute;
  background: linear-gradient(160deg, rgba(10,15,46,0.95) 0%, rgba(5,8,22,0.9) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.vis-card-sm i { font-size: 15px; }
.floating-a { animation: float 5s ease-in-out infinite; }
.floating-b { animation: float 6s ease-in-out infinite; animation-delay: 1s; }
.floating-c { animation: float 7s ease-in-out infinite; animation-delay: 2s; }

/* ===== PROGRESS BARS ===== */
.progress-list { display: flex; flex-direction: column; gap: 16px; }
.prog-item label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.prog-bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 50px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 50px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1s ease; }
.prog-fill.animate { transform: scaleX(1); }

/* ===== RESPONSIVE ===== */
@media(max-width:1200px) {
  #main-header { left: 4%; right: 4%; }
}
@media(max-width:900px) {
  .sp-two-col { grid-template-columns: 1fr; }
  .sp-two-col.rev { direction: ltr; }
  #main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .sp-hero-visual { display: none; }
  .stats-row { gap: 12px; }
  .stat-box { min-width: 140px; }
  .sp-section { padding: 50px 20px; }
  .sp-pricing { padding: 50px 20px; }
  .sp-price-cards { flex-direction: column; }
  .sp-price-card { min-width: unset; }
  .process-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
  .info-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
  #main-header { left: 0; right: 0; border-radius: 0 0 14px 14px; }
  .sp-hero { padding: 60px 16px; }
  .sp-section { padding: 40px 16px; }
  .sp-pricing { padding: 40px 16px; }
  .stats-row { flex-direction: column; }
  .stat-box { min-width: unset; }
  .process-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .sp-hero h1 { font-size: clamp(28px,7vw,44px); }
  .sp-hero p { font-size: 15px; }
  .sp-hero-btns { flex-direction: column; }
  .sp-hero-btns .btn-primary, .sp-hero-btns .btn-ghost {
    min-width: 180px;
    justify-content: center;
  }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}

/* =====================================================
   SERVICE PAGE STRETCH FIX
   ===================================================== */

/* Section tag — always inline, never block */
.section-tag {
  display: inline-block !important;
  width: auto !important;
}

/* Buttons — always content-width */
.btn-primary,
.btn-ghost,
a.btn-primary,
a.btn-ghost {
  display: inline-flex !important;
  width: auto !important;
  max-width: fit-content;
  align-self: center;
}

/* Only form submit fills width */
.btn-primary.full {
  display: flex !important;
  width: 100% !important;
  max-width: none;
}

/* Small buttons */
.btn-primary.small {
  display: inline-flex !important;
  width: auto !important;
}

/* Pricing card button: left-aligned, not stretched */
.sp-price-card .btn-primary.small {
  align-self: flex-start;
}

/* Sections that need centred headings: centre the parent,
   not stretch the inline tag */
.sp-pricing,
.sp-pricing > * {
  text-align: center;
}
.sp-price-cards,
.sp-price-card {
  text-align: left;
}
.cta-band {
  text-align: center;
}
