/* ==========================================================================
   SERVICE PAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Section */
.sp-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at top center, rgba(0, 108, 52, 0.15) 0%, transparent 70%);
}

.sp-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.sp-hero-eyebrow {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(65, 181, 118, 0.3);
  border-radius: var(--radius-full);
  color: var(--green-secondary);
  font-family: var(--ff-accent);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--space-lg);
  background: rgba(65, 181, 118, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sp-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  max-width: 900px;
  margin-inline: auto;
  font-weight: var(--fw-black);
  background: linear-gradient(to bottom left, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sp-hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

/* Problem / Solution Section */
.sp-problem {
  padding-block: var(--space-3xl);
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sp-problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .sp-problem-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sp-problem-content h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.sp-problem-content p {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.sp-solution-box {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.sp-solution-box::after {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 150px; height: 150px;
  background: var(--green-primary);
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
}

.sp-solution-box h3 {
  color: var(--green-secondary);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Features Grid */
.sp-features {
  padding-block: var(--space-4xl);
}

.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.sp-feature-card {
  background: rgba(10, 15, 13, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-premium);
}

.sp-feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(10, 15, 13, 0.8);
}

.sp-feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 108, 52, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-secondary);
  margin-bottom: var(--space-lg);
}

.sp-feature-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.sp-feature-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Value & ROI Section */
.sp-roi {
  padding-block: var(--space-3xl);
  background: var(--bg-card);
  border-block: 1px solid var(--border-subtle);
}

.sp-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
  margin-top: var(--space-2xl);
}

.sp-roi-item h3 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-family: var(--ff-accent);
  color: var(--green-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 900;
}

.sp-roi-item p {
  font-size: var(--fs-body);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.sp-roi-item span {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Process Section */
.sp-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .sp-process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sp-step {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.sp-step-number {
  font-size: 3rem;
  font-family: var(--ff-accent);
  color: rgba(255,255,255,0.05);
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 20px;
}

.sp-step h4 {
  color: var(--green-secondary);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-h4);
  position: relative;
  z-index: 1;
}

.sp-step p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* FAQ Section */
.sp-faq {
  padding-block: var(--space-4xl);
}

.faq-container {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item details {
  width: 100%;
}

.faq-item summary {
  padding: var(--space-lg) 0;
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--green-secondary);
}

.faq-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform var(--transition-smooth);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; right: 50%;
  transform: translate(50%, -50%);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform var(--transition-smooth); }

details[open] summary .faq-icon::after {
  transform: translate(50%, -50%) rotate(-90deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: var(--space-lg);
  color: var(--text-muted);
  line-height: 1.8;
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final CTA */
.sp-cta {
  margin-block: var(--space-4xl);
  padding: var(--space-4xl) var(--space-2xl);
  background: linear-gradient(-135deg, rgba(0,108,52,0.2) 0%, rgba(10,15,13,1) 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-hover);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sp-cta::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(0,255,0,0.02)" stroke-width="1"/></svg>') repeat;
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.sp-cta-content {
  position: relative;
  z-index: 1;
}

.sp-cta h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.sp-cta p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-inline: auto;
}
