/* =====================================================
   MAKA SERVICES — Service Page CSS (loaded lazily)
   Only enqueued on single-services and service archives
   ===================================================== */

/* ---- Sticky CTA Bar (service pages) ---- */
.service-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 997;
  background: var(--white);
  border-top: 2px solid var(--primary);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.service-sticky-bar.visible { transform: translateY(0); }
.service-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.service-sticky-info { display: flex; flex-direction: column; gap: 2px; }
.service-sticky-info strong { font-size: 15px; color: var(--secondary); }
.service-sticky-info span  { font-size: 13px; color: var(--primary); font-weight: 700; }
.service-sticky-btns { display: flex; gap: 10px; }

/* ---- Service Content ---- */
.service-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.service-content {
  direction: rtl;
  text-align: right;
  min-width: 0;           /* prevent grid blowout */
  overflow-wrap: break-word;
  word-break: break-word;
}
.service-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 14px;
  margin-top: 32px;
  line-height: 1.4;
  white-space: normal;
}
.service-content h2:first-child { margin-top: 0; }
.service-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin: 24px 0 10px;
  line-height: 1.4;
}
.service-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: normal;
  word-break: break-word;
}

/* WP lists inside service content */
.service-content ul,
.service-content ol {
  padding-right: 20px;
  margin-bottom: 16px;
  list-style: none;
}
.service-content ul li,
.service-content ol li {
  font-size: 15px;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.6;
}
.service-content ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-content ul li:last-child,
.service-content ol li:last-child { border-bottom: none; }

/* Images inside service content — full width, no overflow */
.service-content img,
.service-content figure img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
  display: block;
  margin: 16px auto;
}
.service-content figure,
.service-content .wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  margin: 20px 0 !important;
}
.service-content figcaption,
.service-content .wp-caption-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  white-space: normal;
  word-break: break-word;
  direction: rtl;
}

/* ---- Sidebar ---- */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 20px);
}
.sidebar-cta-card {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.sidebar-cta-card h3 { color: var(--white); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta-card p  { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: 20px; }
.sidebar-cta-card .btn { width: 100%; margin-bottom: 10px; justify-content: center; }
.sidebar-price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-price-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--secondary); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.price-row:last-child { border-bottom: none; }
.price-row .price-label { color: var(--text-muted); }
.price-row .price-val { color: var(--primary); font-weight: 700; }
.sidebar-trust-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(247,148,29,.15);
}
.sidebar-trust-item:last-child { border-bottom: none; }
.sidebar-trust-item i { color: var(--primary); }

/* ---- Cities on service page ---- */
.service-cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-city-pill {
  padding: 7px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.service-city-pill:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Related services */
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.related-card:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.related-card i { font-size: 24px; color: var(--primary); display: block; margin-bottom: 8px; }

@media (max-width: 768px) {
  .service-content-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .related-services { grid-template-columns: repeat(2, 1fr); }
}
