/* ═══════════════════════════════════════════════
   شركة نظافة جدة - CSS مشترك
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: #f5f7fa;
  color: #1a2a3a;
  line-height: 1.8;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ── Colors ── */
:root {
  --primary: #1a3a5c;
  --primary-fg: #ffffff;
  --secondary: #d4881a;
  --secondary-fg: #ffffff;
  --accent: #2d9b6a;
  --accent-fg: #ffffff;
  --bg: #f5f7fa;
  --card: #ffffff;
  --muted: #edf0f4;
  --muted-fg: #5a6a7a;
  --border: #dde3ea;
  --foreground: #1a2a3a;
  --whatsapp: #25d366;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; color: var(--foreground); line-height: 1.4; }
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.25rem; font-weight: 900; color: var(--primary); }
.header-nav { display: none; gap: 1.5rem; align-items: center; }
.header-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color .2s; }
.header-nav a:hover { color: var(--primary); }
.header-cta {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--secondary); color: var(--secondary-fg);
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 700;
  transition: transform .2s;
}
.header-cta:hover { transform: scale(1.05); }
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-cta { display: flex; }
}

/* ── Mobile Menu (CSS Only) ── */
.menu-toggle { display: none; }
.menu-btn { display: block; cursor: pointer; padding: 0.5rem; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .close-icon { display: none; }
.menu-toggle:checked ~ .menu-btn .open-icon { display: none; }
.menu-toggle:checked ~ .menu-btn .close-icon { display: block; }
.mobile-nav {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1rem; z-index: 39;
}
.menu-toggle:checked ~ .mobile-nav { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .mobile-cta {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  margin-top: 0.75rem; background: var(--secondary); color: var(--secondary-fg);
  padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem;
}
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--primary-fg);
  padding: 5rem 0; text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,58,92,0.8), rgba(26,58,92,0.95)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--primary-fg); margin-bottom: 1.5rem; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 48rem; margin: 0 auto 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
@media (min-width: 768px) { .hero { padding: 7rem 0; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  transition: transform .2s; border: none; cursor: pointer;
}
.btn:hover { transform: scale(1.05); }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-outline { background: transparent; color: var(--primary-fg); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.875rem; }

/* ── Stats Bar ── */
.stats-bar { background: var(--secondary); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center; }
.stats-grid .num { font-size: 1.875rem; font-weight: 900; color: var(--secondary-fg); }
.stats-grid .lbl { font-size: 0.875rem; color: rgba(255,255,255,0.8); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } .stats-grid .num { font-size: 2.25rem; } }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-muted { background: var(--muted); }
.section-primary { background: var(--primary); color: var(--primary-fg); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--muted-fg); margin-top: 0.5rem; }
.section-primary .section-title p { color: rgba(255,255,255,0.8); }

/* ── Cards Grid ── */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Service Card ── */
.service-card {
  display: block; overflow: hidden; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.service-card-img { height: 160px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .service-card-img img { transform: scale(1.1); }
.service-card-body { padding: 1.25rem; }
.service-card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.service-card-body p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── Info Card ── */
.info-card {
  border-radius: 0.75rem; background: var(--card); padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); text-align: center;
}
.info-card .icon { color: var(--accent); margin: 0 auto 1rem; width: 48px; height: 48px; }
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── Equipment Card ── */
.equip-card {
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.equip-card .icon { color: var(--secondary); margin-bottom: 0.75rem; width: 32px; height: 32px; }
.equip-card h3 { margin-bottom: 0.5rem; }
.equip-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── Tables ── */
.price-table { max-width: 640px; margin: 0 auto; overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.price-table table { text-align: right; }
.price-table thead { background: var(--primary); color: var(--primary-fg); }
.price-table th, .price-table td { padding: 1rem 1.5rem; font-size: 0.875rem; }
.price-table th { font-weight: 700; }
.price-table tr:nth-child(even) { background: var(--card); }
.price-table tr:nth-child(odd) { background: var(--muted); }
.price-table .price-val { font-weight: 700; color: var(--secondary); }

.compare-table { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.compare-table table { text-align: right; font-size: 0.875rem; }
.compare-table thead { background: var(--primary); color: var(--primary-fg); }
.compare-table th, .compare-table td { padding: 0.75rem 1rem; }
.compare-table th { font-weight: 700; }
.compare-table tr:nth-child(even) { background: var(--card); }
.compare-table tr:nth-child(odd) { background: var(--muted); }
.compare-table .highlight { font-weight: 700; color: var(--secondary); }

/* ── Review Card ── */
.review-card {
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.review-stars { color: var(--secondary); margin-bottom: 0.75rem; display: flex; gap: 2px; }
.review-card .text { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1rem; }
.review-card .author { font-size: 0.875rem; font-weight: 700; }

/* ── Tips Card ── */
.tip-card {
  border-radius: 0.75rem; background: var(--card); padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tip-card .icon { color: var(--accent); margin-bottom: 0.75rem; width: 32px; height: 32px; }
.tip-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.tip-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── Area Tags ── */
.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; }
.area-tag {
  border-radius: 9999px; border: 1px solid var(--border); background: var(--card);
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ── Area Detail Card ── */
.area-card {
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.area-card .head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.area-card .head svg { color: var(--secondary); flex-shrink: 0; width: 24px; height: 24px; }
.area-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── FAQ (details/summary) ── */
.faq-list { max-width: 48rem; margin: 0 auto; }
details.faq-item {
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden;
}
details.faq-item summary {
  padding: 1rem 1.5rem; font-weight: 700; font-size: 0.875rem;
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.25rem; font-weight: 700; color: var(--primary); transition: transform .2s; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-answer { padding: 0 1.5rem 1rem; font-size: 0.875rem; color: var(--muted-fg); }

/* ── Breadcrumb ── */
.breadcrumb { background: var(--muted); padding: 0.75rem 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { font-weight: 500; color: var(--foreground); }

/* ── Service Page Sections ── */
.content-section { max-width: 56rem; margin: 0 auto; }
.content-section h2 { margin-bottom: 1rem; }
.content-section p { color: var(--muted-fg); margin-bottom: 1.5rem; }
.content-section a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.content-section a:hover { opacity: 0.8; }

/* ── Steps ── */
.step-card {
  display: flex; gap: 1rem; border-radius: 0.75rem;
  background: var(--card); padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--secondary);
  font-size: 1.125rem; font-weight: 900; color: var(--secondary-fg);
}
.step-card h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.step-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ── Benefits ── */
.benefit-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--card); padding: 1rem;
}
.benefit-item svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.benefit-item span { font-size: 0.875rem; font-weight: 500; }

/* ── Related Services ── */
.related-card {
  display: block; border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--card); padding: 1.25rem; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.related-card h3 { transition: color .2s; }
.related-card:hover h3 { color: var(--primary); }

/* ── Two Column Layout ── */
.two-col { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1.5fr; } }
.two-col img { border-radius: 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); width: 100%; height: 320px; object-fit: cover; }
.two-col-reverse { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .two-col-reverse { grid-template-columns: 1.5fr 1fr; } }
.two-col-reverse img { border-radius: 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); width: 100%; height: 256px; object-fit: cover; }

/* ── Footer ── */
.site-footer { background: var(--primary); color: var(--primary-fg); }
.footer-inner { padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 { margin-bottom: 1rem; }
.footer-col p, .footer-col span { font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color .2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.footer-bottom {
  margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.footer-cta {
  display: inline-block; margin-top: 1rem;
  background: var(--secondary); color: var(--secondary-fg);
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-weight: 700; font-size: 0.875rem; transition: transform .2s;
}
.footer-cta:hover { transform: scale(1.05); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 50;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s;
  animation: pulse-glow 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ── SVG Icons (inline) ── */
.icon-phone { width: 20px; height: 20px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.space-y > * + * { margin-top: 1.5rem; }
.leading-relaxed { line-height: 2; }
