/* مسار — عالم الطريق: حبر، خوخة، ورق، رمل، نعناع — ثيم فاتح بس */
@font-face { font-family: "ThmanyahText"; src: url("fonts/thmanyahtext-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "ThmanyahText"; src: url("fonts/thmanyahtext-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ThmanyahSans"; src: url("fonts/thmanyahsans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ThmanyahSans"; src: url("fonts/thmanyahsans-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ThmanyahSans"; src: url("fonts/thmanyahsans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --peach: #FFD5C2;   /* الخلفية الأساسية */
  --paper: #FFFFFF;   /* الأرضية البيضاء للقراءة */
  --sand:  #FFEAE1;   /* خوخة فاتحة للفصول الهادية */
  --ink:   #3E4C79;   /* الحبر: المسار والعناوين والأزرار */
  --mint:  #78CCA8;   /* العُقد والعلامات */
  --muted: #525E85;   /* نص ثاني */
  --line:  #E5C3B3;   /* حدود وفواصل */
  --shadow: 0 10px 30px rgba(62, 76, 121, .08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --f-text: "ThmanyahText", "Thmanyah Serif Text", serif;
  --f-sans: "ThmanyahSans", "Thmanyah Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scrollbar-color: rgba(62,76,121,.45) transparent; }
body {
  background: var(--peach);
  color: var(--muted);
  font: 400 1.0625rem/1.8 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(62,76,121,.4); border-radius: 8px; }
::selection { background: rgba(120,204,168,.45); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem var(--f-sans); color: var(--ink);
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: rgba(120,204,168,.18); }
.btn.big { font-size: 1.15rem; padding: 17px 34px; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: #35426a; }
  .btn.ghost:hover { background: rgba(120,204,168,.34); }
}

.ic { width: 26px; height: 26px; flex: none; }

/* ── الهيرو ── */
.hero {
  min-height: 100svh;
  display: grid; align-items: center;
  position: relative;
  padding: clamp(56px, 8vh, 96px) 0 72px;
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-title {
  font: 900 clamp(2.5rem, 7.5vw, 4.5rem)/1.35 var(--f-text);
  margin-block-end: 18px;
}
.hero-lede { font: 500 clamp(1.05rem, 2.2vw, 1.25rem)/1.9 var(--f-sans); max-width: 34ch; margin-block-end: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art .mark { width: 100%; height: auto; display: block; }
.mk-route { fill: var(--ink); }
.mk-proxy { fill: none; stroke: none; }
.mk-node { fill: var(--mint); }
.mk-trav-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 22; }
.mk-trav-dot { fill: var(--ink); }
.mk-word { font: 900 480px/1 var(--f-text); fill: var(--ink); }

.scroll-hint {
  position: absolute; bottom: 22px; inset-inline: 0;
  text-align: center; font: 500 .9rem var(--f-sans); color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.scroll-hint svg { width: 18px; height: 18px; }
.motion .scroll-hint svg { animation: hint-bob 1.8s var(--ease-inout) infinite; }
@keyframes hint-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(6px) } }

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (max-width: 939px) {
  .hero-art { max-width: 420px; }
}

/* ── المسرح: فصل واحد ثابت، الفصول بتتبادل جواه ── */
.chapter { padding: clamp(56px, 9vh, 100px) 0; }
.panic   { background: var(--peach); }
.relief, .how, .packages { background: var(--paper); }
.voices, .faq { background: var(--sand); }
.arrive  { background: var(--peach); }

.motion main { position: relative; background: var(--peach); height: 100dvh; }
.motion .stage-bg { display: block; position: absolute; inset: 0; z: 0; }
.stage-bg { display: none; }
.stage-bg i { position: absolute; inset: 0; opacity: 0; }
.bg-paper { background: var(--paper); }
.bg-sand  { background: var(--sand); }

.motion .chapter {
  position: absolute; inset: 0; z: 1;
  display: grid; align-content: safe center;
  background: none; overflow: hidden;
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}

/* عناوين الفصول + شريط الكيلومترات (بيتحقن من main.js) */
.chapter h2 { font: 700 clamp(1.9rem, 4.6vw, 3rem)/1.45 var(--f-text); margin-block-end: 12px; }
.lede { font: 500 clamp(1rem, 2vw, 1.12rem)/1.9 var(--f-sans); max-width: 56ch; margin-block-end: 34px; }
.km { display: flex; align-items: center; gap: 12px; min-height: 12px; margin-block-end: 16px; }
.km i { width: 64px; height: 3px; background: var(--ink); border-radius: 2px; transform-origin: 100% 50%; }
.km b { width: 11px; height: 11px; border-radius: 50%; background: var(--mint); display: block; }

/* الرسم العام للفصول */
.art svg, .voices-art svg, .arrive-art svg { width: 100%; height: auto; display: block; }
.art svg { max-width: 620px; margin-inline: auto; }
.close { font: 700 1.15rem/1.9 var(--f-text); color: var(--ink); max-width: 52ch; margin-block-start: 34px; }

/* ── ١. البلبالة ── */
.pn-seg { stroke: var(--ink); stroke-width: 13; fill: none; stroke-linecap: round; }
.pn-sheet polygon { fill: var(--paper); stroke: var(--line); stroke-width: 3; }
.pn-crease { stroke: var(--line); stroke-width: 2.5; fill: none; }
.pn-post { stroke: var(--muted); stroke-width: 9; stroke-linecap: round; fill: none; }
.pn-panel { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.pn-sign-text { fill: var(--ink); font: 700 30px var(--f-sans); text-anchor: middle; }

.feat-list { list-style: none; padding: 0; display: grid; gap: 26px; margin-block-start: 38px; }
.feat-list li { display: grid; gap: 10px; justify-items: start; }
.feat-list .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(120,204,168,.2); color: var(--ink); }
.feat-list h3 { font: 700 1.15rem var(--f-text); }
.feat-list p { font-size: .98rem; max-width: 30ch; }
@media (min-width: 760px) {
  .feat-list { grid-template-columns: repeat(3, 1fr); gap: 34px; }
}

/* ── ٢. الإنقاذ ── */
.rl-proxy { fill: none; stroke: none; }
.rl-seg { stroke: var(--ink); stroke-width: 13; fill: none; stroke-linecap: round; }
.rl-node { fill: var(--mint); }
.rl-sheet rect { fill: var(--paper); stroke: var(--line); stroke-width: 3; }
.rl-sh-line { stroke: rgba(82,94,133,.42); stroke-width: 6; stroke-linecap: round; fill: none; }
.rl-mark circle { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }

/* ── ٣. إزاي بنمشي ── */
.how-wrap { position: relative; }
.stations { list-style: none; padding: 0; display: grid; gap: 30px; }
.station { display: grid; gap: 12px; justify-items: start; text-align: start; }
.st-node {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--mint);
  display: grid; place-items: center; color: var(--ink);
  box-shadow: var(--shadow);
}
.st-node .ic { width: 34px; height: 34px; }
.station h3 { font: 700 1.2rem var(--f-text); }
.station p { font-size: .98rem; max-width: 30ch; }
.how-route { display: none; }
.hr-mark {
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--ink);
  margin: -10px 0 0 -10px; display: none;
}
@media (max-width: 759px) {
  .how-wrap::before {
    content: ""; position: absolute; top: 37px; bottom: 50px;
    inset-inline-start: 35px; border-inline-start: 3px dashed var(--line);
  }
}
@media (min-width: 760px) {
  .stations { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .station { justify-items: center; text-align: center; }
  .station p { max-width: 26ch; }
  .how-route {
    display: block; position: absolute; top: 36px;
    inset-inline: 16.5%; height: 3px;
  }
  .hr-line { width: 100%; height: 100%; overflow: visible; }
  .hr-line path { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .motion .hr-mark { display: block; }
}

/* ── ٤. اللي عدّوا قبلك ── */
.voices-art { max-width: 540px; margin-inline: auto; margin-block-end: 8px; }
.vf-ground { stroke: var(--line); stroke-width: 3.5; fill: none; stroke-dasharray: 2 15; stroke-linecap: round; }
.vf-pole { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; fill: none; }
.vf-cloth { fill: var(--mint); stroke: var(--ink); stroke-width: 0; }

.voices-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.voice {
  display: grid; gap: 6px; justify-items: start; padding: 20px 22px;
  background: rgba(255,255,255,.72); border: 2px dashed var(--line); border-radius: 18px 18px 18px 6px;
}
.voice .ic { width: 30px; height: 30px; color: var(--muted); }
.voice b { font: 700 1.02rem var(--f-sans); color: var(--ink); }
.voice span { font-size: .92rem; }
.v-a { transform: rotate(-.8deg); }
.v-b { transform: rotate(.9deg); }
.v-c { border-radius: 18px 18px 6px 18px; }
.note { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-block-start: 26px; }
.note .ic { width: 20px; height: 20px; color: var(--ink); }
@media (min-width: 700px) {
  .voices-list { grid-template-columns: 1fr 1fr; }
  .v-c { grid-column: 1 / -1; }
}

/* ── ٥. اختار طريقك ── */
.pk-strip { display: block; width: min(210px, 58%); height: auto; margin-block-end: 14px; }
.pk-strip .pk-line { stroke: var(--ink); stroke-width: 3; }
.pk-strip .pk-dot { fill: var(--ink); }
.pk-strip .pk-m { fill: var(--mint); }
.pk-strip .pk-fin { fill: var(--mint); }
.pk-strip .pk-check { stroke: var(--paper); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pk-grid { display: grid; gap: 20px; margin-block-start: 8px; }
.pk-card {
  position: relative; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow);
  display: grid; gap: 12px; justify-items: start;
}
.pk-hot { border: 2px solid var(--ink); }
.pk-tag {
  font: 600 .8rem var(--f-sans); color: var(--ink);
  background: rgba(120,204,168,.26); padding: 5px 14px; border-radius: 999px;
}
.pk-card h3 { font: 700 1.25rem var(--f-text); }
.pk-card p { font-size: .96rem; }
.pk-card .btn { padding: 10px 22px; font-size: .95rem; margin-block-start: 4px; }
@media (min-width: 860px) {
  .pk-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── ٦. أسئلة بتتكرر ── */
.faq .wrap { max-width: 868px; }
.faq-list { display: grid; gap: 14px; }
.sign {
  position: relative; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 16px;
}
.sg-node {
  position: absolute; inset-inline-start: -10px; top: 24px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--mint);
}
.sign summary {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; cursor: pointer; list-style: none;
}
.sign summary::-webkit-details-marker { display: none; }
.sg-q { flex: 1; font: 700 1.05rem/1.7 var(--f-text); color: var(--ink); }
.sg-ch { width: 20px; height: 20px; color: var(--muted); flex: none; transition: transform .3s var(--ease-out); }
.sign[open] .sg-ch { transform: rotate(180deg); }
.sign[open] summary { border-bottom: 1.5px dashed var(--line); border-radius: 14px 14px 0 0; }
.sg-a { padding: 0 20px; }
.sg-a p { margin: 12px 0 18px; font-size: .98rem; }
.motion .sg-a { overflow: hidden; }

/* ── ٧. وصلت ── */
.arrive-art { max-width: 600px; margin-inline: auto; margin-block-end: 10px; }
.ar-route { stroke: var(--ink); stroke-width: 12; fill: none; stroke-linecap: round; }
.ar-trav circle { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.ar-node { fill: var(--mint); }
.ar-ring { fill: none; stroke: var(--mint); stroke-width: 5; opacity: 0; }
.ar-check { stroke: var(--paper); stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arrive-cta { display: grid; gap: 18px; justify-items: center; margin-block-start: 26px; }
@media (max-width: 759px) {
  /* على الموبايل المحتوى بيلزق في آخر المسرح: مفيش فراغ كبير بينه وبين الفوتر */
  .motion .arrive { align-content: safe end; }
  .arrive .wrap { padding-block-end: 48px; }
  .arrive-art { max-width: 460px; }
}

/* ── الفوتر ── */
.site-foot { position: relative; background: var(--peach); padding: 0 0 42px; overflow: hidden; }
.foot-line { height: 10px; background: var(--ink); width: 100%; transform-origin: 100% 50%; }
.foot-grid { display: grid; gap: 34px; padding-block: 58px; align-items: start; }
.foot-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; }
.foot-mark { width: 92px; height: auto; color: var(--ink); }
.foot-mark path { fill: currentColor; }
.foot-name { font: 700 clamp(1.9rem, 6vw, 2.6rem)/1 var(--f-text); color: var(--ink); }
.foot-tag { grid-column: 1 / -1; font: 500 1rem/1.9 var(--f-sans); color: var(--muted); max-width: 34ch; margin-block-start: 6px; }
@media (max-width: 799px) { .foot-grid { gap: 24px; padding-block: 40px; } }
.foot-contacts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot-contacts a {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 .98rem var(--f-sans); color: var(--ink); text-decoration: none;
  text-decoration: underline; text-decoration-color: rgba(120,204,168,.7); text-underline-offset: 7px; text-decoration-thickness: 3px;
}
.foot-contacts .ic { width: 21px; height: 21px; }
.foot-note { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.foot-note .ic { width: 19px; height: 19px; color: var(--ink); }
.foot-small { font-size: .85rem; opacity: .8; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.2fr .8fr; }
}

/* ── زرار الواتساب العائم ── */
.wa-pill {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 30px rgba(62,76,121,.25);
}
.wa-pill svg { width: 26px; height: 26px; }
.wa-pill:active { transform: scale(.94); }
.motion .wa-pill { opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s; }
.motion .wa-pill.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s 0s; }

/* ── من غير جافاسكريبت: صفحة عادية متراصة ── */
.no-js-note { display: none; }
