/* Pi Dentist — Single Service Detail
   Styles for /dich-vu/{slug}/ single service page.
   Uses tokens from tokens.css + base prose styles from base.css */

/* ---------- Service Detail Article ---------- */
.service-detail {
  padding: 60px 0 0;
}

/* ---------- Two-Column Layout: TOC + Content ---------- */
.service-detail__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Table of Contents Sidebar ---------- */
.service-toc {
  position: sticky;
  top: 100px;
  background: var(--pi-off-white);
  border-radius: var(--pi-radius-card);
  padding: 28px 24px;
  box-shadow: var(--pi-shadow-sm);
}

.service-toc__title {
  font-family: var(--pi-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pi-text-soft);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pi-light-gray);
}

.service-toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-toc__link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pi-text-soft);
  border-radius: var(--pi-radius-btn);
  border-left: 2px solid transparent;
  transition: all var(--pi-transition);
  line-height: 1.4;
}

.service-toc__link:hover,
.service-toc__link.active {
  color: var(--pi-navy);
  background: var(--pi-white);
  border-left-color: var(--pi-gold);
}

/* ---------- Main Content Column ---------- */
.service-detail__content {
  min-width: 0;
}

/* ---------- Quick Info Bar ---------- */
.service-meta {
  display: flex;
  gap: 0;
  background: var(--pi-off-white);
  border-radius: var(--pi-radius-card);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--pi-shadow-sm);
}

.meta-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--pi-light-gray);
}

.meta-item:last-child {
  border-right: none;
}

.meta-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pi-text-soft);
}

.meta-value {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.3;
}

/* ---------- Content Sections ---------- */
.service-content-section {
  padding: 0;
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.service-content-section:last-child {
  margin-bottom: 0;
}

/* ---------- Service Section Heading ---------- */
.service-section-heading {
  font-family: var(--pi-font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-section-heading + .gold-line-left {
  margin-bottom: 24px;
}

/* ---------- Service Prose ---------- */
.service-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--pi-text);
}

.service-prose p {
  margin-bottom: 1.25em;
}

.service-prose p:last-child {
  margin-bottom: 0;
}

.service-prose strong {
  color: var(--pi-navy);
  font-weight: 600;
}

/* ---------- Highlight Box ---------- */
.service-highlight-box {
  background: linear-gradient(135deg, var(--pi-navy) 0%, var(--pi-navy-light) 100%);
  color: var(--pi-white);
  border-radius: var(--pi-radius-card);
  padding: 36px 40px;
  margin: 32px 0;
}

.service-highlight-box__title {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-highlight-box__title svg {
  flex-shrink: 0;
}

.service-highlight-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0.75em;
}

.service-highlight-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Feature Grid (2 cols) ---------- */
.service-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.service-feature-card {
  background: var(--pi-off-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--pi-transition);
  border: 1px solid transparent;
}

.service-feature-card:hover {
  box-shadow: var(--pi-shadow-sm);
  border-color: var(--pi-light-gray);
  transform: translateY(-2px);
}

.service-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pi-navy);
  color: var(--pi-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-feature-card h4 {
  font-family: var(--pi-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 6px;
}

.service-feature-card p {
  font-size: 14px;
  color: var(--pi-text-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---------- Process Steps ---------- */
.service-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  position: relative;
}

.service-process-steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: var(--pi-light-gray);
}

.service-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.service-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pi-navy);
  color: var(--pi-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pi-font-heading);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--pi-white);
}

.service-step__content {
  flex: 1;
  padding-top: 4px;
}

.service-step__title {
  font-family: var(--pi-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 6px;
}

.service-step__desc {
  font-size: 15px;
  color: var(--pi-text-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---------- Suited-For List ---------- */
.service-suited-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.service-suited-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--pi-off-white);
  border-radius: 10px;
  font-size: 15px;
  color: var(--pi-text);
  line-height: 1.4;
}

.service-suited-item .suited-icon {
  color: var(--pi-success);
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- Inline CTA ---------- */
.service-inline-cta {
  background: var(--pi-off-white);
  border-radius: var(--pi-radius-card);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
  border: 1px solid var(--pi-light-gray);
}

.service-inline-cta h3 {
  font-family: var(--pi-font-heading);
  font-size: 24px;
  color: var(--pi-navy);
  margin-bottom: 12px;
}

.service-inline-cta p {
  color: var(--pi-text-soft);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.service-inline-cta .btn {
  min-width: 200px;
}

/* ---------- Pros / Cons Grid ---------- */
.service-pros-cons {
  padding: 64px 0;
  border-top: 1px solid var(--pi-light-gray);
}

.service-pros-cons .section-heading {
  margin-bottom: 8px;
}

.service-pros-cons .gold-line {
  margin-bottom: 40px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.pros h3,
.cons h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--pi-success);
  border-radius: 2px;
}

.cons h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #C94D4D;
  border-radius: 2px;
}

/* Check list (Pros) — inherits from sections.css */
.pros .check-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--pi-light-gray);
}

.pros .check-list li:last-child {
  border-bottom: none;
}

/* Cross list (Cons) */
.cross-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--pi-text);
  line-height: 1.6;
  border-bottom: 1px solid var(--pi-light-gray);
}

.cross-list li:last-child {
  border-bottom: none;
}

.cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201, 77, 77, 0.1);
  color: #C94D4D;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- FAQ Section ---------- */
.service-faq {
  padding: 64px 0;
  border-top: 1px solid var(--pi-light-gray);
}

.service-faq .section-heading {
  margin-bottom: 8px;
}

.service-faq .gold-line {
  margin-bottom: 40px;
}

.faq-list {
  max-width: 760px;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--pi-light-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--pi-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.5;
  list-style: none;
  transition: color var(--pi-transition);
}

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

.faq-question::marker {
  display: none;
  content: '';
}

.faq-question:hover {
  color: var(--pi-gold);
}

.faq-q-text {
  flex: 1;
  padding-right: 16px;
}

.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pi-off-white);
  color: var(--pi-navy);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: all var(--pi-transition);
}

.faq-item[open] .faq-toggle {
  background: var(--pi-navy);
  color: var(--pi-white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--pi-text-soft);
  line-height: 1.7;
  max-width: 680px;
}

.faq-answer p {
  margin-bottom: 1em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Related Sections ---------- */
.service-related-doctors,
.service-related-cases {
  padding: 100px 0;
}

.service-related-doctors .section-header,
.service-related-cases .section-header {
  margin-bottom: 48px;
}

/* ===========================================
   RESPONSIVE — Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .service-detail {
    padding: 48px 0 0;
  }

  .service-detail__layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .service-meta {
    margin-bottom: 40px;
  }

  .meta-item {
    padding: 20px 24px;
  }

  .meta-value {
    font-size: 18px;
  }

  .service-section-heading {
    font-size: 24px;
  }

  .service-features-grid {
    gap: 16px;
  }

  .pros-cons-grid {
    gap: 32px;
  }

  .service-highlight-box {
    padding: 28px 32px;
  }

  .service-related-doctors,
  .service-related-cases {
    padding: 80px 0;
  }
}

/* ===========================================
   RESPONSIVE — Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .service-detail {
    padding: 36px 0 0;
  }

  /* Collapse to single column, hide TOC sidebar */
  .service-detail__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-toc {
    display: none;
  }

  /* Stack meta items vertically */
  .service-meta {
    flex-direction: column;
    margin-bottom: 32px;
  }

  .meta-item {
    border-right: none;
    border-bottom: 1px solid var(--pi-light-gray);
    padding: 16px 20px;
  }

  .meta-item:last-child {
    border-bottom: none;
  }

  .meta-icon {
    font-size: 24px;
  }

  .meta-value {
    font-size: 17px;
  }

  .meta-label {
    font-size: 11px;
  }

  .service-section-heading {
    font-size: 22px;
  }

  .service-content-section {
    margin-bottom: 40px;
  }

  /* Feature cards stack */
  .service-features-grid {
    grid-template-columns: 1fr;
  }

  .service-feature-card {
    padding: 20px;
  }

  /* Process steps */
  .service-step {
    gap: 16px;
    padding: 16px 0;
  }

  .service-step__number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .service-process-steps::before {
    left: 19px;
  }

  /* Suited list stack */
  .service-suited-list {
    grid-template-columns: 1fr;
  }

  /* Highlight box */
  .service-highlight-box {
    padding: 24px;
  }

  .service-highlight-box__title {
    font-size: 18px;
  }

  /* Inline CTA */
  .service-inline-cta {
    padding: 28px 20px;
    margin: 36px 0;
  }

  .service-inline-cta h3 {
    font-size: 20px;
  }

  /* Pros/Cons stacked */
  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-pros-cons,
  .service-faq {
    padding: 48px 0;
  }

  .faq-question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .faq-answer {
    font-size: 14px;
    padding-bottom: 20px;
  }

  .service-related-doctors,
  .service-related-cases {
    padding: 64px 0;
  }

  /* Comparison table horizontal scroll */
  .service-comparison-table-wrap {
    margin: -8px -20px 0;
    padding: 0 20px;
  }

  .service-comparison-table th,
  .service-comparison-table td {
    padding: 12px 14px;
    font-size: 13px;
    min-width: 110px;
  }

  .service-comparison-table th:first-child,
  .service-comparison-table td:first-child {
    min-width: 100px;
  }
}

/* ---------- Comparison Table ---------- */
.service-comparison-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--pi-radius-card);
  box-shadow: var(--pi-shadow-sm);
}

.service-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--pi-white);
}

.service-comparison-table thead {
  background: var(--pi-navy);
  color: var(--pi-white);
}

.service-comparison-table th {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.service-comparison-table th.highlight-col {
  background: var(--pi-navy-light);
  color: var(--pi-gold);
}

.service-comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--pi-light-gray);
  color: var(--pi-text);
  vertical-align: middle;
}

.service-comparison-table td.highlight-col {
  background: rgba(201, 169, 110, 0.06);
  font-weight: 500;
  color: var(--pi-navy);
}

.service-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.service-comparison-table tbody tr:hover td {
  background: var(--pi-off-white);
}

.service-comparison-table tbody tr:hover td.highlight-col {
  background: rgba(201, 169, 110, 0.1);
}
