/* Al Jid — shared site styles (brand: deep green #142E2B + gold #EAD67F) */
:root {
  --bg: #0f2421;
  --bg-2: #142e2b;
  --surface: #1a3d3a;
  --surface-2: #204640;
  --line: rgba(234, 214, 127, 0.2);
  --line-strong: rgba(234, 214, 127, 0.45);
  --gold: #ead67f;
  --gold-2: #d6c068;
  --text: #f4efdd;
  --muted: #b7c2b8;
  --ink: #142e2b;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Amiri", "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Bilingual content: only the active language is shown */
html[lang="ar"] .t-en,
html[lang="en"] .t-ar { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f5e7a8; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 36, 33, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  padding: 8px 10px; border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(234, 214, 127, 0.08); }
@media (max-width: 640px) { .nav .nav-optional { display: none; } }

.lang-toggle {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  color: var(--gold); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px; line-height: 1.4; white-space: nowrap;
}
.lang-toggle:hover { background: rgba(234, 214, 127, 0.1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(234, 214, 127, 0.6); }
.btn-primary:hover { background: #f2e39d; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(234, 214, 127, 0.04); }
.btn-ghost:hover { color: var(--text); background: rgba(234, 214, 127, 0.1); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; pointer-events: none; }
.btn .btn-sub { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.8; line-height: 1.2; }
.btn .btn-main { display: block; line-height: 1.25; }
.btn-stack { display: flex; flex-direction: column; text-align: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 110%;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(234, 214, 127, 0.16), transparent 70%),
    radial-gradient(50% 45% at 15% 70%, rgba(32, 70, 64, 0.9), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } .hero { padding: 80px 0 96px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  background: rgba(234, 214, 127, 0.06);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: 1.1; margin: 18px 0 4px; color: #fff;
}
.hero .subtitle {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--gold); margin: 0 0 18px; line-height: 1.4;
}
.hero .lead { font-size: 1.12rem; color: var(--text); opacity: 0.92; max-width: 34em; margin: 0 0 28px; }
.hero .fine { margin: 18px 0 0; color: var(--muted); font-size: 0.93rem; }

.phone {
  position: relative; width: min(300px, 78vw); margin-inline: auto;
  border-radius: 38px; padding: 10px; background: #0a1917;
  border: 1px solid rgba(234, 214, 127, 0.25);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(234, 214, 127, 0.04);
}
.phone img { border-radius: 29px; width: 100%; aspect-ratio: 600 / 1223; object-fit: cover; background: var(--bg-2); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.3; margin: 0 0 10px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px;
}
.stats .num { display: block; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 2.3rem; line-height: 1.1; }
.stats .lbl { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 6px; line-height: 1.5; }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(234, 214, 127, 0.12); color: var(--gold); margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Screens */
.screens { display: grid; gap: 28px; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 760px) { .screens { grid-template-columns: repeat(3, 1fr); } }
.screens figure { margin: 0; width: 100%; }
.screens .phone { width: min(260px, 72vw); }
.screens figcaption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 0.98rem; }
.screens figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* Chips */
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); background: rgba(234, 214, 127, 0.05);
  border-radius: 999px; padding: 6px 14px; font-size: 0.95rem;
}

/* Callout */
.callout {
  display: grid; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-strong); border-radius: 28px; padding: 32px 24px;
}
@media (min-width: 820px) { .callout { grid-template-columns: 1fr auto; padding: 40px 44px; } }
.callout h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 6px; line-height: 1.35; }
.callout p { margin: 0; color: var(--muted); }

/* ---------- Support ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.2; margin: 0 0 8px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 38em; }

.contact-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-strong); border-radius: 24px; padding: 28px 24px;
  display: grid; gap: 22px;
}
@media (min-width: 860px) { .contact-card { grid-template-columns: 1.2fr 1fr; padding: 36px 40px; } }
.contact-card h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 6px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); }
.email-line { font-size: 1.15rem; font-weight: 600; margin: 0 0 18px; word-break: break-all; }
.email-line a { color: #fff; }
.tips { background: rgba(15, 36, 33, 0.6); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.tips h3 { margin: 0 0 8px; font-size: 1rem; color: var(--gold); font-weight: 600; }
.tips ul { margin: 0; padding-inline-start: 1.2em; color: var(--muted); font-size: 0.97rem; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  border: 1px solid var(--line-strong); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }
.path { color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; }
