:root {
  --primary: #1a5632;
  --primary-light: #2d8a4e;
  --primary-dark: #0e3a20;
  --accent: #c8a951;
  --accent-light: #e0c97a;
  --text: #1a1a1a;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 3px;
  margin-left: 12px;
}

.lang-toggle button {
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
}

.lang-toggle button.active {
  background: var(--primary);
  color: var(--white);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-top {
  background: var(--primary-dark);
  padding: 6px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.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); }

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ── Sectors ── */
.sectors {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: var(--transition);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sector-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.sector-card:nth-child(2) .sector-card-bg {
  background: linear-gradient(135deg, #2d5a8a, #4a90d9);
}

.sector-card:nth-child(3) .sector-card-bg {
  background: linear-gradient(135deg, #8a6a2d, #c8a951);
}

.sector-card-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.sector-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ── Stats ── */
.stats {
  padding: 60px 0;
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── About ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

/* ── Services page ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid transparent;
}

html[dir="rtl"] .service-card {
  border-left: none;
  border-right: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .service-card:hover { border-right-color: var(--primary); }
html[dir="ltr"] .service-card:hover { border-left-color: var(--primary); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list li {
  color: var(--text-light);
  padding: 3px 0;
  font-size: 0.9rem;
  position: relative;
}

html[dir="rtl"] .service-list li { padding-right: 16px; }
html[dir="ltr"] .service-list li { padding-left: 16px; }

html[dir="rtl"] .service-list li::before { right: 0; content: '✓'; }
html[dir="ltr"] .service-list li::before { left: 0; content: '✓'; }

.service-list li::before {
  position: absolute;
  color: var(--primary);
  font-weight: 700;
}

/* ── About page ── */
.about-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

html[dir="rtl"] .timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bg-alt);
}

html[dir="ltr"] .timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bg-alt);
}

.timeline-item {
  display: flex;
  margin-bottom: 32px;
  position: relative;
}

html[dir="rtl"] .timeline-item {
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
}

html[dir="rtl"] .timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

html[dir="ltr"] .timeline-item {
  justify-content: flex-start;
  padding-left: calc(50% + 30px);
}

html[dir="ltr"] .timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

html[dir="rtl"] .timeline-dot { right: calc(50% - 6px); }
html[dir="ltr"] .timeline-dot { left: calc(50% - 6px); }

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: auto;
}

html[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot { left: calc(50% - 6px); }
html[dir="ltr"] .timeline-item:nth-child(even) .timeline-dot { right: calc(50% - 6px); }

.timeline-content {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,50,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.badge-premium { background: var(--accent); color: var(--primary-dark); }
.badge-new { background: #2d8a4e; }
.badge-special { background: #5a3d8a; }
.badge-custom { background: #8a6a2d; }

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.product-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.product-specs li {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 3px 0;
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── Newsletter ── */
.newsletter {
  padding: 60px 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.newsletter h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top { display: none; }

  .nav-links {
    position: fixed;
    top: 70px;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
  }

  html[dir="rtl"] .nav-links { right: 0; left: 0; }
  html[dir="ltr"] .nav-links { left: 0; right: 0; }

  .nav-links.active { transform: translateY(0); }
  .hamburger { display: flex; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .sectors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }

  /* Mobile timeline */
  html[dir="rtl"] .timeline::before { right: 12px; transform: none; }
  html[dir="rtl"] .timeline-item,
  html[dir="rtl"] .timeline-item:nth-child(even) {
    padding-right: 40px;
    padding-left: 0;
    justify-content: flex-end;
  }
  html[dir="rtl"] .timeline-dot,
  html[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot { right: 6px; left: auto; }

  html[dir="ltr"] .timeline::before { left: 12px; transform: none; }
  html[dir="ltr"] .timeline-item,
  html[dir="ltr"] .timeline-item:nth-child(even) {
    padding-left: 40px;
    padding-right: 0;
    justify-content: flex-start;
  }
  html[dir="ltr"] .timeline-dot,
  html[dir="ltr"] .timeline-item:nth-child(even) .timeline-dot { left: 6px; right: auto; }
}
