/*
Theme Name: تفتيش عاملات الرياض
Theme URI: https://example.com
Author: Khaled
Author URI: https://example.com
Description: ثيم ووردبريس عصري وجريء مخصص لموقع خدمة تفتيش حقائب وأمتعة العاملات المنزلية قبل السفر بالرياض. يتضمن قسم رئيسي (Hero)، عرض الخدمات، لماذا تختارنا، خطوات العمل، آراء العملاء، أسئلة شائعة، وزر واتساب عائم.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tafteesh-ameelat
Tags: rtl-language-support, custom-menu, custom-logo, one-column, translation-ready
*/

/* ==========================================================================
   0. المتغيرات الأساسية (الألوان والخطوط)
   ========================================================================== */
:root{
  --navy: #0b1f3a;
  --navy-light: #142c52;
  --gold: #f2b705;
  --gold-dark: #d49b00;
  --teal: #0f7a6f;
  --bg: #f7f8fb;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5b6675;
  --border: #e6e9ef;
  --shadow: 0 10px 30px rgba(11,31,58,.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Cairo', 'Tajawal', system-ui, sans-serif;
}

/* ==========================================================================
   1. إعادة ضبط أساسية
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
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;
}
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); }
.container{ width:100%; max-width:1160px; margin:0 auto; padding:0 20px; }
.section{ padding:80px 0; }
.section-head{ text-align:center; max-width:680px; margin:0 auto 50px; }
.section-head .kicker{
  display:inline-block; background:rgba(242,183,5,.12); 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; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:14px 30px; border-radius:999px;
  font-weight:700; font-size:16px; border:2px solid transparent; cursor:pointer; transition:.25s;
}
.btn-primary{ background:var(--gold); color:var(--navy); }
.btn-primary:hover{ background:var(--gold-dark); transform:translateY(-2px); }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.5); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-dark{ background:var(--navy); color:var(--white); }
.btn-dark:hover{ background:var(--navy-light); transform:translateY(-2px); }

/* ==========================================================================
   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; }
.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:.2s; }
.main-navigation a:hover{ color:var(--gold-dark); }
.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; }
.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; }
.mobile-nav-cta, .mobile-nav-phone{ display:none; }

@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:.3s;
    padding:90px 24px 24px; z-index:99;
    display:flex; flex-direction:column;
  }
  .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; justify-content:center; 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%;
}
.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,.14);
  border:1px solid rgba(242,183,5,.4); color:var(--gold); 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); }
.hero p.lead{ color:rgba(255,255,255,.82); 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,.85); font-weight:700; font-size:14px; }
.hero-trust .item b{ color:var(--gold); 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; 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); font-size:26px; }
.hero-visual .stat span{ color:rgba(255,255,255,.75); font-size:14px; }

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

/* ==========================================================================
   4. شريط الخدمات السريع (Marquee style bar)
   ========================================================================== */
.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,.85); font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px; }
.trust-bar span::before{ content:'✔'; color:var(--gold); }

/* ==========================================================================
   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:.25s; box-shadow:var(--shadow);
}
.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 h3{ font-size:19px; margin-bottom:10px; }
.service-card p{ font-size:15px; margin-bottom:16px; }
.service-card a{ font-weight:800; color:var(--gold-dark); font-size:14px; }

@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-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);
  display:flex; align-items:center; justify-content:center; font-weight:800;
}
.why-list h4{ 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;
}
@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; counter-reset:step; }
.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-card h4{ 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, .testimonials .section-head p{ color:var(--white); }
.testimonials .section-head p{ color:rgba(255,255,255,.7); }
.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); }
.t-card .stars{ color:var(--gold); margin-bottom:14px; letter-spacing:2px; }
.t-card p{ color:rgba(255,255,255,.85); font-size:15px; }
.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; }
.t-card .who b{ display:block; color:var(--white); font-size:14px; }
.t-card .who span{ color:rgba(255,255,255,.6); 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-q{
  display:flex; justify-content:space-between; align-items:center; padding:18px 22px; cursor:pointer;
  font-weight:800; font-size:16px; color:var(--navy);
}
.faq-q .plus{ font-size:20px; color:var(--gold-dark); transition:.25s; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:.25s; padding:0 22px; }
.faq-item.open .faq-a{ max-height:400px; padding-bottom:20px; }
.faq-a p{ margin:0; font-size:14px; }

/* ==========================================================================
   10. قسم الاتصال / CTA
   ========================================================================== */
.cta{
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 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,.75); font-size:16px; max-width:560px; margin:0 auto 26px; }
.cta .btn-dark{ box-shadow:0 10px 24px rgba(11,31,58,.25); }

/* ==========================================================================
   11. الفوتر
   ========================================================================== */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.75); 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-col h4{ color:var(--white); font-size:16px; margin-bottom:18px; }
.footer-col p, .footer-col a{ font-size:14px; color:rgba(255,255,255,.65); }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a:hover{ color:var(--gold); }
.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); }
.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,.5); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   12. أزرار التواصل العائمة (واتساب + اتصال) - أسفل يسار الشاشة
   ========================================================================== */
.float-buttons{
  position:fixed; bottom:26px; left: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); }
}
@media (max-width:600px){
  .float-buttons{ bottom:16px; left:16px; gap:10px; }
  .float-btn{ width:50px; height:50px; font-size:22px; }
}

/* ==========================================================================
   14. قسم "من نحن" (بصورة)
   ========================================================================== */
.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); }
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } .about-media{ order:-1; } }

/* ==========================================================================
   15. قسم "من أعمالنا" (معرض صور)
   ========================================================================== */
.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; }
.gallery-grid .g-item.placeholder{ color:rgba(255,255,255,.6); font-size:14px; text-align:center; padding:20px; }
.g-icon-item{
  flex-direction:column; gap:14px; background:linear-gradient(135deg, var(--navy-light), var(--navy));
}
.g-icon-item .g-icon{ font-size:44px; }
.g-icon-item .g-label{ color:rgba(255,255,255,.9); 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); font-size:30px; }
.icon-panel-stat span{ color:rgba(255,255,255,.8); font-size:14px; }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .gallery-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   13. صفحات عامة (page.php / single.php)
   ========================================================================== */
.page-hero{ background:var(--navy); color:var(--white); padding:70px 0; text-align:center; }
.page-hero h1{ color:var(--white); margin-bottom:0; }
.content-area{ padding:70px 0; }
.content-area .entry-content{ max-width:820px; margin:0 auto; background:var(--white); padding:40px; border-radius:var(--radius); box-shadow:var(--shadow); }
.content-area .entry-content h2{ margin-top:1.2em; }
.content-area .entry-content img{ border-radius:var(--radius-sm); margin:20px 0; }

/* Widgets / sidebar */
.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; }

/* Comments defaults */
.comment-list{ margin:0; padding:0; }
.comment-list, .comment-list ul{ list-style:none; }
