/* ============================================
   Service Detail Pages - Shared Styles
   Light & Modern Theme
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sp-primary: #f8fafc;
  --sp-secondary: #ffffff;
  --sp-text: #0f172a;
  --sp-text-light: #475569;
  --sp-text-muted: #94a3b8;
  --sp-blue: #2563eb;
  --sp-blue-light: #dbeafe;
  --sp-purple: #7c3aed;
  --sp-purple-light: #ede9fe;
  --sp-amber: #d97706;
  --sp-amber-light: #fef3c7;
  --sp-pink: #db2777;
  --sp-pink-light: #fce7f3;
  --sp-emerald: #059669;
  --sp-border: #e2e8f0;
  --sp-shadow: rgba(37, 99, 235, 0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sp-primary);
  color: var(--sp-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.sp-nav {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sp-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sp-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-nav .sp-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.sp-nav .sp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--sp-blue-light);
  color: var(--sp-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sp-nav .sp-back-btn:hover {
  background: var(--sp-blue);
  color: #fff;
  transform: translateX(-3px);
}

/* --- Hero --- */
.sp-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.sp-hero .sp-hero-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}
.sp-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--sp-text);
}
.sp-hero p {
  color: var(--sp-text-light);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Content Sections --- */
.sp-section {
  padding: 60px 0;
}
.sp-section:nth-child(even) {
  background: var(--sp-secondary);
}
.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.sp-grid.reverse { direction: rtl; }
.sp-grid.reverse > * { direction: ltr; }

.sp-grid-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--sp-shadow);
}
.sp-grid-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sp-grid-img:hover img { transform: scale(1.05); }

.sp-grid-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.sp-grid-text p {
  color: var(--sp-text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}
.sp-grid-text ul { list-style: none; margin-top: 16px; }
.sp-grid-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--sp-text-light);
  font-size: 0.95rem;
}
.sp-grid-text ul li i {
  color: var(--sp-blue);
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- Services Features (full-width lists) --- */
.sp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.sp-feature-item {
  background: var(--sp-secondary);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.sp-feature-item:hover {
  border-color: var(--sp-blue);
  box-shadow: 0 8px 25px var(--sp-shadow);
  transform: translateY(-3px);
}
.sp-feature-item .sf-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.sp-feature-item h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 8px; }
.sp-feature-item p { color: var(--sp-text-light); font-size: 0.9rem; line-height: 1.7; }

/* --- Section Headers --- */
.sp-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.sp-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.sp-section-header p {
  color: var(--sp-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- CTA --- */
.sp-cta {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 70px 0;
  text-align: center;
}
.sp-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
}
.sp-cta p {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}
.sp-cta .sp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: #fff;
  color: var(--sp-blue);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.sp-cta .sp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.sp-footer {
  border-top: 1px solid var(--sp-border);
  padding: 30px 0;
  text-align: center;
}
.sp-footer p { color: var(--sp-text-muted); font-size: 0.88rem; }

/* --- Process Steps --- */
.sp-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.sp-step {
  text-align: center;
  padding: 24px 16px;
}
.sp-step .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sp-blue-light);
  color: var(--sp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.sp-step h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 8px; }
.sp-step p { color: var(--sp-text-light); font-size: 0.88rem; line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .sp-grid { grid-template-columns: 1fr; gap: 30px; }
  .sp-hero { padding: 50px 0 40px; }
  .sp-section { padding: 40px 0; }
  .sp-nav .sp-back-btn span { display: none; }
  .sp-features { grid-template-columns: 1fr; }
}
