/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --safwa-green: #1f8b3a; /* main green */
  --safwa-green-dark: #16602a; /* darker hover */
  --dark-bg: #111827;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #f5f5f5;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  color: #111;
  border-bottom: 1px solid #e5e7eb; /* subtle separator (optional) */
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: bold;
  margin-left: 0;
  color: var(--safwa-green); /* Safwa in green */
}
.logo-text span {
  font-size: 11px;
  font-weight: normal;
  color: #6b7280; /* grey subtitle */
}
.logo-img {
  height: 65px;
  width: auto;
}

nav a {
  color: var(--safwa-green);
  margin-left: 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  color: var(--safwa-green-dark);
  text-decoration: underline;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark-bg), #123022);
  color: white;
  padding: 80px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.hero p {
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-box {
  background-color: rgba(15, 23, 42, 0.9);
  padding: 20px;
  border-radius: 12px;
}

.hero-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-box ul {
  list-style: disc;
  margin-left: 20px;
}
.hero-subtitle {
  margin-bottom: 20px;
  font-size: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--safwa-green);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--safwa-green-dark);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 8px;
}

/* Suppliers tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.tags span {
  background-color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}
.map-col h4 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}
.map-col p {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}
.map-col iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 16px 0;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Helpers */
.centered {
  text-align: center;
}

.note {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

.small {
  font-size: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

.project-block {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.project-block h3 {
  margin-bottom: 10px;
  font-size: 18px;
  direction: rtl;
  text-align: right;
  font-weight: 600;
}

/* Arabic list styling */
.rtl-list {
  direction: rtl;
  text-align: right;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.rtl-list li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content,
  .grid-3,
  .grid-2,
  .footer-content {
    grid-template-columns: 1fr;
    display: block;
  }
  .nav-content {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    flex-direction: column; /* image on top, text under */
    align-items: center;
    text-align: center;
  }

  .logo-img {
    height: 55px; /* keep height same */
    width: auto; /* stretch naturally */
    margin-bottom: 6px;
  }
  .logo-text {
    display: block; /* no vertical flex */
    margin: 0;
    text-align: center;
    white-space: nowrap; /* keep in one line */
    font-size: 18px;
  }
  .logo-text span {
    display: inline; /* stay on same line */
    font-size: 14px; /* a bit smaller than "Safwa" */
    margin-left: 4px; /* small space after Safwa */
  }

  .hero-content {
    display: block;
  }

  .hero-box {
    margin-top: 20px;
  }

  nav a {
    display: inline-block;
    margin: 0 6px;
    font-size: 14px;
  }

  .map-row {
    grid-template-columns: 1fr;
  }

  .map-col iframe {
    height: 200px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-block h3 {
    font-size: 17px;
  }
  nav {
    margin-top: 8px;
    white-space: nowrap; /* keep all links in one line */
    overflow-x: auto; /* allow slight scroll if too long */
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }
}
