/*
Theme Name: Nama Blank
Description: Custom theme styling
*/

/* 🌐 المتغيرات */
:root {
  --text: #ffffff;
  --muted: #bbb;
  --bg: #0a0f1a;
  --accent: #00c853;
  --container: 1100px;
}

/* 🌐 القواعد العامة */
html { 
    scroll-behavior: smooth; 
    /* 🛑 مهم: منع التمرير الأفقي على عنصر HTML نفسه */
    overflow-x: hidden;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    
    /* 🛑 الحل النهائي لـ Safari: قسر العرض على عرض الشاشة */
    overflow-x: hidden;
    width: 100vw;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { 
    max-width: var(--container); 
    padding: 0 18px; 
    margin: 0 auto; 
}

/* ========================= */
/*        الهيدر            */
/* ========================= */
.site-header {
  background: var(--bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #2a2f3d;
}
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-branding { justify-self: start; }
.main-nav { justify-self: center; }
.header-cta { justify-self: end; }

.site-branding .site-logo {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* القائمة */
.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.main-nav .menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.main-nav .menu li a:hover {
  color: var(--accent);
}
.main-nav .menu li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav .menu li a:hover::after {
  width: 100%;
}

/* زر واتساب */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.btn-whatsapp:hover { background: #1ebe5d; }
/* ===== 1. زر الدخول في الهيدر (Header Login Button) ===== */
/* تنسيق حاوية أزرار CTA (لتجميع زر الدخول والواتساب) */
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px; /* المسافة بين زر الدخول وزر الواتساب */
    justify-self: end; /* لضمان بقائه في نهاية الـ Grid */
}
.header-login-btn {
    /* المظهر الأساسي */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px; /* زيادة حجم الزر قليلاً */
    border-radius: 999px;
    font-size: 15px; /* خط أوضح */
    font-weight: 700;
    text-decoration: none;
    
    /* 🛑 الألوان والتدرج (لون أزرق جذاب) */
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: 1px solid #3b82f6;
    
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); /* ظل عميق */
}

/* حالة التحويم (Hover State) */
.header-login-btn:hover {
    background: transparent;
    color: #3b82f6;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transform: translateY(-1px);
}

/* الأيقونة */
.header-login-btn i {
    font-size: 16px;
}

/* ========================= */
/*      FOOTER (Modern)      */
/* ========================= */
.site-footer {
  background: #080c14;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #cbd5e1;
  padding: 60px 0 25px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

/* العمود الأول */
.footer-about .footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 10px;
}
.footer-about .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.footer-about .desc {
  color: #9ca3af;
  line-height: 1.8;
  margin: 10px 0 18px;
  max-width: 260px;
}

/* السوشال */
.footer-about .socials {
  display: flex;
  gap: 14px;
}
.footer-about .socials a {
  color: #9ca3af;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-about .socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* روابط الفوتر */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-links li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
.footer-links li a:hover {
  color: var(--accent);
}

/* تواصل معنا */
.footer-contact h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-contact li {
  color: #a3aab5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.footer-contact li i {
  color: var(--accent);
  width: 16px;
}

/* الأسفل */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  padding-top: 18px;
  text-align: center;
}
.footer-copy {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}
.footer-copy span,
.footer-copy strong {
  color: var(--accent);
  font-weight: 700;
}

/* متدرج جميل أسفل الفوتر */
.site-footer::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.saudi-tech-seal {
    /* وضعه تحت اللوجو مباشرة */
    margin-top: 15px; 
    margin-bottom: 5px; 
}

.saudi-tech-logo {
    /* 🛑 تحديد الحجم المناسب للختم */
    width: 120px; 
    height: auto;
    
    /* جعل الشعار يبدو متناسقاً مع الخلفية الداكنة */
    opacity: 0.8; 
    transition: opacity 0.3s ease;
    
    /* إضافة حدود بسيطة */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 4px;
}

.saudi-tech-logo:hover {
    opacity: 1;
}

/* تعديل المسافة بين اللوجو والنص لدمج الشعار الجديد */
.footer-about .footer-logo img {
  height: 42px;
  width: auto;
  margin-bottom: 5px; /* تقليل المسافة ليقترب من الشعار الجديد */
}


/* =======================
   Problem Page Styling
======================= */
.problem-page{
  position:relative;
  overflow:hidden;
}

/* وهج/Glow خفيف */
.problem-page .glow{
  position:absolute; inset:auto;
  filter: blur(120px); opacity:.35; pointer-events:none;
}
.problem-page .glow-1{ width:380px;height:380px; background:radial-gradient(closest-side,#00c853,transparent); top:-80px; right:-80px; }
.problem-page .glow-2{ width:420px;height:420px; background:radial-gradient(closest-side,#2563eb,transparent); bottom:-120px; left:-120px; }

/* HERO */
.problem-hero{ text-align:center; padding:84px 0 48px; }
.problem-hero .eyebrow{ color:#9ca3af; font-size:14px; margin:0 0 8px; }
.problem-hero .title{ margin:0 0 12px; font-size:clamp(28px,4vw,46px); line-height:1.15; }
.problem-hero .accent{ color:var(--accent); }
.problem-hero .sub{ max-width:780px; margin:0 auto 20px; color:#cbd5e1; }
.problem-hero .badges{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:14px; }
.problem-hero .badges span{
  font-size:13px; color:#cbd5e1; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08); padding:8px 12px; border-radius:999px; backdrop-filter:blur(6px)
}

/* CTA buttons (تعتمد نفس روح أزرارك) */
.btn{ display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; font-weight:600; text-decoration:none; }
.btn-primary{ background:linear-gradient(135deg,#2563eb,#00c853); color:#fff; }
.btn-primary:hover{ filter:brightness(1.07); }
.btn-ghost{ color:#cbd5e1; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.btn-ghost:hover{ background:rgba(255,255,255,.07); }
.cta-row{ display:flex; gap:12px; justify-content:center; margin-top:14px; }

/* Cards */
.problem-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; padding:28px 0 10px; }
.problem-cards .card{
  position:relative; padding:18px 18px 16px; border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.1); color:#e5e7eb; backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.problem-cards .card:hover{ transform:translateY(-4px); border-color:rgba(0,200,83,.35); box-shadow:0 10px 30px rgba(0,0,0,.25); }
.problem-cards .card .icon{
  width:40px;height:40px;border-radius:10px; display:flex;align-items:center;justify-content:center;
  color:#00c853; background:rgba(0,200,83,.12); margin-bottom:10px;
}
.problem-cards .card h3{ margin:0 0 8px; font-size:18px; color:#fff; }
.problem-cards .card p{ margin:0 0 10px; color:#cbd5e1; }
.problem-cards .card ul{ margin:0; padding:0 0 0 18px; color:#cbd5e1; }

/* Solutions */
.solutions{ padding:42px 0 26px; text-align:center; }
.solutions h2{ margin:0 0 8px; font-size:clamp(22px,3vw,30px); }
.solutions .sub{ color:#cbd5e1; max-width:760px; margin:0 auto 18px; }
.solution-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.solution{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:14px;
  padding:14px; text-align:start; color:#e5e7eb;
}
.solution h4{ margin:0 0 6px; color:#fff; }

/* Contact */
.contact{ padding:38px 0 64px; text-align:center; }
.contact h2{ margin:0 0 10px; }

/* Responsive */
@media (max-width:1024px){
  .problem-cards{ grid-template-columns:1fr 1fr; }
  .solution-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .problem-hero{ padding:72px 0 34px; }
  .problem-cards{ grid-template-columns:1fr; }
  .solution-grid{ grid-template-columns:1fr; }
  .cta-row{ flex-direction:column; }
}

/* ================================================= */
/* 🛑 FIX: استجابة الهيدر على الجوال (أقل من 768px) */
/* يجب إضافة هذا الكود في نهاية ملف style.css */
/* ================================================= */
@media (max-width: 768px) {
    /* 1. جعل الحاوية الداخلية للهيدر (inner) مرنة */
    .site-header .inner {
        /* 🛑 استبدال Grid بتخطيط Flexbox */
        display: flex; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 15px 15px; /* حشوة ثابتة */
        width: 100%;
    }
    
    /* 2. إخفاء القائمة الرئيسية لمنع تجاوز العرض */
    .main-nav {
        display: none; 
    }

    /* 3. ترتيب عناصر الشعار وزر الواتساب */
    .site-branding {
        flex-grow: 1; /* السماح للشعار بأن يأخذ المساحة المتبقية */
        max-width: 70%; 
    }
    
    .header-cta {
        flex-shrink: 0;
    }

    /* 4. تعديل زر الواتساب ليصبح أصغر */
    .btn-whatsapp {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* 🛑 تعديل الـ container الرئيسي لتكون حشوته مناسبة (للتأكد) */
    .container {
        padding: 0 15px; 
    }
}