/* =============================================
   SERVICE.CSS — Rich service/condition page template
   ============================================= */

/* --- Service Hero --- */
.service-hero {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  color: var(--text-on-main);
  padding: 60px 40px 48px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.service-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.07;
}
.service-hero .breadcrumb {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 16px;
}
.service-hero .breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.service-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.service-hero .hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 640px;
  line-height: 1.7;
}

/* --- Stat Cards Row --- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: -32px 40px 48px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--surface-shadow);
}
.stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main);
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}
.stat-card .stat-source {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Content Sections --- */
.service-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.service-section {
  margin-bottom: 36px;
}
.service-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 16px;
  color: var(--text);
}
.service-section h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--main);
}
.service-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Guideline Callout --- */
.guideline-callout {
  background: var(--main-glow);
  border-left: 4px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.guideline-callout cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
}

/* --- Symptom Grid --- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.symptom-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: all var(--transition);
  text-align: center;
}
.symptom-item strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.symptom-item:hover {
  border-color: var(--main-light);
  box-shadow: 0 2px 8px var(--main-glow);
  transform: translateY(-1px);
}

/* --- Treatment Steps --- */
.treatment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.treatment-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.treatment-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--main);
  color: var(--text-on-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.treatment-step h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.treatment-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ on Service Pages --- */
.service-faq {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
}
.service-faq h2 {
  margin-bottom: 24px;
}

/* --- CTA Section --- */
.service-cta {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--text-on-main);
  margin: 48px 0;
}
.service-cta h2 {
  color: #fff;
  margin-bottom: 12px;
}
.service-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}
.service-cta .cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.service-cta .btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}
.service-cta .btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.service-cta .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}
.service-cta .btn-cta-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

/* --- Related Conditions --- */
.related-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.related-card:hover {
  border-color: var(--main-light);
  box-shadow: 0 4px 16px var(--main-glow);
  transform: translateY(-2px);
  color: var(--text);
}
.related-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--main);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .symptom-grid { grid-template-columns: repeat(3, 1fr); }
  .treatment-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service-hero { padding: 40px 24px 36px; }
  .stat-cards { margin: -24px 20px 36px; grid-template-columns: repeat(2, 1fr); }
  .service-content { padding: 0 24px; }
  .service-faq { padding: 24px; }
  .service-cta { padding: 32px 24px; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .related-conditions { grid-template-columns: repeat(2, 1fr); }
  .treatment-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr; }
  .related-conditions { grid-template-columns: 1fr; }
}
