/* ═══════════════════════════════════════════════════════════════
   BFI — أسس الأعمال للإستثمار  |  Corporate Design System v3
   Formal · Minimal · No card grids · Calibri
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700;900&display=swap');

:root{
  --bg:#fafbfd;
  --surface:#ffffff;
  --text:#0b1120;
  --text-2:#3b4259;
  --muted:#6b7190;
  --border:rgba(11,17,32,.08);
  --brand:#14325a;
  --brand-mid:#1e4d8c;
  --brand-light:#2a6bc7;
  --brand-tint:rgba(20,50,90,.05);
  --accent:#b8952e;
  --accent-light:#d4b04c;
  --gold-line:rgba(184,149,46,.35);
  --shadow-sm:0 1px 4px rgba(11,17,32,.04);
  --shadow:0 6px 24px rgba(11,17,32,.07);
  --shadow-lg:0 16px 48px rgba(11,17,32,.10);
  --radius:14px;
  --max:1120px;
  --header-h:80px;
  --font:'Calibri','Noto Sans Arabic',system-ui,-apple-system,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:var(--font);line-height:1.75;font-size:16px;
  -webkit-font-smoothing:antialiased;
}
html[dir="ltr"] body{direction:ltr}
html[dir="rtl"] body{direction:rtl}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font:inherit;cursor:pointer;border:none;background:none}
ul{list-style:none}

.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.skip-link{position:absolute;inset-inline-start:16px;top:16px;padding:10px 18px;border-radius:8px;background:var(--brand);color:#fff;font-weight:700;font-size:14px;transform:translateY(-200%);transition:transform .2s;z-index:999}
.skip-link:focus{transform:translateY(0)}

/* ═══ HEADER ═══ */
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--border);height:var(--header-h)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%;gap:20px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand-logos{display:flex;align-items:center;gap:10px}
.brand-logos img{height:44px;width:auto;object-fit:contain}
.brand-text{display:flex;flex-direction:column;gap:0}
.brand-text strong{font-size:17px;font-weight:900;color:var(--brand);letter-spacing:.3px}
.brand-text small{font-size:12px;color:var(--muted);font-weight:600}
.nav{display:flex;align-items:center;gap:4px}
.nav a{padding:10px 18px;border-radius:10px;font-size:15px;font-weight:600;color:var(--text-2);transition:all .2s;border:1px solid transparent}
.nav a:hover,.nav a.active{color:var(--brand);background:var(--brand-tint);border-color:rgba(20,50,90,.10)}
.lang-toggle{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;min-height:38px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700;font-size:13px;letter-spacing:.5px;transition:background .2s}
.lang-toggle:hover{background:var(--brand-mid)}

/* ═══ HERO ═══ */
.hero{padding:120px 0 90px;position:relative;overflow:hidden;background:linear-gradient(170deg,#fafbfd 0%,rgba(20,50,90,.03) 50%,rgba(184,149,46,.04) 100%)}
.hero::before{content:'';position:absolute;top:-120px;inset-inline-end:-80px;width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(184,149,46,.06) 0%,transparent 70%);pointer-events:none}
.hero-centered{text-align:center;display:flex;flex-direction:column;align-items:center}
.hero-logos{display:flex;align-items:center;gap:24px;margin-bottom:36px;justify-content:center}
.hero-logo-img{height:80px;width:auto;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.08))}
.hero h1{font-size:clamp(34px,3.5vw,52px);font-weight:900;line-height:1.2;letter-spacing:-.5px;margin-bottom:12px;max-width:700px}
.hero h1 .text-accent{color:var(--accent)}
.hero-sub{font-size:20px;font-weight:700;color:var(--brand);margin-bottom:22px;letter-spacing:.2px}
.hero .lead{color:var(--text-2);font-size:18px;line-height:1.85;max-width:640px;margin-bottom:40px}
.hero .actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.hero-line{position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--brand),var(--accent),var(--brand))}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 30px;border-radius:12px;font-weight:700;font-size:15px;min-height:50px;border:2px solid transparent;transition:all .25s;cursor:pointer;text-decoration:none}
.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn-primary:hover{background:var(--brand-mid);border-color:var(--brand-mid);transform:translateY(-1px);box-shadow:0 8px 20px rgba(20,50,90,.20)}
.btn-outline{background:transparent;color:var(--brand);border-color:var(--brand)}
.btn-outline:hover{background:var(--brand-tint);transform:translateY(-1px)}
.btn-white{background:#fff;color:var(--brand);border-color:#fff}
.btn-white:hover{background:rgba(255,255,255,.9);transform:translateY(-1px)}
.btn-accent{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-accent:hover{background:var(--accent-light);border-color:var(--accent-light)}
.btn-full{width:100%;justify-content:center}

/* ═══ GOLD DIVIDER ═══ */
.gold-divider{height:1px;background:linear-gradient(90deg,transparent,var(--gold-line),transparent);margin:0}

/* ═══ NUMBERS BAR ═══ */
.numbers-bar{background:var(--brand);padding:0}
.numbers-bar-inner{display:grid;grid-template-columns:repeat(4,1fr)}
.numbers-bar-item{padding:36px 20px;text-align:center;border-inline-end:1px solid rgba(255,255,255,.10)}
.numbers-bar-item:last-child{border:none}
.numbers-bar-item .nb-num{font-size:34px;font-weight:900;color:#fff;line-height:1;margin-bottom:4px}
.numbers-bar-item .nb-label{font-size:13px;color:rgba(255,255,255,.60);font-weight:600}

/* ═══ SECTIONS ═══ */
.section{padding:80px 0}
.section-alt{background:var(--brand-tint)}
.section-dark{background:linear-gradient(160deg,var(--brand) 0%,#1b4478 100%);color:#fff}
.section-dark .text-muted{color:rgba(255,255,255,.60)}

.section-header{margin-bottom:48px;max-width:680px}
.section-header.centered{text-align:center;margin-inline:auto}
.section-eyebrow{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.section-eyebrow::before{content:'';width:28px;height:2px;background:var(--accent);border-radius:2px}
.section-dark .section-eyebrow{color:var(--accent-light)}
.section-header h2{font-size:clamp(26px,2.4vw,38px);font-weight:900;line-height:1.25;letter-spacing:-.3px;margin-bottom:14px}
.section-header p{color:var(--text-2);font-size:17px;line-height:1.8}
.section-dark .section-header p{color:rgba(255,255,255,.70)}

/* ═══ FEATURE ROWS (replaces card grids) ═══ */
.feature-rows{display:flex;flex-direction:column;gap:0}
.feature-row{display:grid;grid-template-columns:64px 1fr;gap:24px;padding:32px 0;border-bottom:1px solid var(--border);align-items:start}
.feature-row:last-child{border-bottom:none}
.feature-num{width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,var(--brand-tint),rgba(184,149,46,.06));border:1px solid rgba(20,50,90,.08);display:grid;place-items:center;font-size:22px;font-weight:900;color:var(--brand)}
.feature-row h3{font-size:18px;font-weight:800;margin-bottom:6px;color:var(--text)}
.feature-row p{color:var(--muted);font-size:15px;line-height:1.75;margin:0}
/* Dark variant */
.section-dark .feature-row{border-color:rgba(255,255,255,.08)}
.section-dark .feature-num{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}
.section-dark .feature-row h3{color:#fff}
.section-dark .feature-row p{color:rgba(255,255,255,.60)}

/* ═══ TWO-COL LAYOUT ═══ */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.two-col-text{display:flex;flex-direction:column;gap:20px}
.two-col-text h3{font-size:20px;font-weight:800;color:var(--text)}
.two-col-text p{color:var(--text-2);font-size:15px;line-height:1.8}
.two-col-panel{padding:40px 36px;border-radius:var(--radius);border-inline-start:4px solid var(--accent);background:var(--surface);box-shadow:var(--shadow)}
.two-col-panel h3{font-size:17px;font-weight:800;margin-bottom:12px;color:var(--brand)}
.two-col-panel p{color:var(--text-2);font-size:15px;line-height:1.8}
.two-col-panel .panel-list{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.two-col-panel .panel-item{display:flex;align-items:start;gap:12px;font-size:15px;color:var(--text-2);line-height:1.7}
.two-col-panel .panel-item::before{content:'';min-width:8px;height:8px;margin-top:8px;border-radius:50%;background:var(--accent)}
.panel-mission{margin-top:12px}
.section-nopt{padding-top:0}

/* ═══ TIMELINE (for process steps) ═══ */
.timeline{position:relative;padding-inline-start:40px}
.timeline::before{content:'';position:absolute;inset-inline-start:15px;top:0;bottom:0;width:2px;background:linear-gradient(180deg,var(--accent),var(--brand))}
.timeline-step{position:relative;padding:0 0 40px;display:flex;flex-direction:column;gap:6px}
.timeline-step:last-child{padding-bottom:0}
.timeline-step::before{content:attr(data-step);position:absolute;inset-inline-start:-40px;top:0;width:32px;height:32px;border-radius:50%;background:var(--brand);color:#fff;font-size:14px;font-weight:800;display:grid;place-items:center;border:3px solid var(--bg)}
.timeline-step h3{font-size:18px;font-weight:800;color:var(--text)}
.timeline-step p{color:var(--muted);font-size:15px;line-height:1.75}

/* ═══ PORTFOLIO ═══ */
.portfolio-list{display:flex;flex-direction:column;gap:0}
.portfolio-item{display:grid;grid-template-columns:80px 1fr auto;gap:24px;align-items:center;padding:28px 0;border-bottom:1px solid var(--border)}
.portfolio-item:last-child{border-bottom:none}
.portfolio-item-logo{width:72px;height:72px;border-radius:16px;background:var(--brand-tint);border:1px solid var(--border);display:grid;place-items:center;overflow:hidden}
.portfolio-item-logo img{width:56px;height:56px;object-fit:contain}
.portfolio-item-info{display:flex;flex-direction:column;gap:2px}
.portfolio-item-info strong{font-size:17px;font-weight:800}
.portfolio-item-info .pi-ar{font-size:14px;color:var(--text-2);font-weight:600}
.portfolio-item-info .pi-domain{font-size:13px;color:var(--muted)}
.portfolio-item-link{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border-radius:10px;font-size:14px;font-weight:700;color:var(--brand);border:2px solid rgba(20,50,90,.15);white-space:nowrap;transition:all .2s}
.portfolio-item-link:hover{background:var(--brand-tint);border-color:var(--brand)}

/* ═══ CTA BANNER ═══ */
.cta-banner{padding:56px 48px;border-radius:var(--radius);background:linear-gradient(135deg,var(--brand) 0%,#1e4d8c 100%);color:#fff;box-shadow:var(--shadow-lg);position:relative;overflow:hidden}
.cta-banner::after{content:'';position:absolute;top:-60%;inset-inline-end:-10%;width:360px;height:360px;border-radius:50%;background:rgba(184,149,46,.10);pointer-events:none}
.cta-banner h2{font-size:clamp(24px,2.2vw,34px);font-weight:900;margin-bottom:12px;position:relative;z-index:1}
.cta-banner p{color:rgba(255,255,255,.75);font-size:17px;margin-bottom:28px;max-width:600px;position:relative;z-index:1}
.cta-banner .actions{position:relative;z-index:1;display:flex;gap:14px;flex-wrap:wrap}

/* ═══ FOOTER ═══ */
.footer{background:var(--text);color:rgba(255,255,255,.85);padding:0}
.footer-main{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;padding:56px 0 40px}
.footer-brand{display:flex;flex-direction:column;gap:16px}
.footer-brand-logos{display:flex;align-items:center;gap:12px}
.footer-brand-logos img{height:40px;width:auto;object-fit:contain;filter:brightness(0) invert(1);opacity:.85}
.footer-brand p{font-size:14px;color:rgba(255,255,255,.50);line-height:1.7;max-width:300px}
.footer-col h4{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:16px;color:var(--accent)}
.footer-col li{margin-bottom:10px}
.footer-col a{font-size:14px;color:rgba(255,255,255,.60);transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-col p{font-size:14px;color:rgba(255,255,255,.50);line-height:1.7}
.footer-col .fc-link{margin-top:8px}
.footer-col .fc-link a{color:rgba(255,255,255,.60)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:24px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:13px;color:rgba(255,255,255,.40)}

/* ═══ PAGE HEADER ═══ */
.page-header{padding:72px 0 48px;border-bottom:1px solid var(--border)}
.page-header .section-eyebrow{margin-bottom:14px}
.page-header h1{font-size:clamp(30px,3vw,44px);font-weight:900;line-height:1.25;margin-bottom:14px;max-width:600px}
.page-header .lead{color:var(--text-2);font-size:17px;line-height:1.85;max-width:640px}

/* ═══ BLOCKQUOTE ═══ */
.pull-quote{padding:32px 36px;border-inline-start:4px solid var(--accent);background:var(--surface);border-radius:0 var(--radius) var(--radius) 0;box-shadow:var(--shadow-sm);margin:32px 0}
.pull-quote p{font-size:18px;font-weight:700;color:var(--brand);line-height:1.7;font-style:italic}

/* ═══ CONTACT FORM ═══ */
.contact-form{display:grid;gap:18px;max-width:720px;margin-top:28px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-weight:700;font-size:14px;color:var(--text-2)}
input,textarea{width:100%;padding:14px 16px;border-radius:12px;border:2px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:15px;outline:none;transition:border-color .2s,box-shadow .2s}
textarea{min-height:140px;resize:vertical}
input:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(20,50,90,.06)}
.contact-notice{padding:18px 20px;border-radius:12px;background:rgba(34,139,34,.06);border:1px solid rgba(34,139,34,.22);color:#1d7a2d;font-weight:700;font-size:15px}
.contact-info-bar{display:flex;gap:40px;flex-wrap:wrap;padding:28px 0;border-bottom:1px solid var(--border);margin-bottom:28px}
.contact-info-item{display:flex;flex-direction:column;gap:2px}
.contact-info-item .ci-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;color:var(--accent)}
.contact-info-item .ci-value{font-size:16px;font-weight:700;color:var(--text)}
.contact-info-item a{color:var(--brand);font-weight:700}

/* ═══ DEV CREDIT (visually hidden, crawlable by search engines) ═══ */
.dev-credit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none}
.dev-credit span{display:block}

/* ═══ FLIP / LOADER / REVEAL ═══ */
.lang-stage{perspective:1200px}
.lang-flip{transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.85,.2,1),opacity .55s ease;will-change:transform,opacity}
.lang-flip.is-flipping{transform:rotateY(180deg) scale(.99);opacity:.72}
@media(prefers-reduced-motion:reduce){.lang-flip{transition:none}.lang-flip.is-flipping{transform:none;opacity:1}}

.loader{display:none;position:fixed;inset:0;z-index:100;align-items:center;justify-content:center;padding:24px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
html.js .loader{display:flex}
body.is-loaded .loader{opacity:0;pointer-events:none;transition:opacity .4s}
.loader-card{width:min(400px,100%);border-radius:20px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg);padding:40px 32px;text-align:center}
.loader-logos{display:flex;align-items:center;justify-content:center;gap:20px}
.loader-logos img{height:52px;width:auto;object-fit:contain}
.loader-text{margin-top:18px;color:var(--brand);font-weight:800;font-size:15px}
.loader-bar{margin-top:18px;height:4px;border-radius:999px;background:rgba(20,50,90,.06);overflow:hidden}
.loader-bar span{display:block;height:100%;width:40%;border-radius:999px;background:linear-gradient(90deg,var(--brand),var(--accent));animation:lbar 1.2s ease-in-out infinite}
@keyframes lbar{0%{transform:translateX(-20%);opacity:.6}50%{transform:translateX(150%);opacity:1}100%{transform:translateX(-20%);opacity:.6}}

.reveal{opacity:1;transform:none}
body.reveal-ready .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
body.reveal-ready .reveal.is-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){body.reveal-ready .reveal{opacity:1;transform:none;transition:none}}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px){
  .two-col{grid-template-columns:1fr;gap:32px}
  .footer-main{grid-template-columns:1fr 1fr;gap:28px}
  .numbers-bar-inner{grid-template-columns:repeat(2,1fr)}
  .numbers-bar-item:nth-child(2){border:none}
  .numbers-bar-item:nth-child(3){border-inline-end:1px solid rgba(255,255,255,.10)}
}
@media(max-width:768px){
  :root{--header-h:68px}
  .container{width:calc(100% - 32px)}
  .portfolio-item{grid-template-columns:60px 1fr;gap:16px}
  .portfolio-item-link{grid-column:1/-1;justify-self:start}
  .numbers-bar-inner{grid-template-columns:1fr 1fr}
  .footer-main{grid-template-columns:1fr;gap:20px}
  .footer-bottom{flex-direction:column;text-align:center}
  .hero{padding:72px 0 60px}
  .hero-logo-img{height:60px}
  .section{padding:56px 0}
  .cta-banner{padding:40px 24px}
  .form-row{grid-template-columns:1fr}
  .contact-info-bar{flex-direction:column;gap:20px}
  .feature-row{grid-template-columns:48px 1fr;gap:16px}
}
@media(max-width:520px){
  .nav{gap:2px}
  .nav a{padding:8px 10px;font-size:13px}
  .brand-text small{display:none}
  h1{font-size:28px}
  .numbers-bar-inner{grid-template-columns:1fr}
  .numbers-bar-item{border:none!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
  .numbers-bar-item:last-child{border-bottom:none!important}
}
