:root {
  --brand: #12294f;   /* كحلي الشعار */
  --deep:  #0b1d3a;
  --green: #1f7e68;   /* أخضر الشعار */
  --mint:  #5fc3a5;
  --gold:  #bf9f4c;
  --bus:   #ffc107;   /* أصفر الحافلات */
}
html { scroll-padding-top: 6.5rem; }
body { line-height: 1.75; color: #1b2440; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bus); outline-offset: 2px;
}

/* الأزرار */
.btn-bus {
  background: var(--bus); color: var(--brand); font-weight: 700;
  padding: .6rem 1.2rem; border-radius: 999px; display: inline-block;
  transition: background .15s, transform .15s;
}
.btn-bus:hover { background: #ffd54f; }
.btn-bus:active { transform: translateY(1px); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; border-radius: 999px;
  padding: .75rem 1.5rem; font-weight: 500; transition: background .15s, color .15s; display: inline-block;
}
.btn-ghost:hover { background: #fff; color: var(--brand); }

/* الترويسة */
.topbar { background: var(--deep); color: #d8e2f0; }
.site-header { background: #fff; color: var(--brand); border-bottom: 3px solid var(--bus); box-shadow: 0 4px 14px rgba(11,29,58,.08); }
.nav-link { position: relative; padding: .25rem 0; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: var(--green); transform: scaleX(0); transition: transform .2s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* الهيرو */
.hero {
  background:
    radial-gradient(55% 60% at 50% 100%, rgba(31,126,104,.45), transparent 70%),
    linear-gradient(170deg, var(--brand) 0%, var(--deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.hero-photo {
  border-radius: 1.25rem; overflow: hidden; border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 0 0 10px rgba(95,195,165,.18), 0 30px 60px rgba(4,12,30,.55);
  background: var(--deep);
}
.hero-photo img { display: block; width: 100%; height: auto; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--bus); }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 3px; background: var(--bus); border-radius: 3px; }

/* عناوين الأقسام */
.section-title {
  font-size: 2rem; font-weight: 700; line-height: 1.3; color: var(--brand);
  border-inline-start: 6px solid var(--gold); padding-inline-start: .75rem;
}
.safety .section-title { color: #fff; }

/* شريط الأرقام */
.stats-strip { background: var(--deep); color: #fff; border-bottom: 4px solid var(--bus); }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--bus); line-height: 1.2; }
.stat-label { color: #cfd9e8; font-size: .95rem; margin-top: .25rem; }

/* بطاقات الرؤية والجهات */
.value-card { border: 1px solid #dde3ee; border-radius: 1rem; padding: 1.5rem; border-top: 4px solid var(--green); background: #fff; }
.doc { border: 1.5px solid #dde3ee; border-radius: .75rem; padding: .9rem 1.1rem; display: flex; flex-direction: column; background: #f4f7fb; }
.doc span { font-size: .85rem; color: #55627a; }
.doc strong { color: var(--brand); font-size: 1.05rem; }

/* من نحن */
.stat-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #dde3ee; font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.stat-row:last-child { border-bottom: 0; }
.stat-dot { width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg); background: var(--green); flex: none; }

/* الأسطول والمعرض */
.fleet-card { background: #fff; border-radius: 1rem; overflow: hidden; border: 1px solid #dde3ee; }
.fleet-card .ph { aspect-ratio: 16 / 10; background: #e8edf5; }
.fleet-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item { position: relative; display: block; border-radius: .9rem; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid #dde3ee; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-item span { position: absolute; inset-inline: 0; bottom: 0; padding: .6rem .9rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(11,29,58,.85)); }

/* خط المسار */
.route { position: relative; display: grid; gap: 2rem; }
.route::before {
  content: ""; position: absolute; inset-block: .5rem; inset-inline-start: 19px; width: 0;
  border-inline-start: 4px dashed var(--bus);
}
.stop { position: relative; padding-inline-start: 3.5rem; }
.stop-pin {
  position: absolute; inset-inline-start: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--bus);
}
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 1.5rem; }
  .route::before { inset-block: auto; inset-inline: 21px; top: 19px; height: 0; width: auto; border-inline-start: 0; border-top: 4px dashed var(--bus); }
  .stop { padding-inline-start: 0; padding-top: 3.5rem; }
}

/* الأمان */
.safety { background: linear-gradient(170deg, var(--deep), var(--brand)); color: #fff; position: relative; overflow: hidden; }
.safety-shield { width: 120px; height: auto; }
.safe-item { border-top: 3px solid var(--bus); padding-top: 1rem; }

/* النموذج */
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid #c8d2e3; border-radius: .6rem; padding: .65rem .8rem; background: #fff; font: inherit; color: var(--brand);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.form-panel { background: #f4f7fb; border-radius: 1.25rem; padding: 1.5rem; border: 1px solid #dde3ee; }
@media (min-width: 640px) { .form-panel { padding: 2.25rem; } }

/* زر واتساب */
.wa-float {
  position: fixed; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25a244; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-photo-wrap { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo-wrap { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
