/* ==========================================================================
   Dr.Zeddari المهندس — صفحة هبوط
   أسلوب كاريكاتيري مرح: أبيض، برتقالي، أخضر، بطاقات بإطار أسود وظل صلب.
   مصمّم للهاتف أولاً، ثم يتّسع للوحة والحاسوب.
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --muted: #4A4A4A;
  --line: #2B2B2B;
  --paper: #FFFFFF;

  --orange: #FF7A1A;
  --orange-soft: #FFF1E4;
  --brown: #3A1A08;            /* حدود العناوين البرتقالية */

  --green: #1E8C45;
  --green-btn: #157A38;        /* أخضر الأزرار: تباين كافٍ مع الأبيض */
  --green-dark: #0F5A2B;
  --green-soft: #EAF6EE;

  --yellow: #FFC21A;
  --yellow-soft: #FFF6D6;

  --r: 20px;
  --shadow: -6px 6px 0 var(--line);
  --shadow-sm: -3px 3px 0 var(--line);
  --header-h: 68px;

  color-scheme: light;
}

/* ---------- الأساس ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--green-dark);
  outline-offset: 4px;
  border-radius: 8px;
}

.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 760px); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- عناوين كاريكاتيرية ---------- */

.toon,
.toon--green {
  --o: 2px;
  --d: calc(var(--o) * .75);
  font-weight: 900;
  line-height: 1.45;
  color: var(--orange);
  --oc: var(--brown);
  text-shadow:
    var(--o) 0 var(--oc), calc(var(--o) * -1) 0 var(--oc),
    0 var(--o) var(--oc), 0 calc(var(--o) * -1) var(--oc),
    var(--d) var(--d) var(--oc), calc(var(--d) * -1) var(--d) var(--oc),
    var(--d) calc(var(--d) * -1) var(--oc), calc(var(--d) * -1) calc(var(--d) * -1) var(--oc),
    calc(var(--o) * -1.5) calc(var(--o) * 2.5) 0 var(--oc);
}
.toon--green {
  color: #2BB35A;
  --oc: #0F3D1F;
}

h1.toon { font-size: clamp(2.15rem, 9vw, 3.6rem); }
h1.toon .toon--green { display: block; }
h2.toon { font-size: clamp(1.85rem, 7vw, 2.9rem); }

/* السطر الفرنسي الصغير تحت كل عنوان */
.fr {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: .01em;
  margin-top: .15rem;
}
.toon + .fr { margin-top: .5rem; } /* مسافة بعد ظل العنوان */

.sticker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 16px;
  font-size: .95rem;
  font-weight: 900;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.sticker--yellow { background: var(--yellow); color: var(--ink); }
.sticker--green  { background: var(--green-btn); color: #fff; }

/* ---------- الأزرار ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 54px;
  padding: .7rem 1.4rem;
  font: 800 1.05rem/1.2 "Cairo", system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: -4px 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translate(2px, -2px); box-shadow: -6px 6px 0 var(--line); }
.btn:active { transform: translate(-4px, 4px); box-shadow: 0 0 0 var(--line); }

.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #FF8A33; }
.btn--green { background: var(--green-btn); color: #fff; }
.btn--green:hover { background: #18893F; }

.btn--sm {
  min-height: 42px;
  padding: .3rem .95rem;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.btn--lg { min-height: 60px; font-size: 1.15rem; padding: .8rem 1.8rem; }

.actions { display: grid; gap: 14px; margin-top: 24px; }

/* ---------- الشريط العلوي ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 3px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-inline-end: -14px;
  color: var(--line);
  background: var(--orange);
  border: 3px solid var(--line);
  border-radius: 50%;
}
.brand__dot svg { width: 24px; height: 24px; }
.brand__name {
  padding: 3px 14px;
  padding-inline-start: 22px;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.7;
  color: #fff;
  white-space: nowrap;
  background: #3B3B3B;
  border-radius: 999px;
}
.brand__name span { color: #D9D9D9; }

.nav { display: none; }

/* ---------- 1) الواجهة ---------- */

.hero {
  position: relative;
  padding: 28px 0 60px;
  isolation: isolate;
}
.hero::before { /* نقاط الطباعة الكاريكاتيرية */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 122, 26, .28) 1.7px, transparent 2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 60%, transparent 100%);
}

.hero__in { display: grid; gap: 34px; }
.hero__text { text-align: center; }
.hero .fr { font-size: 1rem; }

.lead {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 12px;
  font-size: .88rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
}
.chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.hero__art {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.hero__art img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: -8px 8px 0 var(--line);
}

.bubble {
  position: absolute;
  top: 7%;
  inset-inline-end: 4%;
  padding: 4px 16px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green-dark);
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}
.bubble::after { /* ذيل الفقاعة نحو الروبوت */
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  transform: translateX(-50%) rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bob 3.2s ease-in-out infinite; }
}
@keyframes bob {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-6px); }
}

/* ---------- الأقسام ---------- */

.section { padding: 64px 0; }
.section--orange,
.section--green {
  border-block: 3px solid var(--line);
}
.section--orange { background: var(--orange-soft); }
.section--green  { background: var(--green-soft); }

.sec-head { text-align: center; margin-bottom: 34px; }

.card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ---------- 2) العروض ---------- */

.offers {
  display: grid;
  gap: 30px;
  max-width: 600px;
  margin-inline: auto;
}

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.offer--orange { --accent: var(--orange); --accent-soft: var(--orange-soft); }
.offer--green  { --accent: var(--green);  --accent-soft: var(--green-soft); }
.offer--yellow { --accent: var(--yellow); --accent-soft: var(--yellow-soft); }

.offer__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px 18px;
  background-color: var(--accent);
  background-image: radial-gradient(circle, rgba(0, 0, 0, .14) 1.3px, transparent 1.6px);
  background-size: 12px 12px;
  border-bottom: 3px solid var(--line);
}
.offer__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--line);
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.offer__icon svg { width: 26px; height: 26px; }
.tag {
  padding: 1px 14px;
  font-weight: 900;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 999px;
  transform: rotate(-3deg);
}

.offer__body { flex: 1; padding: 20px 20px 22px; }
.offer h3 { font-size: 1.4rem; font-weight: 900; line-height: 1.45; }

.who { margin-top: 14px; }
.who strong {
  padding: 0 8px;
  margin-inline-end: 4px;
  background: var(--accent-soft);
  border: 2px solid var(--line);
  border-radius: 8px;
}

.label { margin-top: 18px; font-weight: 900; }

.checks li {
  position: relative;
  margin-top: 10px;
  padding-inline-start: 36px;
  line-height: 1.7;
}
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  width: 24px;
  height: 24px;
  background: var(--green-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed #C9C9C9;
}
.meta li { display: flex; align-items: flex-start; gap: 10px; }
.meta svg { width: 22px; height: 22px; flex: none; margin-top: .35em; color: var(--green-dark); }
.meta b { font-weight: 900; margin-inline-end: 6px; }

.offer__foot {
  display: grid;
  gap: 14px;
  padding: 16px 20px 22px;
  background: var(--accent-soft);
  border-top: 3px solid var(--line);
}
.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.price .todo { font-size: 1.35rem; }

/* خانة للتعبئة: تظهر بوضوح حتى لا تُنسى */
.todo {
  padding: 0 8px;
  font-weight: 900;
  color: #7A4B00;
  white-space: nowrap;
  background: var(--yellow-soft);
  border: 2px dashed #C98A00;
  border-radius: 8px;
}

/* ---------- 3) برنامج الورشة ---------- */

.stations {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 640px;
  margin-inline: auto;
  counter-reset: none;
}
.station:not(:last-child)::before { /* الطريق الذي يربط محطة بالتي تليها */
  content: "";
  position: absolute;
  top: 54px;
  bottom: -22px;
  inset-inline-start: 25px;
  border-inline-start: 4px dashed var(--line);
}

.station {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}
.station__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.station:nth-child(even) .station__num { background: var(--green-btn); color: #fff; }

.station__card { padding: 16px 18px 18px; }
.station__card h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.5; }
.station__card p:last-child { margin-top: 8px; color: var(--muted); }

/* ---------- 4) الشهادات ---------- */

.quotes { display: grid; gap: 34px; }

.quote {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 34px 22px 24px;
}
.quote__mark {
  position: absolute;
  top: -22px;
  inset-inline-start: 18px;
  width: 46px;
  height: 46px;
  padding: 10px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 50%;
}
.quote blockquote { width: 100%; }
.todo-text {
  padding: 22px 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: #8A8A8A;
  border: 2px dashed #BDBDBD;
  border-radius: 12px;
}

/* ---------- 5) الحجز ---------- */

.booking {
  max-width: 860px;
  margin-inline: auto;
  padding: 34px 20px 30px;
  text-align: center;
  background-color: var(--green-soft);
  background-image: radial-gradient(circle, rgba(30, 140, 69, .16) 1.5px, transparent 1.8px);
  background-size: 18px 18px;
}
.booking .sec-head { margin-bottom: 14px; }
.booking__text {
  max-width: 40ch;
  margin-inline: auto;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat { margin-top: 28px; }
.chat__label { font-size: .92rem; font-weight: 700; color: var(--muted); }
.chat__bubble {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  font-weight: 700;
  background: #DCF8C6;
  border: 2px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 6) أسئلة شائعة ---------- */

.faq { display: grid; gap: 18px; }

.qa { overflow: hidden; }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--orange);
  border: 3px solid var(--line);
  border-radius: 50%;
}
.qa[open] summary::after { content: "−"; background: var(--green-btn); color: #fff; }
.qa[open] summary { border-bottom: 2px dashed #C9C9C9; }
.qa p { padding: 14px 18px 18px; color: var(--muted); }

/* ---------- التذييل ---------- */

.foot {
  padding: 46px 0 110px; /* مساحة لزر واتساب العائم على الهاتف */
  color: #EDEDED;
  background: #232323;
}
.foot__in {
  display: grid;
  gap: 26px;
  justify-items: center;
  text-align: center;
}
.foot__who p + p { margin-top: 8px; }
.foot .brand--dark { margin-bottom: 6px; }
.foot .brand__name { border: 2px solid #fff; }
.foot .fr { color: #BDBDBD; }

.foot__contact { display: grid; gap: 10px; }
.foot__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}
.foot__contact a:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.foot__contact svg { width: 22px; height: 22px; color: var(--orange); }

.socials { display: flex; gap: 14px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--line);
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: -3px 3px 0 var(--orange);
  transition: background-color .12s ease, transform .12s ease;
}
.socials a:hover { background: var(--orange); transform: translate(1px, -1px); }
.socials svg { width: 22px; height: 22px; }

.foot__copy {
  width: 100%;
  padding-top: 18px;
  font-size: .88rem;
  color: #A8A8A8;
  border-top: 1px solid #3D3D3D;
}

/* ---------- زر واتساب العائم + تذكير الروابط المؤقتة ---------- */

.fab {
  position: fixed;
  z-index: 30;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: var(--green-btn);
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: -4px 4px 0 var(--line);
  transition: transform .12s ease;
}
.fab svg { width: 30px; height: 30px; }
.fab:hover { transform: translate(2px, -2px) scale(1.04); }

.toast {
  position: fixed;
  z-index: 40;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  background: var(--line);
  border-radius: 14px;
  box-shadow: -4px 4px 0 var(--orange);
  transform: translateX(-50%);
}
.toast[hidden] { display: none; }

/* ==========================================================================
   الشاشات الأكبر
   ========================================================================== */

@media (min-width: 480px) {
  .actions { display: flex; flex-wrap: wrap; justify-content: center; }
}

@media (min-width: 720px) {
  .section { padding: 84px 0; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .booking { padding: 48px 40px 40px; }
  .foot { padding-bottom: 46px; }
  .foot__in {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
    justify-items: start;
    text-align: start;
  }
  .foot__copy { grid-column: 1 / -1; }
}

@media (min-width: 880px) {
  .nav { display: flex; gap: 26px; }
  .nav a {
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 8px;
  }
  .nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; }
  .brand__name { font-size: 1rem; }
}

@media (min-width: 960px) {
  .toon, .toon--green { --o: 3px; }
  .hero { padding: 56px 0 96px; }
  .hero__in {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 48px;
  }
  .hero__text { text-align: start; }
  .lead { max-width: 42ch; margin-inline: 0; }
  .actions { justify-content: flex-start; }
  .actions--center { justify-content: center; }
  .chips { justify-content: flex-start; }
  .hero__art { max-width: 480px; }
}

@media (min-width: 1040px) {
  .offers {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 28px;
  }

  .stations {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: none;
  }
  .stations::before { /* على الحاسوب: طريق أفقي واحد خلف الأرقام */
    content: "";
    position: absolute;
    top: 25px;
    inset-inline: 10%;
    border-top: 4px dashed var(--line);
  }
  .station:not(:last-child)::before { content: none; }
  .station {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 18px;
  }
  .station__card { width: 100%; height: 100%; text-align: center; }
}
