/* Persistent Global — black, green and white */
:root {
  --green: #1b7f45;        /* buttons, links, headings accents */
  --green-bright: #2fa05a; /* logo green */
  --green-tint: #eef7f1;   /* soft section background */
  --black: #0d1310;
  --ink: #0d1310;
  --ink-soft: #4a5650;
  --line: #dde6e0;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", "Noto Sans Arabic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Montserrat", system-ui, sans-serif; line-height: 1.9; }
img, svg { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.5; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
section { padding-block: 72px; }
.tint { background: var(--green-tint); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 36px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--green-bright); margin-top: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); direction: ltr; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { font-family: "Montserrat", sans-serif; font-weight: 600; letter-spacing: .22em; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--green); border-bottom-color: var(--green-bright); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button {
  border: 0; background: none; cursor: pointer; padding: 6px 12px;
  font: inherit; font-size: .85rem; color: var(--ink-soft);
}
.langs button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 8px; cursor: pointer; }
.menu-btn svg { display: block; width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--white); text-decoration: none;
  font: inherit; font-weight: 600; border: 2px solid var(--green);
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.sm { padding: 8px 18px; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--green); display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.emblem { max-width: 420px; margin-inline: auto; width: 100%; }
.emblem svg { width: 100%; height: auto; display: block; }

/* ---------- Notice ---------- */
.notice-wrap { padding-block: 0 24px; }
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--green-tint); border: 1px solid #cfe5d7;
  border-inline-start: 6px solid var(--green);
  border-radius: var(--radius); padding: 24px 26px;
}
.notice .icon { flex: none; width: 34px; height: 34px; color: var(--green); margin-top: 2px; }
.notice h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
[dir="rtl"] .notice h2 { letter-spacing: 0; font-size: 1.15rem; }
.notice p { margin: 0; font-size: 1.05rem; }
.notice p.sub { margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--green-bright); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 19, 16, .08); }
.card .icon { width: 44px; height: 44px; color: var(--green-bright); margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.more { color: var(--green); font-weight: 600; font-size: .9rem; }
.arrow { display: inline-block; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) {
  .cards.five { grid-template-columns: repeat(6, 1fr); }
  .cards.five .card { grid-column: span 2; }
  .cards.five .card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .cards.five { grid-template-columns: 1fr; }
  .cards.five .card, .cards.five .card:nth-child(n+4) { grid-column: auto; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--black); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 700; margin-bottom: 14px;
  font-family: "Montserrat", sans-serif;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.band { background: var(--black); color: var(--white); text-align: center; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.band p { color: #c3cdc7; margin-bottom: 26px; }
.band .btn { background: var(--green-bright); border-color: var(--green-bright); color: var(--black); }
.band .btn:hover { background: var(--white); border-color: var(--white); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--green-tint); padding-block: 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .lead { margin: 0; }

.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding-block: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.service:last-child { border-bottom: 0; }
.service .icon { width: 64px; height: 64px; padding: 12px; border-radius: 16px; background: var(--green-tint); color: var(--green); }
.service h2 { font-size: 1.5rem; }
.service > div > p { color: var(--ink-soft); max-width: 44em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.checks.no li::before { content: "✕"; color: var(--black); }

.prose { max-width: 46em; font-size: 1.08rem; }
.two { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.panel.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.panel.dark .checks li::before { color: var(--green-bright); }
.panel h3 { font-size: 1.15rem; margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: .9fr 1.1fr; align-items: start; }
.methods { display: grid; gap: 14px; }
.method {
  display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .15s;
}
.method:hover { border-color: var(--green-bright); }
.method .icon { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.method strong { display: block; }
.method span.val { color: var(--ink-soft); font-size: .95rem; direction: ltr; unicode-bidi: isolate; }
form.panel { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: inherit; background: var(--white);
  border: 1px solid #b9c6be; border-radius: 10px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.hint { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c3cdc7; padding-block: 44px 28px; font-size: .95rem; }
.band + .site-footer { border-top: 1px solid #26302b; }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.site-footer .motto { max-width: 26em; margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--white); text-decoration: none; }
.foot nav a:hover { color: var(--green-bright); }
.legal { border-top: 1px solid #26302b; margin-top: 28px; padding-top: 20px; font-size: .85rem; color: #94a19a; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(13, 19, 16, .25);
}
.wa-float:hover { background: var(--black); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  section { padding-block: 52px; }
  .hero { padding-block: 36px 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .emblem { max-width: 260px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px 22px;
  }
  .nav.open { display: flex; }
  .langs { align-self: flex-start; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .notice { flex-direction: column; gap: 10px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
