/* ==========================================================================
   KEY ZAMALEK — Design Tokens
   لوحة الألوان: نحاس قديم (تراث) + أسود دافئ (أمان) + رصاصي فولاذي (تقنية)
   ========================================================================== */
:root {
  --ink: #15130f;
  --ink-soft: #211d17;
  --ink-line: #3a342a;
  --parchment: #ece4d3;
  --parchment-dim: #d9cdb2;
  --brass: #b4884f;
  --brass-light: #d9b876;
  --steel: #24393c;
  --steel-light: #3c5b5e;
  --rust: #a63d2f;
  --rust-light: #c85643;
  --ok: #4c7a5e;

  --serif-ar: "Aref Ruqaa", serif;
  --body-ar: "Cairo", sans-serif;
  --serif-en: "Fraunces", serif;
  --body-en: "Inter", sans-serif;

  --radius: 2px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body-ar);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3, body[dir="rtl"] .display {
  font-family: var(--serif-ar);
}
body[dir="rtl"] { font-family: var(--body-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--body-en);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-emergency { background: var(--rust); color: #fff; }
.btn-emergency:hover { background: var(--rust-light); }
.btn-outline { background: transparent; color: var(--parchment); border-color: var(--brass); }
.btn-outline:hover { background: var(--brass); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--parchment); }
.btn-dark:hover { background: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--container); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--parchment); font-family: var(--serif-ar); font-size: 1.4rem; font-weight: 700;
}
.brand .brand-mark { color: var(--brass); }
.brand small { display:block; font-family: var(--body-en); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--parchment-dim); font-weight: 400;}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--parchment-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brass-light); }
.nav-cta { display:flex; align-items:center; gap:14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--parchment); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--ink); flex-direction: column; padding: 32px 24px; gap: 8px; transform: translateY(-120%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(180,136,79,0.16), transparent 55%), var(--ink);
  color: var(--parchment);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(180,136,79,0.045) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--brass-light); }
.hero-lede { font-size: 1.15rem; color: var(--parchment-dim); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--serif-en); font-size: 1.8rem; color: var(--brass-light); }
.hero-stat span { font-size: 0.8rem; color: var(--parchment-dim); }

.hero-badge {
  border: 1px solid var(--ink-line);
  background: rgba(236,228,211,0.03);
  padding: 22px;
  border-radius: var(--radius);
}
.hero-badge .doc-tag { font-family: var(--body-en); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--brass); text-transform: uppercase; }

/* ---------- Vault Timeline (signature element) ---------- */
.timeline-section { background: var(--steel); color: var(--parchment); padding: 70px 0; }
.timeline-section .eyebrow { color: var(--brass-light); border-color: var(--brass-light); }
.dial-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 10px;
}
.dial-track::before {
  content: "";
  position: absolute; top: 34px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 16px);
}
.dial-node { position: relative; text-align: center; flex: 1; padding: 0 8px; }
.dial-node .dot {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  background: var(--steel);
  font-family: var(--serif-en); font-weight: 600; color: var(--brass-light);
  position: relative; z-index: 2;
  font-size: 1.05rem;
}
.dial-node p { font-size: 0.88rem; color: var(--parchment-dim); margin: 0; }
.dial-node .tag { display:inline-block; margin-top:8px; font-size:0.68rem; letter-spacing:0.06em; padding: 3px 8px; border:1px solid var(--ink-line); color: var(--brass-light); }
@media (max-width: 800px) {
  .dial-track { flex-direction: column; gap: 34px; }
  .dial-track::before { display: none; }
}

/* ---------- Services grid ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--ink); color: var(--parchment); }
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 900px) { .grid-services { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-services { grid-template-columns: 1fr; } }
.service-card {
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--ink-line);
  padding: 30px 26px;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--brass); }
.service-card .num { font-family: var(--body-en); color: var(--brass); font-size: 0.8rem; letter-spacing: 0.1em; }
.service-card h3 { margin-top: 10px; }
.service-card p { color: var(--parchment-dim); font-size: 0.94rem; }
.service-card a.more { color: var(--brass-light); font-size: 0.86rem; font-weight: 600; }

/* ---------- Areas ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.areas-list span {
  border: 1px solid var(--ink-line); padding: 9px 16px; border-radius: 999px; font-size: 0.88rem;
  background: rgba(180,136,79,0.06);
}

/* ---------- Proof / documents ---------- */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .photo-gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .photo-gallery { grid-template-columns: 1fr; } }
.photo-gallery figure { margin: 0; border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; background: var(--ink-soft); }
.photo-gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }
.photo-gallery figcaption { padding: 12px 14px; font-size: 0.85rem; color: var(--parchment-dim); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { border: 1px solid var(--ink-line); background: var(--ink-soft); padding: 22px; border-radius: var(--radius); }
.proof-card .doc-tag { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); font-family: var(--body-en); }
.proof-card h3 { font-size: 1.05rem; margin-top: 8px; }
.proof-card p { color: var(--parchment-dim); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--ink-line); }
.faq-q {
  width: 100%; text-align: right; background: none; border: none; cursor: pointer;
  padding: 22px 0; font-size: 1.05rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--body-ar);
}
.faq-q .icon { color: var(--brass); font-size: 1.3rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: #4a4536; }
.faq-a p { padding-bottom: 20px; }

/* ---------- Contact form ---------- */
.form-card { background: var(--ink); color: var(--parchment); padding: 36px; border-radius: var(--radius); border: 1px solid var(--ink-line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--parchment-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; background: var(--ink-soft); border: 1px solid var(--ink-line);
  color: var(--parchment); border-radius: var(--radius); font-family: var(--body-ar); font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--parchment-dim); padding: 60px 0 30px; border-top: 1px solid var(--ink-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--brass-light); font-size: 0.9rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { font-size: 0.88rem; color: var(--parchment-dim); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 0.8rem; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 200;
  background: var(--ok); color: #fff; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,122,94,0.5), 0 8px 24px rgba(0,0,0,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(76,122,94,0), 0 8px 24px rgba(0,0,0,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(76,122,94,0), 0 8px 24px rgba(0,0,0,0.35); }
}

/* ---------- Expat note box ---------- */
.expat-box {
  border: 1px dashed var(--brass); background: rgba(180,136,79,0.06);
  padding: 22px; border-radius: var(--radius); margin: 30px 0; direction: ltr; text-align: left;
  font-family: var(--body-en);
}
.expat-box .eyebrow { margin-bottom: 10px; }

/* ---------- Breadcrumb / page hero (interior pages) ---------- */
.page-hero { background: var(--ink); color: var(--parchment); padding: 56px 0 40px; }
.page-hero .eyebrow { color: var(--brass-light); border-color: var(--brass-light); }
.page-hero p { color: var(--parchment-dim); max-width: 60ch; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.price-table th, .price-table td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--ink-line); }
.price-table th { font-family: var(--body-en); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.price-table td { font-size: 0.95rem; }
.price-table td.range { font-family: var(--serif-en); color: var(--brass-light); font-weight: 600; white-space: nowrap; }
.price-note { margin-top: 18px; font-size: 0.86rem; color: var(--parchment-dim); }

/* ---------- Map embed ---------- */
.map-embed { border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Area chip links ---------- */
.areas-list a { border: 1px solid var(--ink-line); padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; background: rgba(180,136,79,0.06); display:inline-block; transition: border-color 0.2s, color 0.2s; }
.areas-list a:hover { border-color: var(--brass); color: var(--brass-light); }

.reduced-motion, [data-reduced-motion] .wa-float { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}
