:root {
    --c-blue-900: #0B4A5A;
    --c-blue-700: #0F7A94;
    --c-blue-500: #2FA0BC;
    --c-blue-100: #E4F3F7;
    --c-green-700: #4E8A2E;
    --c-green-500: #7CB552;
    --c-green-100: #EEF5E6;
    --c-bg: #FBFAF7;
    --c-surface: #FFFFFF;
    --c-ink: #16282B;
    --c-ink-muted: #5A6B6C;
    --c-border: #E6E2D8;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 28px;
    --max-w: 1160px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; max-width: 100%; overflow-x: hidden; }
body { font-family: 'Tajawal', Tahoma, sans-serif; background: var(--c-bg); color: var(--c-ink); line-height: 1.85; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[x-cloak] { display: none !important; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Topbar ===== */
.topbar { background: var(--c-blue-900); color: #CFE6EC; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { transition: color 0.2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; }

/* ===== Header ===== */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand b { display: block; font-size: 17px; font-weight: 900; color: var(--c-blue-900); line-height: 1.4; }
.brand small { display: block; font-size: 12px; color: var(--c-ink-muted); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a, .nav-drop-btn { font-size: 15px; font-weight: 500; color: var(--c-ink-muted); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.main-nav > a:hover, .main-nav > a.active { color: var(--c-blue-700); border-bottom-color: var(--c-blue-700); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--c-blue-900); cursor: pointer; transition: transform 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] { transform: rotate(90deg); }

/* ===== Dropdown ===== */
.nav-item { position: relative; }
.nav-drop-btn { background: none; border: 0; font-family: inherit; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-drop-btn:hover { color: var(--c-blue-700); }
.chevron { transition: transform 0.25s var(--ease); }
.chevron.rot { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 16px); right: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: 0 18px 44px rgba(11,74,90,0.13); min-width: 280px; padding: 8px; z-index: 200; }
.drop-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 14px; border-radius: 8px; color: var(--c-ink); }
a.drop-item:hover { background: var(--c-blue-100); color: var(--c-blue-700); }
.drop-item.disabled { color: var(--c-ink-muted); cursor: not-allowed; opacity: 0.65; }
.drop-item.disabled em { font-style: normal; font-size: 11px; color: var(--c-ink-muted); background: var(--c-bg); border: 1px solid var(--c-border); padding: 2px 9px; border-radius: 999px; flex-shrink: 0; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 13px 30px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px; border: 0; font-family: inherit; cursor: pointer; transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-blue-700); color: #fff; }
.btn-primary:hover { background: var(--c-blue-900); }
.btn-green { background: var(--c-green-700); color: #fff; }
.btn-outline { background: transparent; color: var(--c-blue-700); border: 1.5px solid var(--c-blue-700); }
.btn-outline:hover { background: var(--c-blue-100); }
.btn-white { background: #fff; color: var(--c-blue-700); }

/* ===== Hero ===== */
.hero { padding: 84px 0 64px; overflow: hidden; background: linear-gradient(160deg, #F2FAFC 0%, var(--c-bg) 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--c-green-100); color: var(--c-green-700); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 46px; font-weight: 900; color: var(--c-blue-900); line-height: 1.3; margin-bottom: 20px; }
.hero h1 span { color: var(--c-green-700); }
.hero .lead { font-size: 18px; color: var(--c-ink-muted); max-width: 48ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-anim > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.hero-anim > *:nth-child(2) { animation-delay: 0.12s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.24s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.bean { position: absolute; border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%; opacity: 0.85; }
.bean-1 { width: 250px; height: 300px; background: var(--c-blue-500); right: 8%; top: 0; }
.bean-2 { width: 210px; height: 265px; background: var(--c-green-500); left: 6%; bottom: 0; }
.hero-art img { position: relative; width: 210px; height: 210px; border-radius: 50%; object-fit: cover; border: 9px solid #fff; box-shadow: 0 10px 40px rgba(11,74,90,0.14); }

/* ===== Quick links ===== */
.quick { margin-top: -34px; position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 22px 18px; text-align: center; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.quick-card:hover { transform: translateY(-5px); border-color: var(--c-blue-500); box-shadow: 0 14px 32px rgba(11,74,90,0.1); }
.quick-card .qi { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-blue-100); color: var(--c-blue-700); display: flex; align-items: center; justify-content: center; }
.quick-card b { display: block; font-size: 15px; color: var(--c-blue-900); }
.quick-card span { font-size: 13px; color: var(--c-ink-muted); }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--c-surface); }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 66ch; margin-inline: auto; margin-bottom: 44px; }
.section-head p.kicker { color: var(--c-green-700); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.section-head h2 { font-size: 32px; font-weight: 900; color: var(--c-blue-900); margin-bottom: 12px; }
.section-head > p:last-child { color: var(--c-ink-muted); font-size: 16px; }
.rule { width: 64px; height: 4px; background: var(--c-green-500); border-radius: 4px; margin-top: 14px; }
.section-head.center .rule { margin-inline: auto; }

/* ===== Values ===== */
.values { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.value-chip { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px; padding: 10px 26px; font-weight: 700; color: var(--c-blue-900); font-size: 15px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.value-chip:hover { transform: translateY(-3px); border-color: var(--c-green-500); color: var(--c-green-700); }

/* ===== KPI ===== */
.kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; background: var(--c-blue-900); border-radius: var(--r-lg); padding: 44px 32px; color: #fff; }
.kpi { text-align: center; }
.kpi b { display: block; font-size: 38px; font-weight: 900; color: var(--c-green-500); line-height: 1.2; }
.kpi span { font-size: 14px; opacity: 0.88; }

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 30px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--c-green-500); box-shadow: 0 14px 34px rgba(15,122,148,0.1); }
.card .mark { width: 46px; height: 46px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-700); display: flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-blue-900); }
.card p { color: var(--c-ink-muted); font-size: 15px; }

/* ===== Checklist ===== */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.checklist li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink); font-size: 15px; }
.checklist li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-700); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* ===== Pillars ===== */
.pillar-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillar { border-right: 4px solid var(--c-green-500); padding: 6px 22px; }
.pillar h3 { color: var(--c-blue-900); font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--c-ink-muted); }

/* ===== Info card ===== */
.info-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 8px; }
.info-row { display: grid; grid-template-columns: 210px 1fr; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--c-border); }
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--c-ink-muted); font-size: 14px; }
.info-row dd { color: var(--c-ink); font-weight: 700; font-size: 15px; }

/* ===== Board table ===== */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); }
.board-table { width: 100%; border-collapse: collapse; background: var(--c-surface); min-width: 560px; }
.board-table th { background: var(--c-blue-900); color: #fff; text-align: right; font-size: 14px; font-weight: 500; padding: 16px 20px; }
.board-table th:first-child { width: 56px; text-align: center; }
.board-table th:last-child, .board-table td:last-child { text-align: center; }
.board-table td { padding: 15px 20px; border-top: 1px solid var(--c-border); font-size: 15px; }
.board-table td:first-child { text-align: center; color: var(--c-ink-muted); }
.board-table tr:nth-child(even) td { background: #FAFCFA; }
.founder-check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-green-100); color: var(--c-green-700); font-weight: 700; font-size: 14px; }

/* ===== Partners ===== */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-size: 15px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.partner-item:hover { border-color: var(--c-blue-500); transform: translateY(-3px); }
.partner-item i { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c-green-500); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.contact-item .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--c-blue-100); color: var(--c-blue-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { font-size: 15px; color: var(--c-blue-900); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--c-ink-muted); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; margin-bottom: 8px; font-weight: 500; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--c-border); font-family: inherit; font-size: 15px; background: var(--c-bg); transition: border-color 0.2s var(--ease); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--c-blue-500); }
.form-field textarea { min-height: 140px; resize: vertical; }

/* ===== CTA ===== */
.cta-band { background: var(--c-green-700); color: #fff; text-align: center; padding: 62px 28px; border-radius: var(--r-lg); }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 26px; max-width: 62ch; margin-inline: auto; }

/* ===== Page header ===== */
.page-head { background: var(--c-blue-900); color: #fff; padding: 56px 0; }
.page-head h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-head p { color: #B9D9E1; max-width: 66ch; }

/* ===== Footer ===== */
.site-footer { background: var(--c-blue-900); color: #DCEBEF; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid p, .footer-grid a, .footer-grid li { font-size: 14px; color: #B9D3D9; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.accred { padding-top: 26px; display: flex; justify-content: center; }
.accred-link { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-sm); padding: 12px 22px; max-width: 640px; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.accred-link:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.32); }
.accred-logo { width: 42px; height: 42px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 4px; }
.accred-link span { font-size: 13px; color: #DCEBEF; line-height: 1.6; }
.footer-bottom { padding-top: 22px; font-size: 13px; color: #8FB2B9; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-anim > * { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .grid-3, .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    .hero { padding: 56px 0 48px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .hero-art { order: -1; min-height: 230px; }
    .hero h1 { font-size: 32px; }
    .grid-3, .grid-2, .pillar-row, .checklist, .partner-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .quick { margin-top: 32px; }
    .quick-grid { grid-template-columns: 1fr; }
    .kpi-strip { grid-template-columns: 1fr; padding: 34px 24px; }
    .info-row { grid-template-columns: 1fr; }
    .topbar .wrap { justify-content: center; }
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .main-nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; right: 0; left: 0; background: var(--c-surface); padding: 18px 24px; border-bottom: 1px solid var(--c-border); gap: 14px; opacity: 0; transform: translateY(-8px); animation: navIn 0.3s var(--ease) forwards; }
    @keyframes navIn { to { opacity: 1; transform: none; } }
    .nav-item { width: 100%; }
    .nav-drop-btn { width: 100%; justify-content: space-between; }
    .nav-dropdown { position: static; box-shadow: none; border: none; margin: 6px 10px 0 0; padding: 0; min-width: 0; }
    .page-head h1 { font-size: 28px; }
    .section { padding: 56px 0; }
}


/* ===== Motion refinements ===== */
.site-header { transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,74,90,0.08); border-bottom-color: transparent; }

.hero .bean { transition: transform 0.1s linear; will-change: transform; }

/* staggered children inside revealed containers */
.stagger-in { animation: cascade 0.85s var(--ease) both; }
@keyframes cascade {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* underline sweep on nav links */
.main-nav > a { position: relative; border-bottom: 0; }
.main-nav > a::after {
    content: ""; position: absolute; right: 0; bottom: 0;
    width: 0; height: 2px; background: var(--c-blue-700);
    transition: width 0.4s var(--ease);
}
.main-nav > a:hover::after, .main-nav > a.active::after { width: 100%; }

/* card inner lift */
.card .mark { transition: transform 0.45s var(--ease), background-color 0.45s var(--ease); }
.card:hover .mark { transform: scale(1.08); background: var(--c-green-500); color: #fff; }

/* quick card icon */
.quick-card .qi { transition: transform 0.45s var(--ease), background-color 0.45s var(--ease), color 0.45s var(--ease); }
.quick-card:hover .qi { transform: translateY(-3px); background: var(--c-blue-700); color: #fff; }

/* checklist items */
.checklist li { transition: transform 0.35s var(--ease); }
.checklist li:hover { transform: translateX(-5px); }
.checklist li::before { transition: transform 0.35s var(--ease); }
.checklist li:hover::before { transform: scale(1.12); }

/* buttons: soft shadow bloom */
.btn-primary, .btn-green { box-shadow: 0 4px 14px rgba(11,74,90,0.12); }
.btn-primary:hover, .btn-green:hover { box-shadow: 0 10px 26px rgba(11,74,90,0.2); }

/* pillar accent grows */
.pillar { transition: border-color 0.45s var(--ease); }
.pillar:hover { border-color: var(--c-blue-700); }

/* KPI numbers settle in */
.kpi b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    .stagger-in { animation: none !important; }
    .hero .bean { transform: none !important; }
    * { scroll-behavior: auto !important; }
}
