/* ===== Design tokens ===== */
:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f2ece2;
  --color-ink: #2a2420;
  --color-ink-soft: #5a5148;
  --color-cream: #efe7da;
  --color-line: #e2d8c8;
  --color-gold: #a9863f;
  --color-gold-dark: #8a6c30;
  --color-white: #ffffff;

  --font-ar: 'Cairo', 'Tahoma', 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 30px rgba(42, 36, 32, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  right: 12px;
  top: -60px;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
}

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

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-gold-dark);
  font-weight: 600;
}

.lead {
  max-width: 640px;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-gold-dark); }

.btn-ghost {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-ghost:hover { background: var(--color-ink); color: var(--color-white); }

.btn-large { font-size: 1.15rem; padding: 16px 36px; }

.btn-call { padding: 10px 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: var(--color-ink);
}
.wordmark-ar {
  font-size: 1.25rem;
  font-weight: 800;
}
.wordmark-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
}
.primary-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--color-gold-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-ink);
}

@media (max-width: 860px) {
  .header-call { display: none; }
  .lang-switch { padding: 8px 10px; font-size: 0.78rem; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.78) 0%, rgba(20, 16, 12, 0.35) 45%, rgba(20, 16, 12, 0.15) 100%);
}
.hero-content {
  position: relative;
  color: var(--color-white);
  padding-bottom: 64px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-cream);
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { border-color: var(--color-white); color: var(--color-white); }
.hero-actions .btn-ghost:hover { background: var(--color-white); color: var(--color-ink); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.about { background: var(--color-bg); }
.services { background: var(--color-bg-alt); }
.projects { background: var(--color-bg); }
.approach { background: var(--color-bg-alt); }
.contact { background: var(--color-ink); color: var(--color-white); }
.contact .eyebrow { color: #d8bf8b; }
.contact .lead { color: #d8d2c8; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { color: var(--color-ink-soft); margin: 0; }

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.project-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-card figcaption {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--color-ink-soft);
}

/* ===== Approach ===== */
.approach-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.approach-list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.approach-list p { color: var(--color-ink-soft); margin: 0; }

/* ===== Contact ===== */
.contact-inner { text-align: center; }
.contact .lead { margin: 0 auto 32px; }
.contact-inner .eyebrow { display: block; }
.contact-inner h2 { margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: #1d1712;
  color: #cfc6ba;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-name { margin: 0; font-weight: 700; color: var(--color-white); }
.footer-phone { text-decoration: none; color: #d8bf8b; font-weight: 600; }
.footer-copy { margin: 0; font-size: 0.85rem; color: #9c927f; }

/* ===== Legal bar ===== */
.legal-bar {
  background: #16110d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 16px 24px;
  font-size: 0.78rem;
  color: #8a8072;
}
.legal-inner p { margin: 0; }
.legal-label { color: #6f665a; }
.legal-value { color: #a89d8c; }
