/* SuDawa company site — shared styles (RTL/LTR via logical properties) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a6b3c;
  --green-light: #2d9e5f;
  --green-pale: #e8f5ee;
  --gold: #c9a227;
  --text: #1c1c1e;
  --muted: #5f6368;
  --border: #e3e6e4;
  --bg: #f7faf8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(26, 107, 60, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.nav .brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.16); }
.nav-links a.lang {
  border: 1.5px solid rgba(255,255,255,0.55);
  font-weight: 700;
  font-size: 14px;
}
.nav-links a.login {
  background: #fff;
  color: var(--green);
  font-weight: 700;
}
.nav-links a.login:hover { background: rgba(255,255,255,0.88); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-block: 72px 84px; }
.hero h1 { font-size: clamp(30px, 5.5vw, 52px); font-weight: 800; line-height: 1.3; }
.hero p.lead {
  font-size: clamp(16px, 2.4vw, 21px);
  opacity: 0.92;
  max-width: 640px;
  margin: 14px auto 34px;
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-light { background: #fff; color: var(--green); }
.btn-outline { border: 2px solid rgba(255,255,255,0.75); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 700;
  font-size: 13.5px;
}
.badge-gold { background: #faf3dc; color: #8a6d0b; }

/* ---------- Sections ---------- */
section { padding-block: 64px; }
section.alt { background: #fff; border-block: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 10px auto 44px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.card.product { display: flex; flex-direction: column; }
.card.product .btn { margin-top: auto; align-self: flex-start; }
.card.product ul { margin: 14px 0 22px; padding-inline-start: 20px; color: var(--muted); font-size: 15px; }
.card.product li { margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 58px; margin-bottom: 26px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Prose (legal/support pages) ---------- */
.prose { max-width: 780px; margin-inline: auto; padding-block: 48px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 34px 0 10px; color: var(--green); }
.prose p, .prose li { color: #333; font-size: 15.5px; }
.prose ul { padding-inline-start: 22px; margin-block: 8px; }
.prose .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #10231a;
  color: rgba(255,255,255,0.8);
  padding-block: 44px;
  font-size: 14.5px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}
.site-footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding-block: 52px 58px; }
.page-hero h1 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; }
.page-hero p { max-width: 640px; margin: 12px auto 0; opacity: 0.92; font-size: 17px; }
.page-hero .badge { background: rgba(255,255,255,0.18); color: #fff; margin-bottom: 14px; }

@media (max-width: 560px) {
  .nav { justify-content: center; }
  .hero { padding-block: 52px 60px; }
}
