/* ==========================================================================
   ذبايح الرياض — الأنماط العامة (غير الحاجبة للعرض)
   المكوّنات، المقالات، الأقسام، النماذج، والأدوات المساعدة
   ========================================================================== */

/* أدوات مساعدة عامة ------------------------------------------------------- */
.rth-section { padding-block: var(--rth-section-pad, clamp(48px, 7vw, 88px)); }
.rth-section--tint { background: var(--rth-ink-50); }
.rth-section--teal { background: linear-gradient(160deg, var(--rth-teal-800), var(--rth-teal-900)); color: #fff; }
.rth-section--teal h2, .rth-section--teal h3 { color: #fff; }

.rth-section__head { max-width: 760px; margin-inline: auto; text-align: center; margin-block-end: 48px; }
.rth-section__eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .5px;
  color: var(--rth-teal-600); background: var(--rth-teal-50); padding: 6px 16px; border-radius: 50px;
  margin-block-end: 16px;
}
.rth-section--teal .rth-section__eyebrow { color: #fff; background: rgba(255,255,255,.15); }
.rth-section__lead { font-size: 1.15rem; color: var(--rth-ink-500); margin-block-start: 14px; }
.rth-section--teal .rth-section__lead { color: rgba(255,255,255,.85); }

.rth-text-center { text-align: center; }
.rth-mt-lg { margin-block-start: 40px; }
.rth-grid { display: grid; gap: var(--rth-grid-gap, 24px); }
.rth-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rth-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rth-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* البطاقات ---------------------------------------------------------------- */
.rth-card {
  background: #fff; border: 1px solid var(--rth-ink-100); border-radius: var(--rth-radius);
  padding: 28px; box-shadow: var(--rth-shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.rth-card:hover { transform: translateY(-4px); box-shadow: var(--rth-shadow-lg); border-color: var(--rth-teal-500); }
/* أسلوب البطاقة البديل: حدّ واضح بلا ظل (يضبطه DESIGN.cardStyle عبر سمة الجذر) */
[data-cards='outline'] .rth-card { box-shadow: none; border-color: var(--rth-ink-300); }
[data-cards='outline'] .rth-card:hover { box-shadow: none; border-color: var(--rth-teal-600); }
.rth-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--rth-teal-50); color: var(--rth-teal-700); margin-block-end: 18px; font-size: 26px;
}
.rth-card h3 { margin-block-end: 10px; }
.rth-card p { color: var(--rth-ink-700); }
.rth-card__link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 16px; font-weight: 700; }
.rth-card__link::after { content: '←'; }

/* بطاقة مقال -------------------------------------------------------------- */
.rth-article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rth-ink-100);
  border-radius: var(--rth-radius); overflow: hidden; box-shadow: var(--rth-shadow);
  transition: transform .2s, box-shadow .2s;
}
.rth-article-card:hover { transform: translateY(-4px); box-shadow: var(--rth-shadow-lg); }
.rth-article-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rth-article-card__cat {
  align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--rth-teal-700);
  background: var(--rth-teal-50); padding: 4px 12px; border-radius: 50px;
}
.rth-article-card__title { font-size: 1.2rem; }
.rth-article-card__title a { color: var(--rth-ink-900); }
.rth-article-card__title a:hover { color: var(--rth-teal-700); text-decoration: none; }
.rth-article-card__excerpt { color: var(--rth-ink-500); font-size: .96rem; flex: 1; }
.rth-article-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--rth-ink-500); margin-block-start: 6px; }

/* أرقام/إحصاءات ----------------------------------------------------------- */
.rth-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.rth-stat { text-align: center; }
.rth-stat__num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--rth-teal-600); line-height: 1; }
.rth-section--teal .rth-stat__num { color: #fff; }
.rth-stat__label { color: var(--rth-ink-500); margin-block-start: 8px; font-weight: 600; }
.rth-section--teal .rth-stat__label { color: rgba(255,255,255,.8); }

/* خطوات ------------------------------------------------------------------- */
.rth-steps { counter-reset: step; display: grid; gap: 20px; }
.rth-step { position: relative; padding-inline-start: 64px; }
.rth-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rth-teal-700); color: #fff; font-weight: 800; font-size: 18px;
}
.rth-step h3 { margin-block-end: 6px; }
.rth-step p { color: var(--rth-ink-700); }

/* الأسئلة الشائعة (accordion) --------------------------------------------- */
.rth-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.rth-faq__item { border: 1px solid var(--rth-ink-100); border-radius: var(--rth-radius-sm); background: #fff; overflow: hidden; }
.rth-faq__item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.08rem; color: var(--rth-ink-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.rth-faq__item summary::-webkit-details-marker { display: none; }
.rth-faq__item summary::after { content: '+'; font-size: 1.6rem; color: var(--rth-teal-600); font-weight: 400; transition: transform .2s; }
.rth-faq__item[open] summary::after { transform: rotate(45deg); }
.rth-faq__item summary:hover { color: var(--rth-teal-700); }
.rth-faq__answer { padding: 0 24px 22px; color: var(--rth-ink-700); }

/* تذييل الموقع ------------------------------------------------------------ */
.rth-site-footer { background: var(--rth-ink-900); color: #cbd5e1; padding-block: 56px 28px; margin-block-start: 40px; }
.rth-site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.rth-site-footer__brand .rth-brand__name { color: #fff; font-size: 22px; display: inline-block; margin-block-end: 12px; }
.rth-site-footer__brand p { color: #94a3b8; margin-block-end: 18px; font-size: .95rem; }
.rth-site-footer__title { color: #fff; font-size: 1rem; margin-block-end: 16px; }
.rth-site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.rth-site-footer__col a { color: #94a3b8; font-size: .95rem; }
.rth-site-footer__col a:hover { color: #fff; text-decoration: none; }
.rth-site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-block-start: 1px solid #1e293b; margin-block-start: 40px; padding-block-start: 24px;
  font-size: .9rem; color: #64748b;
}
.rth-site-footer__contact { display: flex; gap: 10px; align-items: center; }
.rth-site-footer__contact a { color: #94a3b8; }
@media (max-width: 780px) { .rth-site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rth-site-footer__grid { grid-template-columns: 1fr; } }

/* مسار التنقّل ------------------------------------------------------------ */
.rth-breadcrumbs { background: var(--rth-ink-50); border-block-end: 1px solid var(--rth-ink-100); font-size: 14px; }
.rth-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding-block: 12px; }
.rth-breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--rth-ink-500); }
.rth-breadcrumbs a { color: var(--rth-ink-700); }
.rth-breadcrumbs [aria-current='page'] { color: var(--rth-teal-700); font-weight: 600; }
.rth-breadcrumbs__sep { color: var(--rth-ink-300); }

/* الهيرو ------------------------------------------------------------------ */
.rth-hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--rth-teal-50), #fff 60%); }
.rth-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.rth-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  color: var(--rth-teal-700); background: #fff; padding: 8px 16px; border-radius: 50px; box-shadow: var(--rth-shadow); margin-block-end: 20px;
}
.rth-hero h1 { margin-block-end: 18px; }
.rth-hero__lead { font-size: 1.2rem; color: var(--rth-ink-700); margin-block-end: 28px; max-width: 60ch; }
.rth-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block-end: 28px; }
.rth-hero__trust { display: flex; flex-wrap: wrap; gap: 20px; font-size: .92rem; color: var(--rth-ink-500); }
.rth-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.rth-hero__trust span::before { content: '✓'; color: var(--rth-teal-600); font-weight: 800; }
.rth-hero__card {
  background: #fff; border-radius: var(--rth-radius); box-shadow: var(--rth-shadow-lg); padding: 28px;
  border: 1px solid var(--rth-ink-100);
}
.rth-hero__card h2 { font-size: 1.2rem; margin-block-end: 16px; }
@media (max-width: 860px) { .rth-hero__inner { grid-template-columns: 1fr; gap: 32px; } .rth-hero__card { order: 2; } }

/* شريط CTA ---------------------------------------------------------------- */
.rth-cta-band { text-align: center; }
.rth-cta-band h2 { margin-block-end: 14px; }
.rth-cta-band p { max-width: 640px; margin: 0 auto 26px; font-size: 1.1rem; }
.rth-cta-band .rth-btn { font-size: 17px; padding: 15px 34px; }

/* محتوى المقال (prose) ---------------------------------------------------- */
.rth-prose { max-width: 760px; margin-inline: auto; }
.rth-prose > * + * { margin-block-start: 1.25em; }
.rth-prose h2 { margin-block-start: 1.8em; padding-block-end: .3em; border-block-end: 2px solid var(--rth-teal-50); scroll-margin-top: 90px; }
.rth-prose h3 { margin-block-start: 1.5em; color: var(--rth-teal-800); scroll-margin-top: 90px; }
.rth-prose p, .rth-prose li { color: var(--rth-ink-700); }
.rth-prose ul, .rth-prose ol { padding-inline-start: 1.4em; display: grid; gap: .5em; }
.rth-prose li { padding-inline-start: 4px; }
.rth-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rth-prose strong { color: var(--rth-ink-900); }
.rth-prose blockquote {
  border-inline-start: 4px solid var(--rth-teal-600); background: var(--rth-teal-50);
  padding: 16px 22px; border-radius: 0 var(--rth-radius-sm) var(--rth-radius-sm) 0; color: var(--rth-ink-700); font-style: normal;
}
.rth-prose blockquote p { margin: 0; }
.rth-prose img { border-radius: var(--rth-radius-sm); margin-block: 1.5em; box-shadow: var(--rth-shadow); }
.rth-prose code {
  background: var(--rth-ink-100); padding: 2px 7px; border-radius: 6px; font-size: .9em;
  font-family: 'Consolas', 'Courier New', monospace; direction: ltr; display: inline-block;
}

/* جداول متجاوبة ----------------------------------------------------------- */
.rth-table-wrap { overflow-x: auto; margin-block: 1.5em; border-radius: var(--rth-radius-sm); border: 1px solid var(--rth-ink-100); }
.rth-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 460px; }
.rth-prose thead { background: var(--rth-teal-700); color: #fff; }
.rth-prose th, .rth-prose td { padding: 13px 16px; text-align: start; border-block-end: 1px solid var(--rth-ink-100); }
.rth-prose tbody tr:nth-child(even) { background: var(--rth-ink-50); }
.rth-prose tbody tr:hover { background: var(--rth-teal-50); }

/* صندوق ملاحظة/إجابة سريعة (للمقتطفات المميّزة) --------------------------- */
.rth-answer-box {
  background: var(--rth-teal-50); border: 1px solid var(--rth-teal-500); border-inline-start-width: 5px;
  border-radius: var(--rth-radius-sm); padding: 20px 24px; margin-block: 1.5em;
}
.rth-answer-box strong { color: var(--rth-teal-800); }

/* جدول المحتويات ---------------------------------------------------------- */
.rth-toc { background: var(--rth-ink-50); border: 1px solid var(--rth-ink-100); border-radius: var(--rth-radius); padding: 22px 26px; margin-block: 2em; }
.rth-toc h2 { font-size: 1.1rem; margin: 0 0 14px; border: 0; padding: 0; }
.rth-toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.rth-toc a { color: var(--rth-ink-700); text-decoration: none; }
.rth-toc a:hover { color: var(--rth-teal-700); text-decoration: underline; }

/* رأس المقال -------------------------------------------------------------- */
.rth-article-header { max-width: 760px; margin-inline: auto; text-align: center; padding-block: 40px 8px; }
.rth-article-header__cat { color: var(--rth-teal-700); font-weight: 700; }
.rth-article-header h1 { margin-block: 14px 18px; }
.rth-article-header__meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center;
  color: var(--rth-ink-500); font-size: .92rem;
}
.rth-article-header__meta time, .rth-article-header__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* صندوق الكاتب (E-E-A-T) -------------------------------------------------- */
.rth-author-box {
  display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 48px auto 0;
  padding: 24px; background: var(--rth-ink-50); border: 1px solid var(--rth-ink-100); border-radius: var(--rth-radius);
}
.rth-author-box__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rth-teal-600), var(--rth-teal-800)); color: #fff; font-size: 26px; font-weight: 800;
}
.rth-author-box__name { font-weight: 800; color: var(--rth-ink-900); }
.rth-author-box__title { color: var(--rth-ink-500); font-size: .92rem; }

/* مقالات ذات صلة ---------------------------------------------------------- */
.rth-related { border-block-start: 1px solid var(--rth-ink-100); margin-block-start: 48px; padding-block-start: 40px; }

/* نماذج ------------------------------------------------------------------- */
.rth-form-field { display: grid; gap: 6px; margin-block-end: 18px; }
.rth-form-field label { font-weight: 700; font-size: .95rem; }
.rth-form-field input, .rth-form-field textarea, .rth-form-field select {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--rth-ink-300);
  border-radius: var(--rth-radius-sm); background: #fff; color: var(--rth-ink-900); width: 100%;
}
.rth-form-field input:focus, .rth-form-field textarea:focus, .rth-form-field select:focus {
  outline: none; border-color: var(--rth-teal-600); box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}

/* قائمة مزايا ------------------------------------------------------------- */
.rth-check-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.rth-check-list li { display: flex; gap: 12px; align-items: flex-start; }
.rth-check-list li::before {
  content: '✓'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rth-teal-50); color: var(--rth-teal-700); display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

/* الوصولية: تقليل الحركة --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   لمسة الهوية الفاخرة — ذبايح الرياض (عنّابي عميق + ذهبي عتيق)
   طبقة تجميلية خالصة (CSS فقط، بلا JS وبلا خطوط ويب) تكسر الطابع القالبي.
   ========================================================================== */
:root { --gold: #c9a227; --gold-soft: #e8d38a; --gold-deep: #9a7b18; }

/* شارة القسم: إطار ذهبي رفيع بدل الحبّة اللونية الصرفة */
.rth-section__eyebrow {
  border: 1px solid var(--gold-soft); border-radius: 2px; letter-spacing: 1.2px;
  background: linear-gradient(180deg, #fffdf5, var(--rth-teal-50));
}
.rth-section--teal .rth-section__eyebrow { border-color: rgba(201,162,39,.55); color: var(--gold-soft); }

/* خيط ذهبي تحت عناوين الأقسام */
.rth-section__head h2::after {
  content: ''; display: block; width: 64px; height: 2px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* القسم الداكن: تدرّج أعمق + حافّة ذهبية علوية */
.rth-section--teal { border-block-start: 2px solid var(--gold); }
.rth-section--teal .rth-stat__num { color: var(--gold-soft); }

/* البطاقات: شريط ذهبي يظهر عند التمرير (إحساس فخم بلا ثقل) */
.rth-card { position: relative; }
.rth-card::before {
  content: ''; position: absolute; inset-block-start: -1px; inset-inline: -1px;
  height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  opacity: 0; transition: opacity .25s;
}
.rth-card:hover::before { opacity: 1; }
.rth-card__icon { border-radius: 4px; border: 1px solid var(--gold-soft); }

/* الهيرو: توهّج عنّابي خفيف + خيط ذهبي سفلي */
.rth-hero { border-block-end: 1px solid var(--gold-soft); }

/* المقتطف المميّز داخل المقالات: حافّة ذهبية */
.rth-prose blockquote { border-inline-start-color: var(--gold); }

/* عناوين المقالات: خيط فاصل ذهبي خافت */
.rth-prose h2 { border-block-end-color: var(--gold-soft); }

/* قائمة المزايا: علامة صحّ ذهبية على أرضية عنّابية فاتحة */
.rth-check-list li::before { border: 1px solid var(--gold-soft); }

/* الأزرار الأساسية: حافّة ذهبية داخلية تعطي إحساس «مسكوك» */
.rth-btn--primary { box-shadow: inset 0 0 0 1px rgba(232,211,138,.35); }
