/* cases.css — صفحة القضايا والمرافعات (/cases/) — تُحمَّل بعد services.css */

/* ---------- الهيرو ---------- */
.svc-hero--cases { padding: 200px 0 50px; }
.svc-hero--cases .svc-hero__title { width: min(604px, 100%); margin: 30px auto 60px; }

/* ---------- المقدمة + البطاقات ---------- */
.cases-intro { padding: 40px 0 98px; background: #fff; }
.cases-intro__head { max-width: 829px; margin: 30px auto 38px; text-align: center; }
.cases-intro__head h2 {
  margin: 0 0 20px;
  font-size: 32px; font-weight: 600; line-height: 1.26; color: var(--c-heading);
}
.cases-intro__head p { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.6; }

.cases-wide { max-width: calc(1216px + 2 * var(--gutter)); }
.cases-row { display: grid; gap: 16px; align-items: stretch; }
.cases-row--a { grid-template-columns: minmax(0, 415fr) minmax(0, 785fr); }
.cases-row--b { grid-template-columns: minmax(0, 785fr) minmax(0, 415fr); margin-top: 88px; }

.cases-photo { display: block; padding: 8px; background: #fff; border-radius: 50px; }
.cases-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50px; box-shadow: var(--svc-shadow);
}
.cases-photo--tall img { aspect-ratio: auto; }

.cases-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px;
  background: var(--svc-lav);
  border-radius: 50px;
  box-shadow: var(--svc-shadow);
  text-align: center;
}
.cases-text h3 { margin: 0; color: var(--svc-red); font-weight: 600; }
.cases-text p { margin: 16px 0 0; font-size: 21px; }
.cases-text--a h3 { font-size: 26.25px; line-height: 1.9; }
.cases-text--a p { font-weight: 300; line-height: 1.9; color: var(--c-heading); }
.cases-text--a h3 + p { margin-top: 0; }
.cases-text--b h3 { font-size: 27.93px; line-height: 1.6; }
.cases-text--b p { line-height: 1.6; color: var(--c-text); }
.cases-text--b strong { font-weight: 600; color: #1b5b73; }

/* ---------- ما الذي نقدمه لك ---------- */
.cases-offer { padding: 50px 0 115px; }
.cases-offer__title { margin: 30px 0 45px; color: var(--svc-red); }
.cases-offer__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;
}
.cases-offer__grid a {
  display: grid; grid-template-columns: 1fr 3fr; align-items: center;
  height: 108px; padding: 8px;
  background: #fff; border-radius: 50px;
  box-shadow: 0 1px 3px 1px rgba(81, 127, 164, .3);
  text-align: center; color: var(--c-heading);
  transition: box-shadow .2s, transform .2s;
}
.cases-offer__grid a:hover { color: var(--c-heading); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(81, 127, 164, .35); }
.cases-offer__grid svg { width: 49px; height: 56px; margin-inline: auto; fill: #175976; }
.cases-offer__grid span { font-size: 19.2px; font-weight: 300; line-height: 1.55; }

/* ---------- الأسئلة الشائعة ---------- */
.cases-faq { padding: 90px 0 120px; }
.cases-faq__title {
  margin: 30px 0 60px;
  font-size: 42px; font-weight: 600; line-height: 1.143;
  color: var(--c-heading); text-align: center;
}
.cases-faq__row {
  display: grid; grid-template-columns: minmax(0, 741fr) minmax(0, 371fr);
  column-gap: 60px; align-items: start;
  max-width: 1172px; margin-inline: auto;
}
.cases-faq__list details + details { margin-top: 6px; }
.cases-faq__list { padding-top: 6px; }
.cases-faq__list summary {
  display: flex; align-items: center;
  min-height: 74px; padding: 12px 0 12px 24px;
  background: linear-gradient(-225deg, rgba(246, 254, 255, .91) 25%, rgba(185, 182, 229, .87) 100%);
  list-style: none; cursor: pointer;
  font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--c-heading);
}
.cases-faq__list summary::-webkit-details-marker { display: none; }
.cases-faq__list summary span { margin-inline-start: auto; }
.cases-faq__list summary::before {
  content: ""; flex: none; order: -1;
  width: 50px; height: 50px; margin-inline-start: -23px;
  background-color: var(--c-primary);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 16px 2px, 2px 16px;
  background-position: center; background-repeat: no-repeat;
}
.cases-faq__list details[open] summary::before { background-image: linear-gradient(#fff, #fff); background-size: 16px 2px; }
.cases-faq__list summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.faq__body { padding: 12px 24px; }
.faq__body p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body strong { font-weight: 700; }

.cases-faq__photo { display: block; }
.cases-faq__photo img { width: 100%; border-radius: 50px; box-shadow: var(--svc-shadow); }

/* ---------- تابلت ---------- */
@media (max-width: 1023px) {
  .cases-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-faq__row { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cases-faq__photo { width: min(100%, 420px); justify-self: center; }
}

/* ---------- موبايل ---------- */
@media (max-width: 767px) {
  .svc-hero--cases { padding: 200px 0; }
  .svc-hero--cases .svc-hero__title { width: min(340px, 100%); margin: 25px auto 50px; }
  .svc-hero--cases .svc-hero__btns { margin-bottom: 25px; }

  .cases-intro { padding: 40px 0 30px; }
  .cases-intro__head { margin: 20px auto 30px; }
  .cases-intro__head h2 { font-size: 22.4px; line-height: 1.8; }
  .cases-intro__head p { font-size: 15px; line-height: 1.6; }

  .cases-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cases-row--b { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 72px; }
  .cases-photo { padding: 10px; }
  .cases-photo--tall { padding: 5px; }

  .cases-text { border-radius: 50px; }
  .cases-text--a { padding: 5px; }
  .cases-text--a h3 { font-size: 20px; line-height: 1.9; }
  .cases-text--a p { font-size: 16px; line-height: 1.9; }
  .cases-text--b { padding: 10px; }
  .cases-text--b h3 { font-size: 21.28px; }
  .cases-text--b p { font-size: 16px; }

  .cases-offer { padding: 21px 0 60px; }
  .cases-offer__title { margin: 20px 0 30px; font-size: 32px; line-height: 1.6; }
  .cases-offer__grid { gap: 20px; }
  .cases-offer__grid a {
    grid-template-columns: 23px 1fr; gap: 5px;
    height: 55px; padding: 5px; border-radius: 20px;
  }
  .cases-offer__grid svg { width: 22px; height: 25px; }
  .cases-offer__grid span { font-size: 11.2px; }

  .cases-faq { padding: 30px 0; }
  .cases-faq__title { margin: 20px 0 46px; }
  .cases-faq__row { padding-inline: 15px; }
  .cases-faq__list summary { min-height: 64px; }
  .cases-faq__list summary::before { width: 40px; height: 40px; }
}
