/* Alfajer Consulting — navy & gold */
:root {
  --navy-950: #061729;
  --navy-900: #0a2540;
  --navy-800: #0e3a5a;
  --navy-700: #174d75;
  --gold-300: #f3e5ab;
  --gold-400: #e6ca65;
  --gold-500: #d4af37;
  --gold-600: #b89228;
  --ink: #1e293b;
  --muted: #475569;
  --light: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --paper: #ffffff;
  --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 14px;
  --shadow: 0 1px 3px rgba(10,37,64,.06), 0 8px 24px -12px rgba(10,37,64,.15);
}
[lang="ar"] { --font: "Cairo", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy-900); font-weight: 800; letter-spacing: -0.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,37,64,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--navy-800); color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-500), var(--gold-300)); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); flex: none; }
.brand .mark svg { width: 26px; height: 26px; }
.brand b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.brand small { display: block; color: var(--gold-400); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
[lang="ar"] .brand small { letter-spacing: 0; font-size: .78rem; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: #e2e8f0; text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--gold-400); }
.nav .lang-switch { border: 1px solid rgba(212,175,55,.45); color: var(--gold-400); border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: .85rem; }
.nav .lang-switch:hover { background: rgba(212,175,55,.12); }
.nav .cta { background: var(--gold-500); color: var(--navy-900); font-weight: 700; padding: 9px 16px; border-radius: 10px; }
.nav .cta:hover { background: var(--gold-600); color: var(--navy-900); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-950); padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--navy-800); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .lang-switch, .nav .cta { margin-top: 10px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, box-shadow .2s; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px -6px rgba(212,175,55,.6); }
.btn-gold:hover { background: var(--gold-600); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-navy { background: var(--navy-900); color: var(--gold-400); width: 100%; }
.btn-navy:hover { background: var(--navy-800); }

/* Hero */
.hero { position: relative; color: #fff; padding: clamp(64px, 9vw, 112px) 0; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #cbd5e1; font-size: 1.08rem; max-width: 60ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-panel { background: rgba(6,23,41,.8); border: 1px solid rgba(212,175,55,.3); border-radius: 20px; padding: 24px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero-panel h2 { color: var(--gold-400); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
[lang="ar"] .hero-panel h2 { letter-spacing: 0; font-size: .95rem; }
.hero-panel .item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(10,37,64,.9); border: 1px solid var(--navy-800); margin-bottom: 12px; }
.hero-panel .item:last-child { margin-bottom: 0; }
.hero-panel .ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(212,175,55,.18); color: var(--gold-400); display: grid; place-items: center; }
.hero-panel .ico svg { width: 22px; height: 22px; }
.hero-panel strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.hero-panel p { color: #cbd5e1; font-size: .85rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Sections */
section { padding: clamp(56px, 7vw, 96px) 0; }
.sec-white { background: var(--paper); }
.sec-gray { background: var(--bg); border-top: 1px solid var(--line); }
.sec-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700)); color: #fff; }
.sec-navy h2 { color: #fff; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--muted); }
.sec-navy .sec-head p { color: #cbd5e1; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(10,37,64,.06); color: var(--navy-900); border: 1px solid rgba(10,37,64,.12); margin-bottom: 14px; }
[lang="ar"] .pill { letter-spacing: 0; font-size: .88rem; }
.pill-gold { background: rgba(212,175,55,.18); border-color: rgba(212,175,55,.35); }
.sec-navy .pill { background: rgba(212,175,55,.2); color: var(--gold-300); border-color: rgba(212,175,55,.35); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-grid .text p { color: var(--muted); font-size: 1.02rem; }
.callout { background: var(--bg); border-inline-start: 4px solid var(--gold-500); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 22px 0; }
[dir="rtl"] .callout { border-radius: 12px 0 0 12px; }
.callout strong { display: block; color: var(--navy-900); margin-bottom: 4px; }
.callout p { font-size: .95rem; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.info-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.info-card .ico svg { width: 20px; height: 20px; }
.info-card small { display: block; color: var(--light); font-size: .78rem; }
.info-card span { font-weight: 700; color: var(--navy-900); font-size: .92rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-grid > div:nth-child(2) { padding-top: 24px; }
.feature { padding: 24px; border-radius: 18px; margin-bottom: 16px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -12px rgba(10,37,64,.25); }
.feature svg { width: 32px; height: 32px; margin-bottom: 12px; }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .85rem; }
.feature.dark { background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.feature.dark h3 { color: #fff; } .feature.dark svg { color: var(--gold-400); } .feature.dark p { color: #cbd5e1; }
.feature.light { background: #f1f5f9; border: 1px solid var(--line); }
.feature.light svg { color: var(--navy-900); } .feature.light p { color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .info-cards, .feature-grid { grid-template-columns: 1fr; } .feature-grid > div:nth-child(2) { padding-top: 0; } }

/* Services cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 1px 2px rgba(10,37,64,.04); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px -10px rgba(10,37,64,.2); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 4px 10px -4px rgba(10,37,64,.5); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card ul li { position: relative; padding-inline-start: 16px; font-size: .86rem; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
@media (max-width: 1050px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

/* Capabilities tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab { padding: 9px 16px; border-radius: 12px; border: 1px solid #cbd5e1; background: var(--paper); color: var(--navy-900); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { background: #f1f5f9; }
.tab[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.cap[hidden] { display: none; }
.cap header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cap header .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.cap header .ico svg { width: 20px; height: 20px; }
.cap h3 { margin: 0; font-size: 1rem; }
.cap li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.cap li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/9px no-repeat; }
@media (max-width: 1000px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }

/* Beneficiaries (navy) */
.sec-navy .card { background: rgba(6,23,41,.7); border-color: rgba(255,255,255,.1); color: #fff; }
.sec-navy .card h3 { color: #fff; }
.sec-navy .card p { color: #cbd5e1; font-size: .88rem; }
.sec-navy .card .ico { background: var(--gold-500); color: var(--navy-900); box-shadow: none; }

/* Standards strip */
.standards { padding: 48px 0; background: #f1f5f9; border-top: 1px solid var(--line); }
.standards h2 { text-align: center; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; }
[lang="ar"] .standards h2 { letter-spacing: 0; font-size: 1.15rem; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; }
.badge { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 22px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 150px; }
.badge b { display: block; color: var(--navy-900); font-size: 1rem; }
.badge span { display: block; color: var(--light); font-size: .72rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.contact-grid .intro p { color: var(--muted); font-size: .98rem; }
.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-list .info-card .ico { width: 46px; height: 46px; }
.contact-list a { text-decoration: none; }
.form-box { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink); margin-bottom: 18px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(10,37,64,.15); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--light); margin-top: 12px; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 48px 0 28px; border-top: 1px solid var(--navy-800); font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--navy-800); margin-bottom: 24px; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer .brand .mark { width: 34px; height: 34px; border-radius: 9px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }
.footer-bottom .gold { color: var(--gold-400); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
