/* Al Asma Real Estate Valuation — light editorial theme, RTL */
:root {
  --bg: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #1B2621;
  --muted: #5E6B64;
  --line: #DDD6C8;
  --green: #1E5B45;
  --green-dk: #154232;
  --green-lt: #E3EDE7;
  --sand: #EDE6D8;
  --error: #B42318;
  --wa: #1E8A4C;
  --f: "Readex Pro", Tahoma, Arial, sans-serif;
  --frame: 1160px;
  --gut: 24px;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--f); font-weight: 400; font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.01em; }
h2 { font-size: clamp(25px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--green); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gut); }
.frame--slim { max-width: 860px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.pending { background: #FFE58F; color: #3A2E00; padding: 0 4px; border-radius: 3px; }

/* Top strip + header */
.strip { background: var(--green-dk); color: #CFE0D6; font-size: 13.5px; }
.strip__in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.strip a { color: #fff; text-decoration: none; font-weight: 500; }
.bar { position: sticky; top: 0; z-index: 30; background: rgba(246,243,236,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--bg); display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo__txt b { font-weight: 600; font-size: 19px; }
.logo__txt small { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; text-decoration: none; color: var(--ink); font-size: 15px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--green-lt); color: var(--green-dk); font-weight: 500; }
.bar__cta { text-decoration: none; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.bar__cta:hover { background: var(--green-dk); }
.menu-btn { display: none; margin-inline-start: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.menu-btn span { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 16px/1 var(--f); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dk); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.kicker { font-size: 14px; font-weight: 500; color: var(--green); letter-spacing: .02em; margin-bottom: 10px; }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--green); vertical-align: middle; margin-inline-end: 10px; }

/* Home lead */
.lead { padding: 70px 0 80px; }
.lead__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lead__p { font-size: 19px; color: var(--muted); max-width: 32em; }
.lead__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Certificate card */
.cert { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(27,38,33,.35); }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px dashed #CDBF9F; border-radius: 10px; pointer-events: none; }
.cert__top { font-size: 12.5px; color: var(--green); font-weight: 500; margin: 0 0 4px; }
.cert__t { font-size: 22px; margin: 0 0 14px; }
.cert__dl { margin: 0; }
.cert__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #EEE8DC; font-size: 15px; }
.cert__dl dt { color: var(--muted); }
.cert__dl dd { margin: 0; font-weight: 500; text-align: left; }
.cert__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Blocks */
.blk { padding: 80px 0; }
.blk--sand { background: var(--sand); }
.blk__head { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 24px; margin-bottom: 34px; }
.blk__head .kicker { width: 100%; margin: 0; }
.blk__head h2 { margin: 0; }
.more { margin-inline-start: auto; font-weight: 500; }

/* Service rows */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 70px 1fr 1.3fr 40px; align-items: center; gap: 20px; padding: 26px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.row:hover { background: var(--paper); }
.row__n { font-size: 15px; color: var(--green); font-weight: 500; }
.row__t { font-size: 26px; font-weight: 600; }
.row__d { color: var(--muted); }
.row__go { font-size: 24px; color: var(--green); text-align: left; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio article { background: var(--paper); border-radius: var(--r); padding: 26px; }
.trio p { color: var(--muted); margin: 0; }

/* Timeline (home) */
.line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: l; position: relative; }
.line::before { content: ""; position: absolute; top: 17px; right: 18px; left: 18px; height: 2px; background: var(--line); }
.line li { counter-increment: l; position: relative; padding-top: 52px; padding-inline-end: 16px; display: flex; flex-direction: column; }
.line li::before { content: counter(l); position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; }
.line b { font-weight: 600; font-size: 19px; }
.line span { color: var(--muted); }

/* Steps (process page) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 64px 34px 0; border-right: 2px solid var(--line); margin-right: 18px; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; right: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; }
.steps h3 { margin-bottom: 4px; padding-top: 2px; }
.steps p { color: var(--muted); margin: 0; }

/* Q&A */
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa div { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Inner pages */
.intro { padding: 64px 0 46px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(32px, 4.4vw, 50px); }
.intro__lead { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split h2 { font-size: 24px; }
.dots { list-style: none; margin: 0 0 20px; padding: 0; }
.dots li { position: relative; padding: 10px 24px 10px 0; border-bottom: 1px solid var(--line); }
.dots li::before { content: ""; position: absolute; right: 2px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.fine { font-size: 14.5px; color: var(--muted); }
.band { background: var(--green); color: #fff; padding: 46px 0; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band p { font-size: 26px; font-weight: 600; margin: 0; }
.band .btn--primary { background: #fff; color: var(--green-dk); }
.band .btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.band .btn--line:hover { background: #fff; color: var(--green-dk); }

/* Request form */
.req { padding: 84px 0; background: var(--green-dk); color: #E6EFEA; }
.req__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.req h2 { color: #fff; }
.req .kicker { color: #9FD0B6; }
.req .kicker::before { background: #9FD0B6; }
.req__contacts { list-style: none; margin: 24px 0; padding: 0; }
.req__contacts li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.req__contacts span { font-size: 13px; color: #9FB8AA; }
.req__contacts a { color: #fff; }
.req .map .btn--line { color: #fff; border-color: rgba(255,255,255,.5); }
.req .map .btn--line:hover { background: #fff; color: var(--green-dk); }
.map { display: flex; flex-wrap: wrap; gap: 12px; }
.map iframe { width: 100%; height: 280px; border: 0; border-radius: var(--r); }
.req__card { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form > * { grid-column: 1 / -1; }
.form .field--half { grid-column: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field em { font-style: normal; color: var(--muted); font-weight: 300; }
.field input, .field select, .field textarea { font: 400 17px/1.4 var(--f); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 52px; width: 100%; }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field input:user-invalid, .field select:user-invalid { border-color: #F97066; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { background: #FEE4E2; color: var(--error); padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.form .btn { width: 100%; }

/* Legal */
.doc { padding: 50px 0 80px; }
.doc h2 { font-size: 23px; margin-top: 1.6em; }
.doc ul { padding-inline-start: 1.2em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin-bottom: 1em; background: var(--paper); }
.doc th, .doc td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }

/* Center pages */
.center { padding: 100px 0; }
.center p { font-size: 19px; color: var(--muted); max-width: 36em; }
.center .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Footer */
.end { background: var(--ink); color: #B9C4BE; font-size: 14.5px; padding: 56px 0 100px; }
.end__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.4fr; gap: 28px; }
.end p { margin: 0 0 6px; }
.end__name { color: #fff; font-weight: 600; font-size: 17px; }
.end__h { color: #fff; font-weight: 500; margin-bottom: 10px !important; }
.end ul { list-style: none; margin: 0; padding: 0; }
.end li { margin-bottom: 6px; }
.end a, .end .linkbtn { color: #E3EAE6; }
.end__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.end__legal span { margin-inline-end: auto; }

/* Mobile dock + cookie */
.dock { display: none; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.2); font-size: 15px; }
.cookie p { margin: 0 0 12px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { min-height: 44px; font-size: 15px; padding: 0 20px; }

@media (max-width: 1180px) {
  .bar__in { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .nav { order: 4; width: 100%; display: none; margin: 0 0 12px; }
  .bar.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { border-radius: 10px; padding: 10px 12px; font-size: 16px; }
  .bar__cta { display: none; }
  .end__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .lead__grid, .split, .req__grid { grid-template-columns: 1fr; gap: 36px; }
  .trio { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .line::before { display: none; }
  .row { grid-template-columns: 44px 1fr 30px; }
  .row__d { grid-column: 2 / 3; grid-row: 2; margin-top: -10px; }
  .row__go { grid-row: 1; grid-column: 3; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .strip__in span { display: none; }
  .strip__in { justify-content: center; }
  .lead { padding: 40px 0 56px; }
  .blk, .req { padding: 56px 0; }
  .row__t { font-size: 21px; }
  .line { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form .field--half { grid-column: 1 / -1; }
  .req__card { padding: 22px 16px; }
  .end__grid { grid-template-columns: 1fr 1fr; }
  .end__brand { grid-column: 1 / -1; }
  .band p { font-size: 21px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .dock a { flex: 1; text-align: center; text-decoration: none; font-weight: 500; color: var(--ink); padding: 12px 6px; border-radius: 999px; border: 1.5px solid var(--ink); }
  .dock a:last-child { background: var(--green); color: #fff; border-color: var(--green); }
  .cookie { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Illustrative photos */
.wide { margin: 56px 0 0; }
.pic .wide { margin: 34px 0 0; }
.wide img { width: 100%; aspect-ratio: 1400 / 588; object-fit: cover; border-radius: 20px; background: var(--sand); }
.wide figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .wide img { aspect-ratio: 4 / 3; border-radius: 14px; } .wide { margin-top: 36px; } }
