/* ===== الألوان والخطوط (غيرها من هنا فقط) ===== */
:root{
  --navy:#0B1F3F;      /* الأزرق الداكن */
  --navy-2:#12306A;
  --gold:#F2B134;      /* الذهبي */
  --bg:#F3F5F9;        /* خلفية رمادية فاتحة */
  --text:#4A5568;
  --white:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Cairo',sans-serif;background:var(--bg);color:var(--text);line-height:1.8}
a{text-decoration:none;color:inherit}
.container{width:min(1200px,92%);margin-inline:auto}

/* ===== الأزرار ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;
  padding:0 24px;height:50px;border-radius:10px;cursor:pointer;border:2px solid transparent}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{filter:brightness(1.07)}
.btn-outline{border-color:var(--white);color:var(--white)}
.btn-outline:hover{background:var(--white);color:var(--navy)}

/* ===== الشريط العلوي + الواجهة ===== */
.hero-top {
  background: linear-gradient(270deg, rgba(8, 22, 46, 0.88) 0%, rgba(11, 31, 63, 0.65) 55%, rgba(18, 48, 106, 0.35) 100%), url('../images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  padding-bottom: 110px;
}

.navbar{display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:16px 0;border-bottom:1px solid rgba(255,255,255,.12);flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:12px}
.logo-icon{width:52px;height:52px;border-radius:12px;background:var(--gold);display:flex;align-items:center;justify-content:center;flex:none}
.logo-name{display:block;font-weight:700;font-size:13px;line-height:1.3;max-width:230px}
.logo-en{display:block;color:var(--gold);font-weight:900;font-size:14px;letter-spacing:4px;direction:ltr;text-align:right}
.nav{display:flex;gap:30px}
.nav a{color:#DCE6F7;font-weight:600;padding-bottom:4px;border-bottom:2px solid transparent}
.nav a:hover,.nav a.active{color:var(--gold);border-bottom-color:var(--gold)}
.menu-btn{display:none;background:none;border:0;color:var(--white);font-size:30px;cursor:pointer}

.hero{padding-top:56px;max-width:1200px}
.hero h1{font-size:clamp(28px,4.5vw,46px);line-height:1.3;font-weight:900;max-width:780px}
.hero h1 span{color:var(--gold)}
.hero p{font-size:18px;color:#DCE6F7;max-width:640px;margin:18px 0 28px}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}

/* ===== الإحصائيات (تطلع فوق الواجهة) ===== */
.stats{display:flex;background:var(--white);border-radius:16px;border-top:4px solid var(--gold);
  box-shadow:0 18px 40px rgba(11,31,63,.2);margin-top:-52px;position:relative;padding:18px 0}
.stats div{flex:1;text-align:center;border-inline-end:1px solid #D5DBE6}
.stats div:last-child{border:0}
.stats strong{display:block;font-size:34px;font-weight:900;color:var(--navy);line-height:1.2}

/* ===== الخدمات ===== */
.services{display:flex;gap:40px;padding:70px 0;align-items:flex-start}
.services-title{width:260px;flex:none}
.services-title::before{content:"";display:block;width:56px;height:5px;background:var(--gold);border-radius:3px;margin-bottom:14px}
.services-title h2{font-size:34px;font-weight:900;color:var(--navy);line-height:1.3;margin-bottom:10px}
.cards{flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{background:var(--white);border-radius:14px;padding:20px;display:flex;gap:14px;box-shadow:0 6px 18px rgba(11,31,63,.08)}
.icon{width:52px;height:52px;border-radius:12px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.card h3{color:var(--navy);font-size:18px;margin-bottom:4px}
.card p{font-size:14px}

/* ===== الفوتر وزر واتساب ===== */
.wa-float{position:fixed;bottom:20px;left:20px;background:#25D366;color:#fff;font-weight:700;
  padding:12px 20px;border-radius:30px;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:50}

/* ===== الموبايل والتابلت ===== */
@media (max-width:900px){
  .menu-btn{display:block}
  .nav{display:none;width:100%;flex-direction:column;gap:10px}
  .nav.open{display:flex}
  .nav-cta{display:none}
  .services{flex-direction:column}
  .services-title{width:100%}
  .cards{grid-template-columns:1fr}
  .stats strong{font-size:26px}
}

/* ===== شريط الإحصائيات: 4 عناصر ===== */
.stats{flex-wrap:wrap}
.stats div{min-width:140px}

/* ===== شركاء النجاح ===== */
.clients{padding:0 0 70px;text-align:center}
.clients h2{font-size:30px;font-weight:900;color:var(--navy);line-height:1.4}
.clients > p{margin-bottom:24px}
.client-list{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.client-list li{background:var(--white);border-radius:12px;border-bottom:3px solid var(--gold);
  padding:18px 12px;font-weight:700;color:var(--navy);box-shadow:0 6px 18px rgba(11,31,63,.08)}

/* ===== الفوتر (3 أعمدة) ===== */
.footer{background:var(--navy);color:#DCE6F7;font-size:14px;padding-top:44px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:36px;padding-bottom:30px}
.footer h3{color:var(--gold);font-size:18px;margin-bottom:12px}
.footer ul{list-style:none}
.footer li{margin-bottom:8px}
.footer a:hover{color:var(--gold)}
.footer .iso{margin-top:12px;font-weight:700;color:var(--white);direction:ltr;text-align:right}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:16px 0;text-align:center}

@media (max-width:900px){
  .client-list{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  .stats div{flex:1 1 45%;padding:8px 0}
}

/* ===== الصفحات الداخلية: عنوان الصفحة ===== */
.hero-top.inner{padding-bottom:0}
.page-title{padding:30px 0 34px}
.crumbs{font-size:13px;color:#DCE6F7}
.crumbs a:hover{color:var(--gold)}
.page-title h1{font-size:38px;font-weight:900;line-height:1.3}
.page-title p:last-child{color:#DCE6F7;font-size:16px}

/* ===== صفحة من نحن ===== */
.about-intro{display:flex;gap:40px;align-items:center;padding:56px 0 30px}
.about-text{flex:1}
.bar{width:56px;height:5px;background:var(--gold);border-radius:3px;margin-bottom:14px}
.about-text h2{font-size:30px;font-weight:900;color:var(--navy);line-height:1.4;margin-bottom:12px}
.about-text p{font-size:16px;margin-bottom:10px}
.checks{list-style:none;margin-top:14px}
.checks li{font-weight:600;color:var(--navy);padding-inline-start:28px;position:relative;margin-bottom:8px}
.checks li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--gold);font-weight:900}
.about-numbers{width:380px;flex:none;display:flex;justify-content:space-around;align-items:center;min-height:240px;
  border-radius:16px;background:linear-gradient(135deg,var(--navy),var(--navy-2));border-bottom:5px solid var(--gold);color:var(--white);text-align:center}
.about-numbers strong{display:block;font-size:46px;font-weight:900;color:var(--gold);line-height:1.2}
.vmv{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px 0 50px}
.iso-section{text-align:center;padding-bottom:50px}
.iso-section h2{font-size:30px;font-weight:900;color:var(--navy)}
.iso-section > p{margin-bottom:22px}
.iso-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.iso-card{background:var(--white);border-radius:14px;border-top:4px solid var(--gold);padding:22px 12px;box-shadow:0 6px 18px rgba(11,31,63,.08)}
.iso-card strong{display:block;font-size:20px;color:var(--navy)}
.cta-band{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  background:linear-gradient(100deg,var(--navy),var(--navy-2));color:var(--white);border-radius:16px;padding:30px 36px;margin-bottom:60px}
.cta-band h2{font-size:26px;font-weight:900}
.cta-band p{color:#DCE6F7}

@media (max-width:900px){
  .about-intro{flex-direction:column}
  .about-numbers{width:100%}
  .vmv,.iso-grid{grid-template-columns:1fr}
}

/* ===== الأنيميشن (opacity و transform فقط، عشان الأداء يفضل سريع) ===== */
@keyframes pageIn{from{opacity:0}to{opacity:1}}
body{animation:pageIn .5s ease both}

.reveal{opacity:0;transform:translateY(24px);
  transition:opacity .6s ease,transform .6s ease}
.reveal.show{opacity:1;transform:none}

.card,.client-list li,.iso-card{transition:opacity .6s ease,transform .3s ease,box-shadow .3s ease}
.card:hover,.client-list li:hover,.iso-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(11,31,63,.14)}

/* لمن يفضّل تقليل الحركة في جهازه */
@media (prefers-reduced-motion:reduce){
  body{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .card,.client-list li,.iso-card{transition:none}
}
/* ===== تحسين الواجهة على الموبايل ===== */
@media (max-width:900px){
  /* طبقة أغمق عشان الكلام يبان فوق الصورة */
  .hero-top{
    background-image:linear-gradient(180deg,rgba(8,22,46,.94) 0%,rgba(11,31,63,.84) 100%),url('../images/hero.jpg');
    background-position:center;
    padding-bottom:84px;
  }
  .hero{padding-top:34px}
  .hero h1{font-size:28px}
  .hero p{font-size:16px;margin:14px 0 22px}
  .hero-btns .btn{width:100%}
  .logo-name{font-size:12px;max-width:190px}
  .page-title h1{font-size:30px}
  .wa-float{padding:10px 16px;bottom:14px;left:14px}
}

/* ===== صفحة خدماتنا ===== */
.svc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:56px 0 40px}
.svc-card{background:var(--white);border-radius:14px;padding:24px;display:flex;gap:16px;
  box-shadow:0 6px 18px rgba(11,31,63,.08);border-top:4px solid var(--gold)}
.svc-card:last-child{grid-column:1 / -1}
.svc-body h3{color:var(--navy);font-size:20px;margin-bottom:6px;line-height:1.5}
.svc-body p{font-size:15px;margin-bottom:10px}
.svc-body ul{list-style:none;margin-bottom:12px}
.svc-body li{position:relative;padding-inline-start:24px;margin-bottom:6px;font-size:14px;color:var(--navy);font-weight:600}
.svc-body li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--gold);font-weight:900}
.svc-link{display:inline-block;color:var(--navy);font-weight:700;font-size:14px;border-bottom:2px solid var(--gold)}
.svc-link:hover{color:#8a6100}

.method{text-align:center;padding-bottom:50px}
.method h2{font-size:30px;font-weight:900;color:var(--navy)}
.method > p{margin-bottom:24px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{background:var(--white);border-radius:14px;padding:22px 16px;box-shadow:0 6px 18px rgba(11,31,63,.08)}
.step .num{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;
  background:var(--navy);color:var(--gold);font-weight:900;font-size:20px;margin-bottom:10px}
.step h3{color:var(--navy);font-size:16px;margin-bottom:4px}
.step p{font-size:14px}

@media (max-width:900px){
  .svc-grid{grid-template-columns:1fr;padding-top:36px}
  .svc-card{flex-direction:column}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr}
}

/* ===== صفحة سابقة أعمالنا ===== */
.filters{display:flex;flex-wrap:wrap;gap:10px;padding:40px 0 22px}
.filter-btn{font-family:inherit;font-size:14px;font-weight:700;color:var(--navy);background:var(--white);
  border:2px solid transparent;border-radius:10px;padding:8px 18px;cursor:pointer;box-shadow:0 2px 8px rgba(11,31,63,.08)}
.filter-btn:hover{border-color:var(--gold)}
.filter-btn.active{background:var(--gold);border-color:var(--gold)}

.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-bottom:50px}
.project-card{background:var(--white);border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(11,31,63,.08);display:flex;flex-direction:column}
.project-card.is-hidden{display:none}
.p-thumb{position:relative;height:190px;background:linear-gradient(135deg,var(--navy),var(--navy-2))}
.p-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.p-tag{position:absolute;top:12px;inset-inline-start:12px;background:var(--gold);color:var(--navy);
  font-size:12px;font-weight:700;padding:2px 12px;border-radius:12px}
.p-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.p-body h3{color:var(--navy);font-size:17px;line-height:1.5}
.p-meta{list-style:none;font-size:14px}
.p-meta li{margin-bottom:4px}
.p-meta b{color:var(--navy)}
.p-chip{align-self:flex-start;margin-top:auto;background:var(--bg);color:var(--navy);font-weight:700;font-size:13px;
  padding:3px 12px;border-radius:8px;border:1px solid #D5DBE6}

.certs{text-align:center;padding-bottom:50px}
.certs h2{font-size:28px;font-weight:900;color:var(--navy);line-height:1.5}
.certs > p{margin-bottom:20px}
.cert-list{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.cert-badge{background:var(--navy);color:var(--white);font-weight:700;font-size:14px;padding:8px 20px;border-radius:30px;border:1px solid var(--gold)}

@media (max-width:900px){
  .project-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .project-grid{grid-template-columns:1fr}
}

/* ===== صفحة اتصل بنا ===== */
.contact-section{padding:56px 0 40px}
.contact-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:36px;align-items:start}
.contact-info h2,.quote-box h2{font-size:28px;font-weight:900;color:var(--navy);line-height:1.3;margin-bottom:8px}
.contact-lead,.quote-box > p{font-size:15px;margin-bottom:24px}

.info-cards{display:flex;flex-direction:column;gap:14px}
.info-card{background:var(--white);border-radius:14px;padding:18px;display:flex;gap:14px;align-items:flex-start;
  box-shadow:0 6px 18px rgba(11,31,63,.08);transition:transform .25s ease,box-shadow .25s ease}
.info-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(11,31,63,.12)}
.info-card h3{font-size:16px;font-weight:700;color:var(--navy);margin-bottom:4px}
.info-card p{font-size:14px}

.phone-list{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:4px}
.phone-list li{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--navy);font-size:15px}
.phone-list a:hover{color:var(--gold)}
.wa-badge{background:#E7F8EE;color:#128C7E;font-size:12px;font-weight:700;padding:2px 10px;border-radius:20px}
.wa-badge:hover{background:#25D366;color:#fff !important}
.email-link{font-weight:700;color:var(--navy);word-break:break-all}
.email-link:hover{color:var(--gold)}

/* ===== نموذج طلب عرض السعر ===== */
.quote-box{background:var(--white);border-radius:16px;border-top:5px solid var(--gold);
  padding:32px;box-shadow:0 12px 30px rgba(11,31,63,.1)}
.quote-form{display:flex;flex-direction:column;gap:16px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:14px;font-weight:700;color:var(--navy)}
.form-group .req{color:#D93025}
.form-group input,.form-group select,.form-group textarea{
  width:100%;font-family:'Cairo',sans-serif;font-size:14px;color:var(--navy);
  background:var(--bg);border:1.5px solid #D5DBE6;border-radius:10px;padding:11px 14px;
  transition:border-color .2s ease,background-color .2s ease}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  outline:none;border-color:var(--navy);background:var(--white)}

.form-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:6px}
.btn-full{width:100%}
.btn-navy-outline{border:2px solid var(--navy);color:var(--navy);background:transparent}
.btn-navy-outline:hover{background:var(--navy);color:var(--white)}

/* ===== قسم الخريطة ===== */
.map-section{padding:20px 0 64px}
.map-header{text-align:center;margin-bottom:20px}
.map-header h2{font-size:28px;font-weight:900;color:var(--navy)}
.map-frame{border-radius:16px;overflow:hidden;border-bottom:4px solid var(--gold);
  box-shadow:0 10px 26px rgba(11,31,63,.12);background:var(--white)}
.map-frame iframe{display:block}

@media (max-width:900px){
  .contact-grid{grid-template-columns:1fr}
  .form-row,.form-actions{grid-template-columns:1fr}
  .quote-box{padding:22px}
}