@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #fff7e7;
  --surface: #ffffff;
  --ink: #0f2e26;
  --muted: #6c736d;
  --gold: #c79a42;
  --gold-soft: #ead7aa;
  --green: #4f7d5a;
  --sage: #8fb181;
  --berry: #c01842;
  --line: rgba(15, 46, 38, 0.13);
  --shadow: 0 28px 80px rgba(15, 46, 38, 0.15);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 4%, rgba(199, 154, 66, 0.18), transparent 34rem),
    radial-gradient(circle at 94% 7%, rgba(192, 24, 66, 0.12), transparent 32rem),
    linear-gradient(180deg, #fff7e7 0%, #fffdf8 46%, #f7efe0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
body[dir="rtl"] { font-family: "Tajawal", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 36px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: 12px; transform: translateY(-140%);
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 247, 231, 0.84); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 48px; height: 48px; border-radius: 14px; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(15, 46, 38, 0.76); font-weight: 850; font-size: 0.94rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--berry); }
.language-btn, .nav-toggle { border: 0; cursor: pointer; font: inherit; }
.language-btn { background: var(--ink); color: white; border-radius: 999px; padding: 10px 16px; font-weight: 950; }
.nav-toggle { display: none; width: 44px; height: 44px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 10px; }
.hero { padding: 88px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.88fr; gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--berry); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 950; font-size: 0.78rem; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3.1rem, 8vw, 6.5rem); line-height: 0.93; letter-spacing: -0.08em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.03; letter-spacing: -0.055em; }
h3 { margin-bottom: 12px; font-size: 1.38rem; line-height: 1.18; letter-spacing: -0.035em; }
.hero-text, .content-block p, .section-heading p, .portfolio-card p, .strategy-item p, .partner-panel p, .makarooniah-panel p, .site-footer p, .form-note { color: var(--muted); }
.hero-text { max-width: 710px; margin-bottom: 34px; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; font-weight: 950; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: white; background: linear-gradient(135deg, var(--berry), #8d1233); box-shadow: 0 16px 30px rgba(192, 24, 66, 0.26); }
.btn.secondary { background: rgba(255, 255, 255, 0.72); border-color: var(--line); color: var(--ink); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.hero-stats div { padding: 17px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); }
.hero-stats dt { color: var(--gold); font-size: 1.24rem; font-weight: 1000; }
.hero-stats dd { margin: 0; color: var(--muted); font-weight: 800; font-size: 0.9rem; }
.hero-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 44px; background: rgba(255,255,255,0.78); box-shadow: var(--shadow); }
.hero-logo { width: 100%; border-radius: 28px; box-shadow: 0 16px 42px rgba(15,46,38,0.08); }
.hero-investment { margin-top: 20px; padding: 22px; border-radius: 28px; background: linear-gradient(135deg, rgba(15,46,38,0.96), rgba(79,125,90,0.96)); color: white; }
.hero-investment span { display: inline-flex; margin-bottom: 12px; color: var(--gold-soft); font-weight: 950; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-investment img { background: white; width: 100%; border-radius: 18px; padding: 14px; }
.hero-investment p { margin: 12px 0 0; color: rgba(255,255,255,0.73); font-size: .92rem; }
.section { padding: 78px 0; }
.two-column { display: grid; grid-template-columns: 0.82fr 1fr; gap: 62px; align-items: start; }
.content-block { font-size: 1.09rem; }
.section-heading.centered { max-width: 820px; margin-inline: auto; margin-bottom: 40px; text-align: center; }
.portfolio-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.portfolio-card { min-height: 470px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: 0 14px 42px rgba(15,46,38,.07); }
.portfolio-card.featured-card { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,247,231,.94)); border-color: rgba(192,24,66,.24); }
.status { display: inline-flex; width: max-content; margin-bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(192, 24, 66, .10); color: var(--berry); font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.brand-card-logo { width: 100%; height: 92px; object-fit: contain; background: white; border: 1px solid rgba(192,24,66,.11); border-radius: 18px; padding: 12px; margin-bottom: 18px; }
.concept-icon { width: 70px; height: 70px; display: grid; place-items: center; font-size: 2rem; background: #fff4dd; border-radius: 22px; margin-bottom: 22px; }
.portfolio-card h3 { font-size: clamp(1.7rem, 4vw, 3rem); }
.portfolio-card ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.portfolio-card li { display: flex; gap: 10px; align-items: flex-start; color: rgba(15,46,38,.82); font-weight: 760; }
.portfolio-card li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; min-width: 22px; height: 22px; border-radius: 50%; background: rgba(79, 125, 90, .12); color: var(--green); font-size: .82rem; font-weight: 1000; }
.makarooniah-panel { display: grid; grid-template-columns: .82fr 1fr; gap: 42px; align-items: center; padding: clamp(28px,5vw,56px); border-radius: 40px; background: linear-gradient(135deg, rgba(192,24,66,.95), rgba(142,18,51,.97)); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.makarooniah-panel::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10) 0 1px, transparent 2px 16px); opacity: .25; }
.makarooniah-panel > * { position: relative; z-index: 1; }
.makarooniah-panel .eyebrow, .makarooniah-panel p { color: rgba(255,255,255,.78); }
.makarooniah-panel h2 { color: white; }
.makarooniah-image { background: white; border-radius: 28px; padding: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.profile-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-highlights span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: white; border-radius: 999px; padding: 12px 16px; font-weight: 900; }
.strategy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strategy-item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.76); }
.strategy-item span { display: inline-flex; margin-bottom: 32px; color: var(--gold); font-weight: 1000; }
.partner-panel { display: grid; grid-template-columns: .83fr 1fr; gap: 36px; align-items: center; padding: clamp(28px,5vw,58px); border-radius: 40px; color: white; background: linear-gradient(135deg, #0f2e26, #41694b); box-shadow: var(--shadow); }
.partner-panel .eyebrow, .partner-panel p { color: rgba(255,255,255,.72); }
.partner-panel h2 { color: white; }
.partner-list { display: flex; flex-wrap: wrap; gap: 14px; }
.partner-list span { padding: 14px 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.11); color: white; font-weight: 880; }
.contact-grid { display: grid; grid-template-columns: .82fr 1fr; gap: 56px; align-items: start; }
.contact-details { display: grid; gap: 10px; margin-top: 26px; }
.contact-details a, .contact-details span { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.74); font-weight: 850; }
.contact-form { display: grid; gap: 16px; padding: clamp(22px,4vw,36px); border-radius: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
label span { display: block; margin-bottom: 8px; font-weight: 880; }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; outline: none; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: rgba(192,24,66,.72); box-shadow: 0 0 0 4px rgba(192,24,66,.1); }
textarea { resize: vertical; }
.form-note { margin: 0; font-size: .88rem; }
.site-footer { padding: 54px 0 24px; border-top: 1px solid var(--line); background: rgba(15,46,38,.05); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: start; padding-bottom: 34px; }
.footer-brand { margin-bottom: 14px; }
.site-footer p { max-width: 500px; margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 26px; font-weight: 850; }
.copyright { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
body[dir="rtl"] .hero-copy, body[dir="rtl"] .section-heading, body[dir="rtl"] .content-block, body[dir="rtl"] .portfolio-card, body[dir="rtl"] .strategy-item, body[dir="rtl"] .partner-panel, body[dir="rtl"] .makarooniah-panel, body[dir="rtl"] .contact-grid, body[dir="rtl"] .footer-grid, body[dir="rtl"] .copyright { direction: rtl; }
body[dir="rtl"] .portfolio-card li::before { content: "✓"; }
@media (max-width: 1040px) { .hero-grid, .two-column, .makarooniah-panel, .partner-panel, .contact-grid { grid-template-columns: 1fr; } .portfolio-grid, .strategy-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; inset: 78px 18px auto 18px; display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a, .language-btn { width: 100%; padding: 12px 14px; }
  .hero { padding-top: 56px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-stats, .portfolio-grid, .strategy-grid { grid-template-columns: 1fr; }
  .footer-grid, .copyright { flex-direction: column; }
}


/* Public portfolio view: keep private pipeline concepts off the public website */
.portfolio-grid.single-card {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.portfolio-grid.single-card .portfolio-card {
  min-height: auto;
}

/* Arabic typography refinement */
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] .nav-links a,
body[dir="rtl"] .btn,
body[dir="rtl"] .language-btn,
body[dir="rtl"] .brand strong,
body[dir="rtl"] .brand small {
  letter-spacing: 0;
}

body[dir="rtl"] h1 {
  line-height: 1.14;
}

body[dir="rtl"] h2 {
  line-height: 1.18;
}

body[dir="rtl"] .hero-text,
body[dir="rtl"] .content-block,
body[dir="rtl"] .portfolio-card,
body[dir="rtl"] .strategy-item,
body[dir="rtl"] .contact-form {
  font-weight: 500;
}
