/* =============================================================================
   Brilliant Pro Services — التنسيق الأساسي
   عربي RTL. كُتب يدوياً بدل إطار جاهز: الحجم أصغر بكثير (المستخدمون في
   السودان على شبكات بطيئة)، والمظهر مميز لا قالبي.
   ============================================================================= */

:root {
  /* اللون الأساسي: أخضر مزرقّ — يوحي بالثقة والطب، ويصلح للسفر أيضاً */
  --teal-900: #0b3b3c;
  --teal-800: #0f4f51;
  --teal-700: #146466;
  --teal-600: #17797c;
  --teal-100: #d6ecec;
  --teal-50:  #f0f8f8;

  /* لون مساند ذهبي — دفء وتميّز */
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-100: #faf0d4;

  --ink-900: #14201f;
  --ink-700: #33413f;
  --ink-500: #5f6f6d;
  --ink-300: #9aa8a6;
  --ink-100: #e4eae9;
  --paper:   #ffffff;
  --canvas:  #f7faf9;

  --danger:  #b3261e;
  --warn-bg: #fff8e6;
  --warn-br: #e0b64a;
  --ok:      #1b7a4b;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 3px rgba(11, 59, 60, .07), 0 8px 24px rgba(11, 59, 60, .06);
  --shadow-lg: 0 2px 8px rgba(11, 59, 60, .09), 0 18px 44px rgba(11, 59, 60, .11);

  --font: "Cairo", "Tajawal", "Noto Kufi Arabic", "Segoe UI",
          "Dubai", "Geeza Pro", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink-900);
  line-height: 1.85;          /* العربية تحتاج ارتفاع سطر أعلى من اللاتينية */
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow    { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--paper); }

.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* ------------------------------------------------------------------ الترويسة */
.topbar {
  background: var(--teal-900);
  color: #cfe4e4;
  font-size: .85rem;
  padding: .4rem 0;
}
.topbar__inner { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.topbar a { color: #cfe4e4; }
.topbar a:hover { color: #fff; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--teal-900); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff; display: grid; place-items: center; font-size: 1.15rem; flex: none;
}
.brand__sub { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-500); letter-spacing: .02em; }

.nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink-700); font-weight: 600; font-size: .93rem;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-800); text-decoration: none; }
.nav a.is-active { background: var(--teal-100); color: var(--teal-900); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm); padding: .45rem .7rem; font-size: 1.2rem;
  cursor: pointer; color: var(--teal-900);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: .6rem 1.25rem 1rem; border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .site-header__inner { position: relative; }
}

/* ------------------------------------------------------------------ الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .68rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; font-family: inherit;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-600); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-100); }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-900); }
.btn--gold { background: var(--gold-500); color: #3a2c05; }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--wide { width: 100%; }
.btn--sm { padding: .42rem .9rem; font-size: .85rem; }

/* ------------------------------------------------------------------ البطل */
.hero {
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(212,160,23,.16), transparent 60%),
    linear-gradient(160deg, var(--teal-900), var(--teal-700) 75%);
  color: #eaf5f5;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 5rem);
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero__lead { font-size: clamp(1rem, 2.1vw, 1.18rem); color: #c9e2e2; max-width: 58ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stat b { display: block; font-size: 1.7rem; color: var(--gold-500); line-height: 1.3; }
.hero__stat span { font-size: .85rem; color: #b7d4d4; }

/* ------------------------------------------------------------------ البطاقات */
.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--link:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--teal-100); text-decoration: none;
}
.card h3 { margin-bottom: .35rem; color: var(--teal-900); }
.card__meta { margin-top: auto; padding-top: .9rem; font-size: .85rem; color: var(--ink-500); }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .85rem;
}

/* بطاقة خط الخدمة على الصفحة الرئيسية */
.line-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: #e8f4f4; border: none; padding: 1.9rem;
}
.line-card h3 { color: #fff; font-size: 1.45rem; }
.line-card p { color: #bcdada; }
.line-card--travel { background: linear-gradient(150deg, #6b5310, #3d2f08); }
.line-card__glyph {
  position: absolute; inset-block-start: -12px; inset-inline-start: -12px;
  font-size: 6.5rem; opacity: .09; pointer-events: none;
}

/* ------------------------------------------------------------------ الشارات */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .62rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.badge--teal { background: var(--teal-100); color: var(--teal-800); }
.badge--gold { background: var(--gold-100); color: #7a5a06; }
.badge--muted { background: var(--ink-100); color: var(--ink-700); }
.badge--ok { background: #dcf2e6; color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: #8a6510; }

/* ------------------------------------------------------------------ السعر */
.price {
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius); padding: 1.35rem;
}
.price__amount { font-size: 2.1rem; font-weight: 800; color: var(--teal-900); line-height: 1.3; }
.price__rows { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.price__rows li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .42rem 0; border-bottom: 1px dashed var(--teal-100);
}
.price__rows li:last-child { border-bottom: none; }
.price__rows .is-total { font-weight: 800; font-size: 1.05rem; color: var(--teal-900); padding-top: .7rem; }

/* التنويه — لا يُخفى ولا يُصغَّر: العميل يجب أن يقرأه */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-br);
  border-inline-start: 4px solid var(--warn-br);
  border-radius: var(--radius-sm); padding: .9rem 1.05rem;
  font-size: .9rem; color: #6b4f0a; margin: 1rem 0;
}
.notice--info { background: var(--teal-50); border-color: var(--teal-100); border-inline-start-color: var(--teal-600); color: var(--teal-800); }
.notice strong { color: inherit; }

/* ------------------------------------------------------------------ النماذج */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-700); }

.input, .select, .textarea {
  width: 100%; padding: .7rem .9rem; font-family: inherit; font-size: .97rem;
  border: 1.5px solid var(--ink-100); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink-900);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.textarea { min-height: 130px; resize: vertical; }

.searchbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.searchbar .input { flex: 1 1 260px; }

/* ------------------------------------------------------------------ الجداول */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--ink-100); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.table th, .table td { padding: .78rem .95rem; text-align: start; border-bottom: 1px solid var(--ink-100); }
.table th { background: var(--teal-50); font-weight: 700; color: var(--teal-900); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--canvas); }

/* ------------------------------------------------------------------ الأكورديون */
.accordion { border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.accordion details { border-bottom: 1px solid var(--ink-100); }
.accordion details:last-child { border-bottom: none; }
.accordion summary {
  padding: 1rem 1.2rem; font-weight: 700; cursor: pointer;
  color: var(--teal-900); list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "＋"; color: var(--teal-600); font-weight: 400; flex: none; }
.accordion details[open] summary::after { content: "－"; }
.accordion details[open] summary { background: var(--teal-50); }
.accordion__body { padding: 0 1.2rem 1.15rem; color: var(--ink-700); }

/* ------------------------------------------------------------------ قائمة الأوراق */
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li {
  display: flex; gap: .8rem; padding: .85rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.doclist li:last-child { border-bottom: none; }
.doclist__num {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: var(--teal-100); color: var(--teal-800);
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}
.doclist__alt { font-size: .82rem; color: var(--ink-500); }

/* ------------------------------------------------------------------ التذييل */
.site-footer { background: var(--teal-900); color: #b9d5d5; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #b9d5d5; display: block; padding: .22rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ------------------------------------------------------------------ زر واتساب العائم */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
}
.wa-float:hover { color: #fff; text-decoration: none; transform: scale(1.06); }

/* ------------------------------------------------------------------ مساعدات */
.stack > * + * { margin-block-start: var(--gap, 1rem); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--ink-500); }
.empty__glyph { font-size: 3rem; opacity: .38; display: block; margin-bottom: .5rem; }

.section__head { margin-bottom: 1.8rem; }
.section__head p { color: var(--ink-500); max-width: 62ch; margin: 0; }

.eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  color: var(--gold-600); text-transform: uppercase; margin-bottom: .35rem;
}

/* يحترم تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* الطباعة: العميل قد يطبع قائمة الأوراق ويأخذها معه */
@media print {
  .site-header, .topbar, .site-footer, .wa-float, .btn, .searchbar { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
