:root {
  --primary: #2c2f80;
  --secondary: #a432a5;
  --accent: #ffc72c;
  --dark: #111827;
  --text: #263244;
  --muted: #6b7280;
  --line: #e6e8ee;
  --soft: #f6f7fb;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 24, 39, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", "Cairo", Arial, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1170px, calc(100% - 30px)); margin: 0 auto; }
.topbar { background: var(--dark); color: rgba(255,255,255,.82); font-size: 14px; }
.topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { margin-inline-start: 16px; }
.topbar a:hover { color: var(--accent); }
.main-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
.brand strong { display: block; color: var(--dark); font-size: 20px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.site-menu { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; font-weight: 800; }
.site-menu a { display: block; padding: 10px 14px; border-radius: 4px; }
.site-menu a:hover { color: var(--primary); background: var(--soft); }
.menu-toggle { display: none; width: 44px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--dark); }

.home-hero, .page-hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17,24,39,.94), rgba(44,47,128,.78), rgba(17,24,39,.86)),
    var(--hero, url("../img/hero.jpg")) center/cover;
}
.home-hero { min-height: 640px; display: flex; align-items: center; padding: 86px 0; }
.home-hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 54px; align-items: center; }
.home-hero h1, .page-hero h1 {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.25;
  font-weight: 900;
}
.home-hero p, .page-hero p { color: rgba(255,255,255,.84); font-size: 20px; max-width: 760px; }
.home-hero img { width: 280px; border-radius: 50%; border: 12px solid rgba(255,255,255,.9); background: var(--white); box-shadow: var(--shadow); }
.page-hero { padding: 92px 0; }
.page-hero span { color: var(--accent); font-weight: 900; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 4px; border: 1px solid transparent; font-weight: 900; cursor: pointer; }
.btn-yellow { background: var(--accent); color: var(--dark); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.btn.full { width: 100%; }

.section { padding: 82px 0; }
.soft { background: var(--soft); }
.narrow { max-width: 850px; }
.section-label { display: inline-block; margin-bottom: 10px; color: var(--secondary); font-weight: 900; }
.section-title { max-width: 800px; margin: 0 auto 40px; }
.section-title.center { text-align: center; }
.section-title h2, .content-card h2 {
  margin: 0;
  color: var(--dark);
  font-family: "Cairo", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  font-weight: 900;
}
.section-title p { color: var(--muted); font-size: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .portfolio-card, .article-card, .content-card, .side-card, .work-sample {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(17,24,39,.07);
  overflow: hidden;
}
.service-card img, .portfolio-card img, .work-sample img { width: 100%; height: 210px; object-fit: cover; }
.service-card div, .portfolio-card, .article-card, .work-sample { padding: 24px; }
.service-card div { padding: 24px; }
.service-card h3, .portfolio-card h3, .article-card h2, .work-sample h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.35;
}
.service-card p, .article-card p, .work-sample p { color: var(--muted); margin: 0 0 16px; }
.service-card a, .read-more { color: var(--primary); font-weight: 900; }
.portfolio-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-grid.small { grid-template-columns: repeat(3, 1fr); }
.portfolio-card span, .article-card span { color: var(--secondary); font-weight: 900; }
.stats { padding: 56px 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats-grid div { text-align: center; padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.stats-grid strong { display: block; font-size: 36px; color: var(--accent); line-height: 1; }
.stats-grid span { display: block; margin-top: 10px; }
.service-layout, .request-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.content-card, .side-card { padding: 28px; }
.content-card p { color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 13px; border-radius: 50px; background: var(--soft); border: 1px solid var(--line); font-weight: 800; }
.side-card a:not(.btn) { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--primary); font-weight: 800; }
.side-card .btn { margin-top: 18px; }
.article-body { font-size: 20px; color: var(--text); }
.quote-form { display: grid; gap: 16px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-form label { display: grid; gap: 7px; font-weight: 900; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.quote-form textarea { resize: vertical; }
.clean-list { padding: 0; margin: 18px 0 0; list-style: none; }
.clean-list li { margin-bottom: 10px; padding: 12px 14px; background: var(--soft); border-right: 4px solid var(--accent); border-radius: 4px; }
.footer { background: var(--dark); color: rgba(255,255,255,.78); padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-logo { width: 120px; border-radius: 50%; background: var(--white); margin-bottom: 16px; }
.footer h3 { margin: 0 0 14px; color: var(--white); }
.footer a { display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; color: rgba(255,255,255,.55); }

@media (max-width: 980px) {
  .home-hero-grid, .service-layout, .request-layout, .footer-grid { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid, .article-grid, .portfolio-grid.small { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .menu-toggle { display: block; }
  .site-menu { position: absolute; top: 100%; right: 15px; left: 15px; display: none; flex-direction: column; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .site-menu.open { display: flex; }
  .services-grid, .portfolio-grid, .article-grid, .portfolio-grid.small, .stats-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 62px 0; }
}