/* ==========================================================================
   Ghouri Services CMS — سكربت غوري للخدمات
   ملف تنسيق الموقع العام (الواجهة الأمامية)
   ========================================================================== */

:root{
  --brand: #7C3AED;
  --brand-dark: #5B21B6;
  --brand-light: #F1E9FE;
  --brand-2: #22D3EE;
  --brand-rgb: 124,58,237;
  --ink: #0F1720;
  --ink-soft: #3C4552;
  --muted: #6B7686;
  --bg: #FFFFFF;
  --bg-soft: #F7F5FD;
  --line: #E9E4F5;
  --footer-bg: #1E1147;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --maxw: 1100px;
  --shadow: 0 10px 30px rgba(15, 23, 32, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 32, 0.12);
  --font-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --fs-scale: 1;
}

[data-theme="dark"]{
  --brand: #A78BFA;
  --brand-dark: #C4B5FD;
  --brand-light: rgba(167,139,250,.16);
  --brand-2: #67E8F9;
  --ink: #F3F6FA;
  --ink-soft: #C9D2DE;
  --muted: #8B96A6;
  --bg: #150E2E;
  --bg-soft: #1D1440;
  --line: #2E2358;
  --footer-bg: #0B0720;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--bg); }
input, textarea, select, button{ font-family: inherit; }
::placeholder{ font-family: inherit; opacity: .65; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: calc(18px * var(--fs-scale));
  direction: rtl;
  text-align: right;
  transition: background-color .25s ease, color .25s ease;
}
img{ max-width: 100%; display: block; }
a{ color: var(--brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover{ text-decoration: none; color: var(--brand); }
h1,h2,h3,h4{ font-family: var(--font-head); color: var(--ink); line-height: 1.4; margin: 0 0 16px; font-weight: 800; }
h1{ font-size: calc(clamp(32px, 6vw, 46px) * var(--fs-scale)); }
h2{ font-size: calc(clamp(26px, 4.5vw, 32px) * var(--fs-scale)); }
h3{ font-size: calc(clamp(20px, 3.5vw, 23px) * var(--fs-scale)); }
p{ margin: 0 0 18px; color: var(--ink-soft); }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section{ padding: 60px 0; }
.section-soft{ background: var(--bg-soft); }
.section-title{ text-align: center; margin-bottom: 34px; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:700; font-size:calc(16px * var(--fs-scale)); padding:13px 26px; border-radius:999px; border:2px solid transparent; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }
.btn:hover{ text-decoration:none; transform:translateY(-3px); }
.btn-primary{ background:var(--brand); color:var(--on-brand); box-shadow:0 8px 22px rgba(var(--brand-rgb),.3); }
.btn-primary:hover{ background:var(--brand-dark); color:var(--on-brand); }
.btn-outline{ background:transparent; border-color:var(--brand); color:var(--brand-dark); }
.btn-outline:hover{ background:var(--brand-light); }
.btn-block{ width:100%; justify-content:center; }

/* Header */
.site-header{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
[data-theme="dark"] .site-header{ background:rgba(14,22,32,.86); }
.topbar{ background:var(--brand); color:var(--on-brand); text-align:center; padding:8px 16px; font-size:14px; }
.nav{ max-width:var(--maxw); margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:800; font-size:calc(19px * var(--fs-scale)); color:var(--ink); }
.logo-mark{ width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-mark svg{ width:19px; height:19px; }
.logo-mark.lg{ width:42px; height:42px; }
.logo-img{ width:38px; height:38px; border-radius:11px; object-fit:cover; }
.nav-right{ display:flex; align-items:center; gap:20px; }
.nav-links{ display:flex; align-items:center; gap:24px; list-style:none; margin:0; padding:0; }
.nav-links a{ color:var(--ink-soft); font-weight:600; font-size:calc(15px * var(--fs-scale)); }
.nav-links a.active,.nav-links a:hover{ color:var(--brand-dark); }
.nav-icon-row{ display:none; }
.nav-mobile-tools{ display:none; }
.nav-tools-desktop{ display:flex; align-items:center; gap:8px; }
.fs-btn,.theme-toggle{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); cursor:pointer; font-family:var(--font-head); font-size:13px; }
.fs-btn:hover,.theme-toggle:hover{ background:var(--brand-light); color:var(--brand-dark); }
.nav-auth-form{ display:inline-flex; margin:0; }
.theme-toggle .icon-moon{ display:block; }
.theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; }

/* Hero */
.hero{ position:relative; padding:60px 0; background:linear-gradient(180deg,var(--brand-light) 0%, var(--bg) 82%); overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:360px 1fr; gap:40px; align-items:center; }
.hero-name-line h1{ margin-bottom:8px; }
.hero-text{ font-size:calc(18px * var(--fs-scale)); max-width:600px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:22px; }
.hero-mockup{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:22px; max-width:340px; width:100%; justify-self:center; }
.hero-media{ justify-self:center; width:100%; max-width:420px; }
.hero-photo{ width:100%; height:auto; max-height:380px; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); }
.hero-mockup-bar{ display:flex; gap:6px; margin-bottom:18px; }
.hero-mockup-bar span{ width:9px; height:9px; border-radius:50%; background:var(--line); }
.hero-mockup-line{ height:11px; border-radius:6px; background:var(--bg-soft); margin-bottom:11px; }
.hero-mockup-line.w-90{ width:90%; } .hero-mockup-line.w-70{ width:70%; } .hero-mockup-line.w-50{ width:50%; }
.hero-mockup-cta{ height:30px; width:110px; border-radius:999px; background:linear-gradient(135deg,var(--brand),var(--brand-2)); margin:16px 0; }
.hero-mockup-stats{ display:flex; gap:9px; align-items:flex-end; height:52px; }
.hero-mockup-stats span{ flex:1; border-radius:6px 6px 0 0; }
.hero-mockup-stats span:nth-child(1){ height:40%; background:var(--brand-light); }
.hero-mockup-stats span:nth-child(2){ height:75%; background:var(--brand); }
.hero-mockup-stats span:nth-child(3){ height:55%; background:var(--brand-2); }
.hero-mockup-stats span:nth-child(4){ height:90%; background:var(--brand); }

/* Cards / Articles */
.article-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(270px,1fr)); gap:24px; }
.article-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.article-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.article-card.featured{ border-color:var(--brand); box-shadow:0 0 0 1px var(--brand), var(--shadow); }
.featured-badge{ font-family:var(--font-head); font-size:12px; font-weight:700; color:var(--on-brand); background:var(--brand); display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:999px; margin-bottom:10px; width:fit-content; }
.article-thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; transition:transform .4s ease; }
.article-card:hover .article-thumb{ transform:scale(1.05); }
.article-card-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.article-tag{ font-family:var(--font-head); font-size:12px; font-weight:700; color:var(--brand-dark); background:var(--brand-light); display:inline-block; padding:4px 12px; border-radius:999px; margin-bottom:10px; width:fit-content; }
.article-card h3{ margin-bottom:8px; font-size:calc(19px * var(--fs-scale)); }
.article-card p{ font-size:calc(15px * var(--fs-scale)); flex:1; }
.article-meta{ font-size:13px; color:var(--muted); margin:0 0 10px; }
.article-link{ font-family:var(--font-head); font-weight:700; color:var(--brand-dark); display:inline-flex; align-items:center; gap:6px; }

/* FAQ */
.faq-list{ max-width:760px; margin:0 auto; }
.faq-item{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); padding:4px 20px; margin-bottom:12px; }
.faq-item summary{ cursor:pointer; font-family:var(--font-head); font-weight:700; padding:15px 0; list-style:none; display:flex; justify-content:space-between; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:20px; color:var(--brand-dark); }
.faq-item[open] summary::after{ content:"−"; }
.faq-item p{ padding-bottom:14px; margin:0; }

/* Footer */
.site-footer{ background:var(--footer-bg); color:#C7CEDA; padding:44px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:28px 32px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid.footer-cols-4{ grid-template-columns:repeat(4, 1fr); }
.footer-grid.footer-cols-3{ grid-template-columns:repeat(3, 1fr); }
.footer-grid.footer-cols-5{ grid-template-columns:repeat(5, 1fr); }
.footer-grid.footer-cols-6{ grid-template-columns:repeat(6, 1fr); }
@media (max-width:1100px){ .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:900px){ .footer-grid.footer-cols-3, .footer-grid.footer-cols-4, .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .footer-grid.footer-cols-3, .footer-grid.footer-cols-4, .footer-grid.footer-cols-5, .footer-grid.footer-cols-6{ grid-template-columns:1fr; } }
.footer-col-brand{ display:flex; flex-direction:column; }
.footer-brand{ display:flex; align-items:center; gap:12px; font-family:var(--font-head); font-weight:800; color:#fff; }
.footer-col-title{ color:#fff; font-size:15px; font-weight:700; margin:0 0 14px; position:relative; padding-bottom:12px; }
.footer-col-title::after{ content:''; position:absolute; bottom:0; right:0; width:34px; height:3px; background:var(--brand); border-radius:2px; }
.footer-brand-desc{ color:#98A2B3; font-size:13.5px; line-height:1.9; margin:14px 0 0; max-width:280px; }
.footer-links{ display:flex; flex-direction:column; gap:10px; list-style:none; margin:0; padding:0; }
.footer-links a{ color:#C7CEDA; font-weight:600; font-size:14px; }
.footer-links a:hover{ color:#fff; }
.footer-contact{ display:flex; gap:20px; flex-wrap:wrap; padding-top:18px; font-size:14px; }
.footer-contact a{ color:#C7CEDA; }
.footer-contact a:hover{ color:#fff; }
.footer-social{ display:flex; gap:14px; padding-top:14px; font-size:18px; }
.footer-social a{ color:#C7CEDA; }
.footer-social a:hover{ color:#fff; }
.footer-social-inline{ padding-top:16px; font-size:16px; }
.footer-bottom{ padding-top:18px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:13px; color:#8E97A6; }
.footer-bottom a{ color:#8E97A6; }
.footer-bottom a:hover{ color:#fff; }
.footer-bottom-right{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.footer-fontsize{ display:inline-flex; align-items:center; gap:6px; }
.footer-fontsize button{ width:26px; height:22px; border-radius:6px; border:1px solid rgba(255,255,255,.25); background:transparent; color:#C7CEDA; font-size:11px; font-weight:700; cursor:pointer; font-family:var(--font-head); line-height:1; }
.footer-fontsize button:hover{ background:rgba(255,255,255,.14); color:#fff; }

/* زر العودة إلى أعلى الصفحة */
.scroll-top-btn{ position:fixed; bottom:24px; inset-inline-end:24px; width:46px; height:46px; border-radius:50%; border:none; background:var(--brand); color:var(--on-brand); font-size:16px; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,.22); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .2s ease, transform .2s ease, visibility .2s; z-index:40; }
.scroll-top-btn.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top-btn:hover{ background:var(--brand-dark); }

/* Article single / generic page */
.article-hero{ padding:40px 0 28px; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.breadcrumb{ font-size:13px; color:var(--muted); margin-bottom:16px; }
.breadcrumb a{ color:var(--muted); }
.article-hero h1{ max-width:780px; }
.article-hero-meta{ display:flex; gap:16px; font-size:14px; color:var(--muted); }
.article-body{ max-width:760px; margin:0 auto; padding:44px 20px; }
.article-body h2{ margin-top:36px; } .article-body h3{ margin-top:26px; }
.article-body ul,.article-body ol{ color:var(--ink-soft); padding-inline-start:24px; margin:0 0 18px; }
.article-body li{ margin-bottom:8px; }
.article-body blockquote{ margin:26px 0; padding:16px 20px; background:var(--brand-light); border-inline-start:4px solid var(--brand); border-radius:var(--radius-sm); color:var(--ink); font-weight:600; }
.article-figure{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin:26px 0; }
.post-body h2{ margin-top:32px; } .post-body p{ font-size:calc(18px * var(--fs-scale)); }

.cta-box{ background:var(--brand); color:var(--on-brand); border-radius:var(--radius); padding:32px; text-align:center; margin:36px 0; }
.cta-box h3{ color:var(--on-brand); margin-bottom:8px; }
.cta-box p{ color:rgba(255,255,255,.9); }
.cta-box .btn-primary{ background:#fff; color:var(--brand-dark); box-shadow:none; }

/* Contact form */
.contact-methods{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-bottom:40px; }
.contact-method{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:22px; text-align:center; box-shadow:var(--shadow); }
.card-icon{ width:56px; height:56px; border-radius:14px; background:var(--brand-light); display:flex; align-items:center; justify-content:center; color:var(--brand-dark); font-size:22px; }
.contact-form{ max-width:640px; margin:0 auto; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-family:var(--font-head); font-weight:700; margin-bottom:7px; color:var(--ink); font-size:14px; }
.form-row input,.form-row textarea,.form-row select{ width:100%; padding:11px 15px; border-radius:var(--radius-sm); border:1px solid var(--line); background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:15px; }
.form-row textarea{ min-height:130px; resize:vertical; }
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{ outline:none; border-color:var(--brand); }
.hp-field{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.cf-turnstile-row{ display:flex; justify-content:center; }
.form-status{ font-size:14px; text-align:center; margin:0 0 14px; }
.form-status-success{ color:#16A34A; } .form-status-error{ color:#DC2626; }

/* تحريكات خفيفة عند التمرير */
.reveal-init{ opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal-init.reveal-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal-init{ opacity:1; transform:none; transition:none; }
  .article-thumb{ transition:none; }
  .article-card:hover .article-thumb{ transform:none; }
  .service-card, .whyus-item, .service-card .service-icon, .whyus-item .service-icon{ transition:none; }
  .service-card:hover, .whyus-item:hover, .service-card.reveal-visible:hover, .whyus-item.reveal-visible:hover, .service-card:hover .service-icon, .whyus-item:hover .service-icon{ transform:none; }
}

/* Responsive */
@media (max-width:860px){
  .nav-links{ position:fixed; right:0; top:64px; height:calc(100vh - 64px); background:var(--bg); flex-direction:column; width:78%; max-width:300px; padding:26px; box-shadow:-8px 0 30px rgba(0,0,0,.1); transform:translateX(105%); transition:transform .25s ease; align-items:flex-start; overflow-y:auto; z-index:35; }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
  .nav-tools-desktop{ display:none; }
  .nav-mobile-tools{ display:flex; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); width:100%; }
  .nav-icon-row{ display:grid; grid-template-columns:repeat(3, 44px); gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
  .nav-icon-row a{ width:44px; height:44px; border-radius:12px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:18px; }
  .nav-icon-row a:hover{ background:var(--brand-light); color:var(--brand-dark); }
  .hero-grid{ grid-template-columns:1fr; text-align:center; }
  .hero-grid > *:first-child{ order:2; } .hero-grid > *:last-child{ order:1; }
  .hero-mockup{ max-width:300px; margin:0 auto; }
  .hero-cta{ justify-content:center; }
}
@media (max-width:520px){ body{ font-size:calc(17px * var(--fs-scale)); } .section{ padding:44px 0; } }

/* وقت القراءة داخل شريط بيانات المقالة، أيقونة الساعة */
.article-hero-meta i{ margin-left:4px; }

/* فهرس المحتوى (جدول محتويات المقالة) */
.article-toc{ background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px 20px; margin:0 0 28px; }
.article-toc-title{ font-weight:700; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.article-toc ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.article-toc .toc-level-3{ padding-right:18px; font-size:14px; }
.article-toc a{ color:var(--ink-soft); }
.article-toc a:hover{ color:var(--brand); }

/* أزرار المشاركة */
.article-share{ display:flex; align-items:center; gap:10px; margin:36px 0; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.article-share-label{ font-weight:700; color:var(--ink-soft); font-size:14px; margin-left:4px; }
.share-btn{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; border:none; cursor:pointer; transition:transform .15s ease, opacity .15s ease; }
.share-btn:hover{ transform:translateY(-2px); opacity:.9; }
.share-whatsapp{ background:#25D366; }
.share-x{ background:#000; }
.share-fb{ background:#1877F2; }
.share-copy{ background:var(--ink-soft); }

/* بطاقة الكاتب */
.author-card{ display:flex; gap:18px; align-items:flex-start; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin-top:10px; }
.author-card-photo{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.author-card-photo-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); font-size:24px; }
.author-card-name{ font-weight:800; margin:0 0 6px; font-size:16px; }
.author-card-bio{ color:var(--ink-soft); font-size:14px; line-height:1.9; margin:0 0 10px; }
.author-card-social{ display:flex; gap:10px; }
.author-card-social a{ color:var(--ink-soft); font-size:16px; }
.author-card-social a:hover{ color:var(--brand); }

/* مقالات ذات صلة */
.related-articles{ margin:48px 0; }
.related-articles-title{ font-size:20px; font-weight:800; margin:0 0 20px; }

/* النشرة البريدية */
/* مربع الاشتراك المختصر بالنشرة البريدية داخل الفوتر */
.footer-newsletter{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-top:16px; font-family:var(--font-body); }
.footer-newsletter-label{ display:flex; align-items:center; gap:8px; color:#C7CEDA; font-size:13.5px; font-weight:600; white-space:nowrap; font-family:var(--font-body); }
.footer-newsletter-input-row{ display:flex; gap:0; border-radius:999px; overflow:hidden; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); }
.footer-newsletter-input-row input{ border:none; background:transparent; color:#fff; padding:8px 14px; font:inherit; font-family:var(--font-body); font-size:13.5px; min-width:170px; }
.footer-newsletter-input-row input::placeholder{ color:#8E97A6; font-family:var(--font-body); }
.footer-newsletter-input-row input:focus{ outline:none; }
.footer-newsletter-input-row button{ border:none; background:var(--brand); color:var(--on-brand); width:34px; cursor:pointer; font-size:13px; font-family:var(--font-body); }
.footer-newsletter-input-row button:hover{ background:var(--brand-dark); }
.footer-newsletter-flash{ font-size:13px; font-weight:700; color:#C7CEDA; flex-basis:100%; padding-top:2px; }
.footer-newsletter-flash.is-success{ color:#4ADE80; }
.footer-newsletter-flash.is-error{ color:#F87171; }
.footer-col-brand .footer-newsletter{ padding-top:14px; flex-direction:column; align-items:flex-start; }
.footer-col-brand .footer-newsletter-input-row{ width:100%; }
.footer-col-brand .footer-newsletter-input-row input{ flex:1; min-width:0; }

/* التعليقات */
.comments-section{ margin:48px 0; }
.comments-title{ font-size:20px; font-weight:800; margin:0 0 20px; display:flex; align-items:center; gap:8px; }
.comments-list{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.comments-empty{ color:var(--muted); }
.comment-item{ background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px 18px; }
.comment-item-head{ display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; }
.comment-item-name{ font-weight:700; }
.comment-item-date{ color:var(--muted); font-size:13px; }
.comment-item-body{ margin:0; line-height:1.8; }
.comment-admin-reply{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); margin-right:20px; display:flex; gap:12px; align-items:flex-start; }
.comment-admin-reply .comment-item-name{ color:var(--brand-dark); font-size:14px; }
.comment-admin-reply-body{ flex:1; min-width:0; }
.comment-reply-avatar{ width:36px; height:36px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.comment-reply-avatar-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); font-size:14px; }
.comment-form-wrap h4{ margin:0 0 14px; }
.comment-form textarea{ resize:vertical; }

/* صفحة البحث */
.site-search-form{ display:flex; gap:10px; max-width:480px; margin:18px auto 0; }
.site-search-form input{ flex:1; padding:12px 16px; border-radius:999px; border:1px solid var(--line); font-family:inherit; }
.site-search-form button{ width:44px; height:44px; border-radius:50%; border:none; background:var(--brand); color:var(--on-brand); cursor:pointer; }
.search-results-count{ text-align:center; color:var(--muted); margin-top:14px; }
.search-group{ margin-bottom:40px; }
.search-group-title{ font-size:18px; font-weight:800; margin:0 0 18px; }
.search-page-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.search-page-list a{ font-weight:700; font-size:16px; }
.search-page-list p{ margin:4px 0 0; color:var(--muted); font-size:14px; }

/* آراء العملاء (شهادات) */
.reviews-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px; }

/* شريط الإحصائيات */
.stats-bar-section{ padding-top:8px; padding-bottom:8px; }
.stats-bar{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:22px; background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:32px 24px; }
.stat-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.stat-item-icon{ font-size:22px; color:var(--brand); margin-bottom:4px; }
.stat-item-value{ font-family:var(--font-head); font-weight:800; font-size:clamp(26px, 4vw, 38px); color:var(--ink); line-height:1.1; }
.stat-item-label{ color:var(--ink-soft); font-size:14px; }
@media (max-width:640px){ .stats-bar{ grid-template-columns:repeat(2, 1fr); } }
.reviews-carousel{ display:flex; align-items:stretch; gap:12px; }
.reviews-track{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:4px 2px 12px; flex:1; scrollbar-width:none; }
.reviews-track::-webkit-scrollbar{ display:none; }
.review-slide{ flex:0 0 320px; scroll-snap-align:start; }
.review-slide .review-card{ height:100%; }
.reviews-nav{ flex:0 0 auto; align-self:center; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:15px; transition:background .15s ease, color .15s ease; }
.reviews-nav:hover{ background:var(--brand-light); color:var(--brand-dark); }
@media (max-width:640px){ .review-slide{ flex-basis:82vw; } }
.review-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; display:flex; flex-direction:column; }
.review-stars{ color:#F59E0B; font-size:15px; margin-bottom:14px; letter-spacing:2px; }
.review-stars .star-empty{ color:var(--line); }
.review-text{ color:var(--ink-soft); line-height:1.9; flex:1; margin:0 0 20px; }
.review-author{ display:flex; align-items:center; gap:12px; }
.review-avatar{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.review-avatar-placeholder{ display:flex; align-items:center; justify-content:center; background:var(--brand-light); color:var(--brand-dark); }
.review-name{ font-weight:700; margin:0; font-size:14.5px; }
.review-role{ color:var(--muted); font-size:13px; margin:2px 0 0; }


/* أزرار التعديل السريع للمدير المسجل دخوله على الموقع العام */
.admin-edit-fab{ position:fixed; bottom:24px; inset-inline-start:24px; z-index:41; display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; background:rgba(17,24,39,.9); color:#fff; font-size:13.5px; font-weight:700; text-decoration:none; box-shadow:0 8px 20px rgba(0,0,0,.25); }
.admin-edit-fab:hover{ background:var(--brand); color:var(--on-brand); }
.footer-contact-list li{ display:flex; align-items:flex-start; gap:8px; }
.footer-contact-list li i{ width:16px; margin-top:5px; color:var(--brand); flex:0 0 auto; text-align:center; }
.footer-contact-address{ color:#C7CEDA; font-size:14px; line-height:1.9; }

/* قسما الخدمات ولماذا تختارنا */
.services-grid, .whyus-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:22px; }
.service-card, .whyus-item{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.whyus-item{ box-shadow:none; }
.service-card h3, .whyus-item h3{ margin:0; font-size:18px; }
.service-card p, .whyus-item p{ margin:0; color:var(--ink-soft); line-height:1.9; font-size:14.5px; flex:1; }
.service-card, .whyus-item{ transition:opacity .5s ease, transform .5s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover, .whyus-item:hover, .service-card.reveal-visible:hover, .whyus-item.reveal-visible:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--brand); }
.service-card .service-icon, .whyus-item .service-icon{ transition:transform .35s ease, background .25s ease, color .25s ease; }
.service-card:hover .service-icon, .whyus-item:hover .service-icon{ transform:scale(1.1) rotate(-6deg); background:var(--brand); color:#fff; }
.service-icon{ width:48px; height:48px; border-radius:14px; background:var(--brand-light); color:var(--brand-dark); display:flex; align-items:center; justify-content:center; font-size:20px; }
.service-card .btn{ margin-top:8px; }

/* معاينة القوالب: إطار متصفح وإطار هاتف قابلان للتمرير */
.tpl-preview{ margin:28px 0; }
.tpl-tabs{ display:flex; justify-content:center; gap:8px; margin-bottom:18px; }
.tpl-tab{ border:1px solid var(--line); background:var(--bg); color:var(--ink-soft); padding:9px 18px; border-radius:999px; cursor:pointer; font-weight:700; font-size:14px; }
.tpl-tab.is-active{ background:var(--brand); border-color:var(--brand); color:var(--on-brand); }
.tpl-pane{ display:none; justify-content:center; }
.tpl-pane.is-active{ display:flex; }
.tpl-browser{ width:100%; max-width:860px; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-lg); background:var(--bg); }
.tpl-browser-bar{ display:flex; gap:6px; padding:11px 14px; background:var(--bg-soft); border-bottom:1px solid var(--line); direction:ltr; }
.tpl-browser-bar span{ width:10px; height:10px; border-radius:50%; background:var(--line); }
.tpl-scroll{ overflow-y:auto; overscroll-behavior:contain; }
.tpl-browser .tpl-scroll{ height:520px; }
.tpl-scroll img{ display:block; width:100%; height:auto; }
.tpl-phone{ width:300px; max-width:100%; border:10px solid #111827; border-radius:38px; overflow:hidden; background:#111827; box-shadow:var(--shadow-lg); position:relative; }
.tpl-phone-notch{ position:absolute; top:0; left:50%; transform:translateX(-50%); width:110px; height:20px; background:#111827; border-radius:0 0 14px 14px; z-index:2; }
.tpl-phone .tpl-scroll{ height:560px; background:#fff; }
.tpl-hint{ text-align:center; color:var(--muted); font-size:13px; margin:14px 0 0; }
@media (max-width:640px){ .tpl-browser .tpl-scroll{ height:380px; } }

/* صفحة السيرة الذاتية (CV) */
.cv-page{ max-width:820px; }
.cv-header{ display:flex; gap:24px; align-items:center; flex-wrap:wrap; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.cv-photo{ width:120px; height:120px; border-radius:50%; object-fit:cover; flex:0 0 auto; box-shadow:var(--shadow-lg); }
.cv-header-text h1{ margin:0 0 4px; }
.cv-job{ color:var(--brand-dark); font-weight:700; font-size:16px; margin:0 0 12px; }
.cv-contacts{ display:flex; flex-wrap:wrap; gap:14px 20px; font-size:14px; color:var(--ink-soft); margin-bottom:14px; }
.cv-contacts a{ color:var(--ink-soft); }
.cv-contacts a:hover{ color:var(--brand-dark); }
.cv-section{ margin-bottom:30px; }
.cv-section h2{ font-size:19px; margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid var(--brand-light); display:inline-block; }
.cv-text{ color:var(--ink-soft); line-height:1.9; margin:0; }
.cv-entry{ margin-bottom:18px; }
.cv-entry-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.cv-entry-head h3{ margin:0; font-size:16px; }
.cv-period{ color:var(--muted); font-size:13px; white-space:nowrap; }
.cv-org{ color:var(--brand-dark); font-size:14px; font-weight:600; margin:2px 0 6px; }
.cv-skills{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px; }
.cv-skill span{ display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.cv-bar{ height:8px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--line); overflow:hidden; }
.cv-bar i{ display:block; height:100%; background:var(--brand); border-radius:999px; }
.cv-list{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.cv-list li span{ color:var(--muted); font-size:13px; }
.cv-print-btn{ margin-top:4px; }
@media print{
  .site-header, .site-footer, .scroll-top-btn, .admin-edit-fab, .cv-print-btn{ display:none !important; }
  .cv-page{ max-width:100%; }
}
.service-price{ display:inline-flex; align-items:center; background:var(--brand-light); color:var(--brand-dark); font-weight:800; font-size:14px; padding:4px 14px; border-radius:999px; }

/* ==========================================================================
   بطاقات الخدمات ولماذا تختارنا: تصميم عصري (v1.44)
   ========================================================================== */
.services-section .section-title, .whyus-section .section-title{ margin-bottom:44px; }
.services-section .section-title::after, .whyus-section .section-title::after{ content:""; display:block; width:58px; height:5px; border-radius:99px; margin:14px auto 0; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.services-grid{ grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); gap:26px; }
.whyus-grid{ grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; }

.service-card{ position:relative; overflow:hidden; padding:30px 28px 24px; gap:12px; border-radius:24px; background:linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.service-card::before{ content:""; position:absolute; inset-inline:0; top:0; height:5px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); transform:scaleX(0); transform-origin:right; transition:transform .45s ease; }
.service-card::after{ content:""; position:absolute; top:-70px; inset-inline-end:-70px; width:190px; height:190px; border-radius:50%; background:radial-gradient(circle, rgba(var(--brand-rgb), .16), transparent 68%); pointer-events:none; }
.service-card:hover::before{ transform:scaleX(1); }
.service-card > *{ position:relative; z-index:1; }
.service-card .service-icon{ width:62px; height:62px; border-radius:20px; font-size:25px; background:linear-gradient(135deg, var(--brand-light), rgba(var(--brand-rgb), .06)); box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb), .16); margin-bottom:4px; }
.service-card:hover .service-icon{ background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 12px 24px rgba(var(--brand-rgb), .32); transform:scale(1.06) rotate(-5deg); }
.service-card h3{ font-size:20px; line-height:1.6; }
.service-card p{ font-size:15px; }

.service-foot{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:10px; padding-top:18px; border-top:1px dashed var(--line); }
.service-card .service-price{ background:none; padding:0; border-radius:0; display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:800; font-size:18px; color:var(--brand-dark); }
.service-card .service-price i{ font-size:14px; opacity:.7; }
.service-link{ display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border-radius:999px; background:var(--brand-light); color:var(--brand-dark); font-family:var(--font-head); font-weight:700; font-size:14.5px; white-space:nowrap; transition:background .25s ease, color .25s ease, gap .25s ease; }
.service-link i{ font-size:12px; transition:transform .25s ease; }
.service-link:hover{ background:var(--brand); color:var(--on-brand, #fff); gap:11px; }
.service-link:hover i{ transform:translateX(-3px); }
.service-foot > .service-link:only-child{ width:100%; justify-content:center; }

.whyus-item{ display:grid; grid-template-columns:auto 1fr; column-gap:18px; row-gap:4px; align-items:start; align-content:start; padding:24px; border-radius:22px; background:var(--bg); }
.whyus-item .service-icon{ grid-row:1 / span 2; width:56px; height:56px; border-radius:50%; font-size:22px; background:linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; box-shadow:0 10px 22px rgba(var(--brand-rgb), .28); }
.whyus-item:hover .service-icon{ background:linear-gradient(135deg, var(--brand-2), var(--brand)); }
.whyus-item h3{ align-self:end; font-size:18px; }
.whyus-item p{ grid-column:2; flex:none; }
.whyus-item h3:last-child{ grid-row:1 / span 2; align-self:center; }

@media (max-width:560px){
  .service-card{ padding:26px 20px 20px; }
  .service-card .service-price{ font-size:16px; gap:6px; }
  .service-link{ padding:8px 14px; font-size:13.5px; gap:6px; }
}
@media (prefers-reduced-motion:reduce){
  .service-card::before, .service-link, .service-link i{ transition:none; }
  .service-link:hover i{ transform:none; }
}

/* ==========================================================================
   بطاقات المدونة والمتجر والدورات والأعمال: تصميم عصري (v1.45)
   ========================================================================== */
.article-grid{ grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); gap:28px; }
.article-card{ position:relative; border-radius:24px; background:linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); transition:opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease; }
.article-card:hover, .article-card.reveal-visible:hover{ transform:translateY(-7px); box-shadow:var(--shadow-lg); border-color:rgba(var(--brand-rgb), .45); }
.article-card.featured{ border-color:var(--brand); box-shadow:0 0 0 1px var(--brand), var(--shadow); }
.article-thumb-wrap{ position:relative; overflow:hidden; aspect-ratio:16/10; background:var(--brand-light); }
.article-thumb-wrap::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,23,32,0) 55%, rgba(15,23,32,.4)); pointer-events:none; }
.article-thumb-wrap .article-thumb{ display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.thumb-badges{ position:absolute; top:14px; inset-inline:14px; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.thumb-badges .article-tag, .thumb-badges .featured-badge{ margin:0; box-shadow:0 6px 16px rgba(0,0,0,.18); }
.thumb-badges .article-tag{ background:rgba(255,255,255,.94); color:var(--brand-dark); }
[data-theme="dark"] .thumb-badges .article-tag{ background:rgba(21,14,46,.88); }
.card-badges-inline{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.card-badges-inline .article-tag, .card-badges-inline .featured-badge{ margin-bottom:0; }
.article-card-body{ padding:22px 24px 20px; }
.article-card h3{ font-size:calc(20px * var(--fs-scale)); line-height:1.6; margin:0 0 8px; }
.article-card h3 a{ color:var(--ink); transition:color .2s ease; }
.article-card h3 a:hover{ color:var(--brand); }
.article-card p.card-excerpt{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; color:var(--ink-soft); flex:1 1 auto; margin:0; }
.card-client{ color:var(--muted); font-size:14px; margin:0 0 6px; flex:none; }
.card-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.card-chips span{ background:var(--brand-light); color:var(--brand-dark); padding:4px 12px; border-radius:999px; font-size:13px; font-weight:700; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.card-actions .btn{ flex:1 1 auto; justify-content:center; padding:10px 18px; font-size:14.5px; }
.card-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px dashed var(--line); }
.card-foot .article-meta{ margin:0; font-size:13px; color:var(--muted); flex:none; }
.card-price{ font-family:var(--font-head); font-weight:800; font-size:19px; color:var(--brand-dark); }
.card-price-free{ color:#16A34A; }
.card-link{ display:inline-flex; align-items:center; gap:8px; padding:9px 18px; border-radius:999px; background:var(--brand-light); color:var(--brand-dark); font-family:var(--font-head); font-weight:700; font-size:14.5px; white-space:nowrap; transition:background .25s ease, color .25s ease, gap .25s ease; }
.card-link i{ font-size:12px; transition:transform .25s ease; }
.card-link:hover{ background:var(--brand); color:var(--on-brand, #fff); gap:11px; }
.card-link:hover i{ transform:translateX(-3px); }
.card-foot > .card-link:only-child{ width:100%; justify-content:center; }
@media (prefers-reduced-motion:reduce){
  .article-card{ transition:none; }
  .article-card:hover, .article-card.reveal-visible:hover{ transform:none; }
  .card-link, .card-link i{ transition:none; }
  .card-link:hover i{ transform:none; }
}
