/* =========================================================================
   مكتب الأستاذ ياسر المنشاوي — عقاري وتسجيل
   -------------------------------------------------------------------------
   Nobody lands here in a panic. They land here holding a contract somebody
   asked them to sign this week, and the question is always the same: is this
   one safe. So the page is built like the document itself — a checklist with
   a spine down the middle, ticks and crosses, and nothing decorative in the
   way.

   Cool blue-grey on white, one copper accent, a faint blueprint grid, and
   tabular figures. Deliberately the coldest page in the set: the criminal one
   is near-black and urgent, the family one is warm and round, this one is a
   surveyor's drawing. Same trade, three different rooms.
   ========================================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f2f5f8;
  --paper-3: #e7edf3;
  --ink: #12202c;
  --ink-2: #41586a;
  --ink-3: #74899a;
  --blue: #1a4f7a;
  --blue-2: #2670ab;
  --blue-soft: rgba(26, 79, 122, 0.07);
  --copper: #b5622f;
  --copper-soft: rgba(181, 98, 47, 0.1);
  --green: #2f7d5b;
  --red: #b23a3a;
  --line: rgba(18, 32, 44, 0.12);
  --line-2: rgba(18, 32, 44, 0.22);
  --shadow: 0 14px 40px rgba(18, 32, 44, 0.1);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: min(1120px, calc(100% - 36px));
  --narrow: min(820px, calc(100% - 36px));
}

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

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

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

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

img {
  max-width: 100%;
  display: block;
  /* width/height attributes count as a definite height and would beat every
     aspect-ratio below. */
  height: auto;
}

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

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.narrow {
  width: var(--narrow);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.demo-note {
  background: var(--paper-3);
  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(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.logo b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.logo span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.menu {
  display: flex;
  gap: 2px;
}

.menu a {
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 4px;
}

.menu a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.head .cta {
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ hero */
/* The blueprint grid is drawn, not photographed — it costs nothing and it is
   the one motif the whole page is built on. */
.hero {
  position: relative;
  padding: 58px 0 54px;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(26, 79, 122, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 79, 122, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero__in {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 38px;
  align-items: center;
}

.hero__face {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.hero__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--copper);
  border-radius: 3px;
  color: var(--copper);
  font-size: 12.5px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.32;
}

.hero h1 u {
  text-decoration: none;
  box-shadow: inset 0 -10px 0 var(--copper-soft);
}

.hero p {
  margin: 16px 0 24px;
  max-width: 50ch;
  font-size: 17px;
  color: var(--ink-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

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

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

.btn--wire {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--wire:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--wa {
  background: #1f7a4d;
  color: #fff;
}

.btn--wa:hover {
  background: #228c58;
}

/* -------------------------------------------------------------- sections */
.band {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.band--tint {
  background: var(--paper-2);
}

.band h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 8px;
}

.band__lead {
  margin: 0 0 30px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ------------------------------------------------------------- the checks */
/* The spine of the page: seven things to look for, each one a tick or a
   cross. It is the section a client screenshots and sends to his brother. */
.checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  counter-reset: check;
}

.check {
  counter-increment: check;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.check:last-child {
  border-bottom: 0;
}

.check__no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.check__no::before {
  content: "0" counter(check);
}

.check h3 {
  font-size: 17.5px;
  margin-bottom: 4px;
}

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

.check__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
}

.check__flag--bad {
  background: rgba(178, 58, 58, 0.09);
  color: var(--red);
}

.check__flag--good {
  background: rgba(47, 125, 91, 0.1);
  color: var(--green);
}

/* ------------------------------------------------------------ photo cards */
.cards {
  display: grid;
  gap: 18px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card__body {
  padding: 20px 22px 22px;
  flex: 1;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

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

/* ------------------------------------------------------------- documents */
/* A plain list with a rule down the side: it has to read like the page the
   client will print and tick off. */
.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.docs li {
  list-style: none;
  padding: 11px 0 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  gap: 10px;
}

.docs li svg {
  flex: 0 0 auto;
  margin-top: 6px;
  color: var(--green);
}

.docs ul {
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------- the steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.step {
  padding: 22px;
  border-inline-start: 1px solid var(--line);
}

.step:first-child {
  border-inline-start: 0;
}

.step b {
  display: block;
  font-size: 12.5px;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 4px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

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

/* ------------------------------------------------------------------- faq */
.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

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

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

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-size: 20px;
}

.faq details[open] summary::after {
  content: "−";
}

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

/* ------------------------------------------------------------------ form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.form {
  display: grid;
  gap: 13px;
}

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

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

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

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

.office-shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 40px 0 24px;
  color: var(--ink-3);
  font-size: 14px;
  background: var(--paper-2);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}

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

.foot__end {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  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: 12px 18px;
  border-radius: 999px;
  background: #1f7a4d;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(31, 122, 77, 0.28);
}

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

  .step:nth-child(3) {
    border-inline-start: 0;
  }

  .cards--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .menu,
  .head .cta {
    display: none;
  }

  .hero__in,
  .cards--2,
  .cards--3,
  .contact-grid,
  .docs,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__face {
    width: 140px;
    height: 140px;
  }

  .step {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .step:first-child {
    border-top: 0;
  }

  .check {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .band {
    padding: 46px 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
