/* =========================================================
   Capital Architecture (معمار العاصمة) — Luxury Stylesheet
   Bilingual (AR default / EN toggle), logical properties for RTL/LTR
   ========================================================= */

:root {
  --ink: #121110;
  --ink-2: #1c1a17;
  --gold: #c8a15e;
  --gold-light: #e6cf9c;
  --gold-dark: #9c7a3f;
  --cream: #f7f3ec;
  --cream-2: #efe8da;
  --white: #ffffff;
  --muted: #79736a;
  --border: #e5ddcc;

  --font-head-en: 'Playfair Display', 'Georgia', serif;
  --font-body-en: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-head-ar: 'Tajawal', 'Segoe UI', Arial, sans-serif;
  --font-body-ar: 'Tajawal', 'Segoe UI', Arial, sans-serif;

  --font-head: var(--font-head-ar);
  --font-body: var(--font-body-ar);

  --container: 1240px;
  --shadow: 0 20px 50px rgba(18, 17, 16, 0.12);
  --transition: 0.28s ease;
}

html[dir="ltr"] {
  --font-head: var(--font-head-en);
  --font-body: var(--font-body-en);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { letter-spacing: 0.2px; }

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; }

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 800; }

p { color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold-dark); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark::before { background: var(--gold-light); }
.eyebrow.center { justify-content: center; }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #b9b2a4; }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  padding: 16px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: var(--ink);
  color: #cfc7b6;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 9px;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: var(--gold-light); }
.topbar-links svg { width: 13px; height: 13px; fill: var(--gold); }

.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #4a463d;
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition);
}
.topbar-social a:hover { background: var(--gold); border-color: var(--gold); }
.topbar-social svg { width: 12px; height: 12px; fill: #cfc7b6; }
.topbar-social a:hover svg { fill: var(--ink); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lang-switch button {
  background: none;
  border: none;
  color: #9a927f;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 4px;
  font-family: inherit;
}
.lang-switch button.active { color: var(--gold-light); }
.lang-switch span { color: #55503f; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.25;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-dark);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,17,16,0.55) 0%, rgba(18,17,16,0.72) 55%, rgba(18,17,16,0.92) 100%);
}
.hero-content {
  position: relative;
  max-width: 680px;
  padding-block: 70px;
}
.hero-content p {
  color: #e6e1d5;
  font-size: 1.08rem;
  max-width: 520px;
  margin-block: 24px 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  display: flex;
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 30px;
  flex-wrap: wrap;
}
.hero-stats div { padding-inline-end: 46px; }
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 700;
}
.hero-stats div span {
  font-size: 0.76rem;
  color: #b9b2a4;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============ TRUST BAR ============ */
.trust-bar { background: var(--ink); padding: 24px 0; border-top: 1px solid #2a2822; }
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-bar span {
  color: #a89f8c;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* ============ IMAGES ============ */
.media-frame {
  position: relative;
  overflow: hidden;
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.media-frame:hover img { transform: scale(1.05); }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
}

/* ============ GRIDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ============ SERVICE CARDS ============ */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 38px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-num {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 18px;
  display: block;
}
.service-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; fill: var(--gold-dark); }
.service-card h3 { margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 0.94rem; margin-bottom: 16px; }

.card-link {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ PROCESS STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { position: relative; padding-inline-start: 0; }
.step-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ============ PROJECTS / GALLERY ============ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 11px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-btn.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

.project-card { position: relative; overflow: hidden; }
.project-card .media-frame { aspect-ratio: 4/5; }
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, transparent 40%, rgba(18,17,16,0.88) 100%);
  color: var(--white);
}
.project-tag {
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
  display: block;
}
.project-overlay h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 3px; }
.project-meta { font-size: 0.82rem; color: #cfc7b6; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: var(--white);
  padding: 36px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-quote { font-size: 2.6rem; font-family: var(--font-head); color: var(--gold); line-height: 1; margin-bottom: 12px; }
.testimonial-card p.quote-text { color: var(--ink-2); font-style: italic; margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.testimonial-person strong { display: block; font-size: 0.95rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--muted); }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  position: relative;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: #b9b2a4; }

/* ============ ABOUT PAGE ============ */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 34px; }
.value-item { display: flex; gap: 18px; }
.value-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 21px; height: 21px; fill: var(--gold-dark); }
.value-item h3 { font-size: 1rem; margin-bottom: 5px; }
.value-item p { font-size: 0.9rem; }

.timeline { position: relative; margin-top: 44px; padding-inline-start: 32px; border-inline-start: 1px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -38px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year { font-family: var(--font-head); color: var(--gold-dark); font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.timeline-item h3 { margin-block: 6px 8px; font-size: 1.08rem; }
.timeline-item p { font-size: 0.92rem; }

.team-card { text-align: center; }
.team-card .media-frame { aspect-ratio: 1/1; border-radius: 50%; margin-bottom: 20px; }
.team-card .media-frame::after { border-radius: 50%; }
.team-card h3 { font-size: 1.02rem; margin-bottom: 3px; }
.team-card span { font-size: 0.8rem; color: var(--gold-dark); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.5px; }

.badge-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.badge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-item svg { width: 18px; height: 18px; fill: var(--gold-dark); }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info-list { margin-top: 30px; display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-info-item .icon {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; fill: var(--gold-dark); }
.contact-info-item h3 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; }
.contact-info-item a { color: var(--ink-2); }
.contact-info-item a:hover { color: var(--gold-dark); }

.contact-form { background: var(--cream); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.78rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 15px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #f2ead4;
  border: 1px solid var(--gold);
  color: #6b551f;
  padding: 15px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.map-embed { overflow: hidden; height: 320px; margin-top: 32px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  position: relative;
  color: var(--white);
  padding: 150px 0 70px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-header .overlay { position: absolute; inset: 0; background: rgba(18,17,16,0.78); }
.page-header .container { position: relative; }
.breadcrumb { font-size: 0.85rem; color: #b9b2a4; margin-top: 12px; }
.breadcrumb a { color: var(--gold-light); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: #b9b2a4; padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; border-bottom: 1px solid #2a2822; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid #3a362d;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: #cfc7b6; }
.footer-social a:hover svg { fill: var(--ink); }

.footer-col h3 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 22px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.9rem; margin-bottom: 5px; }

.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #6f6a5c; }
.footer-bottom a { color: #6f6a5c; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============ MISC ============ */
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Direction-aware arrow: points toward reading-forward in both RTL and LTR */
.with-arrow::after { content: "\2190"; margin-inline-start: 6px; display: inline-block; }
html[dir="ltr"] .with-arrow::after { content: "\2192"; }

.center-text { text-align: center; }
.mt-40 { margin-top: 40px; }
.notice-banner { background: #2a2822; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: 0.82rem; padding: 10px 0; text-align: center; }
.hours-table { margin-top: 30px; width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.hours-table td:first-child { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); font-size: 0.85rem; }
.hours-table td:last-child { text-align: end; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 40px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { padding: 12px 16px; font-size: 0.72rem; }
  .topbar-links span { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  .hero-content { padding-block: 50px; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 22px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}
