:root {
  --navy: #0F1B2D;
  --navy-soft: #1B2A44;
  --navy-line: rgba(15, 27, 45, 0.10);
  --sand: #C8A876;
  --sand-deep: #A88555;
  --sand-glow: rgba(200, 168, 118, 0.18);
  --bg: #FAF7F1;
  --bg-soft: #F2EDE2;
  --text: #0F1B2D;
  --text-soft: #4A5568;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --green-ok: #16A34A;
  --red-bad: #DC2626;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 4px 16px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 27, 45, 0.14);
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1180px;
  --maxw-narrow: 720px;
  --pad-x: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--sand-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sand-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.skip-link {
  position: fixed;
  top: -100px;
  right: 16px;
  background: var(--navy);
  color: var(--bg);
  padding: 12px 24px;
  z-index: 10001;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.25s ease;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.brand-mark {
  font-family: 'Amiri', 'Tajawal', serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1;
}
.brand-line {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  direction: ltr;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sand-deep); color: var(--bg); transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .brand-line { display: none; }
}

/* Hero with image background */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vw, 160px) var(--pad-x) clamp(80px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
  color: var(--bg);
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.35) 0%, rgba(15, 27, 45, 0.55) 60%, rgba(15, 27, 45, 0.78) 100%),
    linear-gradient(270deg, rgba(15, 27, 45, 0.0) 0%, rgba(15, 27, 45, 0.45) 100%);
}
.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-deep);
  font-weight: 700;
  margin-bottom: 16px;
  direction: ltr;
  text-align: start;
}
.eyebrow-light { color: var(--sand); }
.hero-title {
  font-family: 'Amiri', 'Tajawal', serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--bg);
  margin-bottom: 24px;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(15, 27, 45, 0.4);
}
.hero-title br + .hero-accent { display: inline-block; margin-top: 0.15em; }
.hero-accent { color: var(--sand); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(250, 247, 241, 0.92);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.8;
  text-shadow: 0 1px 12px rgba(15, 27, 45, 0.5);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.86rem;
  color: rgba(250, 247, 241, 0.78);
  letter-spacing: 0.02em;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand); display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  transition: all 0.18s ease;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--sand);
  color: var(--navy);
  border-color: var(--sand);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-line);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.btn-ghost-light {
  color: var(--bg);
  border-color: rgba(250, 247, 241, 0.4);
}
.btn-ghost-light:hover {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--bg);
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; min-height: 56px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) var(--pad-x); }
.section-alt { background: var(--bg-soft); }
.section-cta {
  background: var(--navy);
  color: var(--bg);
  text-align: center;
}
.section-cta h2 { color: var(--bg); }
.section-cta .section-sub { color: rgba(250, 247, 241, 0.78); }

.container { max-width: var(--maxw); margin: 0 auto; }
.container-narrow { max-width: var(--maxw-narrow); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 {
  font-family: 'Amiri', 'Tajawal', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; }

/* Services grid — image-led cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand);
}
.service-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-img img { transform: scale(1.04); }
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0) 50%, rgba(15, 27, 45, 0.4) 100%);
  pointer-events: none;
}
.service-tag-floating {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--navy);
  color: var(--sand);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  direction: ltr;
}
.service-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.service-name {
  font-family: 'Amiri', 'Tajawal', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.service-scope {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  flex: 1;
}

/* Tiered pricing block */
.service-tiers {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 4px;
}
.service-tiers-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  direction: ltr;
  text-align: start;
}
.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(15, 27, 45, 0.08);
}
.tier-row:last-child { border-bottom: 0; }
.tier-label { font-size: 0.92rem; color: var(--text-soft); }
.tier-price {
  font-family: 'Amiri', 'Tajawal', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
  direction: ltr;
}
.tier-price .currency { font-size: 0.78rem; color: var(--text-muted); margin-inline-start: 4px; font-family: 'Tajawal'; font-weight: 500; }

.service-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.service-delivery { font-size: 0.86rem; color: var(--text-muted); }
.service-geo {
  display: inline-block;
  background: var(--navy);
  color: var(--sand);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 14px;
  border-top: 1px solid var(--navy-line);
}
.service-cta::after { content: '←'; transition: transform 0.18s ease; }
.service-card:hover .service-cta { color: var(--sand-deep); }
.service-card:hover .service-cta::after { transform: translateX(-4px); }

/* Work gallery — explicit placement for RTL safety */
.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  height: clamp(420px, 56vw, 640px);
}
.work-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.work-tile-lg {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.work-grid > .work-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.work-grid > .work-tile:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.work-tile:hover img { transform: scale(1.05); }
.work-tile figcaption {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 32px 24px 20px;
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 27, 45, 0.9) 100%);
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .work-tile-lg, .work-grid > .work-tile:nth-child(2), .work-grid > .work-tile:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .work-tile { aspect-ratio: 4 / 3; }
}

/* Process */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.process-steps li {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-line);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--sand);
  border-radius: 50%;
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.process-steps h3 {
  font-family: 'Amiri', 'Tajawal', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
  line-height: 1.4;
}
.process-steps p {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 28px;
  border-inline-start: 3px solid var(--sand);
  background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.why-card h3 {
  font-family: 'Amiri', 'Tajawal', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.why-card p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.75; }

/* Boundaries */
.bounds-list {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 880px;
}
.bounds-list li {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border-inline-start: 3px solid var(--navy);
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.bounds-list strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* Contact CTA */
.section-cta .container { padding-block: 24px; }
.contact-meta {
  margin-top: 28px;
  font-size: 0.95rem;
  color: rgba(250, 247, 241, 0.78);
  direction: ltr;
}
.contact-meta a { color: var(--sand); font-weight: 700; text-decoration: underline; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(250, 247, 241, 0.7);
  padding: 56px var(--pad-x) 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}
.footer .brand-mark { color: var(--bg); }
.footer-tagline { font-size: 0.9rem; margin-top: 8px; color: rgba(250, 247, 241, 0.6); }
.footer-meta { font-size: 0.9rem; line-height: 2; }
.footer-meta p { margin: 0; }
.footer-copy { margin-top: 24px; font-size: 0.78rem; color: rgba(250, 247, 241, 0.4); }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250, 247, 241, 0.2);
  border-radius: var(--radius);
  color: rgba(250, 247, 241, 0.7);
  transition: all 0.18s ease;
}
.footer-social a:hover {
  background: var(--sand);
  color: var(--navy);
  border-color: var(--sand);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  background: var(--navy);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 95;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red-bad); }
.toast.success { background: var(--green-ok); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-img { transform: none; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { font-size: 0.78rem; gap: 8px; }
  .footer-inner { text-align: center; }
  .footer-social { justify-content: center; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}
