/* Root overrides and page-level helpers for سبا منزلي */
@charset "UTF-8";

/* Import base styles if needed (kept separate to avoid double rules). We only add light overrides here. */
html[lang="ar"][dir="rtl"] body {
  text-rendering: optimizeLegibility;
}

/* Page hero utility */
.page-hero {
  padding: 72px 0 36px;
  background: radial-gradient(900px 380px at 90% -10%, #f0eaff, transparent), linear-gradient(180deg, #fff, #fafcff);
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
}
.page-hero .lead {
  color: var(--muted);
}

/* Content blocks */
.content-section { padding: 42px 0; }
.content-card { margin-bottom: 18px; }
/* Mild background variants to match homepage */
.section-cream { background: linear-gradient(180deg, #f7f5ff, #fff); }
.section-soft { background: linear-gradient(180deg, #fafcff, #fff); }
.section-rose { background: radial-gradient(900px 380px at 90% -10%, #f0eaff, transparent), linear-gradient(180deg, #fff, #fafcff); }

/* Coverage cards removed per revert */

/* SEO blocks */
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.related-links a { text-decoration: none; color: var(--text); background: #fff; border: 1px solid rgba(139,95,191,0.12); padding: 10px 12px; border-radius: 12px; }
.related-links a:hover { background: var(--cream); }

/* Article typography */
.prose p { line-height: 1.9; margin: 0 0 0.85rem; }
.prose h2 { margin: 1.5rem 0 0.75rem; font-size: 1.35rem; color: #4a3168; }
.prose h2 + p.lead { margin-top: -0.25rem; }
.prose ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; color: var(--muted); }
.prose li { margin: 0.2rem 0; }
.prose ol { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }

/* Breadcrumbs (optional) */
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs + h1 { margin-top: 8px; }

/* CTA band */
.cta-band { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(139,95,191,0.08), rgba(255,107,157,0.08)); border: 1px solid rgba(139,95,191,0.16); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-band strong { color: #4a3168; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq .q { font-weight: 700; }
.faq .a { color: var(--muted); }

/* Grid column utilities */
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Responsive alias utilities (avoid @ in class names) */
.grid.cols-md-4 { grid-template-columns: 1fr; }
@media (min-width: 920px) {
  .grid.cols-md-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Headings inside prose */
.prose h3 { margin: 1rem 0 0.5rem; color: #6a4c93; font-size: 1.1rem; }

/* Table styling */
.table-wrap { overflow-x: auto; border: 1px solid rgba(139,95,191,0.12); border-radius: 12px; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: start; padding: 10px 12px; border-bottom: 1px solid #f1e7eb; }
.table-wrap thead th { background: #faf7ff; color: #4a3168; }

/* Mobile refinements (non-intrusive) */
@media (max-width: 768px) {
  .page-hero { padding: 64px 0 32px; text-align: center; }
  .breadcrumbs { justify-content: center; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 28px); line-height: 1.25; }
  .page-hero .lead { font-size: 0.98rem; }
  .cta-group { gap: 8px; }
  .cta-group .btn { width: 100%; justify-content: center; }
  .prose { font-size: 0.98rem; }
  .prose h2 { font-size: 1.2rem; margin-top: 1.25rem; }
  .prose h3 { font-size: 1.05rem; }
  .prose p { font-size: 0.98rem; }
  .prose ul { padding-inline-start: 1rem; }
  .prose ol { padding-inline-start: 1rem; }
  .prose .cta-band { flex-direction: column; align-items: stretch; }
  .prose .cta-band .btn { width: 100%; }
  .grid.split { gap: 1.25rem; }
  aside .card { margin-top: 4px; }
  .table-wrap table { min-width: 480px; }
  .table-wrap th, .table-wrap td { padding: 8px 10px; }
}

/* Smooth scrolling for mobile table containers */
.table-wrap { -webkit-overflow-scrolling: touch; }

/* Coverage grid utilities for city pages */
.coverage-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.coverage-card { padding: 16px; }
.coverage-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.coverage-list { margin: 0; padding-inline-start: 18px; }
.coverage-list li { margin: 4px 0; }
