/* ==========================================================================
   Media Moving Angle (MMA) — Shared stylesheet
   Brand colors extracted from logo: navy #164E71 / lime #C1CF3A
   ========================================================================== */

:root {
  --navy: #164E71;
  --navy-dark: #0F3A54;
  --lime: #C1CF3A;
  --lime-dark: #A6B32E;
  --ink: #1B2530;
  --muted: #5B6B78;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F8;
  --border: #E3E8EA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 78, 113, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--navy-dark);
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }

p { color: var(--muted); margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy);
  background: rgba(193, 207, 58, 0.18);
  border: 1px solid rgba(193, 207, 58, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--lime);
  color: var(--navy-dark);
}
.btn-accent:hover { background: var(--lime-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-dark);
}
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-dark);
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--navy); background: rgba(22,78,113,0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero .inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead { font-size: 19px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { max-height: 160px; }

@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(193,207,58,0.25), transparent 45%);
  color: #fff;
  padding: 56px 0;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0; }
.breadcrumb { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 14px; }
.breadcrumb a { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22,78,113,0.25); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(22,78,113,0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.stat strong { display: block; font-size: 34px; color: var(--navy); font-weight: 800; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* ---------- Clients / logo strip ---------- */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.client-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 15px;
}

/* ---------- Goals list (about) ---------- */
.goal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.goal-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.goal-item .icon {
  width: 32px; height: 32px; flex: none;
  border-radius: 8px;
  background: rgba(193,207,58,0.28);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.goal-item p { margin: 0; font-size: 14.5px; color: var(--ink); }
@media (max-width: 700px) { .goal-list { grid-template-columns: 1fr; } }

/* ---------- Timeline (about) ---------- */
.timeline { border-inline-start: 3px solid var(--lime); padding-inline-start: 28px; display: flex; flex-direction: column; gap: 34px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -37px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--lime);
}
.timeline-item h3 { margin-bottom: 6px; }

/* ---------- Map list (reach countries) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: rgba(22,78,113,0.06);
  border: 1px solid rgba(22,78,113,0.15);
  color: var(--navy-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Portfolio ---------- */
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  font-size: 30px;
  font-weight: 800;
}
.portfolio-card .body { padding: 24px; }
.portfolio-card .tag { margin-bottom: 10px; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item .icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: rgba(193,207,58,0.2);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-info-item strong { display: block; color: var(--navy-dark); margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { color: var(--muted); font-size: 15px; }

.placeholder-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #A15C00;
  background: #FFF4E0;
  border: 1px solid #F3D9A6;
  padding: 3px 10px;
  border-radius: 6px;
}

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { font-size: 14px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,78,113,0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 30%, rgba(193,207,58,0.28), transparent 45%);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 55ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
