:root {
  --ivory: #F6F1EA;
  --beige: #E9DFD1;
  --light-taupe: #D6C7B5;
  --medium-taupe: #B4967A;
  --brown: #6B4F3A;
  --brown-dark: #3E2F25;
  --white: #FFFDF8;
  --text: #3B312B;
  --muted: #857164;
  --shadow: 0 24px 70px rgba(75, 52, 34, .12);
  --radius-lg: 34px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(214,199,181,.55), transparent 38%), var(--ivory);
  font-family: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding: 96px 0; }
.soft { background: linear-gradient(135deg, rgba(233,223,209,.72), rgba(246,241,234,.9)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246,241,234,.78);
  border-bottom: 1px solid rgba(107,79,58,.10);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; direction: ltr; text-align: left; }
.brand img { width: 68px; height: 52px; object-fit: contain; border-radius: 14px; }
.brand strong { display: block; color: var(--brown); font-size: 1rem; line-height: 1.2; }
.brand small { color: var(--muted); display: block; font-size: .78rem; line-height: 1.2; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 14px; color: var(--muted); font-weight: 700; font-size: .95rem; border-radius: 999px; }
.main-nav a:hover { background: var(--beige); color: var(--brown); }
.menu-toggle { display: none; border: 0; border-radius: 16px; background: var(--beige); color: var(--brown); font-size: 1.4rem; padding: 8px 12px; }

.hero { position: relative; overflow: hidden; min-height: 720px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--medium-taupe); letter-spacing: .12em; text-transform: uppercase; font-weight: 800; font-size: .84rem; margin: 0 0 14px; direction: ltr; }
h1, h2, h3 { color: var(--brown-dark); margin: 0; line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 6vw, 5.35rem); max-width: 830px; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 680px; margin: 26px 0 34px; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 900; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--brown); color: #fff; box-shadow: 0 14px 34px rgba(107,79,58,.25); }
.btn.secondary { background: var(--white); color: var(--brown); border-color: rgba(107,79,58,.14); }
.btn.ghost { background: transparent; color: var(--brown); border-color: rgba(107,79,58,.22); }
.hero-card { background: rgba(255,253,248,.64); border: 1px solid rgba(107,79,58,.14); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -40% -25% auto auto; width: 240px; height: 240px; background: rgba(180,150,122,.22); border-radius: 50%; }
.hero-card img { width: min(100%, 390px); margin: 0 auto; border-radius: 28px; background: var(--ivory); }
.hero-card-body { margin-top: 28px; }
.hero-card-body span { color: var(--medium-taupe); font-weight: 900; }
.hero-card-body h2 { font-size: 2rem; direction: ltr; text-align: right; margin: 4px 0 10px; }
.hero-card-body p { color: var(--muted); direction: ltr; text-align: right; margin: 0; }
.decor { position: absolute; border: 1px solid rgba(107,79,58,.08); border-radius: 50%; pointer-events: none; }
.decor-one { width: 420px; height: 420px; top: -120px; right: -120px; background: radial-gradient(circle, rgba(233,223,209,.8), transparent 60%); }
.decor-two { width: 520px; height: 520px; bottom: -220px; left: -180px; background: radial-gradient(circle, rgba(214,199,181,.5), transparent 65%); }

.stats-bar { padding: 32px 0; background: rgba(255,253,248,.58); border-block: 1px solid rgba(107,79,58,.10); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--white); border: 1px solid rgba(107,79,58,.10); border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: 0 12px 28px rgba(75,52,34,.06); }
.stat strong { display: block; color: var(--brown); font-size: 1.55rem; line-height: 1.3; direction: ltr; }
.stat span { color: var(--muted); font-weight: 700; font-size: .92rem; }

.split { display: grid; grid-template-columns: .42fr .58fr; gap: 48px; align-items: start; }
.section-heading p { color: var(--muted); font-size: 1.1rem; max-width: 760px; }
.section-heading.center { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: 46px; }
.section-heading.center .eyebrow { text-align: center; }
.section-heading.center p { margin-inline: auto; }
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card, .service, .project-card, .contact-card { background: rgba(255,253,248,.74); border: 1px solid rgba(107,79,58,.12); border-radius: var(--radius-md); box-shadow: 0 18px 50px rgba(75,52,34,.08); }
.info-card { padding: 28px; min-height: 250px; }
.card-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); color: var(--brown); display: inline-grid; place-items: center; font-size: 1.4rem; margin-bottom: 24px; box-shadow: inset 0 0 0 1px rgba(107,79,58,.10); }
.info-card p, .service p, .project-card p { color: var(--muted); margin-bottom: 0; }

.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service { padding: 26px; min-height: 235px; }
.service span { display: block; color: rgba(107,79,58,.28); font-size: 2.2rem; font-weight: 900; margin-bottom: 14px; direction: ltr; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.platforms span { background: var(--white); border: 1px solid rgba(107,79,58,.14); border-radius: 999px; padding: 11px 18px; color: var(--brown); font-weight: 900; direction: ltr; }

.timeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 38px; inset-inline: 50px; height: 1px; background: rgba(107,79,58,.18); z-index: -1; }
.timeline div { background: var(--white); border: 1px solid rgba(107,79,58,.12); border-radius: 22px; min-height: 132px; padding: 20px 16px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 14px 36px rgba(75,52,34,.07); }
.timeline strong { color: var(--medium-taupe); font-size: 1.5rem; direction: ltr; }
.timeline span { font-weight: 800; color: var(--text); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card { overflow: hidden; }
.project-card img { width: 100%; height: 330px; object-fit: cover; }
.project-card div { padding: 30px; }
.project-count { display: block; color: rgba(107,79,58,.22); font-size: 3.6rem; font-weight: 900; line-height: 1; direction: ltr; margin-bottom: 8px; }
.project-card strong { color: var(--brown-dark); }

.quality-grid { display: grid; grid-template-columns: .55fr .45fr; gap: 44px; align-items: center; }
.check-list { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 28px; color: var(--muted); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brown); font-weight: 900; }
.quality-cards { display: grid; gap: 16px; }
.quality-cards div { background: var(--white); border: 1px solid rgba(107,79,58,.12); border-radius: var(--radius-md); padding: 32px; box-shadow: 0 18px 48px rgba(75,52,34,.08); }
.quality-cards strong { color: var(--brown); font-size: 2.4rem; display: block; direction: ltr; }
.quality-cards span { color: var(--muted); font-weight: 900; }

.location-section { background: linear-gradient(180deg, var(--ivory), rgba(233,223,209,.58)); }
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact { padding-bottom: 120px; }
.contact-card { padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 32px; background: linear-gradient(135deg, rgba(255,253,248,.88), rgba(233,223,209,.72)); }
.contact-card p { color: var(--muted); margin: 16px 0 0; }
.footer { padding: 26px 0; background: var(--brown); color: rgba(255,255,255,.86); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; direction: ltr; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }
.delay-3 { transition-delay: .30s; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 82px; inset-inline: 20px; display: none; flex-direction: column; align-items: stretch; background: var(--white); border: 1px solid rgba(107,79,58,.12); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero-grid, .split, .quality-grid, .project-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards.three, .service-grid, .location-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before { display: none; }
  .hero { min-height: auto; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 68px 0; }
  .brand small { display: none; }
  .brand img { width: 56px; height: 44px; }
  h1 { font-size: 2.45rem; }
  .lead { font-size: 1.05rem; }
  .stats-grid, .cards.three, .service-grid, .timeline, .location-grid { grid-template-columns: 1fr; }
  .project-card img { height: 235px; }
  .contact-card { padding: 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
