/*
Theme Name:   Eco Defender Ahsa Home
Theme URI:    https://insectsahsa.com/
Description:  قالب ابن لـ Astra — يخصّص الصفحة الرئيسية فقط لموقع شركة مكافحة حشرات بالاحساء (إيكو ديفيندر). كل الأنماط معزولة داخل .ed ولا تمسّ أي صفحة أخرى.
Author:       إيكو ديفيندر
Template:     astra
Version:      1.0.0
Text Domain:  insectsahsa-child
*/

/* ==========================================================================
   الهوية: «الخلية السداسية» — خلفية فاتحة، أشرطة بعرض الشاشة، بلا بطاقات مكررة
   العنصر المميز الوحيد: حواف مشطوفة سداسية الطابع للصور واللوحات + نقاط سداسية
   اللوحة: زيتوني داكن + أخضر الحقل + ليموني تحذيري
   ملاحظة تباين: كل لون نص داخل صندوق ملوّن محسوب مقابل خلفية الصندوق نفسه
   ========================================================================== */

.ed{
  display:block;                     /* main كمعلم رئيسي — Lighthouse: main landmark */
  --ed-deep:#1B2416; --ed-olive:#2C4620; --ed-leaf:#4F6D18; --ed-leaf2:#52701A;
  --ed-sprout:#CBD95A; --ed-water:#1C6166; --ed-clay:#8F400F;
  --ed-pale:#F4F7EC; --ed-pale2:#E6EDD7; --ed-paper:#fff;
  --ed-txt:#1D2418; --ed-mut:#596351; --ed-line:#D9E2C8;
  /* الحافة المشطوفة — طابع الخلية السداسية */
  --ed-cut:polygon(34px 0,100% 0,100% calc(100% - 34px),calc(100% - 34px) 100%,0 100%,0 34px);
  --ed-cut-s:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);
  --ed-hex:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  font-family:'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif;
  color:var(--ed-txt); line-height:1.95; direction:rtl; text-align:right;
  background:var(--ed-paper);
}
.ed *{box-sizing:border-box;}
.ed h1,.ed h2,.ed h3{font-family:'Almarai','IBM Plex Sans Arabic',sans-serif;color:var(--ed-deep);line-height:1.5;font-weight:800;}
.ed p{font-size:1.07rem;margin:0 0 17px;}
.ed a{text-decoration:none;transition:.22s;}
.ed img{max-width:100%;height:auto;display:block;}
.ed ul,.ed ol{list-style:none;margin:0;padding:0;}
.ed strong{color:var(--ed-deep);font-weight:700;}
.ed a:focus-visible,.ed button:focus-visible,.ed summary:focus-visible{outline:3px solid var(--ed-leaf);outline-offset:3px;}
.ed-w{max-width:1160px;margin:0 auto;padding:0 22px;}
@media (prefers-reduced-motion:reduce){.ed *{animation:none!important;transition:none!important;}}

/* ===== الأشرطة: أقسام بعرض الشاشة بخلفيات متبادلة ===== */
.ed-s{padding:56px 0;}
.ed-s.pale{background:var(--ed-pale);}
.ed-s.pale2{background:var(--ed-pale2);}
.ed-s.deep{background:var(--ed-deep);color:#D5DFC6;}
.ed-s.deep h2,.ed-s.deep h3{color:#fff;}
.ed-s.deep strong{color:#fff;}
@media(max-width:820px){.ed-s{padding:38px 0;}}

/* رأس القسم: عنوان يمين + تمهيد يسار */
.ed-head{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:26px;align-items:end;margin-bottom:26px;}
@media(max-width:820px){.ed-head{grid-template-columns:1fr;gap:10px;margin-bottom:20px;}}
.ed h2{font-size:1.72rem;margin:0;}
.ed-head p{margin:0;color:var(--ed-mut);font-size:1.03rem;}
.ed-s.deep .ed-head p{color:#AEBC9C;}
.ed-rule{height:3px;background:var(--ed-leaf);width:64px;margin-bottom:14px;border-radius:2px;}
.ed-s.deep .ed-rule{background:var(--ed-sprout);}
.ed h3{font-size:1.22rem;margin:28px 0 12px;}
.ed-s>.ed-w>p,.ed-s>.ed-w>.ed-txt p{max-width:74ch;}

/* ===== روابط النص داخل المقال (لون + تسطير معاً) ===== */
.ed-s p a,.ed-s li a,.ed-s figcaption a,.ed-s .ed-a a,.ed-s td a{
  color:var(--ed-olive);font-weight:700;text-decoration:underline;
  text-decoration-color:rgba(44,70,32,.5);text-decoration-thickness:2px;text-underline-offset:4px;}
.ed-s p a:hover,.ed-s li a:hover,.ed-s .ed-a a:hover,.ed-s td a:hover{
  color:var(--ed-leaf);text-decoration-color:currentColor;background:rgba(79,109,24,.1);}
.ed-s.deep p a,.ed-s.deep li a{color:#CBE49A;text-decoration-color:rgba(203,228,154,.55);}
.ed-s.deep p a:hover,.ed-s.deep li a:hover{color:#E3F3C4;background:rgba(255,255,255,.08);}
.ed-chips a,.ed-rel a,.ed-btn,.ed-wa,.ed-ghost{text-decoration:none;}

/* ===== الهيرو: فاتح، مقسوم، صورة بحافة مشطوفة ===== */
.ed-hero{background:linear-gradient(180deg,#F4F7EC 0%,#E6EDD7 100%);padding:52px 0 60px;position:relative;overflow:hidden;}
.ed-hero::before{content:'';position:absolute;top:-160px;left:-140px;width:460px;height:460px;
  background:radial-gradient(circle,rgba(79,109,24,.14),transparent 68%);border-radius:50%;}
.ed-hero .ed-w{position:relative;z-index:2;}
.ed-split{display:grid;grid-template-columns:1.02fr .98fr;gap:40px;align-items:center;}
@media(max-width:900px){.ed-split{grid-template-columns:1fr;gap:26px;}}
.ed-tag{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--ed-line);
  color:var(--ed-olive);padding:7px 17px;border-radius:40px;font-size:.9rem;font-weight:700;margin-bottom:18px;}
.ed-hexdot{width:13px;height:13px;background:var(--ed-leaf);clip-path:var(--ed-hex);flex:none;}
.ed-hero h1{font-size:2.5rem;font-weight:800;margin:0 0 14px;max-width:19ch;letter-spacing:-.4px;}
.ed-hero h1 b{display:block;font-weight:400;font-size:.56em;color:var(--ed-mut);margin-top:10px;line-height:1.6;}
.ed-lead{font-size:1.11rem;color:#3B4733;max-width:56ch;margin-bottom:26px;}
.ed-cta{display:flex;gap:11px;flex-wrap:wrap;}
.ed-btn,.ed-wa,.ed-ghost{display:inline-block;padding:14px 30px;border-radius:8px;font-family:'Almarai',sans-serif;font-weight:800;font-size:1.02rem;}
.ed-btn{background:var(--ed-olive);color:#fff;}
.ed-btn:hover{background:var(--ed-deep);color:#fff;}
.ed-wa{background:#0B7A43;color:#fff;}
.ed-wa:hover{background:#095c33;color:#fff;}
.ed-ghost{background:transparent;border:1.5px solid var(--ed-olive);color:var(--ed-olive);padding:12.5px 28px;}
.ed-ghost:hover{background:var(--ed-olive);color:#fff;}
.ed-s.deep .ed-btn{background:var(--ed-sprout);color:#17200F;}
.ed-s.deep .ed-ghost{border-color:rgba(255,255,255,.45);color:#fff;}
.ed-s.deep .ed-ghost:hover{background:#fff;color:var(--ed-deep);}
.ed-shot{position:relative;}
.ed-shot img{width:100%;aspect-ratio:4/4.4;object-fit:cover;clip-path:var(--ed-cut);}
.ed-badge{position:absolute;bottom:18px;right:-10px;background:#fff;border:1px solid var(--ed-line);
  border-radius:12px;padding:13px 18px;box-shadow:0 10px 30px rgba(27,36,22,.14);}
.ed-badge b{display:block;font-family:'Almarai',sans-serif;color:var(--ed-olive);font-size:1.15rem;line-height:1.3;}
.ed-badge span{font-size:.84rem;color:var(--ed-mut);}
@media(max-width:900px){.ed-hero h1{font-size:1.72rem;max-width:none;}
  .ed-shot img{aspect-ratio:4/3;clip-path:var(--ed-cut-s);}
  .ed-btn,.ed-wa,.ed-ghost{width:100%;text-align:center;}
  .ed-badge{right:auto;left:14px;bottom:14px;}}

/* شريط الإحصائيات */
.ed-stats{background:var(--ed-deep);}
.ed-stats .ed-w{display:grid;grid-template-columns:repeat(4,1fr);}
.ed-stats div{padding:22px 14px;text-align:center;border-left:1px solid rgba(255,255,255,.1);}
.ed-stats div:last-child{border-left:0;}
.ed-stats b{display:block;font-family:'Almarai',sans-serif;color:#fff;font-size:1.6rem;line-height:1.3;}
.ed-stats span{color:#AEBC9C;font-size:.86rem;}
@media(max-width:720px){.ed-stats .ed-w{grid-template-columns:repeat(2,1fr);padding:0;}
  .ed-stats div:nth-child(2){border-left:0;} .ed-stats b{font-size:1.3rem;}}

/* ===== الخدمات: قائمة مفصولة بخطوط بدل بطاقات ===== */
.ed-svc{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--ed-line);}
.ed-s.deep .ed-svc,.ed-s.deep .ed-svc>div{border-color:rgba(255,255,255,.14);}
.ed-svc>div{padding:24px 22px 24px 0;border-bottom:1px solid var(--ed-line);border-left:1px solid var(--ed-line);}
.ed-svc>div:nth-child(3n){border-left:0;}
.ed-svc h3{margin:0 0 7px;font-size:1.08rem;}
.ed-svc p{font-size:.97rem;color:var(--ed-mut);margin:0;}
.ed-s.deep .ed-svc p{color:#AEBC9C;}
.ed-num{font-family:'Almarai',sans-serif;font-size:.82rem;color:var(--ed-olive);font-weight:800;display:block;margin-bottom:5px;}
.ed-s.deep .ed-num{color:var(--ed-sprout);}
@media(max-width:860px){.ed-svc{grid-template-columns:repeat(2,1fr);}
  .ed-svc>div:nth-child(3n){border-left:1px solid var(--ed-line);}
  .ed-svc>div:nth-child(2n){border-left:0;}}
@media(max-width:560px){.ed-svc{grid-template-columns:1fr;}
  .ed-svc>div,.ed-svc>div:nth-child(3n){border-left:0;padding-left:0;}}

/* ===== الاقتباس ===== */
.ed-q{margin:30px 0;padding:26px 30px 26px 24px;background:var(--ed-paper);
  border-right:4px solid var(--ed-leaf);clip-path:var(--ed-cut-s);}
.ed-s.pale .ed-q,.ed-s.pale2 .ed-q{background:#fff;}
.ed-s.deep .ed-q{background:rgba(255,255,255,.06);border-right-color:var(--ed-sprout);}
.ed-q p{margin:0;font-family:'Almarai',sans-serif;font-size:1.13rem;font-weight:700;color:var(--ed-olive);line-height:1.85;}
.ed-s.deep .ed-q p{color:#E3F3C4;}

/* ===== التنبيهات ===== */
.ed-note,.ed-warn{border-radius:10px;padding:18px 20px;margin:22px 0;display:flex;gap:13px;align-items:flex-start;}
.ed-note{background:#EDF4E4;border:1px solid #C9DCB4;}
.ed-warn{background:#FBF1DF;border:1px solid #EAD2A8;}
.ed-note p:last-child,.ed-warn p:last-child{margin:0;}
.ed-note p a,.ed-warn p a{color:var(--ed-olive);}
.ed-ic{font-size:1.35rem;flex:none;line-height:1.6;}
.ed-s.deep .ed-note{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2);color:#D5DFC6;}
.ed-s.deep .ed-note p a{color:#CBE49A;}

/* ===== القوائم ===== */
.ed-tick li{position:relative;padding:9px 30px 9px 0;border-bottom:1px solid var(--ed-line);}
.ed-tick li:last-child{border:0;}
.ed-tick li::before{content:'';position:absolute;right:2px;top:20px;width:14px;height:14px;
  background:var(--ed-leaf);clip-path:var(--ed-hex);}
.ed-s.deep .ed-tick li{border-color:rgba(255,255,255,.14);}
.ed-s.deep .ed-tick li::before{background:var(--ed-sprout);}
.ed-steps{counter-reset:st;margin-top:8px;}
.ed-steps li{counter-increment:st;position:relative;padding:14px 62px 14px 0;border-bottom:1px solid var(--ed-line);}
.ed-steps li:last-child{border:0;}
.ed-steps li::before{content:counter(st);position:absolute;right:0;top:14px;width:44px;height:44px;
  background:var(--ed-leaf);color:#fff;clip-path:var(--ed-hex);
  display:grid;place-items:center;font-family:'Almarai',sans-serif;font-weight:800;}
.ed-s.deep .ed-steps li{border-color:rgba(255,255,255,.14);}
.ed-s.deep .ed-steps li::before{background:var(--ed-sprout);color:#17200F;}

/* ===== الجداول ===== */
.ed-t{width:100%;border-collapse:collapse;margin:20px 0;font-size:1rem;background:#fff;}
.ed-t thead th{background:var(--ed-olive);color:#fff;font-family:'Almarai',sans-serif;font-weight:700;
  padding:14px 12px;text-align:right;font-size:.98rem;}
.ed-t td{padding:13px 12px;border-bottom:1px solid var(--ed-line);vertical-align:top;color:var(--ed-txt);}
.ed-t tbody tr:nth-child(even) td{background:#F8FBF3;}
.ed-t .p{color:var(--ed-olive);font-weight:800;white-space:nowrap;}
.ed-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}
@media(max-width:640px){.ed-t{font-size:.92rem;} .ed-t td,.ed-t thead th{padding:10px 8px;}}

/* ===== المقارنة ===== */
.ed-cmp{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0;}
@media(max-width:700px){.ed-cmp{grid-template-columns:1fr;}}
.ed-cmp>div{border-radius:10px;padding:24px;background:#fff;border:1px solid;}
.ed-yes{border-color:#BEDFC6;}
.ed-no{border-color:#EBC9C4;}
.ed-cmp h3{margin:0 0 12px;font-size:1.06rem;}
.ed-yes h3{color:#1E6B3C;} .ed-no h3{color:#A33427;}
.ed-cmp li{padding:8px 26px 8px 0;position:relative;font-size:.99rem;}
.ed-yes li::before{content:'✓';position:absolute;right:0;color:#1E6B3C;font-weight:800;}
.ed-no li::before{content:'✕';position:absolute;right:0;color:#A33427;font-weight:800;}

/* ===== الصور ===== */
.ed-fig{margin:0;}
.ed-fig img{width:100%;clip-path:var(--ed-cut);}
.ed-fig figcaption{margin-top:12px;font-size:.93rem;color:var(--ed-mut);}
.ed-s.deep .ed-fig figcaption{color:#AEBC9C;}
.ed-two{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;}
.ed-two.rev>.ed-fig{order:-1;}
@media(max-width:820px){.ed-two{grid-template-columns:1fr;} .ed-fig img{clip-path:var(--ed-cut-s);}}

/* ===== الحاسبة ===== */
.ed-calc{background:#fff;border:1px solid var(--ed-line);border-radius:14px;padding:32px;}
.ed-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:20px 0;}
@media(max-width:700px){.ed-fields{grid-template-columns:1fr;} .ed-calc{padding:22px 16px;}}
.ed-f label{display:block;font-family:'Almarai',sans-serif;font-weight:700;margin-bottom:7px;font-size:.95rem;color:var(--ed-deep);}
.ed-f select,.ed-f input{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--ed-line);
  background:#fff;color:var(--ed-txt);font-family:inherit;font-size:1rem;}
.ed-f select:focus,.ed-f input:focus{outline:none;border-color:var(--ed-leaf);}
.ed-calc button{background:var(--ed-olive);color:#fff;border:0;border-radius:8px;padding:14px 34px;
  font-family:'Almarai',sans-serif;font-weight:800;font-size:1.03rem;cursor:pointer;width:100%;}
.ed-calc button:hover{background:var(--ed-deep);}
.ed-out{margin-top:20px;background:var(--ed-pale);border:1px solid var(--ed-line);border-radius:10px;padding:20px;display:none;}
.ed-out.on{display:block;}
.ed-out .big{font-family:'Almarai',sans-serif;font-size:1.95rem;font-weight:800;color:var(--ed-olive);display:block;line-height:1.35;}
.ed-out small{color:var(--ed-mut);display:block;margin-top:6px;font-size:.9rem;}
.ed-out .row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--ed-line);font-size:.97rem;}
.ed-out .row:last-of-type{border:0;}

/* ===== المناطق والروابط ===== */
.ed-chips{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 0;}
.ed-chips a,.ed-chips span{display:inline-block;padding:8px 16px;border-radius:30px;background:#fff;
  border:1px solid var(--ed-line);color:var(--ed-olive);font-size:.94rem;font-weight:600;}
.ed-chips a:hover{background:var(--ed-olive);color:#fff;border-color:var(--ed-olive);}
.ed-chips span{color:var(--ed-mut);}
.ed-rel{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:8px;}
@media(max-width:860px){.ed-rel{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.ed-rel{grid-template-columns:1fr;}}
.ed-rel a{display:block;padding:14px 16px;background:#fff;border:1px solid var(--ed-line);border-radius:9px;
  color:var(--ed-txt);font-weight:600;font-size:.96rem;}
.ed-rel a:hover{border-color:var(--ed-leaf);color:var(--ed-olive);}

/* ===== الأسئلة ===== */
.ed-faq details{border-bottom:1px solid var(--ed-line);}
.ed-faq details[open]{background:#fff;}
.ed-faq summary{cursor:pointer;padding:18px 0;font-family:'Almarai',sans-serif;font-weight:700;
  color:var(--ed-deep);list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:1.03rem;}
.ed-faq summary::-webkit-details-marker{display:none;}
.ed-faq summary::after{content:'+';color:var(--ed-leaf);font-size:1.5rem;flex:none;line-height:1;}
.ed-faq details[open] summary::after{content:'−';}
.ed-faq .ed-a{padding:0 0 20px;max-width:80ch;}
.ed-faq .ed-a p:last-child{margin:0;}

/* ===== القاموس ===== */
.ed-dl{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border-top:1px solid var(--ed-line);}
@media(max-width:700px){.ed-dl{grid-template-columns:1fr;}}
.ed-dl>div{padding:16px 20px 16px 0;border-bottom:1px solid var(--ed-line);border-left:1px solid var(--ed-line);}
.ed-dl>div:nth-child(2n){border-left:0;}
@media(max-width:700px){.ed-dl>div{border-left:0;padding-left:0;}}
.ed-dl b{display:block;font-family:'Almarai',sans-serif;color:var(--ed-olive);margin-bottom:3px;}
.ed-dl span{font-size:.96rem;color:var(--ed-mut);}

/* ===== النداء الأخير ===== */
.ed-final{background:var(--ed-olive);color:#fff;clip-path:var(--ed-cut);padding:52px 44px;text-align:center;}
.ed-final h2{color:#fff;}
.ed-final p{color:#D5DFC6;max-width:60ch;margin:0 auto 26px;}
.ed-final .ed-cta{justify-content:center;}
.ed-final .ed-btn{background:var(--ed-sprout);color:#17200F;}
.ed-final .ed-btn:hover{background:#fff;color:var(--ed-deep);}
@media(max-width:700px){.ed-final{padding:34px 20px;clip-path:var(--ed-cut-s);}}

/* ===== المصادر ===== */
.ed-src{font-size:.95rem;color:var(--ed-mut);}
.ed-disc{background:var(--ed-pale);border:1px solid var(--ed-line);border-radius:9px;padding:16px 19px;
  font-size:.92rem;color:var(--ed-mut);margin-top:18px;}

/* ===== شريط الجوال ===== */
.ed-fixed{background:none;line-height:normal;}
.ed-bar{display:none;}
@media(max-width:820px){
  .ed-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;bottom:0;right:0;left:0;z-index:9999;
    background:rgba(27,36,22,.97);padding:9px;}
  .ed-bar a{padding:12px;border-radius:8px;text-align:center;font-family:'Almarai',sans-serif;font-weight:800;color:#fff;font-size:.97rem;}
  .ed-bar .c{background:var(--ed-sprout);color:#17200F;}
  .ed-bar .w{background:#0B7A43;}
  .ed-end{padding-bottom:76px;}
}

/* أزرار عائمة — معطّلة افتراضياً. لتفعيلها: غيّر display:none إلى flex */
.ed-float{display:none;position:fixed;bottom:24px;left:24px;z-index:9998;flex-direction:column;gap:12px;}
.ed-float a{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:1.4rem;box-shadow:0 8px 20px rgba(27,36,22,.3);}
.ed-float .t{background:var(--ed-sprout);color:#17200F;}
.ed-float .w{background:#0B7A43;color:#fff;}
