/* =========================================================
   سوفانا للحج والعمرة - النمط الرئيسي
   ألوان الهوية: الأخضر الزمردي #1a7a4a / الذهبي #C9A84C / الأبيض
   ========================================================= */

:root {
  --emerald: #1a7a4a;
  --emerald-dark: #145c38;
  --emerald-light: #e8f4ee;
  --gold: #c9a84c;
  --gold-dark: #a8893a;
  --ink: #1f2a24;
  --muted: #6b7770;
  --bg-soft: #f6f9f7;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(20, 60, 40, .06);
  --shadow-md: 0 10px 30px rgba(20, 60, 40, .10);
  --shadow-lg: 0 20px 50px rgba(20, 60, 40, .15);
}

* { box-sizing: border-box; }

body {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  margin: 0;
  line-height: 1.7;
}

a { color: var(--emerald); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

.text-emerald { color: var(--emerald) !important; }
.text-gold { color: var(--gold) !important; }
.bg-emerald { background: var(--emerald) !important; }
.bg-soft { background: var(--bg-soft) !important; }

.section { padding: 72px 0; }
.section-title { position: relative; margin-bottom: 14px; font-weight: 800; }
.section-sub { color: var(--muted); margin-bottom: 40px; }
.title-divider {
  width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  margin: 0 auto 18px;
}

/* ---------- الأزرار ---------- */
.btn-emerald {
  background: var(--emerald); border: none; color: #fff; font-weight: 700;
  border-radius: 50px; padding: 11px 28px; transition: all .25s;
}
.btn-emerald:hover { background: var(--emerald-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold); border: none; color: #1f2a24; font-weight: 800;
  border-radius: 50px; padding: 11px 28px; transition: all .25s;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-emerald {
  border: 2px solid var(--emerald); color: var(--emerald); font-weight: 700;
  border-radius: 50px; padding: 9px 26px; background: transparent; transition: all .25s;
}
.btn-outline-emerald:hover { background: var(--emerald); color: #fff; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--emerald-dark); color: #d9efe3; font-size: .85rem; padding: 7px 0; }
.topbar a { color: #d9efe3; }
.topbar a:hover { color: var(--gold); }

.navbar { background: #fff !important; box-shadow: var(--shadow-sm); padding: .6rem 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--emerald) !important; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  display: grid; place-items: center; color: #fff; font-size: 1.4rem;
}
.brand-text small { display: block; font-size: .68rem; color: var(--gold-dark); font-weight: 600; }
.navbar .nav-link { font-weight: 600; color: var(--ink) !important; margin: 0 4px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--emerald) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  padding: 120px 0 130px;
  overflow: hidden;
}
/* طبقة السلايدشو */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
  transform: scale(1.06);
  animation: heroKenburns 12s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 1; }
@keyframes heroKenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}
/* تعتيم متدرّج فوق الصور ليبقى النص واضحاً */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(rgba(15,50,32,.72), rgba(15,50,32,.55) 45%, rgba(15,50,32,.85));
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 680px; margin: 0 auto 30px; }
.hero .ornament { font-size: 2.4rem; color: var(--gold); margin-bottom: 8px; }

/* صندوق بحث سريع في الهيرو */
.hero-search {
  background: rgba(255,255,255,.96); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-lg); max-width: 880px; margin: 36px auto 0;
}
.hero-search label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.hero-search .form-select, .hero-search .form-control { border-radius: 10px; }

/* ---------- الإحصائيات ---------- */
.stat-card { text-align: center; padding: 26px 10px; }
.stat-card .num { font-size: 2.4rem; font-weight: 800; color: var(--emerald); }
.stat-card .num span { color: var(--gold); }
.stat-card .label { color: var(--muted); font-weight: 600; }

/* ---------- بطاقات الباقات ---------- */
.package-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #eef2ef; height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.package-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.package-thumb { position: relative; height: 210px; overflow: hidden; background: var(--emerald-light); }
.package-thumb img { width: 100%; height: 100%; object-fit: cover; }
.package-thumb .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--gold)); color: #fff; font-size: 3rem;
}
.badge-type {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--gold); color: #1f2a24; font-weight: 800; padding: 5px 14px; border-radius: 50px; font-size: .8rem;
}
.badge-cat {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: rgba(0,0,0,.55); color: #fff; padding: 5px 12px; border-radius: 50px; font-size: .78rem;
}
.package-body { padding: 18px 20px 22px; }
.package-body h5 { font-weight: 800; min-height: 52px; }
.package-meta { color: var(--muted); font-size: .88rem; display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; }
.price-old { color: #b4b9b5; text-decoration: line-through; font-size: .9rem; margin-inline-start: 8px; }
.price-now { color: var(--emerald); font-weight: 800; font-size: 1.4rem; }
.seats-badge { font-size: .8rem; color: var(--gold-dark); font-weight: 700; }

/* ---------- الفنادق ---------- */
.hotel-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background:#fff; height:100%; border:1px solid #eef2ef; }
.hotel-card .thumb { height: 180px; background: var(--emerald-light); display:grid; place-items:center; color: var(--emerald); font-size:2.5rem; }
.hotel-card .thumb img { width:100%; height:100%; object-fit:cover; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- آراء العملاء ---------- */
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  height: 100%; border-top: 4px solid var(--gold);
}
.testimonial .quote { color: var(--muted); font-style: italic; }
.testimonial .author { font-weight: 800; color: var(--emerald); margin-top: 12px; }

/* ---------- الشركاء ---------- */
.partner-logo { height: 70px; display:grid; place-items:center; color: var(--muted); font-weight:700; opacity:.7; }

/* ---------- خطوات الحجز (Wizard) ---------- */
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 34px; counter-reset: step; }
.wizard-steps .step { flex: 1; text-align: center; position: relative; color: var(--muted); font-weight: 700; }
.wizard-steps .step .circle {
  width: 42px; height: 42px; border-radius: 50%; background: #e6ece9; color: var(--muted);
  display: grid; place-items: center; margin: 0 auto 8px; font-weight: 800; transition: all .3s;
}
.wizard-steps .step.active .circle, .wizard-steps .step.done .circle { background: var(--emerald); color: #fff; }
.wizard-steps .step.active { color: var(--emerald); }
.wizard-steps .step::before {
  content: ''; position: absolute; top: 21px; inset-inline-start: -50%; width: 100%; height: 3px; background: #e6ece9; z-index: -1;
}
.wizard-steps .step:first-child::before { display: none; }
.wizard-steps .step.done::before { background: var(--emerald); }

/* ---------- الفوتر ---------- */
.footer { background: #102a1c; color: #c5d6cc; padding: 56px 0 0; }
.footer h6 { color: #fff; font-weight: 800; margin-bottom: 18px; }
.footer a { color: #c5d6cc; }
.footer a:hover { color: var(--gold); }
.footer .brand-logo { width: 52px; height: 52px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; font-size: .85rem; color: #8ba596; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; margin-inline-end: 8px; color: #fff;
}
.social-icons a:hover { background: var(--gold); color: #102a1c; }

/* ---------- صفحات داخلية ---------- */
.page-header {
  background: linear-gradient(rgba(15,50,32,.82), rgba(15,50,32,.88)), linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  color: #fff; padding: 70px 0 56px; text-align: center;
}
.page-header h1 { font-weight: 800; }
.breadcrumb { background: transparent; justify-content: center; }
.breadcrumb a { color: #d9efe3; }
.breadcrumb .active { color: var(--gold); }

.filter-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.filter-box h6 { font-weight: 800; color: var(--emerald); }

/* قائمة المشمول/غير المشمول */
.list-check li { padding: 6px 0; }
.list-check .fa-check { color: var(--emerald); }
.list-check .fa-xmark { color: #d05; }

/* بطاقات المصادقة */
.auth-card { max-width: 460px; margin: 0 auto; background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px; }
.auth-card .brand-logo { width: 60px; height: 60px; margin: 0 auto 14px; }

/* نموذج عام */
.form-control:focus, .form-select:focus { border-color: var(--emerald); box-shadow: 0 0 0 .2rem rgba(26,122,74,.15); }

@media (max-width: 576px) {
  .wizard-steps .step span.txt { display: none; }
  .section { padding: 48px 0; }
}

/* ===== صورة حساب المستخدم (my-account) ===== */
.account-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--emerald, #1a7a4a), var(--gold, #C9A84C));
}
.nav-pills .nav-link {
    color: var(--emerald, #1a7a4a);
    font-weight: 600;
}
.nav-pills .nav-link.active {
    background: var(--emerald, #1a7a4a);
}

/* ===== صندوق بيانات التواصل (contact) ===== */
.contact-info-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.contact-info-box .icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: var(--emerald, #1a7a4a);
}
.map-wrap iframe,
.map-wrap > * {
    width: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

/* ===== صفحة من نحن (about) ===== */
.section-tag {
    display: inline-block;
    color: var(--gold, #C9A84C);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}
.about-image-card {
    border-radius: 20px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6rem;
    background: linear-gradient(135deg, var(--emerald, #1a7a4a), #0f5232);
    box-shadow: 0 14px 40px rgba(26,122,74,.25);
}
.value-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 2rem 1.25rem;
    transition: transform .25s, box-shadow .25s;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emerald, #1a7a4a);
    background: rgba(26,122,74,.1);
}
.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1rem;
    border: 1px solid #eee;
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gold, #C9A84C), #b3902f);
}
.license-card {
    background: #fff;
    border: 1px dashed var(--gold, #C9A84C);
    border-radius: 16px;
    padding: 2rem 1rem;
}
.license-card > i {
    font-size: 2.5rem;
    color: var(--gold, #C9A84C);
}

/* ===== شعار الموقع (صورة) ===== */
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    background: #fff;
}
.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

/* ===== شعار بطاقة الدخول/التسجيل ===== */
.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    display: block;
}

/* ===== عبارة رعاية الموقع في التذييل ===== */
.footer-credit {
    display: inline-block;
    margin-inline-start: 6px;
}
.footer-credit::before {
    content: "•";
    margin-inline-end: 8px;
    opacity: .5;
}
.footer-credit a {
    color: var(--gold, #C9A84C);
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}
.footer-credit a:hover {
    opacity: .8;
    text-decoration: underline;
}
@media (max-width: 575.98px) {
    /* في الجوال تنزل عبارة الرعاية لسطر جديد */
    .footer-credit { display: block; margin: 6px 0 0; }
    .footer-credit::before { display: none; }
}
