/* =========================================
   1. IMPORT FONTS & VARIABLES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;600;700;800;900&display=swap');

:root {
  /* Colors */
  --primary: #00A99D;       /* Teal */
  --primary-dark: #008B82;  /* Darker Teal */
  --secondary: #0b0f14;     /* Dark Blue/Black */
  --accent: #f0f9f8;        /* Light Teal Background */
  
  --text: #1a1a1a;          /* Near Black */
  --muted: #5a6572;         /* Grey */
  --line: #e5e7eb;          /* Border Grey */
  --white: #ffffff;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --radius: 16px;
}

/* =========================================
   2. RESET & BASE
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #fafbfc;
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =========================================
   3. TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

.h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 16px;
  background: rgba(0, 169, 157, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
}

/* =========================================
   4. LAYOUT & CONTAINERS
========================================= */
.container {
  max-width: 1200px; /* Slightly narrower for better readability */
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* =========================================
   5. BUTTONS & CHIPS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn .icon {
  width: 0; height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 4px;
  transition: transform 0.3s;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 50px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  transition: all 0.3s;
}

.chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================================
   6. HEADER / NAVBAR
========================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.logo-img { height: 40px; }

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: 0.3s;
}

.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.actions { display: flex; gap: 12px; align-items: center; }

.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; }
.hamburger span { width: 18px; height: 2px; background: var(--text); margin: 3px auto; display: block; border-radius: 2px; }

.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow-md); }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav.show { display: block; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger { display: block; }
}

/* =========================================
   7. HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--secondary);
}

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,15,20,0.5) 0%, rgba(11,15,20,0.8) 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 120px 0;
  color: white;
  max-width: 800px;
}

.hero .eyebrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  margin: 24px 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero .sub {
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.float-widget {
  position: absolute;
  right: 40px; top: 120px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 14px;
  z-index: 4;
  color: var(--text);
}

.dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero .sub { font-size: 18px; }
  .float-widget { display: none; }
}

/* =========================================
   8. CARDS & GRIDS
========================================= */
/* Quick Cards Overlap */
.quick-cards { margin-top: -80px; position: relative; z-index: 5; }

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mini-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.mini-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.mini-media { height: 180px; overflow: hidden; }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mini-card:hover .mini-media img { transform: scale(1.05); }

.mini-body { padding: 24px; }
.mini-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.mini-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.mini-foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--primary); font-weight: 600; font-size: 13px; }

/* Split Section */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.panel {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel.pad { padding: 50px; }
.panel-media { min-height: 450px; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }

/* Kickers (Feature List) */
.kicker { margin-top: 40px; display: grid; gap: 20px; }
.kitem {
  display: flex; gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: all 0.3s;
}
.kitem:hover { border-color: var(--primary); transform: translateX(5px); }
.kbadge {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.kitem h4 { margin: 0 0 5px; font-size: 16px; font-weight: 700; }
.kitem p { margin: 0; color: var(--muted); font-size: 14px; }

/* Services / Machinery / Materials Cards */
.touch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.touch-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.touch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.touch-media { height: 200px; }
.touch-media img { width: 100%; height: 100%; object-fit: cover; }
.touch-body { padding: 24px; }
.touch-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.touch-text { font-size: 15px; color: var(--muted); line-height: 1.6; }
.touch-actions { margin-top: 20px; }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

/* Stories / Companies Grid */
.stories-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.story-big, .story-small {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.3s;
}
.story-big:hover, .story-small:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }

.story-big .media { height: 300px; }
.story-small .media { height: 160px; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.story-body { padding: 30px; }
.meta { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.story-title { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin: 10px 0 15px; }
.story-text { color: var(--muted); font-size: 15px; line-height: 1.7; }

.right-col { display: grid; gap: 24px; }

/* Values Card */
.value-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.value-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}
.value-card h4 { margin-bottom: 10px; font-size: 18px; font-family: var(--font-heading); }
.value-card p { font-size: 14px; color: var(--muted); }

/* =========================================
   9. SECTIONS STYLE
========================================= */
.bg-light { background: var(--accent); }

/* Tech / CTA Section */
.tech {
  background: linear-gradient(180deg, #fafbfc 0%, #fafbfc 50%, var(--secondary) 50%, var(--secondary) 100%);
  padding: 0;
}
.tech-wrap { padding: 80px 0; }

.tech-card {
  position: relative;
  background: var(--secondary);
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.tech-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 1;
}

.tech-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.tech-title { font-size: 36px; font-weight: 800; margin-bottom: 20px; font-family: var(--font-heading); }
.tech-sub { font-size: 18px; opacity: 0.9; line-height: 1.6; font-weight: 300; }

.tech-aside {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px;
}

.tech-aside .row {
  display: flex; justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.tech-aside .row:last-child { border-bottom: none; }
.tech-aside .k { font-weight: 700; color: #fff; }
.tech-aside .v { opacity: 0.7; }

/* Page Header */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: white;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary);
}
.page-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 16px;
}

/* =========================================
   10. FOOTER
========================================= */
footer {
  background: var(--secondary);
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.bigword {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

.social { display: flex; gap: 12px; }
.soc {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}
.soc:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.fcol h4 { color: #fff; margin-bottom: 20px; font-size: 14px; font-family: var(--font-heading); letter-spacing: 1px; }
.fcol a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 12px; font-size: 14px; transition: 0.3s; }
.fcol a:hover { color: #fff; padding-left: 5px; }

.copy {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   11. RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .touch-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .tech-content { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .h2 { font-size: 28px; }
  .hero h1 { font-size: 36px; }
  .page-title { font-size: 32px; }
  
  .card-row, .touch-grid, .footer-cols { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .bigword { font-size: 32px; }
  
  .panel.pad { padding: 30px; }
  .tech-content { padding: 30px; }
  .tech-title { font-size: 24px; }
}
/* =========================================
   FIXES & ADDITIONS
========================================= */

/* 1. إصلاح لون نص الهيرو (ليكون أبيض) */
.hero h1, .hero h2 { color: #ffffff !important; }
.hero .sub { color: rgba(255,255,255,0.9) !important; }

/* 2. ستايل قسم المواد (News Grid) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-media { height: 200px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-media img { transform: scale(1.05); }

.news-body { padding: 24px; }
.news-title { 
  font-family: var(--font-heading); 
  font-size: 20px; 
  font-weight: 700; 
  margin: 10px 0; 
}
.news-text { font-size: 15px; color: var(--muted); line-height: 1.6; }

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* 3. ستايل صفحة الكونتاكت */
.contact-form { margin-top: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 600; 
  font-family: var(--font-heading);
  color: var(--secondary);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: all 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.1);
}

.contact-info { margin-top: 30px; }
.cinfo-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.cinfo-item:last-child { border-bottom: none; }
.cinfo-item strong { 
  display: block; 
  font-family: var(--font-heading);
  color: var(--secondary);
  margin-bottom: 5px; 
  font-size: 18px;
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}
/* =========================================
   ANIMATIONS (SLIDE LEFT/RIGHT) & MOBILE FIXES
========================================= */

/* 1. أنيميشن الانزلاق الجانبي */
.anim-left {
  opacity: 0;
  transform: translateX(-60px); /* يبدأ من اليسار */
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anim-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-right {
  opacity: 0;
  transform: translateX(60px); /* يبدأ من اليمين */
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anim-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* تأخير للعناصر داخل الكروت */
.anim-card:nth-child(1) { transition-delay: 0s; }
.anim-card:nth-child(2) { transition-delay: 0.1s; }
.anim-card:nth-child(3) { transition-delay: 0.2s; }
.anim-card:nth-child(4) { transition-delay: 0.3s; }

/* 2. إصلاحات شاملة للموبايل */

/* إصلاح الخطوط في الموبايل */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .h2 { font-size: 26px; line-height: 1.3; }
    .p { font-size: 15px; line-height: 1.6; }
    
    /* إصلاح الهيرو */
    .hero { min-height: auto; padding-bottom: 60px; }
    .hero-inner { padding-top: 120px; text-align: center; }
    .hero h1 { font-size: 32px; }
    .hero .sub { font-size: 16px; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    /* إصلاح السكشنات العامة */
    .section { padding: 50px 0; }
    .container { padding: 0 20px; }
    
    /* إصلاح البطاقات السريعة (Quick Cards) */
    .quick-cards { margin-top: -30px; } /* تقليل التداخل */
    .card-row { grid-template-columns: 1fr; gap: 16px; }
    .mini-body { padding: 20px; }
    
    /* إصلاح السكشن المنقسم (Split - نص وصورة) */
    .split { grid-template-columns: 1fr; gap: 30px; }
    .panel.pad { padding: 30px 25px; }
    .panel-media { min-height: 220px; order: -1; } /* الصورة تظهر أولاً */
    
    /* إصلاح جريد الخدمات والمواد والآلات */
    .touch-grid, .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .touch-media, .news-media { height: 180px; }
    
    /* إصلاح قسم الشركات */
    .stories-grid { grid-template-columns: 1fr; gap: 20px; }
    .story-body { padding: 20px; }
    .story-title { font-size: 20px; }
    
    /* إصلاح قسم الـ Tech */
    .tech-content { grid-template-columns: 1fr; padding: 30px; text-align: center; gap: 30px; }
    .tech-aside { text-align: left; }
    
    /* إصلاح الفوتر */
    .footer-cols { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-top { flex-direction: column; gap: 20px; text-align: center; }
    .social { justify-content: center; }
    
    /* إصلاح صفحة الكونتاكت */
    .contact-form, .contact-info { margin-top: 20px; }
}

/* تحسينات للأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .h2 { font-size: 22px; }
    .eyebrow { font-size: 11px; }
}
/* =========================================
   RESPONSIVE & MOBILE FIXES
========================================= */

/* 1. قائمة الهمبرغر */
@media (max-width: 980px) {
    .nav { display: none; }
    .hamburger { display: flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
    .hamburger span { width: 20px; height: 2px; background: var(--secondary); display: block; border-radius: 2px; transition: 0.3s; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 80px; left: 0; right: 0;
        background: #fff;
        padding: 20px;
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .mobile-nav.show { display: block; }
    .mobile-nav a {
        display: block;
        padding: 15px 10px;
        font-weight: 700;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
        color: var(--secondary);
    }
    .mobile-nav a:last-child { border-bottom: none; }
}

/* 2. تنسيقات الموبايل العامّة */
@media (max-width: 768px) {
    body { font-size: 15px; }
    
    /* الهيرو */
    .hero { min-height: auto; padding-bottom: 60px; }
    .hero-inner { padding: 120px 0 60px; text-align: center; }
    .hero h1 { font-size: 32px; }
    .hero .sub { font-size: 16px; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* الأقسام */
    .section { padding: 50px 0; }
    .container { padding: 0 20px; }
    .h2 { font-size: 24px; }

    /* البطاقات السريعة */
    .quick-cards { margin-top: -40px; }
    .card-row { grid-template-columns: 1fr; gap: 16px; }

    /* قسم السبلت (صورة ونص) */
    .split { grid-template-columns: 1fr; }
    .panel-media { order: -1; } /* الصورة فوق */
    .panel-media img { min-height: 200px; object-fit: cover; }
    .panel.pad { padding: 25px 20px; }

    /* قسم الخدمات (الإصلاح المطلوب) */
    .touch-grid { grid-template-columns: 1fr !important; gap: 16px; }
    
    /* قسم المواد */
    .news-grid { grid-template-columns: 1fr !important; }

    /* قسم الشركات */
    .stories-grid { grid-template-columns: 1fr; }

    /* قسم الـ Tech */
    .tech-content { grid-template-columns: 1fr; padding: 30px 20px; text-align: center; }
    .tech-aside { margin-top: 20px; text-align: left; }

    /* الفوتر (الإصلاح المطلوب) */
    footer { padding: 50px 0 30px; text-align: center; }
    .footer-top { flex-direction: column; gap: 20px; margin-bottom: 30px; }
    .footer-top .bigword { font-size: 28px; }
    .social { justify-content: center; margin-top: 15px; }
    
    .footer-cols {
        display: grid;
        grid-template-columns: 1fr; /* عمود واحد فقط */
        gap: 25px;
        text-align: center;
    }
    .fcol h4 { margin-bottom: 10px; font-size: 16px; }
    .fcol a { margin-bottom: 8px; }
    
    .copy { flex-direction: column; gap: 10px; margin-top: 40px; font-size: 12px; text-align: center; }
}