/*
Theme Name: Neuron
Description: قالب مكتب نيرون العلمي
Version: 1.2
Text Domain: neuron
*/

:root {
	--navy: #0b2c5c;
	--navy-deep: #071d3d;
	--blue: #2062b5;
	--blue-soft: #e8f0fb;
	--gold: #c9a227;
	--ink: #1b2533;
	--muted: #5b6778;
	--line: #dde3ec;
	--bg: #ffffff;
	--bg-alt: #f5f7fb;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(11, 44, 92, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.8;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--navy); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy) 0 75%, var(--gold) 75%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; }
.brand-text strong { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.brand-text span { display: block; font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
html[dir="ltr"] .brand-text span { letter-spacing: 0; font-size: .8rem; }

.main-nav { order: 2; margin-inline-start: auto; }
.header-tools { order: 3; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.lang-switch::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lang-switch:hover { background: var(--blue-soft); text-decoration: none; }
@media (max-width: 520px) {
	.brand img { width: 38px; }
	.brand-text strong { font-size: .95rem; }
	.brand-text span { font-size: .65rem; }
	.lang-switch { padding: 6px 10px; font-size: .85rem; }
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { background: var(--blue-soft); color: var(--navy); text-decoration: none; }
.main-nav .nav-cta a { background: var(--navy); color: #fff; }
.main-nav .nav-cta a:hover { background: var(--blue); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.header-tools { margin-inline-start: auto; }
	.main-nav { position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 16px; }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(circle at 15% 20%, rgba(32, 98, 181, .55), transparent 55%), linear-gradient(135deg, var(--navy-deep), var(--navy));
	color: #fff; padding: 88px 0 96px;
}
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--gold); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 0 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero-tags span { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 14px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
html[dir="ltr"] .hero h1 { letter-spacing: -.01em; }
.hero-logo { justify-self: center; background: #fff; border-radius: 50%; padding: 42px; width: min(360px, 80vw); aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); outline: 6px solid rgba(201, 162, 39, .5); outline-offset: 8px; }

.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d9b33a; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; margin-inline-start: 10px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 860px) {
	.hero { padding: 56px 0 64px; }
	.hero-inner { grid-template-columns: 1fr; text-align: center; }
	.hero-logo { order: -1; width: 200px; padding: 26px; }
	.hero .lead { margin-inline: auto; }
	.hero-tags { justify-content: center; }
}

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 6px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.section-head p { color: var(--muted); margin: 0; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { margin: 0 0 1.1em; color: #2f3a4a; }
.facts { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.facts h3 { color: var(--gold); font-size: 1.1rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.facts dt { color: rgba(255, 255, 255, .65); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.vm-card.mission { border-top-color: var(--gold); }
.vm-card h3 { font-size: 1.3rem; }
.vm-card p { margin: 0; color: #2f3a4a; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d5ea; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.08rem; margin: 0; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.partner .logo { background: #fff; border-radius: 10px; padding: 8px; }
.partner h3 { font-size: 1.15rem; }
.partner h3 small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.partner p { margin: 0; color: #2f3a4a; font-size: .97rem; }
@media (max-width: 960px) { .partners { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .partner { grid-template-columns: 1fr; text-align: center; } .partner .logo { max-width: 140px; margin: 0 auto; } .partner h3 small { text-align: center; } }

.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; counter-reset: goal; }
.goals li { counter-increment: goal; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.goals li::before { content: counter(goal); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.strength { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; }
.strength h3 { color: var(--gold); font-size: 1.05rem; }
.strength p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.section.dark { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head p { color: rgba(255, 255, 255, .75); }

.closing { text-align: center; max-width: 820px; margin: 0 auto; }
.closing p { color: #2f3a4a; font-size: 1.08rem; }
.closing blockquote { margin: 28px 0 0; font-size: 1.3rem; font-weight: 700; color: var(--blue); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; }
.contact-card .icon { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 1rem; color: var(--muted); font-weight: 500; }
.contact-card a, .contact-card strong { font-size: 1.1rem; font-weight: 700; color: var(--navy); direction: ltr; display: inline-block; }

/* Generic pages */
.page-wrap { padding: 60px 0; }
.page-wrap .entry { max-width: 820px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 40px 0 28px; border-top: 4px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 48px; background: #fff; border-radius: 50%; padding: 6px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; text-align: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
