:root { --brand: #14ad77; --deep: #0e8259; --mint: #8fd6bb; --soft: #eef9f4; --bg: #fdfefe; --surface: #fff; --text: #13231c; --muted: #5d7068; --line: #e2ebe7; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #1a2c26; --surface: #233a32; --text: #f1f7f4; --muted: #bdd0c7; --line: #38544a; --soft: #274439; --deep: #8fd6bb; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #1a2c26; --surface: #233a32; --text: #f1f7f4; --muted: #bdd0c7; --line: #38544a; --soft: #274439; --deep: #8fd6bb; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 17px/1.75 "IBM Plex Sans Arabic", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
.wrap { width: min(1120px, 100%); margin: auto; padding-inline: 24px; }
.narrow { width: min(820px, 100%); }
main { flex: 1; display: flex; flex-direction: column; }

/* الشريط العلوي */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; text-decoration: none; color: var(--deep); }
.brand img { width: 36px; height: 36px; transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
.links { display: flex; gap: 4px; margin-inline-start: auto; font-size: 15px; }
.links a { position: relative; padding: 8px 10px; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .2s; }
.links a::after { content: ""; position: absolute; inset-inline: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.links a:hover, .links a[aria-current] { color: var(--brand); }
.links a:hover::after, .links a[aria-current]::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--brand); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: #0d845a; }
.login { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* الصفحات والانتقال بينها */
.js .view { display: none; }
.js .view.active { display: block; animation: page-in .45s cubic-bezier(.2,.8,.2,1) both; }
.js .view.leaving { display: block; animation: page-out .2s ease-in both; }
.view { position: relative; flex: 1; padding: 72px 0; overflow: hidden; }
.js[data-dir="back"] .view.active { --from: -36px; }
.js[data-dir="back"] .view.leaving { --to: 36px; }
@keyframes page-in { from { opacity: 0; transform: translateX(var(--from, 36px)); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; transform: translateX(var(--to, -36px)); } }
.js .view.active .rv { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* النصوص */
.eyebrow { color: var(--brand); font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.2; margin: 0 0 20px; letter-spacing: -.5px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.25; margin: 0 0 14px; outline: 0; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.sub { color: var(--muted); margin: 0 0 40px; max-width: 42em; }
.band { background: var(--soft); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* الرئيسية */
.hero { padding: 64px 0 56px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .28; pointer-events: none; animation: drift 13s ease-in-out infinite alternate; }
.b1 { width: 380px; height: 380px; background: var(--mint); inset-inline-start: -120px; top: -90px; }
.b2 { width: 300px; height: 300px; background: var(--brand); inset-inline-end: -80px; bottom: 40px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.15); } }
.phone { justify-self: center; width: min(330px, 100%); padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 60px -32px rgba(11,111,76,.55); }
.js .view.active .phone { animation: rise .6s cubic-bezier(.2,.8,.2,1) both, float 5s ease-in-out .8s infinite alternate; animation-delay: .3s, .9s; }
@keyframes float { to { translate: 0 -12px; } }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--deep); }
.phone-head img { width: 28px; height: 28px; }
.event { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; line-height: 1.4; }
.event span { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--soft); font-size: 20px; }
.event b { display: block; font-size: 15px; }
.event small { color: var(--muted); font-size: 13px; }
.event { animation: event-glow 8s linear infinite; animation-delay: calc(var(--e) * 2s); }
.event:nth-of-type(2) { --e: 0; } .event:nth-of-type(3) { --e: 1; } .event:nth-of-type(4) { --e: 2; } .event:nth-of-type(5) { --e: 3; }
@keyframes event-glow { 0%, 25%, 100% { background: transparent; } 5%, 20% { background: var(--soft); } }
.doors { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.door { display: block; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.door:hover, .role:hover, .contact a:hover { transform: translateY(-5px); border-color: var(--mint); box-shadow: 0 18px 34px -24px var(--brand); }
.door b { display: block; font-size: 20px; color: var(--deep); }
.door span { color: var(--muted); font-size: 15px; }

.gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 36px -26px rgba(11,111,76,.6); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.gallery figure:hover img { transform: translateY(-5px) scale(1.02); }
.gallery figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }

/* بقية الصفحات */
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.promises li { font-weight: 600; font-size: 18px; line-height: 1.5; border-top: 3px solid var(--brand); padding-top: 14px; }
.shots { display: grid; gap: 40px; margin-top: 56px; }
.shot { margin: 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.shot:nth-child(even) { grid-template-columns: 1fr 1.5fr; }
.shot:nth-child(even) img { order: 2; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(11,111,76,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: translateY(-5px) scale(1.012); }
.shot b { display: block; font-size: 22px; color: var(--deep); margin-bottom: 8px; }
.shot span { color: var(--muted); }
.small-note { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .shot, .shot:nth-child(even) { grid-template-columns: 1fr; gap: 14px; } .shot:nth-child(even) img { order: 0; } }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.role h3 { margin: 0 0 14px; font-size: 21px; color: var(--deep); }
.role ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 16px; }
.role li { margin-bottom: 8px; }
blockquote { margin: 16px 0 0; padding-inline-start: 24px; border-inline-start: 4px solid var(--brand); font-size: 22px; line-height: 1.8; }
blockquote footer { margin-top: 16px; color: var(--muted); font-size: 16px; }
.partners { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 32px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 240px; min-height: 120px; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--deep); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .25s, border-color .25s; }
a.partner:hover { transform: translateY(-4px) scale(1.02); border-color: var(--mint); }
.partner img { width: 160px; height: 160px; object-fit: contain; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.req input, .req textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.req input:focus, .req textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.req .full { grid-column: 1 / -1; }
.req .hp { position: absolute; inset-inline-start: -9999px; }
.req p { margin: 0; font-weight: 600; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact a, .contact div { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.contact small { display: block; color: var(--muted); }
.contact b { font-size: 18px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; }
.pager a { color: var(--deep); font-weight: 600; text-decoration: none; padding: 8px 0; transition: translate .2s; }
.pager a:hover { translate: -4px 0; }
.pager a[rel="prev"]:hover { translate: 4px 0; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }

@media (max-width: 1020px) {
  .burger { display: flex; }
  .login { margin-inline-start: auto; }
  .links { position: absolute; top: 72px; inset-inline: 0; margin: 0; flex-direction: column; padding: 10px 16px 16px; font-size: 17px; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .25s, visibility .25s; }
  .links.open { visibility: visible; opacity: 1; transform: none; }
  .links a { padding: 12px 10px; }
  .links a::after { display: none; }
  .links a[aria-current] { background: var(--soft); border-radius: 10px; }
}
@media (max-width: 900px) {
  .view { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .promises { grid-template-columns: 1fr 1fr; }
  .roles, .contact, .req, .doors { grid-template-columns: 1fr; }
  .doors { margin-top: 36px; }
}
@media (max-width: 560px) { .partner { width: 100%; } }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } .promises { grid-template-columns: 1fr; } .cta .btn { width: 100%; } .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
