/*
Theme Name: أول نسخة - قالب أمان المطور
Version: 6.7
Description: نسخة ثابتة وسريعة للموبايل.
*/
:root{--g:#247b18;--gd:#176311;--gold:#d9a627;--pale:#f3f7ef;--ink:#1e211d}
html{scroll-behavior:smooth;overflow-x:hidden}
*{box-sizing:border-box}
body{margin:0;width:100%;overflow-x:hidden;font-family:Tahoma,Arial,sans-serif;direction:rtl;color:var(--ink);background:#fff;line-height:1.65}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
.container{width:92%;max-width:1100px;margin:0 auto}

/* الهيدر */
.site-header{background:var(--g);color:#fff;border-bottom:2px solid var(--gold)}
.head{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.logo{font-size:29px;font-weight:900;color:#fff;white-space:nowrap}
.top-shortcuts{display:flex;align-items:center;gap:8px}
.top-shortcuts a{display:block;padding:8px 13px;border:1px solid rgba(255,255,255,.35);border-radius:9px;background:rgba(255,255,255,.1);font-size:13px;font-weight:800;color:#fff}
.menu-btn{font-size:25px;color:#fff}

/* الواجهة */
.hero{min-height:570px;background-position:center;background-size:cover;position:relative;color:#fff;display:flex;align-items:center;text-align:center;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.43)}
.hero-in{position:relative;z-index:2;width:100%;max-width:690px}
.discount{display:inline-block;background:var(--g);padding:11px 30px;border-radius:35px;font-size:19px;font-weight:900}
.hero h1{font-size:40px;line-height:1.35;margin:30px 0 12px;text-shadow:0 2px 5px #000}
.hero p{font-size:20px;font-weight:700;text-shadow:0 2px 4px #000}
.line{width:90px;height:4px;background:var(--g);margin:20px auto}
.cta{display:inline-block;background:var(--g);padding:13px 28px;border-radius:11px;font-size:17px;font-weight:900}

/* مقدمة */
.intro{padding:55px 4%;text-align:center;background:linear-gradient(110deg,var(--pale),#fff)}
.intro h2{font-size:34px;margin:0}
.intro p{font-size:18px;max-width:760px;margin:22px auto 0}

/* الخدمات: صور صغيرة ثابتة */
.services{padding:18px 0 50px}
.service-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.simple-service{min-width:0;background:#fff;border:1px solid #edf0ea;border-radius:11px;overflow:hidden;box-shadow:0 5px 15px rgba(0,0,0,.06);text-align:center;color:var(--g)}
.simple-service img{width:100%;height:135px;object-fit:cover}
.simple-service strong{display:block;padding:10px 6px;font-size:16px;line-height:1.35}
.simple-service:active{transform:scale(.99)}

/* الضمان */
.guarantee{text-align:center;padding:48px 4%}
.guarantee h2{color:var(--g);font-size:27px}
.guarantee p{font-size:17px;max-width:800px;margin:auto}
.photo-band{min-height:360px;background-position:center;background-size:cover;position:relative;display:flex;align-items:center;color:#fff;text-align:center;overflow:hidden}
.photo-band:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.55)}
.photo-band .inner{position:relative;z-index:2;max-width:760px}
.photo-band .pill{background:var(--g);border-radius:30px;padding:9px 24px;display:inline-block;font-size:17px}
.photo-band h2{font-size:28px;line-height:1.5}

/* خطوات العمل */
.steps{padding:60px 0;background:linear-gradient(115deg,var(--pale),#fff);scroll-margin-top:85px}
.step{max-width:850px;margin:0 auto 34px;position:relative;padding-right:100px;min-height:90px}
.step .n{position:absolute;right:0;top:-15px;font-size:88px;line-height:1;color:#dfe3dd}
.step h3{font-size:22px;margin:0 0 6px}
.step p{font-size:16px;margin:0;color:#555}

/* التقييمات والمقالات */
.reviews,.articles{padding:60px 0;scroll-margin-top:85px}
.articles{background:var(--pale)}
.section-title{text-align:center;color:var(--g);font-size:31px;margin:0 0 30px}
.review-grid,.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.review,.post{min-width:0;background:#fff;border:1px solid #e5eadf;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.review{padding:19px}
.review strong{color:var(--g)}
.post img,.placeholder{width:100%;height:165px;object-fit:cover}
.placeholder{background:linear-gradient(135deg,var(--g),var(--gd));display:grid;place-items:center;color:#fff;font-size:40px}
.post-body{padding:16px}.post h3{font-size:17px;margin:0 0 7px}.post p{font-size:14px;color:#666}.post a{color:var(--g);font-weight:900}

/* الفوتر والشريط السفلي */
.footer{background:var(--g);color:#fff;padding:28px 0 82px;text-align:center}
.footlinks{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;font-weight:700}
.designer{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.25)}
.designer a{font-weight:900;text-decoration:underline}
.copy{font-size:13px;margin-top:7px}
.fixed{position:fixed;z-index:999;bottom:0;left:0;right:0;width:100%;height:64px;background:var(--g);border-top:1px solid rgba(255,255,255,.25);display:flex}
.fixed a{flex:1;min-width:0;display:flex;gap:8px;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:800}
.fixed a:first-child{border-left:1px solid rgba(255,255,255,.25)}
.fixed b{font-size:22px}

#services,#reviews,#articles{scroll-margin-top:85px}

@media(max-width:650px){
 .container{width:94%;max-width:94%}
 .head{min-height:62px;gap:6px}
 .logo{font-size:20px}
 .top-shortcuts{gap:3px;flex:1;justify-content:flex-end}
 .top-shortcuts a{padding:6px 7px;font-size:10px;border-radius:7px}
 .menu-btn{display:none}
 .hero{min-height:470px;background-position:center}
 .hero-in{padding:18px 10px}
 .discount{font-size:15px;padding:9px 20px}
 .hero h1{font-size:27px;margin-top:24px}
 .hero p{font-size:16px;line-height:1.7}
 .cta{font-size:15px;padding:11px 22px}
 .intro{padding:42px 5%}
 .intro h2{font-size:27px}.intro p{font-size:16px}
 .services{padding:14px 0 38px}
 .service-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .simple-service{border-radius:8px}
 .simple-service img{height:78px}
 .simple-service strong{font-size:11px;padding:7px 3px;min-height:45px;display:flex;align-items:center;justify-content:center}
 .guarantee{padding:38px 5%}.guarantee h2{font-size:24px}.guarantee p{font-size:15px}
 .photo-band{min-height:300px}.photo-band h2{font-size:21px}.photo-band .pill{font-size:14px}
 .steps{padding:45px 0}.step{padding-right:72px;margin-bottom:27px;min-height:76px}.step .n{font-size:66px}.step h3{font-size:19px}.step p{font-size:14px}
 .reviews,.articles{padding:45px 0}.section-title{font-size:26px}
 .review-grid,.post-grid{grid-template-columns:1fr}
 .post img,.placeholder{height:150px}
 .fixed{height:60px}
 .footer{padding-bottom:76px}
}
@media(max-width:360px){
 .logo{font-size:18px}
 .top-shortcuts a{font-size:9px;padding:5px 4px}
 .service-cards{gap:5px}
 .simple-service img{height:70px}
 .simple-service strong{font-size:10px}
}

/* v6.6 FINAL CARD SIZE — يمنع الصور الكبيرة حتى مع أي CSS قديم */
.services{padding:24px 0 45px!important}
.service-cards{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:14px!important;
 width:100%!important;
 max-width:900px!important;
 margin:0 auto!important;
}
.simple-service{
 display:block!important;
 width:100%!important;
 min-width:0!important;
 max-width:100%!important;
 overflow:hidden!important;
 border-radius:10px!important;
 background:#fff!important;
 border:1px solid #e7ece4!important;
}
.simple-service img{
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 height:120px!important;
 min-height:0!important;
 object-fit:cover!important;
 margin:0!important;
 padding:0!important;
}
.simple-service strong{
 display:block!important;
 text-align:center!important;
 padding:8px 5px!important;
 margin:0!important;
 font-size:15px!important;
 line-height:1.35!important;
}
@media(max-width:650px){
 body{overflow-x:hidden!important;width:100%!important;max-width:100%!important}
 .service-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
 .simple-service img{height:68px!important}
 .simple-service strong{font-size:10px!important;padding:6px 2px!important;min-height:40px!important}
}

/* v6.7 stability lock */
html,body{overflow-x:hidden!important;max-width:100%!important}
body{overscroll-behavior-x:none}
.hero,.photo-band{background-attachment:scroll!important}
.mobile-menu{will-change:auto}
@media(max-width:650px){
 .hero,.photo-band{background-size:cover!important;background-repeat:no-repeat!important}
 .hero-in,.photo-band .inner{width:100%!important;max-width:100%!important}
}
