:root {
  --primary: #2BB34F;
  --primary-dark: #145224;
  --background: #FFFFFF;
  --surface: #F5F5F4;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

h1, h2, h3, p { margin: 0; }
a { color: var(--primary-dark); }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 15px; color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--primary-dark); }
#lang {
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
#lang:hover { border-color: var(--primary); }
@media (max-width: 640px) { .nav .link { display: none; } }

/* Hero: full-width photo, cropped from the top like the app banner */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 46vw, 580px);
  color: #fff;
  background: #3a342c url("images/hero.jpg") center top / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.38) 60%, rgba(0, 0, 0, 0.5));
}
.hero .wrap { position: relative; padding-top: 48px; padding-bottom: 48px; }
.hero h1 {
  max-width: 14em;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.2;
  font-weight: 700;
}
.hero .sub {
  margin-top: 16px;
  max-width: 38em;
  font-size: clamp(17px, 2vw, 20px);
}
.hero .cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.hero .cta:hover { background: var(--primary-dark); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
}
h2 {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.25;
  color: var(--primary-dark);
}
.section-sub { margin-top: 10px; color: var(--text-secondary); max-width: 40em; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  padding: 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #DCFCE7;
  color: var(--primary-dark);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--text-secondary); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Service */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.service img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.service p { margin-top: 12px; color: var(--text-secondary); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5 3 8l1.1-1.1 2.4 2.4 5.4-5.4L13 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5 3 8l1.1-1.1 2.4 2.4 5.4-5.4L13 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  background: var(--primary);
}
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 24px; } }

/* Coverage */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips span {
  padding: 6px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
}

/* Professionals + contact */
.band { text-align: center; }
.band p { margin: 10px auto 0; max-width: 36em; color: var(--text-secondary); }
.band .mail { display: inline-block; margin-top: 18px; font-size: 18px; font-weight: 600; }

/* Footer */
footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); color: var(--primary-dark); }
.legal .updated { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.legal h2 { margin-top: 36px; font-size: 20px; color: var(--text); }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-top: 6px; }
html[lang="ar"] .en { display: none; }
html:not([lang="ar"]) .ar { display: none; }
