/* ═══════════════════════════════════════════════════════════════════
   شركة حار بارد — أنماط الصفحة العامّة
   مكتوبةٌ يدوياً: لا Tailwind ولا خطوة بناء على الخادم. قِيس 30/08 أن
   سكربت تايلوند من CDN وحده 398KB من أصل 596، فاستُبدل. الميزانية:
   الصفحة ≤ 120KB وأوّل رسمٍ دون 1.5ث على جوّالٍ محاكى.
   ═══════════════════════════════════════════════════════════════════ */

/* ── الرموز ───────────────────────────────────────────────────────── */
:root {
  /* الهوية v1.1 — لا تُبدَّل */
  --blue: #0D5CCB;
  --ink: #12459A;
  --yellow: #F3C300;

  /* محايدات مائلة إلى الأزرق: رماديّ خالص يبدو غير مقصود */
  --bg: #F5F8FD;
  --surface: #FFFFFF;
  --sunk: #EDF2FB;
  --line: #DCE6F6;
  --line-strong: #C3D3EE;
  --text: #0E1B2E;
  --muted: #4E6180;

  --ok: #0F7A52;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-full: 999px;

  /* ظلال بإزاحة وتمويه — الهالة بلا إزاحة زخرفة */
  --shadow-1: 0 1px 2px rgba(14, 27, 46, .05), 0 2px 8px rgba(14, 27, 46, .04);
  --shadow-2: 0 2px 4px rgba(14, 27, 46, .06), 0 12px 28px rgba(13, 92, 203, .10);
  --shadow-3: 0 4px 8px rgba(14, 27, 46, .08), 0 24px 48px rgba(13, 92, 203, .16);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── أسطح المتصفّح: ما لم نرسمه يحمل التصميم أيضاً ─────────────────── */
::selection { background: #CFE0FF; color: var(--ink); }
body { caret-color: var(--blue); }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-full); }
*::-webkit-scrollbar-track { background: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }

/* ── الطباعة ─────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p  { margin: 0; }
.lede { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.8; max-width: 62ch; }
.prose { max-width: 68ch; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── التخطيط ─────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--sp-20); }
.section--tight { padding-block: var(--sp-16); }
.section--sunk { background: var(--sunk); }
.section--white { background: var(--surface); }
.stack > * + * { margin-top: var(--sp-4); }
.head { margin-bottom: var(--sp-8); }
.head p { color: var(--muted); margin-top: var(--sp-3); }
.rule { width: 72px; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: var(--sp-4); }

/* ── الأزرار ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding-inline: 26px;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: #221B00; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: #FFD427; box-shadow: var(--shadow-3); }
.btn--onblue { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onblue:hover { background: rgba(255,255,255,.20); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--ink); }
.btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--blue); background: var(--sunk); }
.btn--block { width: 100%; }

/* ── الرأس ───────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: 10px; }
.brandmark { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brandmark img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav a { color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
@media (max-width: 860px) { .site-nav { display: none; } }

/* ── البطل ───────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(243,195,0,.22), transparent 62%),
    linear-gradient(150deg, var(--blue) 0%, var(--ink) 100%);
  color: #fff;
}
.hero__in { padding-block: var(--sp-20) var(--sp-16); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lede { color: #D9E6FF; margin-top: var(--sp-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-8); padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #EAF1FF; border-radius: var(--r-full); padding: 7px 15px; font-size: 14px; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; flex: none; color: var(--yellow); }

/* ── الأسعار: عائلة ثم بطاقات ────────────────────────────────────── */
.family { margin-top: var(--sp-12); }
.family:first-of-type { margin-top: var(--sp-8); }
.family__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.family__dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.family__head h3 { font-size: 19px; }
.family__head span { color: var(--muted); font-size: 14px; }

.cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card__ico { width: 40px; height: 40px; color: var(--blue); }
.card__name { font-weight: 700; font-size: 16px; line-height: 1.5; }
.card__note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card__foot { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.price { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); font-weight: 800; }
.price b { font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card__go { color: var(--blue); font-weight: 700; font-size: 14px; }

/* رمز الريال الرسميّ (هيئة النقد) قناعاً بلون النصّ */
.riyal {
  display: inline-block; width: .68em; height: .82em;
  background-color: currentColor; vertical-align: -.06em;
  -webkit-mask: url("/brand/riyal.svg") no-repeat center / contain;
          mask: url("/brand/riyal.svg") no-repeat center / contain;
}

/* ── الخطوات ─────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { counter-increment: s; }
.step__n {
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: var(--blue); color: #fff; font-weight: 800; font-size: 17px;
  display: grid; place-items: center; margin-bottom: var(--sp-3);
}
.step__n::before { content: counter(s); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── البراهين ────────────────────────────────────────────────────── */
.proofs { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.proof { display: flex; gap: var(--sp-3); align-items: flex-start; }
.proof svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 3px; }
.proof b { display: block; font-size: 16px; }
.proof span { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── نطاق الخدمة ─────────────────────────────────────────────────── */
.cities { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.city {
  flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6); text-align: center;
}
.city b { display: block; font-size: 22px; color: var(--ink); }
.city span { color: var(--muted); font-size: 14px; }

/* ── الأسئلة ─────────────────────────────────────────────────────── */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-6);
  font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  border-inline-start: 2px solid var(--blue); border-block-end: 2px solid var(--blue);
  transform: rotate(-45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { padding: 0 var(--sp-6) var(--sp-4); color: var(--muted); font-size: 15px; }

/* ── المجموعة ────────────────────────────────────────────────────── */
.group { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.group__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow-1); }
.group__box--lead { border-color: var(--blue); }
.group__tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700;
  border-radius: var(--r-full); padding: 4px 12px; background: var(--blue); color: #fff; }
.group__tag--sub { background: var(--yellow); color: #221B00; }
.group__link { color: var(--line-strong); }

/* ── النموذج ─────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8FA0BC; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13,92,203,.14);
}
.note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.8; }
.alert { border-radius: var(--r); padding: var(--sp-4) var(--sp-6); font-weight: 700; margin-bottom: var(--sp-6); }
.alert--ok { background: #E8F7F0; border: 1px solid #A8DCC6; color: var(--ok); }
.alert--bad { background: #FDECEC; border: 1px solid #F3B9B9; color: #9B1C1C; font-weight: 500; }
.alert--bad ul { margin: 0; padding-inline-start: 20px; }

/* ── التذييل ─────────────────────────────────────────────────────── */
/* كان أربعةَ أعمدةٍ متساويةٍ بلا شعارٍ ولا مرساة، وارتفاعُ كلّ رابطٍ 44px
   على كلّ المقاسات ⇒ عمودٌ فارغٌ طويل، وتذييلٌ يقارب 640px من الفراغ الأزرق.
   الآن: مرساةٌ بالشعار ثمّ ثلاثةُ أعمدة، وهدفُ اللمس 44 يبقى **حيث يُلمس**. */
.site-foot { background: var(--ink); color: #C9DAF6; padding-block: var(--sp-8) var(--sp-6); }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--yellow); text-decoration: underline; }

.site-foot__top { display: grid; gap: var(--sp-8);
  grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(150px, 1fr)); }

/* الشعارُ حروفُه زرقاءُ والأرضيّةُ زرقاء ⇒ بطاقةٌ بيضاء، ولا يُعاد تلوينُ شعار. */
.site-foot__mark { display: inline-block; background: #fff; border-radius: var(--r);
  padding: 12px 16px; line-height: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-foot__mark:hover { text-decoration: none; }
.site-foot__mark img { display: block; width: 150px; height: auto; }
/* `pretty` يمنع يتيماً في آخر سطر — كان «يوماً.» وحدَه في سطر. */
.site-foot__tagline { margin: var(--sp-4) 0 0; font-size: 14px; line-height: 1.9;
  max-width: 34ch; text-wrap: pretty; }

.site-foot__col h4 { margin: 0 0 var(--sp-2); color: #fff; font-size: 15px; }
/* شرطةٌ ذهبيّةٌ تحت كلّ عنوان: هويّةُ العلامة كانت تظهر عند التمرير وحده. */
.site-foot__col h4::after { content: ""; display: block; width: 28px; height: 3px;
  margin-top: 8px; border-radius: 2px; background: var(--yellow); opacity: .9; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { font-size: 14px; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 30px; }

.site-foot__addr { font-style: normal; font-size: 14px; line-height: 1.9; margin: 0; }
.site-foot__map { display: inline-flex; align-items: center; min-height: 30px;
  margin-top: var(--sp-2); font-size: 14px; text-decoration: underline; }

.site-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.16); }

/* الأرقامُ النظاميّة: كانت سطراً واحداً باهتاً (‏#9FBBE8) لا يُقتطع منه رقم.
   الآن عناصرُ مُعنوَنة، والقيمةُ بعرضٍ ثابتٍ لتُقرأ وتُنسخ. */
.site-foot__ids { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-8);
  margin: 0; padding: 0; list-style: none; }
.site-foot__ids li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.site-foot__ids span { color: #9FBBE8; font-size: 12px; }
.site-foot__ids b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: .02em; }

/* شعارُ الهيئة: الدليلُ الإرشاديُّ يفرض مساحةً خاليةً حول الشعار = **نصفُ ارتفاع
   الدرع**. والدرعُ 475 من 789 في الملفّ ⇒ عند عرضِ 240px يكون ارتفاعُه ~44px
   والمطلوبُ ~22px. وفي الملفّ حشوٌ مدمجٌ ~14px رأسيّاً و~20px أفقيّاً عند هذا
   المقاس، فيُكمَّل بـ12px حوله — فيتجاوز الشرطَ في الاتّجاهات الأربعة. */
.site-foot__zatca { padding: 12px; margin-inline-start: auto; }
.site-foot__zatca img { display: block; width: 240px; height: auto; }
@media (max-width: 860px) {
  .site-foot__zatca { padding: 10px 0; margin-inline-start: 0; }
  .site-foot__zatca img { width: 210px; }
}

.site-foot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  margin: 0; font-size: 13px; color: #C9DAF6; }
.site-foot__meta > span[aria-hidden] { color: #6E93D6; }
.site-foot__rights { color: #9FBBE8; }

/* ── شريط الفعل على الجوّال ───────────────────────────────────────── */
/* على الجوّال: عمودان لا عمودٌ واحد (كان التذييلُ يُمرَّر طويلاً بلا داعٍ)،
   والشعارُ يمتدّ عرضاً، وهدفُ اللمس يعود 44 لأنّ اللمس هنا لا المؤشّر. */
@media (max-width: 860px) {
  .site-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot li a, .site-foot__map { min-height: 44px; }
  .site-foot__ids { gap: var(--sp-3) var(--sp-6); }
  /* والختمُ الخارجيُّ يطفو فوق أسفل التذييل — فيُفسَح له **مكانٌ فارغ** بدل
     إزاحته من فوق زرٍّ إلى فوق سطرِ حقوق. ٥٦px ارتفاعُه المقيس + هامش. */
  .site-foot { padding-bottom: calc(var(--sp-6) + 64px); }
  /* بطاقةُ الشعار كانت 150px على شاشةِ 390 فابتلعت ثلثَها. */
  .site-foot__mark { padding: 10px 12px; }
  .site-foot__mark img { width: 112px; }
  .site-foot__tagline { max-width: none; }
}
/* والعمودُ الواحد لا يبدأ إلّا حين يضيق العمودان فعلاً — 390 شاشةٌ شائعةٌ
   جدّاً، وعتبةُ 420 كانت تُعطيها عموداً واحداً وتذييلاً يُمرَّر بلا نهاية. */
@media (max-width: 340px) {
  .site-foot__top { grid-template-columns: 1fr; }
}

.actionbar { display: none; }
@media (max-width: 860px) {
  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .actionbar .btn { min-height: 50px; font-size: 15px; }
  body { padding-bottom: 84px; }

  /* 🔴 ختمُ توثيق المركز السعوديّ (‏iframe خارجيّ) يهبط أسفلَ اليسار بـ
     `z-index: 2147483000` ⇒ يغطّي **٦٨٪ من زرّ «تصفّح الأسعار»**، والنقرةُ
     تذهب إليه لا إلى الزرّ. مقيسٌ على 390px: الختمُ 18‑139 والزرُّ 12‑191.
     ⇒ يُرفع فوق شريط الفعل. و`!important` لأنّ السكربتَ يضع الموضعَ سطريّاً. */
  .sbc-seal-frame { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}

/* ── لحظة الحركة الوحيدة: صعود بطاقات الأسعار ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cards > .card {
      animation: rise .7s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
  @keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
