/* =========================================================================
   ملاذ — صفحة محامي أحوال شخصية
   -------------------------------------------------------------------------
   Whoever opens this page is having a bad month. Most of them are women, most
   are reading it on a phone late at night, and most have already been told
   something frightening by somebody who does not know the law.

   So: nothing dark, nothing urgent, no red. Warm ivory, one calm teal, wide
   line spacing, rounded corners, and a single column the whole way down so
   there is never a decision about where to look next. The opposite of the
   criminal page in every choice, on purpose — the two are for the same lawyer
   on different days, and they must not look like one template recoloured.
   ========================================================================= */

:root {
  --sand: #fdf9f4;
  --sand-2: #f6efe6;
  --card: #ffffff;
  --ink: #26221e;
  --ink-2: #57504a;
  --ink-3: #8b827a;
  --teal: #1f6f6b;
  --teal-2: #2a908a;
  --teal-soft: rgba(31, 111, 107, 0.08);
  --clay: #c4795a;
  --line: rgba(38, 34, 30, 0.1);

  --font: "Tajawal", system-ui, sans-serif;
  --wrap: min(760px, calc(100% - 36px));
  --wide: min(1040px, calc(100% - 36px));
  --r: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  /* The width/height attributes on every <img> reserve the right box while the
     page loads, but they also count as a definite height — which makes the
     browser ignore every aspect-ratio set below. `auto` hands the height back
     to the CSS. Any rule that really wants a fixed height still wins on
     specificity. */
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--teal-soft);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wide {
  width: var(--wide);
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.demo-note {
  background: var(--sand-2);
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
}

/* ------------------------------------------------------------------ head */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 249, 244, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}

.logo svg {
  width: 30px;
  height: 30px;
}

.head .pill {
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: 66px 0 50px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.5;
}

.hero h1 span {
  color: var(--teal);
}

.hero p {
  margin: 18px auto 28px;
  max-width: 50ch;
  font-size: 17.5px;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn--solid {
  background: var(--teal);
  color: #fff;
}

.btn--solid:hover {
  background: var(--teal-2);
}

.btn--soft {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn--soft:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* A quiet line under the hero, not a badge row: this reader is not counting
   trophies, she is deciding whether to type. */
.reassure {
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* -------------------------------------------------------------- sections */
.band {
  padding: 54px 0;
}

.band--soft {
  background: var(--sand-2);
}

.band h2 {
  font-size: clamp(23px, 3.2vw, 30px);
  text-align: center;
}

.band__lead {
  margin: 12px auto 32px;
  max-width: 54ch;
  text-align: center;
  color: var(--ink-2);
}

/* The worries. Written as the sentence she would actually say, because the
   page has to sound like somebody already heard it. */
.worry {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.worry b {
  display: block;
  font-size: 17px;
  color: var(--teal);
  margin-bottom: 4px;
}

.worry p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* The steps, as a soft ladder rather than a numbered process diagram. */
.ladder {
  counter-reset: rung;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ladder li {
  counter-increment: rung;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.ladder li:last-child {
  border-bottom: 0;
}

.ladder li::before {
  content: counter(rung);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.ladder h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.ladder p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Cases, as plain chips — no cards, no icons, nothing that looks like a menu
   of products. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
}

/* The private note: the single most important promise on the page. */
.private {
  background: var(--teal);
  color: #fff;
  border-radius: var(--r);
  padding: 30px 32px;
  text-align: center;
}

.private h2 {
  color: #fff;
}

.private p {
  margin: 12px auto 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

/* ------------------------------------------------------------------- faq */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 17px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "▾";
  color: var(--teal);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ------------------------------------------------------------------ form */
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  display: grid;
  gap: 14px;
}

.form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sand);
  font-size: 15.5px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.form small {
  color: var(--ink-3);
  font-size: 12.5px;
}

.sent {
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: var(--r);
  padding: 20px 24px;
  font-weight: 700;
  text-align: center;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 40px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14.5px;
  text-align: center;
}

.foot b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 6px;
}

.foot__end {
  margin-top: 18px;
  font-size: 12.5px;
}

.wa {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(31, 111, 107, 0.28);
}

@media (max-width: 640px) {
  .head .pill {
    display: none;
  }

  .band {
    padding: 42px 0;
  }

  .private {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------- photographs */
/* Warm, soft-edged, generous. The photographs on this page have one job: make
   the room look like somewhere it is safe to sit down and talk. */

.hero__shot {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 24px;
  margin-top: 34px;
  filter: saturate(0.92) brightness(1.02);
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}

.shots figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

.lawyer {
  margin: 0;
}

.lawyer img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r);
}

.lawyer figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .lawyer {
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
