/* ============================================================
   الصفحة الرئيسية — تعتمد app.css
   ============================================================ */

.site-head {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 56px; height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700; color: var(--green);
}
.head-start { display: flex; align-items: center; gap: 44px; }
.site-nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--green); }
.head-cta {
  height: 48px; display: inline-flex; align-items: center; padding: 0 24px;
  border: 1.5px solid var(--green); border-radius: var(--radius);
  color: var(--green); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.head-cta:hover { background: var(--green-soft); }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; padding: 0; place-items: center;
}

/* ---------- البطل ---------- */
.hero { background: var(--green); position: relative; overflow: hidden; padding: 68px 56px 60px; }
.hero__in { position: relative; max-width: 820px; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.55; font-weight: 700; color: #fff; text-wrap: pretty; }
.hero p { margin: 18px 0 0; font-size: 18px; color: #CFE0DA; line-height: 1.9; }
.hero__btns { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__btns a {
  height: 48px; display: inline-flex; align-items: center; padding: 0 32px;
  border-radius: var(--radius); font-size: 16px; font-weight: 700;
}
.btn-hero-1 { background: var(--green-soft); color: var(--green); }
.btn-hero-1:hover { background: #fff; color: var(--green-dark); }
.btn-hero-2 { background: var(--gold); color: #fff; }
.btn-hero-2:hover { background: var(--gold-dark); color: #fff; }

/* ---------- شريط الأسعار ---------- */
.prices-wrap { padding: 0 56px; margin-top: -30px; position: relative; }
.prices {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(18, 48, 40, .07);
  display: grid; grid-template-columns: repeat(4, 1fr) auto;
  align-items: center; padding: 18px 26px; gap: 22px;
}
.price { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; min-width: 0; }
.price:first-child { border-inline-start: 0; padding-inline-start: 0; }
.price__label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.price__value { font-size: 22px; font-weight: 700; color: var(--green); margin-top: 4px; }
.price__stamp {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--hint); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot--stale { background: var(--warn); }
/* نسخة الجوال من ختم آخر تحديث — تظهر تحت شريط الأسعار المنزلق */
#prices-stamp-m { display: none; }

/* ---------- الأقسام ---------- */
.home-sect { padding: 52px 56px 0; }
.home-sect:last-of-type { padding-bottom: 52px; }
.home-sect h2 { margin: 0 0 22px; font-size: 27px; font-weight: 700; color: var(--green); }

.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.calc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.calc-card:hover { border-color: var(--green); }
.calc-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green-soft); display: grid; place-items: center; color: var(--green);
}
.calc-card__title { font-size: 18px; font-weight: 700; }
.calc-card__desc { font-size: 14px; color: var(--muted); line-height: 1.8; flex: 1; }
.calc-card__go {
  height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--green); color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.calc-card__go:hover { background: var(--green-dark); color: #fff; }
.saved-badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 11.5px; font-weight: 700; background: var(--green-soft);
  color: var(--green); border-radius: 20px; padding: 4px 11px;
}

.steps-grid, .refs-grid { display: grid; gap: 20px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.refs-grid { grid-template-columns: 1fr 1fr; }
.step-card, .ref-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.step-card__n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green);
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700;
}
.step-card__t { font-size: 17px; font-weight: 700; margin-top: 14px; }
.step-card__d { font-size: 14.5px; color: var(--muted); line-height: 1.9; margin-top: 8px; }

.ref-card { display: flex; gap: 18px; align-items: flex-start; }
.ref-card__av {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: var(--green);
}
.ref-card__n { font-size: 17px; font-weight: 700; }
.ref-card__r { font-size: 13.5px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.ref-card__d { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 8px; }

.disclaimer {
  background: #fff; border-top: 3px solid var(--gold);
  padding: 18px 56px; display: flex; align-items: center; gap: 12px;
}
.disclaimer span { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

.site-foot {
  background: var(--green-dark); color: #9FB8B0;
  padding: 30px 56px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-size: 13.5px; flex-wrap: wrap;
}
.site-foot__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 15px;
}

@media (max-width: 1080px) {
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .price:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .price__stamp { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-head { padding: 0 20px; height: 62px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 62px; inset-inline: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 14px; z-index: 20;
  }
  .site-nav.is-open a { padding: 12px 0; border-top: 1px solid var(--line); }
  .head-start { gap: 0; }
  .burger { display: grid; }
  .head-cta { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .hero { padding: 34px 20px 30px; }
  .hero h1 { font-size: 25px; line-height: 1.6; }
  .hero p { font-size: 14.5px; margin-top: 10px; }
  .hero__btns { gap: 10px; margin-top: 20px; }
  .hero__btns a { flex: 1; justify-content: center; padding: 0 12px; font-size: 14.5px; }
  .prices-wrap { padding: 16px 0 0; margin-top: 0; }
  .prices {
    display: flex; overflow-x: auto; gap: 12px; border: 0; box-shadow: none;
    background: none; padding: 0 20px 4px; scrollbar-width: none;
  }
  .prices::-webkit-scrollbar { display: none; }
  .price {
    flex: none; min-width: 158px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
    border-inline-start: 1px solid var(--line);
  }
  .price__value { font-size: 17px; }
  .prices .price__stamp { display: none; }
  #prices-stamp-m { display: flex; padding: 10px 20px 0; font-size: 11.5px; }
  .home-sect { padding: 28px 20px 0; }
  .home-sect h2 { font-size: 21px; }
  .calc-grid, .steps-grid, .refs-grid { grid-template-columns: 1fr; gap: 12px; }
  .disclaimer, .site-foot { padding: 18px 20px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
}

/* الترويسة بلا زر دخول الخبراء */
.site-head--nocta { justify-content: flex-start; }
