/*
Theme Name: تفتيش عاملات الرياض
Theme URI: https://github.com/khaledkhater/tafteesh-ameelat
Author: Reflow
Author URI: https://github.com/khaledkhater
Description: ثيم ووردبريس عصري وجريء مخصص لموقع خدمة تفتيش حقائب وأمتعة العاملات المنزلية قبل السفر بالرياض. يتضمن قسم رئيسي (Hero)، عرض الخدمات، لماذا تختارنا، خطوات العمل، آراء العملاء، أسئلة شائعة، نموذج تواصل مؤمّن، بيانات منظّمة لمحركات البحث، وأزرار واتساب عائمة.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tafteesh-ameelat
Tags: rtl-language-support, custom-menu, custom-logo, one-column, translation-ready, accessibility-ready
*/

/* ==========================================================================
   0. المتغيرات الأساسية (الألوان والخطوط)
   ========================================================================== */
:root{
  --navy: #0b1f3a;
  --navy-light: #142c52;
  --gold: #f2b705;
  --gold-dark: #a87c00;      /* غُمّق لتحقيق تباين AA على الخلفيات الفاتحة */
  --gold-bright: #f2b705;
  --teal: #0f7a6f;
  --bg: #f7f8fb;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #55606f;     /* غُمّق قليلاً لتحسين قابلية القراءة */
  --border: #e6e9ef;
  --danger: #c0392b;
  --success: #0f7a3f;
  --shadow: 0 10px 30px rgba(11,31,58,.08);
  --radius: 16px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(242,183,5,.55);
  --font: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   1. إعادة ضبط أساسية
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  direction:rtl;
  text-align:right;
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
body.nav-open{ overflow:hidden; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 .5em; font-weight:800; color:var(--navy); line-height:1.35; }
p{ margin:0 0 1em; color:var(--text-muted); }
button{ font-family:inherit; }

/* حالة التركيز — مهمة جدًا لمستخدمي الكيبورد */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:2px solid var(--gold-dark);
  outline-offset:2px;
  border-radius:4px;
}

/* نص مقروء لقارئات الشاشة فقط */
.screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* رابط تخطي للمحتوى */
.skip-link{
  position:absolute; inset-inline-start:-9999px; top:0; z-index:1000;
}
.skip-link:focus{
  inset-inline-start:12px; top:12px; width:auto; height:auto; clip:auto;
  background:var(--gold); color:var(--navy); padding:12px 22px;
  border-radius:var(--radius-sm); font-weight:800; box-shadow:var(--shadow);
}
#main-content:focus{ outline:none; }

.container{ width:100%; max-width:1160px; margin:0 auto; padding:0 20px; }
.section{ padding:80px 0; }
.section--tight{ padding-top:60px; }
.section--flush{ padding-top:0; }
.section-head{ text-align:center; max-width:680px; margin:0 auto 50px; }
.section-head--wide{ max-width:820px; }
.section-head .kicker{
  display:inline-block; background:rgba(242,183,5,.14); color:var(--gold-dark);
  font-weight:700; padding:6px 18px; border-radius:999px; font-size:14px; margin-bottom:14px;
}
.section-head h2{ font-size:34px; }
.section-head p{ font-size:17px; }
.link-more{ font-weight:800; color:var(--gold-dark); border-bottom:2px solid transparent; }
.link-more:hover{ border-bottom-color:currentColor; }
.link-more--light{ color:var(--gold-bright); }
.mt-0{ margin-top:0; }

/* قوائم بعلامة صح */
.check-list{
  display:grid; gap:10px; color:var(--text-muted); margin:0 0 18px; padding:0; list-style:none;
}
.check-list li{ position:relative; padding-inline-start:26px; }
.check-list li::before{
  content:'✔'; position:absolute; inset-inline-start:0; color:var(--gold-dark); font-weight:800;
}

/* أزرار */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 30px; border-radius:999px;
  font-weight:700; font-size:16px; border:2px solid transparent; cursor:pointer;
  transition:background .25s, transform .25s, border-color .25s;
  text-align:center;
}
.btn-primary{ background:var(--gold); color:var(--navy); }
.btn-primary:hover{ background:#d49b00; transform:translateY(-2px); }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.55); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.14); }
.btn-dark{ background:var(--navy); color:var(--white); }
.btn-dark:hover{ background:var(--navy-light); transform:translateY(-2px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* ==========================================================================
   2. الهيدر
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:100; background:var(--white);
  border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:10px 20px; min-height:60px; gap:16px; }
.site-branding{ display:flex; align-items:center; gap:8px; }
.site-branding img{ max-height:36px; width:auto; }
.site-branding .site-title{ font-size:17px; font-weight:800; color:var(--navy); line-height:1.2; }
.site-branding .site-title span{ color:var(--gold-dark); }
.logo-fallback-link{ display:flex; align-items:center; gap:8px; }
.site-branding .logo-mark{ height:34px; width:34px; flex:none; max-height:none; }
.main-navigation ul{ display:flex; gap:34px; align-items:center; }
.main-navigation a{ font-weight:700; color:var(--navy); font-size:15px; transition:color .2s; }
.main-navigation a:hover{ color:var(--gold-dark); }
.main-navigation a[aria-current="page"]{ color:var(--gold-dark); border-bottom:2px solid var(--gold); }
.header-cta{ display:flex; align-items:center; gap:12px; }
.header-phone{ display:flex; align-items:center; gap:6px; font-weight:800; color:var(--navy); font-size:14px; white-space:nowrap; }
.header-cta .btn-primary{ padding:10px 20px; font-size:14px; }
.menu-toggle{ display:none; background:none; border:none; font-size:24px; color:var(--navy); cursor:pointer; line-height:1; padding:6px 10px; }
.mobile-nav-cta, .mobile-nav-phone{ display:none; }
.nav-overlay{ position:fixed; inset:0; background:rgba(11,31,58,.45); z-index:98; }

@media (max-width: 900px){
  .main-navigation{
    position:fixed; inset:0 0 0 auto; width:78%; max-width:320px; background:var(--white);
    box-shadow:-10px 0 30px rgba(0,0,0,.12); transform:translateX(100%); transition:transform .3s;
    padding:90px 24px 24px; z-index:99;
    display:flex; flex-direction:column; overflow-y:auto;
  }
  .main-navigation.is-open{ transform:translateX(0); }
  .main-navigation ul{ flex-direction:column; align-items:flex-start; gap:22px; }
  .menu-toggle{ display:block; flex:none; }
  /* على الموبايل: نخفي زرار الطلب ورقم الهاتف من شريط الهيدر، ونوريهم جوه المنيو الجانبي */
  .header-cta .btn-primary, .header-phone{ display:none; }
  .mobile-nav-cta{ display:flex; width:100%; margin-bottom:24px; order:-1; }
  .mobile-nav-phone{
    display:flex; align-items:center; gap:8px; margin-top:24px; padding-top:20px;
    border-top:1px solid var(--border); font-weight:800; color:var(--navy); font-size:16px;
  }
}

/* ==========================================================================
   3. قسم الهيرو
   ========================================================================== */
.hero{
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1c3a68 100%);
  background-size:cover; background-position:center; background-repeat:no-repeat;
  color:var(--white); padding:100px 0 90px; position:relative; overflow:hidden;
}
.hero::after{
  content:''; position:absolute; inset:auto -10% -30% auto; width:520px; height:520px;
  background:radial-gradient(circle, rgba(242,183,5,.25), transparent 70%); border-radius:50%;
  pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; position:relative; z-index:2; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px; background:rgba(242,183,5,.16);
  border:1px solid rgba(242,183,5,.45); color:var(--gold-bright); padding:8px 16px; border-radius:999px;
  font-weight:700; font-size:14px; margin-bottom:22px;
}
.hero h1{ color:var(--white); font-size:44px; margin-bottom:20px; }
.hero h1 em{ font-style:normal; color:var(--gold-bright); }
.hero p.lead{ color:rgba(255,255,255,.88); font-size:18px; max-width:520px; margin-bottom:32px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; }
.hero-trust{ display:flex; gap:26px; margin-top:40px; flex-wrap:wrap; }
.hero-trust .item{ display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.9); font-weight:700; font-size:14px; }
.hero-trust .item b{ color:var(--gold-bright); font-size:22px; display:block; }
.hero-visual{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); border-radius:24px;
  padding:34px; backdrop-filter:blur(6px);
}
.hero-visual .stat{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.hero-visual .stat:last-child{ border-bottom:none; }
.hero-visual .stat b{ color:var(--gold-bright); font-size:22px; flex:none; }
.hero-visual .stat span{ color:rgba(255,255,255,.85); font-size:14px; }

@media (max-width: 900px){
  .hero{ padding:70px 0 60px; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero h1{ font-size:32px; }
}

/* ==========================================================================
   4. شريط الثقة
   ========================================================================== */
.trust-bar{ background:var(--navy); padding:18px 0; }
.trust-bar .container{ display:flex; justify-content:space-around; flex-wrap:wrap; gap:14px; }
.trust-bar span{ color:rgba(255,255,255,.9); font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px; }
.trust-bar span::before{ content:'✔'; color:var(--gold-bright); }

/* ==========================================================================
   5. الخدمات
   ========================================================================== */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.service-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  padding:34px 28px; transition:transform .25s, border-color .25s; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
.service-card:hover{ transform:translateY(-6px); border-color:var(--gold); }
.service-card .icon{
  width:56px; height:56px; border-radius:14px; background:rgba(242,183,5,.14);
  display:flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:18px;
}
/* بطاقة خدمة بصورة مرفوعة */
.service-card--has-image{ padding:0 0 28px; overflow:hidden; }
.service-media{ margin:0 0 20px; aspect-ratio:12/7; background:linear-gradient(135deg, var(--navy-light), var(--navy)); }
.service-media img{ width:100%; height:100%; object-fit:cover; }
.service-card--has-image h3,
.service-card--has-image p,
.service-card--has-image a{ margin-inline:28px; }
.service-card--has-image p{ margin-inline-end:28px; }

.service-card h3{ font-size:19px; margin-bottom:10px; }
.service-card p{ font-size:15px; margin-bottom:16px; flex:1; }
.service-card a{ font-weight:800; color:var(--gold-dark); font-size:14px; align-self:flex-start; }
.service-card a:hover{ text-decoration:underline; }

@media (max-width:900px){ .services-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .services-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   6. لماذا تختارنا
   ========================================================================== */
.why-us{ background:var(--white); }
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.why-title{ margin-top:14px; }
.why-list .why-item{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--border); }
.why-list .why-item:last-child{ border-bottom:none; }
.why-list .why-item .num{
  flex:none; width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--gold-bright);
  display:flex; align-items:center; justify-content:center; font-weight:800;
}
.why-list h3{ font-size:17px; margin-bottom:4px; }
.why-list p{ font-size:14px; margin:0; }
.why-media{
  background:linear-gradient(135deg, var(--navy), var(--teal)); border-radius:var(--radius);
  min-height:360px; display:flex; align-items:center; justify-content:center; color:var(--white);
  padding:30px; text-align:center;
}
.why-media h3{ color:var(--white); }
.why-media p{ color:rgba(255,255,255,.85); }
.why-media-btn{ margin-top:16px; }
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr; } .why-media{ order:-1; min-height:220px; } }

/* ==========================================================================
   7. خطوات العمل
   ========================================================================== */
.steps{ background:var(--bg); }
.steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.step-card{ position:relative; background:var(--white); border-radius:var(--radius); padding:30px 24px; box-shadow:var(--shadow); }
.step-card .step-num{
  width:44px; height:44px; border-radius:50%; background:var(--gold); color:var(--navy);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; margin-bottom:16px;
}
/* خطوة برسمة مرفوعة */
.step-media{ position:relative; width:92px; height:92px; margin-bottom:16px; }
.step-media img{ width:100%; height:100%; object-fit:contain; }
.step-num--badge{
  position:absolute; inset-block-start:-6px; inset-inline-end:-6px;
  width:30px; height:30px; font-size:14px; margin:0;
}
.step-card h3{ font-size:17px; }
.step-card p{ font-size:14px; margin:0; }
@media (max-width:900px){ .steps-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .steps-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   8. آراء العملاء
   ========================================================================== */
.testimonials{ background:var(--navy); }
.testimonials .section-head h2{ color:var(--white); }
.testimonials .section-head p{ color:rgba(255,255,255,.75); }
.t-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.t-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius); padding:28px; color:var(--white); margin:0;
}
.t-card .stars{ color:var(--gold-bright); margin-bottom:14px; letter-spacing:2px; }
.t-card blockquote{ margin:0; }
.t-card p{ color:rgba(255,255,255,.9); font-size:15px; }
.t-card p::before{ content:'”'; }
.t-card p::after{ content:'“'; }
.t-card .who{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.t-card .avatar{ width:44px; height:44px; border-radius:50%; background:var(--gold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-weight:800; flex:none; }
.t-card .who b{ display:block; color:var(--white); font-size:14px; }
.t-card .who span{ color:rgba(255,255,255,.7); font-size:13px; }
@media (max-width:900px){ .t-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   9. الأسئلة الشائعة (أكورديون)
   ========================================================================== */
.faq-list{ max-width:820px; margin:0 auto; }
.faq-item{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:14px; overflow:hidden; }
.faq-heading{ margin:0; font-size:inherit; }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  width:100%; padding:18px 22px; cursor:pointer;
  font-weight:800; font-size:16px; color:var(--navy); font-family:inherit;
  background:none; border:none; text-align:inherit; line-height:1.6;
}
.faq-q:hover{ background:rgba(242,183,5,.06); }
.faq-q:focus-visible{ outline:2px solid var(--gold-dark); outline-offset:-2px; }
.faq-q .plus{ font-size:22px; color:var(--gold-dark); transition:transform .25s; flex:none; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ padding:0 22px 20px; }
.faq-a p{ margin:0; font-size:15px; }

/* ==========================================================================
   10. قسم CTA
   ========================================================================== */
.cta{
  background:linear-gradient(135deg, var(--gold) 0%, #d49b00 100%);
  border-radius:24px; padding:56px 40px; text-align:center; margin:0 20px;
}
.cta h2{ color:var(--navy); font-size:30px; }
.cta p{ color:rgba(11,31,58,.85); font-size:16px; max-width:560px; margin:0 auto 26px; }
.cta .btn-dark{ box-shadow:0 10px 24px rgba(11,31,58,.25); }
@media (max-width:600px){ .cta{ padding:40px 22px; } .cta h2{ font-size:24px; } }

/* ==========================================================================
   11. الفوتر
   ========================================================================== */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.8); padding:70px 0 0; margin-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-heading{ color:var(--white); font-size:16px; margin-bottom:18px; }
.footer-col p, .footer-col a, .footer-col li{ font-size:14px; color:rgba(255,255,255,.72); }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:var(--gold-bright); text-decoration:underline; }
.footer-contact li{ display:flex; gap:8px; align-items:flex-start; }
.footer-cta-btn{ margin-top:8px; padding:10px 22px; font-size:14px; color:var(--navy); }
.footer-cta-btn:hover{ color:var(--navy); text-decoration:none; }
.footer-brand .site-title{ color:var(--white); font-size:20px; font-weight:800; margin-bottom:12px; display:block; }
.footer-brand .site-title span{ color:var(--gold-bright); }
.social-links{ display:flex; gap:10px; margin-top:16px; }
.social-links a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.social-links a:hover{ background:var(--gold); color:var(--navy); }
.footer-bottom{ padding:22px 0; text-align:center; font-size:13px; color:rgba(255,255,255,.6); }
.footer-bottom .credit strong{ color:var(--gold-bright); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer-grid{ grid-template-columns:1fr; } .site-footer{ margin-top:50px; } }

/* ==========================================================================
   12. الأزرار العائمة + العودة لأعلى
   ========================================================================== */
.float-buttons{
  position:fixed; bottom:26px; inset-inline-start:26px; z-index:200;
  display:flex; flex-direction:column; gap:14px;
}
.float-btn{
  width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:26px; box-shadow:0 10px 24px rgba(0,0,0,.2); animation:pulse 2.4s infinite;
}
.float-btn.whatsapp{ background:#25D366; box-shadow:0 10px 24px rgba(37,211,102,.45); }
.float-btn.call{ background:var(--navy); box-shadow:0 10px 24px rgba(11,31,58,.4); animation-delay:.3s; }
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.55); }
  70%{ box-shadow:0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}
.back-to-top{
  position:fixed; bottom:26px; inset-inline-end:26px; z-index:200;
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--navy); color:var(--gold-bright); font-size:20px; font-weight:800;
  box-shadow:0 8px 20px rgba(11,31,58,.3);
}
.back-to-top:hover{ background:var(--navy-light); }
@media (max-width:600px){
  .float-buttons{ bottom:16px; inset-inline-start:16px; gap:10px; }
  .float-btn{ width:50px; height:50px; font-size:22px; }
  .back-to-top{ bottom:16px; inset-inline-end:16px; width:40px; height:40px; }
}

/* ==========================================================================
   13. قسم "من نحن"
   ========================================================================== */
.about-section{ background:var(--white); }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.about-media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); min-height:320px; background:linear-gradient(135deg, var(--navy), var(--teal)); }
.about-media img{ width:100%; height:100%; object-fit:cover; min-height:320px; }
.about-text p{ font-size:16px; }
.about-points{ display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.about-points span{ background:var(--bg); border:1px solid var(--border); padding:8px 16px; border-radius:999px; font-weight:700; font-size:13px; color:var(--navy); }
.about-cta{ margin-top:24px; }
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } .about-media{ order:-1; } }

/* ==========================================================================
   14. معرض الأعمال
   ========================================================================== */
.gallery-section{ background:var(--bg); }
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.gallery-grid .g-item{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); aspect-ratio:4/3;
  background:linear-gradient(135deg, var(--navy-light), var(--navy));
  display:flex; align-items:center; justify-content:center;
}
.gallery-grid .g-item img{ width:100%; height:100%; object-fit:cover; }
.g-icon-item{ flex-direction:column; gap:14px; }
.g-icon-item .g-icon{ font-size:44px; }
.g-icon-item .g-label{ color:rgba(255,255,255,.92); font-weight:800; font-size:15px; text-align:center; padding:0 12px; }

/* لوحة أيقونة بديلة عن الصورة في قسم "من نحن" */
.icon-panel{
  width:100%; height:100%; min-height:320px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
}
.icon-panel-mark{
  width:100px; height:100px; border-radius:50%; background:rgba(242,183,5,.15); border:2px solid rgba(242,183,5,.4);
  display:flex; align-items:center; justify-content:center; font-size:46px;
}
.icon-panel-stat{ text-align:center; }
.icon-panel-stat b{ display:block; color:var(--gold-bright); font-size:30px; }
.icon-panel-stat span{ color:rgba(255,255,255,.85); font-size:14px; }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .gallery-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   15. صفحات عامة (page.php / single.php / archive)
   ========================================================================== */
.page-hero{ background:var(--navy); color:var(--white); padding:70px 0; text-align:center; }
.page-hero h1{ color:var(--white); margin-bottom:0; }
.page-hero .breadcrumbs{ color:rgba(255,255,255,.7); font-size:14px; margin-top:10px; }
.page-hero .breadcrumbs a:hover{ color:var(--gold-bright); }
.content-area{ padding:70px 0; }
.content-area--tight{ padding-top:0; }
.content-area .entry-content{ max-width:820px; margin:0 auto; background:var(--white); padding:40px; border-radius:var(--radius); box-shadow:var(--shadow); }
.entry-content--plain{ box-shadow:none; border:1px solid var(--border); margin:0 auto 50px; }
.entry-content--stacked{ margin-top:24px; }
.content-area .entry-content h2{ margin-top:1.2em; }
.content-area .entry-content h2:first-child{ margin-top:0; }
.content-area .entry-content img{ border-radius:var(--radius-sm); margin:20px 0; }
.content-area .entry-content a{ color:var(--gold-dark); font-weight:700; text-decoration:underline; }
.content-area .entry-content ul:not(.check-list){ list-style:disc; padding-inline-start:22px; color:var(--text-muted); }
.content-area .entry-content ol{ padding-inline-start:22px; color:var(--text-muted); }
.entry-meta{ color:var(--text-muted); font-size:13px; }
.post-list article{ padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--border); }
.post-list article:last-child{ border-bottom:none; }
.pagination{ margin-top:30px; }
.pagination .page-numbers{
  display:inline-block; padding:8px 14px; border-radius:var(--radius-sm);
  background:var(--white); border:1px solid var(--border); font-weight:700; margin:0 3px;
}
.pagination .page-numbers.current{ background:var(--navy); color:var(--white); border-color:var(--navy); }

/* ==========================================================================
   16. النماذج
   ========================================================================== */
.contact-grid{ display:grid; grid-template-columns:1.3fr .9fr; gap:30px; align-items:start; max-width:1060px; margin:0 auto; }
.contact-grid .entry-content{ max-width:none; margin:0; }
.contact-card{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow); }
.contact-card h2{ font-size:20px; margin-top:0; }
.contact-list{ display:grid; gap:18px; }
.contact-list li{ display:flex; gap:12px; align-items:flex-start; }
.contact-list .ic{
  width:38px; height:38px; flex:none; border-radius:10px; background:rgba(242,183,5,.14);
  display:flex; align-items:center; justify-content:center;
}
.contact-list b{ display:block; color:var(--navy); font-size:14px; }
.contact-list a, .contact-list span:not(.ic){ color:var(--text-muted); font-size:15px; }
.contact-list a:hover{ color:var(--gold-dark); }
.contact-actions{ display:grid; gap:12px; margin-top:26px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.tafteesh-form{ display:grid; gap:18px; max-width:560px; }
.tafteesh-form .field{ display:grid; gap:6px; }
.tafteesh-form label{ font-weight:700; color:var(--navy); font-size:15px; }
.tafteesh-form .req{ color:var(--danger); }
.tafteesh-form .optional{ font-weight:400; color:var(--text-muted); font-size:13px; }
.tafteesh-form input,
.tafteesh-form textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm);
  font-family:inherit; font-size:15px; color:var(--text); background:var(--white);
}
.tafteesh-form input:focus,
.tafteesh-form textarea:focus{ border-color:var(--gold-dark); box-shadow:var(--focus); outline:none; }
.tafteesh-form input:invalid:not(:placeholder-shown){ border-color:var(--danger); }
.tafteesh-form .hint{ color:var(--text-muted); font-size:13px; }
.tafteesh-form .form-submit{ justify-self:start; }

/* مصيدة السبام — مخفية بصريًا وعن قارئات الشاشة */
.tafteesh-hp{
  position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden;
}

.form-notice{
  padding:14px 18px; border-radius:var(--radius-sm); font-weight:700; margin-bottom:20px;
}
.form-notice:focus{ outline:2px solid currentColor; outline-offset:2px; }
.form-notice--ok{ background:#e8f7ef; color:var(--success); }
.form-notice--err{ background:#fdecec; color:var(--danger); }

/* نموذج البحث */
.search-form{ display:flex; gap:10px; max-width:460px; }
.search-form input[type="search"]{
  flex:1; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit;
}

/* ==========================================================================
   17. الودجت والتعليقات
   ========================================================================== */
.widget{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-sm); padding:24px; margin-bottom:24px; }
.widget h2, .widget .widget-title{ font-size:16px; margin-bottom:14px; }
.widget ul li{ margin-bottom:8px; }
.widget a:hover{ color:var(--gold-dark); }

.comments-area{ max-width:820px; margin:24px auto 0; background:var(--white); padding:40px; border-radius:var(--radius); box-shadow:var(--shadow); }
.comment-list{ margin:0 0 30px; padding:0; }
.comment-list, .comment-list ul, .comment-list ol{ list-style:none; }
.comment-list .children{ padding-inline-start:24px; }
.comment-body{ padding:18px 0; border-bottom:1px solid var(--border); }
.comment-meta{ font-size:13px; color:var(--text-muted); margin-bottom:8px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit;
}
.comment-form .submit{
  background:var(--gold); color:var(--navy); border:none; padding:12px 28px;
  border-radius:999px; font-weight:700; cursor:pointer; font-family:inherit;
}

/* ==========================================================================
   18. صفحة 404 والنتائج الفارغة
   ========================================================================== */
.error-404{ text-align:center; }
.error-404 .code{ font-size:96px; font-weight:800; color:var(--gold); line-height:1; margin-bottom:10px; }
.error-404 .actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
@media (max-width:600px){ .error-404 .code{ font-size:64px; } }

/* ==========================================================================
   19. تفضيلات المستخدم والطباعة
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

@media print{
  .site-header, .site-footer, .float-buttons, .back-to-top, .skip-link, .nav-overlay, .cta{ display:none !important; }
  body{ background:#fff; color:#000; font-size:12pt; }
  .hero{ background:none !important; color:#000; padding:20px 0; }
  .hero h1, .hero p.lead, .hero-trust .item{ color:#000 !important; }
  .content-area .entry-content{ box-shadow:none; border:none; padding:0; }
  a[href^="http"]::after{ content:" (" attr(href) ")"; font-size:9pt; }
}
