/* =================================================================
   AL QALAM AI SOLUTIONS — Website
   Shared styles. Built on the design system tokens.
   ================================================================= */

@import url('colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--aq-paper);
  color: var(--aq-charcoal);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* RTL global tweaks */
html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="rtl"] .nav-links { font-family: var(--font-arabic); }

/* ========== LAYOUT ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

section { padding: 100px 0; }
section.compact { padding: 64px 0; }

/* ========== UTILITY ========== */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aq-gold-deep);
}
html[dir="rtl"] .eyebrow { font-family: var(--font-sans); letter-spacing: 0.18em; }
.gold-rule { width: 30px; height: 2px; background: var(--aq-gold); margin: 14px 0 22px; }
.gold-rule.long { width: 60px; }

.ar-line {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--aq-line);
  backdrop-filter: saturate(140%) blur(2px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand .mark {
  width: 38px; height: 38px;
  background: url('logo-mark.png') center / contain no-repeat;
}
.nav-brand .text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand .en {
  font-weight: 700; font-size: 14px;
  color: var(--aq-emerald); letter-spacing: -0.1px;
}
.nav-brand .ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 12px; color: var(--aq-gold-deep);
  direction: rtl; text-align: left; margin-top: 1px;
}
html[dir="rtl"] .nav-brand .ar { text-align: right; }
html[dir="rtl"] .nav-brand .en { text-align: right; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--aq-charcoal);
  position: relative; padding: 6px 0;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-links a::after {
  content: ''; position: absolute;
  inset-inline-start: 0; inset-inline-end: 100%;
  bottom: -2px; height: 1px; background: var(--aq-gold);
  transition: inset-inline-end var(--dur-slow) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--aq-emerald); }
.nav-links a:hover::after, .nav-links a.active::after { inset-inline-end: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-sm);
  background: var(--aq-paper);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--aq-graphite);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.lang-toggle:hover { border-color: var(--aq-emerald); color: var(--aq-emerald); }
.lang-toggle .active-lang { color: var(--aq-emerald); font-weight: 700; }
.lang-toggle .ar-glyph { font-family: var(--font-arabic); font-size: 14px; }

/* ========== BUTTONS ========== */
.btn {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-button);
  letter-spacing: 0.04em;
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
html[dir="rtl"] .btn { font-family: var(--font-arabic); letter-spacing: 0; font-weight: 700; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

.btn.primary { background: var(--aq-emerald); color: var(--aq-gold); }
.btn.primary:hover { background: var(--aq-emerald-500); color: var(--aq-gold-300); }
.btn.gold { background: var(--aq-gold); color: var(--aq-emerald-deep); }
.btn.gold:hover { background: var(--aq-gold-deep); color: var(--aq-cream); }
.btn.secondary { background: transparent; border-color: var(--aq-emerald); color: var(--aq-emerald); }
.btn.secondary:hover { background: var(--aq-emerald); color: var(--aq-gold); }
.btn.ghost-on-dark { background: transparent; border-color: var(--aq-gold); color: var(--aq-gold); }
.btn.ghost-on-dark:hover { background: var(--aq-gold); color: var(--aq-emerald-deep); }
.btn.sm { padding: 8px 16px; font-size: 12px; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(180deg, #0B3D2E 0%, #0B3D2E 60%, #051E17 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,169,97,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 35%, transparent 80%);
}
.hero-mark {
  position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 760px; height: 760px;
  background: url('logo-mark.png') center / contain no-repeat;
  opacity: 0.075;
  animation: rot 120s linear infinite;
  pointer-events: none;
}
html[dir="rtl"] .hero-mark { right: auto; left: -180px; }
@keyframes rot { to { transform: translateY(-50%) rotate(360deg); } }

.hero-home { padding: 130px 0 140px; }
.hero-home .inner { position: relative; z-index: 2; max-width: 760px; }
.hero-home .ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; margin-bottom: 28px;
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aq-gold);
}
.hero-home .ribbon .dot { width: 6px; height: 6px; background: var(--aq-gold); border-radius: 50%; box-shadow: 0 0 0 3px rgba(201,169,97,0.18); }

.hero-home h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -0.025em;
  color: #fff; margin: 0;
  text-wrap: balance;
}
.hero-home h1 em { font-style: normal; color: var(--aq-gold); }
.hero-home .h1-ar {
  font-family: var(--font-arabic);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.5; color: var(--aq-gold-100);
  direction: rtl; text-align: right;
  margin-top: 24px;
}
html[dir="rtl"] .hero-home .h1-ar { text-align: right; }
.hero-home .lead {
  font-size: 18px; line-height: 1.7;
  color: rgba(255,255,255,0.86);
  margin-top: 32px; max-width: 580px;
  text-wrap: pretty;
}
html[dir="rtl"] .hero-home .lead {
  font-family: var(--font-arabic); line-height: 1.85; font-size: 18px;
}
.hero-home .ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-home .meta-strip {
  display: flex; gap: 56px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px;
  border-top: 0.5px solid rgba(201,169,97,0.4);
}
.hero-home .meta-strip .col .label {
  font-size: 10px; color: var(--aq-gold);
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
}
.hero-home .meta-strip .col .v {
  font-family: var(--font-mono); font-size: 13px;
  color: #fff; margin-top: 6px; letter-spacing: 0.3px;
}

/* ========== HERO VARIANT B — split ========== */
.hero-split { padding: 0; background: var(--aq-paper); color: var(--aq-charcoal); }
.hero-split .inner {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 620px;
}
.hero-split .left { padding: 100px 64px 100px 32px; display: flex; flex-direction: column; justify-content: center; }
.hero-split .right {
  background: var(--aq-emerald);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-split .right::before {
  content: ''; position: absolute; inset: 0;
  background: url('logo-mark.png') center / 70% no-repeat;
  opacity: 0.15;
  animation: rot 180s linear infinite;
}
.hero-split .right .badge {
  position: relative; z-index: 2;
  text-align: center; color: var(--aq-gold);
  padding: 32px;
}
.hero-split .right .badge .triplet {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--aq-gold);
}
.hero-split .right .badge .triplet .dot { color: rgba(201,169,97,0.5); margin: 0 10px; }
.hero-split .right .badge .triplet-ar {
  font-family: var(--font-arabic); font-weight: 900;
  font-size: 24px; color: rgba(255,255,255,0.85);
  direction: rtl; margin-top: 18px;
}
.hero-split h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 60px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--aq-emerald);
  margin: 18px 0 0; text-wrap: balance;
}
.hero-split .h1-ar {
  font-family: var(--font-arabic); font-weight: 900;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--aq-emerald); margin-top: 20px;
  direction: rtl;
}
.hero-split .lead {
  font-size: 17px; line-height: 1.7; color: var(--aq-graphite);
  margin: 28px 0 0; max-width: 540px;
}

/* ========== HERO VARIANT C — editorial / ministerial ========== */
.hero-edit { padding: 0; background: var(--aq-cream); color: var(--aq-charcoal); position: relative; }
.hero-edit::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('logo-mark.png') 92% 50% / 540px no-repeat;
  opacity: 0.05;
}
.hero-edit .strap {
  background: var(--aq-emerald); color: var(--aq-gold);
  padding: 14px 0;
  border-bottom: 1px solid var(--aq-emerald-700);
}
.hero-edit .strap .container {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-edit .body { padding: 100px 0 130px; position: relative; }
.hero-edit .body .container { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.hero-edit .doc-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--aq-graphite); }
.hero-edit .doc-meta .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 0.5px solid var(--aq-line); }
.hero-edit .doc-meta .row:first-child { border-top: 1px solid var(--aq-emerald); padding-top: 12px; }
.hero-edit .doc-meta .label { color: var(--aq-gold-deep); font-weight: 700; }
.hero-edit h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04; letter-spacing: -0.025em;
  color: var(--aq-emerald); margin: 0;
  text-wrap: balance;
}
.hero-edit h1 em { font-style: normal; color: var(--aq-gold-deep); }
.hero-edit .h1-ar {
  font-family: var(--font-arabic); font-weight: 900;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--aq-emerald); margin-top: 22px;
  direction: rtl;
}
.hero-edit .lead { font-size: 17px; line-height: 1.7; color: var(--aq-graphite); margin: 28px 0 36px; max-width: 640px; }

/* ========== TRIPLET STRAP ========== */
.triplet-strap {
  background: var(--aq-emerald-ink);
  color: #fff;
  padding: 26px 0;
  border-top: 1px solid rgba(201,169,97,0.25);
  border-bottom: 1px solid rgba(201,169,97,0.25);
}
.triplet-strap .inner {
  display: flex; justify-content: center; align-items: center; gap: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
  flex-wrap: wrap;
}
.triplet-strap span.word { padding: 0 28px; }
.triplet-strap span.dot { color: var(--aq-gold); font-size: 18px; }
.triplet-strap .ar-triplet {
  display: block; width: 100%; text-align: center;
  font-family: var(--font-arabic); font-weight: 900;
  font-size: 18px; letter-spacing: 0;
  color: var(--aq-gold-100); margin-top: 6px;
  direction: rtl;
}

/* ========== STATS ========== */
.stats {
  background: var(--aq-emerald);
  color: #fff;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; left: -120px; top: -120px;
  width: 480px; height: 480px;
  background: url('logo-mark.png') center / contain no-repeat;
  opacity: 0.06;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; position: relative; z-index: 2; }
.stat .label {
  font-size: 11px; color: var(--aq-gold);
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
}
.stat .val {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 800; line-height: 1;
  color: #fff; letter-spacing: -0.03em;
  margin-top: 14px; font-variant-numeric: tabular-nums;
}
.stat .val sup { font-size: 26px; color: var(--aq-gold); font-weight: 700; vertical-align: top; margin-left: 2px; }
.stat .desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.78); margin-top: 14px; max-width: 220px; }
html[dir="rtl"] .stat .desc { font-family: var(--font-arabic); line-height: 1.8; }

/* ========== SECTION HEAD ========== */
.section-head {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px;
  margin-bottom: 56px; align-items: end;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 42px; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--aq-emerald); margin: 0; text-wrap: balance;
}
.section-head .h2-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 24px; color: var(--aq-emerald);
  direction: rtl; text-align: right; line-height: 1.5; margin-top: 12px;
}
.section-head .desc {
  font-size: 16px; line-height: 1.7; color: var(--aq-charcoal);
  max-width: 620px; text-wrap: pretty;
}
html[dir="rtl"] .section-head .desc {
  font-family: var(--font-arabic); line-height: 1.85;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--aq-line); border: 1px solid var(--aq-line);
}
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.svc-card {
  background: var(--aq-paper);
  padding: 36px 32px 36px;
  border-top: 3px solid var(--aq-gold);
  transition: background var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.svc-card:hover { background: var(--aq-cream); }
.svc-card .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--aq-gold-deep); letter-spacing: 0.22em; font-weight: 600;
}
.svc-card h3 {
  font-size: 19px; font-weight: 700; color: var(--aq-emerald);
  margin: 0; line-height: 1.25; letter-spacing: -0.01em;
}
.svc-card .h3-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 16px; color: var(--aq-emerald);
  direction: rtl; text-align: right; line-height: 1.45;
}
.svc-card p { font-size: 14px; line-height: 1.65; color: var(--aq-graphite); margin: 0; }
.svc-card .pillars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.svc-card .pillar {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aq-graphite);
  padding: 4px 8px; border: 0.5px solid var(--aq-line);
  background: var(--aq-pearl);
}
.svc-card .more {
  margin-top: auto; padding-top: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--aq-emerald);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  align-self: flex-start;
}
.svc-card:hover .more { border-bottom-color: var(--aq-gold); color: var(--aq-gold-deep); }

/* ========== ADVANTAGES (6) ========== */
.advantages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.adv {
  background: var(--aq-paper);
  border: 1px solid var(--aq-line);
  border-top: 1mm solid var(--aq-gold);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.adv:hover { box-shadow: var(--shadow-md); }
.adv .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--aq-gold-deep); letter-spacing: 0.22em; font-weight: 700;
}
.adv h3 {
  font-size: 18px; font-weight: 700; color: var(--aq-emerald);
  margin: 0; line-height: 1.3; letter-spacing: -0.01em;
}
.adv .h3-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 15px; color: var(--aq-emerald);
  direction: rtl; text-align: right; line-height: 1.5;
}
.adv p { font-size: 14px; line-height: 1.65; color: var(--aq-graphite); margin: 0; }

/* ========== CONTACT STRIP ========== */
.contact-strip {
  background: var(--aq-cream);
  border-top: 1px solid var(--aq-line);
  border-bottom: 1px solid var(--aq-line);
  padding: 56px 0;
}
.contact-strip .inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.contact-strip h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--aq-emerald); margin: 0;
}
.contact-strip .h3-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 20px; color: var(--aq-emerald);
  direction: rtl; margin-top: 8px;
}
.contact-strip .lead { font-size: 15px; color: var(--aq-graphite); margin-top: 12px; max-width: 540px; }
.contact-strip .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== FOOTER ========== */
footer.foot {
  background: var(--aq-emerald-ink);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 36px;
  border-top: 1.5mm solid var(--aq-gold);
  position: relative; overflow: hidden;
}
footer.foot::before {
  content: ''; position: absolute; right: -200px; bottom: -200px;
  width: 560px; height: 560px;
  background: url('logo-mark.png') center / contain no-repeat;
  opacity: 0.04; pointer-events: none;
}
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
  position: relative; z-index: 2;
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.foot-brand .lockup { display: flex; align-items: center; gap: 14px; }
.foot-brand .mark {
  width: 46px; height: 46px;
  background: url('logo-mark.png') center / contain no-repeat;
}
.foot-brand .en { font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -0.1px; }
.foot-brand .ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 13px; color: var(--aq-gold);
  direction: rtl; text-align: left; margin-top: 2px;
}
.foot-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.7); margin: 0; }
html[dir="rtl"] .foot-brand p { font-family: var(--font-arabic); line-height: 1.85; }
.foot-col h4 {
  font-size: 11px; color: var(--aq-gold);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 13px; color: rgba(255,255,255,0.78); }
.foot-col li a { transition: color var(--dur-base) var(--ease-out); }
.foot-col li a:hover { color: var(--aq-gold); }
.foot-col .v { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.88); letter-spacing: 0.3px; }

.foot-bottom {
  padding-top: 28px;
  border-top: 0.5px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative; z-index: 2;
}
.foot-bottom .ar {
  font-family: var(--font-arabic); direction: rtl;
  font-size: 12px; letter-spacing: 0;
  text-transform: none; color: rgba(255,255,255,0.7); font-weight: 700;
}
.foot-bottom .lic { color: var(--aq-gold); font-weight: 700; }

/* ========== PAGE HEADER (sub-pages) ========== */
.page-head {
  background: var(--aq-emerald);
  color: #fff; position: relative; overflow: hidden;
  padding: 90px 0 100px;
}
.page-head::before {
  content: ''; position: absolute; right: -160px; bottom: -160px;
  width: 480px; height: 480px;
  background: url('logo-mark.png') center / contain no-repeat;
  opacity: 0.07;
}
html[dir="rtl"] .page-head::before { right: auto; left: -160px; }
.page-head .container { position: relative; z-index: 2; }
.page-head .breadcrumb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aq-gold); margin-bottom: 24px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.page-head .breadcrumb a { color: rgba(201,169,97,0.7); transition: color var(--dur-base); }
.page-head .breadcrumb a:hover { color: var(--aq-gold); }
.page-head .breadcrumb .sep { color: rgba(201,169,97,0.4); }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: #fff; margin: 0; text-wrap: balance;
}
.page-head .h1-ar {
  font-family: var(--font-arabic); font-weight: 900;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--aq-gold-100); margin-top: 18px;
  direction: rtl; text-align: right;
}
.page-head .lead {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 680px; margin-top: 28px;
}
html[dir="rtl"] .page-head .lead { font-family: var(--font-arabic); line-height: 1.85; }

/* ========== SERVICE DETAIL PAGE ========== */
.svc-detail-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start;
}
.svc-prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--aq-emerald); margin: 48px 0 12px;
}
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose .h2-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 20px; color: var(--aq-emerald);
  direction: rtl; text-align: right; margin-bottom: 16px;
}
.svc-prose p { font-size: 16px; line-height: 1.75; color: var(--aq-charcoal); margin: 0 0 16px; }
html[dir="rtl"] .svc-prose p { font-family: var(--font-arabic); line-height: 1.9; }
.svc-prose ul { padding: 0; margin: 16px 0; list-style: none; }
.svc-prose ul li {
  position: relative; padding-inline-start: 26px;
  font-size: 15px; line-height: 1.65; color: var(--aq-charcoal);
  margin-bottom: 10px;
}
.svc-prose ul li::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 11px;
  width: 12px; height: 1.5px; background: var(--aq-gold);
}
html[dir="rtl"] .svc-prose ul li { font-family: var(--font-arabic); }

.svc-aside { position: sticky; top: 100px; }
.svc-aside .card {
  background: var(--aq-cream);
  border: 1px solid var(--aq-line);
  border-top: 1mm solid var(--aq-gold);
  padding: 28px;
  margin-bottom: 16px;
}
.svc-aside h4 {
  font-size: 11px; color: var(--aq-gold-deep);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; margin: 0 0 14px;
}
.svc-aside .row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 0.5px solid var(--aq-line);
  font-size: 13px;
}
.svc-aside .row:last-child { border-bottom: none; }
.svc-aside .row .k { color: var(--aq-graphite); }
.svc-aside .row .v { color: var(--aq-emerald); font-weight: 600; font-family: var(--font-mono); font-size: 12px; }
.svc-aside p { font-size: 14px; line-height: 1.65; color: var(--aq-charcoal); margin: 0 0 16px; }

.pillar-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--aq-line); border: 1px solid var(--aq-line);
  margin: 24px 0;
}
.pillar-cell {
  background: var(--aq-paper);
  padding: 24px;
  border-top: 2px solid var(--aq-gold);
}
.pillar-cell .num { font-family: var(--font-mono); font-size: 10px; color: var(--aq-gold-deep); letter-spacing: 0.22em; font-weight: 700; }
.pillar-cell h3 { font-size: 16px; font-weight: 700; color: var(--aq-emerald); margin: 8px 0 6px; }
.pillar-cell .h3-ar { font-family: var(--font-arabic); font-weight: 800; font-size: 14px; color: var(--aq-emerald); direction: rtl; text-align: right; margin-bottom: 8px; }
.pillar-cell p { font-size: 13px; color: var(--aq-graphite); line-height: 1.55; margin: 0; }

/* ========== ABOUT — values, mission, vision ========== */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card {
  background: var(--aq-paper);
  border: 1px solid var(--aq-line);
  border-top: 1mm solid var(--aq-gold);
  padding: 36px 28px;
}
.mv-card .label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--aq-gold-deep); letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
}
.mv-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--aq-emerald); margin: 12px 0 12px;
}
.mv-card .h3-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 18px; color: var(--aq-emerald);
  direction: rtl; line-height: 1.55; margin-bottom: 14px;
}
.mv-card p { font-size: 15px; line-height: 1.7; color: var(--aq-graphite); margin: 0; }

/* ========== INSIGHTS (blog) ========== */
.insights-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px;
  background: var(--aq-line); border: 1px solid var(--aq-line);
  margin-bottom: 1px;
}
.insight-card {
  background: var(--aq-paper);
  padding: 32px 32px 36px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background var(--dur-slow) var(--ease-out);
}
.insight-card.feature { grid-row: span 2; padding: 48px; background: var(--aq-emerald); color: #fff; }
.insight-card.feature .meta-line { color: var(--aq-gold); }
.insight-card.feature h3 { color: #fff; font-size: 30px; line-height: 1.2; }
.insight-card.feature .h3-ar { color: var(--aq-gold-100); }
.insight-card.feature p { color: rgba(255,255,255,0.78); }
.insight-card:hover:not(.feature) { background: var(--aq-cream); }
.insight-card .meta-line {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aq-gold-deep); display: flex; gap: 10px; flex-wrap: wrap;
}
.insight-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--aq-emerald); margin: 0; text-wrap: balance;
}
.insight-card .h3-ar {
  font-family: var(--font-arabic); font-weight: 800;
  font-size: 15px; color: var(--aq-emerald);
  direction: rtl; line-height: 1.5;
}
.insight-card p { font-size: 14px; line-height: 1.65; color: var(--aq-graphite); margin: 0; }
.insight-card .more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--aq-emerald); letter-spacing: 0.08em; text-transform: uppercase; }
.insight-card.feature .more { color: var(--aq-gold); }

/* ========== ARTICLE PAGE ========== */
.article-grid { display: grid; grid-template-columns: 240px 1fr 240px; gap: 48px; align-items: start; }
.article-meta { font-family: var(--font-mono); font-size: 11px; color: var(--aq-graphite); letter-spacing: 0.06em; }
.article-meta .row { padding: 8px 0; border-bottom: 0.5px solid var(--aq-line); display: flex; justify-content: space-between; }
.article-meta .row:first-child { border-top: 1px solid var(--aq-emerald); padding-top: 12px; }
.article-meta .label { color: var(--aq-gold-deep); font-weight: 700; }
.article-prose { max-width: 680px; }
.article-prose .lead { font-size: 20px; line-height: 1.65; color: var(--aq-charcoal); font-weight: 500; margin: 0 0 32px; padding-bottom: 32px; border-bottom: 0.5px solid var(--aq-line); text-wrap: pretty; }
.article-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; color: var(--aq-emerald); margin: 40px 0 12px; }
.article-prose h2 .ar { display: block; font-family: var(--font-arabic); font-weight: 800; font-size: 20px; color: var(--aq-emerald); direction: rtl; text-align: right; margin-top: 6px; }
.article-prose p { font-size: 16px; line-height: 1.8; color: var(--aq-charcoal); margin: 0 0 16px; }
.article-prose blockquote { border-inline-start: 2px solid var(--aq-gold); padding-inline-start: 24px; margin: 32px 0; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--aq-emerald); text-wrap: balance; }

/* ========== CONTACT FORM ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .block .label { font-family: var(--font-mono); font-size: 11px; color: var(--aq-gold-deep); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.contact-info .block .v { font-family: var(--font-mono); font-size: 14px; color: var(--aq-emerald); }
.contact-info .block.note { font-size: 14px; color: var(--aq-graphite); line-height: 1.6; }
.contact-info .block.note strong { color: var(--aq-emerald); }
.map-frame { aspect-ratio: 16/10; background: var(--aq-band); border: 1px solid var(--aq-line); border-top: 1mm solid var(--aq-gold); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.map-frame::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(11,61,46,0.03) 24px, rgba(11,61,46,0.03) 48px), radial-gradient(circle at 60% 50%, var(--aq-cream), var(--aq-band)); }
.map-frame .pin { position: relative; z-index: 2; text-align: center; color: var(--aq-emerald); }
.map-frame .pin svg { width: 36px; height: 36px; color: var(--aq-emerald); }
.map-frame .pin .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aq-emerald); margin-top: 8px; font-weight: 700; }
.form-wrap { background: var(--aq-cream); border: 1px solid var(--aq-line); border-top: 1mm solid var(--aq-gold); padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aq-gold-deep); font-weight: 700; margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 14px;
  padding: 12px 14px; background: var(--aq-paper);
  border: 1px solid var(--aq-line); border-radius: var(--r-sm);
  color: var(--aq-charcoal);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.form-row textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--aq-emerald);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.08);
}
.form-row.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-row.row2 .form-row { margin-bottom: 18px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight-card.feature { grid-column: span 2; grid-row: auto; }
  .article-grid { grid-template-columns: 1fr; }
  .svc-detail-grid { grid-template-columns: 1fr; }
  .hero-split .inner { grid-template-columns: 1fr; }
  .hero-split .right { min-height: 360px; }
  .hero-edit .body .container { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card.feature { grid-column: auto; }
  .pillar-grid { grid-template-columns: 1fr; }
  .form-row.row2 { grid-template-columns: 1fr; }
  .contact-strip .inner { grid-template-columns: 1fr; }
  .hero-home .meta-strip { gap: 28px; }
}
