/* ArabSoft IT & Digital Solutions — stylesheet (English + Arabic)
   Colours from the ArabSoft logo: green #91b84d, slate #515d65 */
:root {
  --green: #91b84d;
  --green-600: #7fa63d;
  --green-deep: #4f7322;      /* green for text on white */
  --green-soft: #eef4e4;
  --slate: #515d65;
  --ink: #1d272c;             /* dark sections */
  --ink-2: #263238;
  --ink-3: #141b1f;
  --text: #26323a;
  --muted: #5b6870;
  --mist: #f3f6f2;
  --line: #e2e7e2;
  --white: #ffffff;
  --r: 12px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -18px rgba(20, 30, 35, .28);
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ar-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.18; margin: 0 0 .55em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #d3dbd6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: block; color: var(--green-deep); font-weight: 700; font-size: .95rem; margin-bottom: .7rem; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .banner .eyebrow { color: var(--green); }
.center { text-align: center; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.head-center p { color: var(--muted); }
.section--dark .head-center p { color: #b9c4be; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200; background: var(--green); color: var(--ink); padding: .7rem 1rem; }
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 .98rem/1 var(--font); padding: 1rem 1.6rem; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--green-600); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--slate); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .62rem 1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.center .btn-row, .head-center .btn-row { justify-content: center; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink-3); color: #c4cdc8; font-size: .88rem; padding-top: env(safe-area-inset-top, 0px); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar a { color: #e5ebe7; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--green); }
.topbar .ic { width: 16px; height: 16px; color: var(--green); }
.topbar__contact { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar__social { display: flex; gap: .9rem; }
.topbar__social svg { width: 17px; height: 17px; color: #e5ebe7; }
@media (max-width: 640px) { .topbar__contact a.tb-mail { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 82px; }
.brand img { width: 165px; }
.nav-list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .55rem .75rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; white-space: nowrap; border-radius: 6px; }
.nav-list a:hover { color: var(--green); }
.nav-list a[aria-current="page"] { color: var(--green); }
.lang-switch a { border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: .42rem .95rem; margin-inline-start: .4rem; }
.lang-switch a:hover { border-color: var(--green); }
.lang-switch a[lang="ar"] { font-family: var(--font-ar); }
.nav-cta { margin-inline-start: .6rem; }
.nav-cta .btn { padding: .78rem 1.2rem; color: var(--ink); }
.nav-cta .btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset-inline: 0; top: 100%; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); display: none; max-height: calc(100vh - 82px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.5rem; }
  .nav-list a { padding: .95rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; font-size: 1.05rem; }
  .lang-switch a { border: 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; margin: 0; padding: .95rem .2rem; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; padding: 1rem; border-bottom: 0; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--ink-3) center / cover no-repeat; color: #dfe6e2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,27,31,.78) 0%, rgba(20,27,31,.62) 45%, rgba(20,27,31,.88) 100%); }
.hero__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin-inline: auto; padding: clamp(5rem, 11vw, 8.5rem) 1.25rem clamp(8rem, 13vw, 10.5rem); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 640px; margin-inline: auto; color: #d8e0db; }
.hero .btn-row { justify-content: center; }

.hero-cards { position: relative; z-index: 2; margin-top: -84px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hero-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .2s; }
.hero-card:hover { transform: translateY(-3px); color: var(--text); }
.hero-card .ic { width: 40px; height: 40px; color: var(--green-deep); }
.hero-card h3 { margin-bottom: .3rem; font-size: 1.12rem; }
.hero-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.hero-card--accent { background: var(--green); border-color: var(--green); }
.hero-card--accent .ic, .hero-card--accent p { color: var(--ink); }
@media (max-width: 900px) { .hero-cards { grid-template-columns: 1fr; margin-top: -60px; } }

/* ---------- Overview (image + overlay list) ---------- */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.overview__media { position: relative; padding-bottom: 3rem; padding-inline-end: 3rem; }
.overview__media img { border-radius: var(--r); width: 82%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.overview__list {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 56%; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 1.4rem 1.6rem; list-style: none; margin: 0; box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.overview__list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: .96rem; }
.overview__list li:last-child { border-bottom: 0; }
.overview__list .ic { width: 20px; height: 20px; color: var(--green); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.feature-box { border-radius: var(--r); padding: 1.4rem; background: var(--mist); }
.feature-box .ic { width: 30px; height: 30px; color: var(--green-deep); margin-bottom: .7rem; }
.feature-box h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature-box p { margin: 0; font-size: .94rem; color: var(--muted); }
.feature-box--accent { background: var(--green); }
.feature-box--accent .ic, .feature-box--accent p { color: var(--ink); }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .overview__media { padding: 0; }
  .overview__media img { width: 100%; }
  .overview__list { position: relative; width: 100%; margin-top: -2rem; inset-inline-end: auto; }
  .feature-pair { grid-template-columns: 1fr; }
}

/* ---------- Spotlight banner (dark, split) ---------- */
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: #cfd8d3; }
.spotlight__media { position: relative; min-height: 380px; }
.spotlight__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); }
.spotlight__text { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem); align-self: center; max-width: 620px; }
.spotlight h2 { color: #fff; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spotlight__media { min-height: 240px; } }

/* ---------- Facts band ---------- */
.facts { background: var(--green); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-block: 2.6rem; gap: 1rem; }
.facts strong { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.facts span { font-weight: 600; color: var(--ink); font-size: .98rem; }
@media (max-width: 700px) { .facts__grid { grid-template-columns: 1fr 1fr; row-gap: 1.8rem; } }

/* ---------- Icon card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.icard { background: var(--mist); border-radius: var(--r); padding: 2rem 1.5rem; text-align: center; border: 1px solid transparent; transition: border-color .2s, background-color .2s; display: flex; flex-direction: column; align-items: center; }
.icard:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.icard .badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green-deep); margin-bottom: 1.1rem; border: 1px solid var(--line); }
.icard .badge .ic { width: 30px; height: 30px; }
.icard h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.icard p { font-size: .94rem; color: var(--muted); margin-bottom: 1.2rem; }
.icard .btn { margin-top: auto; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Image banner CTA ---------- */
.banner { position: relative; color: #dfe6e2; overflow: hidden; }
.banner img.banner__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(20,27,31,.8); z-index: 1; }
.banner__inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto; padding: clamp(4.5rem, 9vw, 7rem) 1.25rem; }
.banner h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.banner p { color: #d3dbd6; }
.banner .btn-row { justify-content: center; }
.banner--left .banner__inner { text-align: start; margin-inline: 0; max-width: none; }
.banner--left .banner__inner > div { max-width: 600px; }
.banner--left .btn-row { justify-content: flex-start; }

/* ---------- Image cards (sectors) ---------- */
.img-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.img-card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.img-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.img-card div { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.img-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.img-card p { font-size: .93rem; color: var(--muted); }
.img-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .img-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .img-cards { grid-template-columns: 1fr; } }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-row > div { display: flex; gap: .9rem; align-items: flex-start; }
.feature-row .ic { width: 34px; height: 34px; color: var(--green-deep); margin-top: .1rem; }
.feature-row h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.feature-row p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .feature-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--ink-2); border-radius: var(--r); padding: 1.8rem 1.5rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: .95rem; margin: 0; color: #b9c4be; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Help / contact strip ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.help__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.help__media img { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.help__media .tile { border-radius: var(--r); background: var(--green); padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); }
.help__media .tile strong { font-size: 3rem; line-height: 1; font-weight: 800; }
.help__media .tile span { font-weight: 600; }
.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.cbox { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r); text-decoration: none; background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
.cbox:hover { border-color: var(--ink); color: var(--ink); }
.cbox .ic { width: 26px; height: 26px; }
.cbox span { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.cbox strong { font-size: 1.02rem; }
.cbox--accent { background: var(--green); border-color: var(--green); }
.cbox--accent span { color: var(--ink); }
@media (max-width: 900px) { .help { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-boxes { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--ink-3); overflow: hidden; }
.page-hero img.page-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,31,.92), rgba(20,27,31,.7)); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 6.5rem); max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
.page-hero p { color: #d3dbd6; font-size: 1.12rem; }
.breadcrumb { font-size: .92rem; color: #aab5af; margin-bottom: 1rem; }
.breadcrumb a { color: #fff; }
[dir="rtl"] .page-hero::before { background: linear-gradient(270deg, rgba(20,27,31,.92), rgba(20,27,31,.7)); }

/* ---------- Service groups & cards (inner pages) ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.jump-nav a { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.jump-nav a:hover { border-color: var(--green-deep); color: var(--green-deep); }
.group + .group { margin-top: clamp(4rem, 8vw, 6rem); }
.group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; flex-wrap: wrap; margin-bottom: 2rem; }
.group__head > div { max-width: 640px; }
.group__head h2 { margin-bottom: .3rem; }
.group__head p { margin: 0; color: var(--muted); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-grid--n4 { grid-template-columns: repeat(4, 1fr); }
.svc-grid--n2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid--n1 { grid-template-columns: minmax(0, 520px); }
@media (max-width: 1100px) { .svc-grid, .svc-grid--n4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid, .svc-grid--n4, .svc-grid--n2, .svc-grid--n1 { grid-template-columns: 1fr; } }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; transition: box-shadow .2s; }
.svc-card:hover { box-shadow: var(--shadow); }
.svc-card__media { position: relative; }
.svc-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-card .badge { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.svc-card__media .badge { position: absolute; bottom: -27px; inset-inline-start: 1.4rem; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.svc-card .badge .ic { width: 28px; height: 28px; }
.svc-card__body { padding: 2.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.svc-card--noimg .svc-card__body { padding-top: 1.6rem; }
.svc-card--noimg .badge { margin-bottom: 1.1rem; }
.svc-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.svc-card p { color: var(--muted); font-size: .96rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .45rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .22rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f7322' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Text blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.statement { background: #fff; border-radius: var(--r); padding: 2rem; border-top: 4px solid var(--green); height: 100%; }
.statement .ic { width: 36px; height: 36px; color: var(--green-deep); margin-bottom: .8rem; }
.rounded img, img.rounded { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .8rem; padding-inline: 1.3rem; }
.faq summary { cursor: pointer; list-style: none; padding-block: 1.15rem; padding-inline-end: 2.2rem; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: .85rem .95rem; border: 1.5px solid #c9d1cb; border-radius: 8px; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px var(--green-soft); }
.field .hint { font-size: .86rem; color: var(--muted); margin: .3rem 0 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.4rem; font-weight: 600; }
.notice--error { background: #fdecea; color: #8a1f11; }
.contact-side { display: grid; gap: 1rem; }
.contact-side .cbox { background: #fff; }
.contact-side .cbox--accent { background: var(--green); }
.side-note { background: var(--ink); color: #cfd8d3; border-radius: var(--r); padding: 1.6rem; }
.side-note h3 { color: #fff; font-size: 1.1rem; }
.side-note p { margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #b9c4be; font-size: .96rem; }
.footer-cta { background: var(--ink-2); }
.footer-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.6rem; }
.site-footer .footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; max-width: 560px; }
.footer-cta .btn-row { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.site-footer img { width: 180px; margin-bottom: 1.2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #e5ebe7; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--green); color: var(--ink); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp + mobile action bar ---------- */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1ebe5b; color: #fff; }
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 14px rgba(20,30,35,.1); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 48px; border-radius: 8px; font-weight: 700; font-size: .94rem; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); }
  .action-bar a svg { width: 20px; height: 20px; }
  .action-bar .ab-wa { color: #128c4b; }
  .action-bar .ab-quote { background: var(--green); border-color: var(--green); color: var(--ink); }
}

.center-page { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.center-page p { max-width: 620px; margin-inline: auto; }
.center-page .btn-row { justify-content: center; }

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .facts strong, html[lang="ar"] .help__media .tile strong { font-family: var(--font-ar-head); letter-spacing: 0; line-height: 1.5; }
html[lang="ar"] .btn { font-family: var(--font-ar); }
html[lang="ar"] h1 { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.1rem); }
html[lang="ar"] .facts strong { font-family: var(--font); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ======================= v4: mega menu ======================= */
.mega-toggle { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; color: #fff; font: 600 .96rem/1 var(--font); padding: .55rem .75rem; border-radius: 6px; }
html[lang="ar"] .mega-toggle { font-family: var(--font-ar); }
.mega-toggle:hover, .mega-toggle[aria-current="true"] { color: var(--green); }
.mega-toggle .chev { width: 16px; height: 16px; transition: transform .2s; }
.has-mega.is-open .mega-toggle .chev { transform: rotate(180deg); }
.mega { display: none; }
.mega__col ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.mega__head { display: block; font-weight: 800; color: var(--ink); text-decoration: none; font-size: .98rem; padding-bottom: .55rem; margin-bottom: .45rem; border-bottom: 2px solid var(--green); }
.mega__head:hover { color: var(--green-deep); }
.mega__col li a { display: flex; align-items: center; gap: .6rem; padding: .42rem .4rem; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; line-height: 1.35; white-space: normal; }
.mega__col li a:hover { background: var(--mist); color: var(--green-deep); }
.mega__col li .ic { width: 20px; height: 20px; color: var(--green-deep); }
.mega__promo { background: var(--ink); border-radius: var(--r); overflow: hidden; color: #cfd8d3; display: flex; flex-direction: column; }
.mega__promo img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.mega__promo div { padding: 1.2rem 1.3rem 1.4rem; }
.mega__promo h3 { color: #fff; font-size: 1.05rem; }
.mega__promo p { font-size: .9rem; }
.mega__promo .btn { color: var(--ink); }

@media (min-width: 1181px) {
  .site-header .header-inner { position: static; }
  .site-nav, .nav-list { height: 100%; }
  .nav-list > li { height: 100%; display: flex; align-items: center; }
  .has-mega { position: static; }
  .mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; box-shadow: 0 30px 60px -20px rgba(20,30,35,.35); border-top: 3px solid var(--green); }
  .has-mega.is-open .mega, .has-mega:hover .mega { display: block; }
  .mega__inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1.05fr; gap: 2rem; padding-block: 2rem 1.4rem; max-height: calc(100vh - 140px); overflow-y: auto; }
}
@media (max-width: 1180px) {
  .has-mega { border-bottom: 1px solid rgba(255,255,255,.08); }
  .mega-toggle { width: 100%; justify-content: space-between; padding: .95rem .2rem; font-size: 1.05rem; border-radius: 0; }
  .has-mega.is-open .mega { display: block; }
  .mega__inner { width: 100%; padding: 0 0 1rem; }
  .mega__head { color: var(--green); border-bottom-color: rgba(255,255,255,.12); margin-top: .6rem; }
  .mega__col li a { color: #e5ebe7; padding: .6rem .3rem; border-bottom: 0 !important; }
  .mega__col li a:hover { background: rgba(255,255,255,.06); color: var(--green); }
  .mega__col li .ic { color: var(--green); }
  .mega__promo { display: none; }
  .nav-list .mega__col li a { font-size: .98rem; }
}

/* ======================= v4: compact service cards ======================= */
.scard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; scroll-margin-top: 110px; }
.scard:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.scard__media { position: relative; display: block; }
.scard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.scard .badge { position: absolute; bottom: -24px; inset-inline-start: 1.2rem; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.scard .badge .ic { width: 26px; height: 26px; }
.scard__body { display: flex; flex-direction: column; padding: 2rem 1.25rem 1.3rem; flex: 1; }
.scard__title { font-weight: 800; color: var(--ink); font-size: 1.08rem; line-height: 1.3; margin-bottom: .35rem; }
html[lang="ar"] .scard__title { font-family: var(--font-ar-head); }
.scard__text { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }
.scard__more { margin-top: auto; font-weight: 700; color: var(--green-deep); font-size: .92rem; }
.scard:hover .scard__more { text-decoration: underline; }

/* ======================= v4: service detail page ======================= */
.sd-hero { position: relative; background: var(--ink-3); overflow: hidden; }
.sd-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(2px); transform: scale(1.03); }
.sd-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,27,31,.88); z-index: 1; }
.sd-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.sd-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.sd-hero p { color: #d3dbd6; font-size: 1.12rem; }
.sd-hero__media { margin: 0; position: relative; }
.sd-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 6px solid rgba(255,255,255,.08); }
.sd-hero__media .badge { position: absolute; bottom: -22px; inset-inline-start: 24px; width: 64px; height: 64px; border-radius: 14px; background: var(--green); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.sd-hero__media .badge .ic { width: 32px; height: 32px; }
@media (max-width: 900px) { .sd-hero__inner { grid-template-columns: 1fr; } .sd-hero__media { max-width: 520px; } }

.sd-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .sd-layout { grid-template-columns: 1fr; } }
.sd-sub { margin-top: 2.4rem; font-size: 1.3rem; }
.ticks--grid { grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.ticks--grid li { background: var(--mist); border-radius: 10px; padding: .85rem 1rem; font-weight: 600; font-size: .96rem; }
@media (max-width: 560px) { .ticks--grid { grid-template-columns: 1fr; } }
.bens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ben { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.ben .ic { width: 32px; height: 32px; color: var(--green-deep); margin-bottom: .6rem; }
.ben h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.ben p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 700px) { .bens { grid-template-columns: 1fr; } }

.sd-side { display: grid; gap: 1.2rem; position: sticky; top: 110px; }
@media (max-width: 960px) { .sd-side { position: static; } }
.side-cta { background: var(--ink); color: #cfd8d3; border-radius: var(--r); padding: 1.6rem; border-top: 4px solid var(--green); }
.side-cta h3 { color: #fff; font-size: 1.15rem; }
.side-cta p { font-size: .94rem; }
.side-cta .btn { width: 100%; margin-bottom: 1rem; }
.side-cta__line { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.1); font-weight: 600; }
.side-cta__line .ic { width: 20px; height: 20px; color: var(--green); }
.side-cta__line:hover { color: var(--green); }
.side-list { background: var(--mist); border-radius: var(--r); padding: 1.4rem; }
.side-list h3 { font-size: 1.02rem; }
.side-list h3 a { color: var(--ink); text-decoration: none; }
.side-list ul { list-style: none; padding: 0; margin: 0; }
.side-list li a { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 600; }
.side-list li:last-child a { border-bottom: 0; }
.side-list li a:hover { color: var(--green-deep); }
.side-list .ic { width: 20px; height: 20px; color: var(--green-deep); }
/* mega menu link specificity fixes (links live inside .nav-list) */
.nav-list .mega__head { color: var(--ink); padding: 0 0 .55rem; border-radius: 0; white-space: normal; font-weight: 800; font-size: .98rem; }
.nav-list .mega__head:hover { color: var(--green-deep); }
.nav-list .mega__col li a { color: var(--text); padding: .42rem .4rem; white-space: normal; font-weight: 500; font-size: .93rem; }
.nav-list .mega__col li a:hover { color: var(--green-deep); }
@media (max-width: 1180px) {
  .nav-list .mega__head { color: var(--green); border-bottom: 1px solid rgba(255,255,255,.12); padding: .2rem 0 .5rem; margin-top: .8rem; }
  .nav-list .mega__col li a { color: #e5ebe7; padding: .6rem .3rem; font-size: .98rem; }
  .nav-list .mega__col li a:hover { color: var(--green); }
}
@media (max-width: 1100px) and (min-width: 761px) { .svc-grid--n3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) { .nav-list { padding-bottom: 6rem; } }
