:root {
    --olive: #6b7a3c;
    --bg: #ffffff;
    --bg-alt: #f5f6f2;
    --surface: #ffffff;
    --text: #2b2d2f;
    --muted: #6b6f72;
    --charcoal: #2e3033;
    --border: rgba(46, 48, 51, .1);
    --shadow: 0 12px 40px rgba(30, 32, 35, .08);
    --radius: 18px;
    --nav-bg: rgba(255, 255, 255, .75);
}

[data-theme="dark"] {
    --bg: #141516;
    --bg-alt: #1b1d1e;
    --surface: #202224;
    --text: #e9eae6;
    --muted: #a3a69f;
    --charcoal: #e9eae6;
    --border: rgba(255, 255, 255, .08);
    --shadow: 0 12px 40px rgba(0, 0, 0, .35);
    --nav-bg: rgba(20, 21, 22, .75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Tajawal", "Inter", system-ui, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.8; transition: background .4s, color .4s;
    overflow-x: hidden;
}
body.is-en { font-family: "Inter", "Tajawal", system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* NAV */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; padding: 18px 0; transition: .35s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--charcoal); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
[data-theme="dark"] .brand img, [data-theme="dark"] .hero-logo img { filter: invert(.88) sepia(.15); }
.menu { display: flex; gap: 28px; margin-inline-start: auto; }
.menu a { position: relative; font-weight: 500; color: var(--muted); transition: color .25s; }
.menu a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 2px; width: 0; background: var(--olive); transition: width .3s; }
.menu a:hover { color: var(--text); }
.menu a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 8px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); display: grid; place-items: center;
    cursor: pointer; font-weight: 700; font-size: .95rem; transition: .25s;
}
.icon-btn:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }
.icon-light { display: none; }
[data-theme="dark"] .icon-light { display: inline; }
[data-theme="dark"] .icon-dark { display: none; }
.burger { display: none; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: float 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: var(--olive); top: -120px; inset-inline-end: -100px; }
.b2 { width: 360px; height: 360px; background: #8c8f84; bottom: -140px; inset-inline-start: -120px; animation-delay: -6s; opacity: .2; }
.grid {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.08); } }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700;
    color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--olive) 30%, transparent);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.25; font-weight: 800; color: var(--charcoal); margin: 20px 0 16px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px;
    border-radius: 14px; font-weight: 700; font-family: inherit; font-size: 1rem; border: 0; cursor: pointer; transition: .3s;
}
.btn-primary { background: var(--charcoal); color: var(--bg); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-primary:hover { background: var(--olive); color: #fff; transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: #25d366; color: #25d366; transform: translateY(-3px); }
.w100 { width: 100%; }
.hero-logo { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-logo img { width: 72%; position: relative; z-index: 1; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0,0,0,.18)); }
.ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--olive) 45%, transparent); animation: spin 40s linear infinite; }
.ring::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--olive) 16%, transparent), transparent 70%); }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; opacity: .6; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--olive); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* SECTIONS */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head .line { display: inline-block; width: 56px; height: 4px; border-radius: 4px; background: var(--olive); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--charcoal); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; margin-inline: auto; }
.about-section { position: relative; overflow: hidden; }
.about-section::before {
    content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    inset-inline-start: -160px; top: 50%; transform: translateY(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--olive) 10%, transparent), transparent 70%);
    pointer-events: none;
}
.about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; position: relative; }
.about-visual { display: grid; place-items: center; }
.about-frame {
    position: relative; width: 240px; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--surface), var(--bg-alt)); border: 1px solid var(--border);
    box-shadow: var(--shadow); transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.about-frame:hover { transform: rotate(0deg) scale(1.02); }
.about-frame img { width: 62%; opacity: .92; }
[data-theme="dark"] .about-frame img { filter: invert(.88) sepia(.15); }
.corner { position: absolute; width: 38px; height: 38px; border: 3px solid var(--olive); opacity: .7; }
.corner.c1 { top: -10px; inset-inline-start: -10px; border-bottom: 0; border-inline-end: 0; border-start-start-radius: 14px; }
.corner.c2 { bottom: -10px; inset-inline-end: -10px; border-top: 0; border-inline-start: 0; border-end-end-radius: 14px; }
.about-body .section-head { margin-bottom: 24px; }
.about:has(.about-arch) { grid-template-columns: minmax(300px, 440px) 1fr; }
.about-arch {
    position: relative; width: 100%; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 0 0; overflow: hidden;
    box-shadow: var(--shadow); isolation: isolate;
}
.about-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.about-arch:hover img { transform: scale(1.06); }
.about-arch::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.25), transparent 40%);
}
.arch-shape {
    position: absolute; top: 22%; inset-inline-start: 50%; width: 32%; aspect-ratio: 1; z-index: 1;
    background: color-mix(in srgb, var(--olive) 72%, transparent); mix-blend-mode: multiply;
    border-start-end-radius: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.is-ar .arch-shape { inset-inline-start: auto; inset-inline-end: 50%; border-start-end-radius: 0; border-start-start-radius: 100%; }
.about-arch:hover .arch-shape { transform: scale(1.08); }
[data-theme="dark"] .arch-shape { mix-blend-mode: normal; opacity: .75; }
@media (max-width: 900px) {
    .about:has(.about-arch) { grid-template-columns: 1fr; }
    .about-arch { max-width: 340px; margin-inline: auto; }
}
.about-card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    padding: 32px 32px 32px 32px; box-shadow: 0 6px 24px rgba(0,0,0,.04);
}
.about-quote {
    position: absolute; top: -18px; inset-inline-start: 24px; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--olive);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--olive) 35%, transparent);
}
.about-text { font-size: 1.15rem; color: var(--muted); white-space: pre-line; line-height: 2; }
@media (max-width: 900px) {
    .about { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-frame { width: 180px; }
    .about-text { text-align: start; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; overflow: hidden; transition: transform .4s, box-shadow .4s, border-color .4s;
}
.card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 4px; background: var(--olive); transform: scaleY(0); transform-origin: top; transition: transform .4s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--olive) 35%, transparent); }
.card:hover::before { transform: scaleY(1); }
.card-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
    color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, transparent); margin-bottom: 20px; transition: .4s;
}
.card:hover .card-icon { background: var(--olive); color: #fff; transform: rotate(-8deg) scale(1.05); }
.card h3 { font-size: 1.2rem; color: var(--charcoal); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* CONTACT */
.contact { display: grid; gap: 32px; max-width: 760px; margin-inline: auto; }
.contact.two { grid-template-columns: 1fr 1.5fr; max-width: none; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-item {
    display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); transition: .3s;
}
.info-item:hover { border-color: var(--olive); transform: translateX(var(--shift, -6px)); }
.is-en .info-item:hover { --shift: 6px; }
.info-item i { font-size: 1.4rem; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, transparent); flex-shrink: 0; }
.info-item small { display: block; color: var(--muted); font-size: .82rem; }
.info-item span { font-weight: 700; word-break: break-word; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
    width: 100%; padding: 22px 16px 8px; border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem; outline: none; transition: .25s; resize: vertical;
}
.field span { position: absolute; inset-inline-start: 16px; top: 15px; color: var(--muted); pointer-events: none; transition: .2s; }
.field input:focus, .field textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 15%, transparent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 4px; font-size: .75rem; color: var(--olive); }
.field .input-validation-error { border-color: #c0392b; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.alert.ok { background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); }
.alert.err { background: rgba(192, 57, 43, .1); color: #c0392b; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 30px 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer .brand img { width: 34px; height: 34px; }

/* FLOATING */
.wa-float {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
    animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top {
    position: fixed; bottom: 96px; inset-inline-end: 30px; z-index: 60; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.reveal.zoom { transform: scale(.88); }
.reveal.d1 { --delay: 120ms; } .reveal.d2 { --delay: 240ms; } .reveal.d3 { --delay: 360ms; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-logo { max-width: 280px; order: -1; }
    .contact.two { grid-template-columns: 1fr; }
    .burger { display: grid; }
    .menu {
        position: absolute; top: 100%; inset-inline: 4%; flex-direction: column; gap: 0; padding: 10px;
        background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
        opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s;
    }
    .menu.open { opacity: 1; transform: none; pointer-events: auto; }
    .menu a { padding: 12px 14px; }
    .menu a::after { display: none; }
    .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
    .row2 { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .contact-form { padding: 22px; }
    .brand span { font-size: .9rem; }
}

/* ===== VIDEO HERO ===== */
.vhero {
    position: relative; height: 100vh; min-height: 560px; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(180deg, #141a33 0%, #3a2a55 45%, #a2524a 80%, #e08a4a 100%);
    color: #fff; isolation: isolate;
}
.vhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.vhero-video.ready { opacity: 1; }
.vhero-poster {
    position: absolute; inset: 0; z-index: -3; background: var(--poster) center / cover no-repeat;
    transform-origin: 60% 40%; animation: kenburns 24s ease-in-out infinite alternate; will-change: transform;
}
@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.15) translate(-2%, -1.5%); }
}
.vhero-overlay {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(to left, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.55) 100%),
        linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.25) 100%);
}
.vhero-slides { position: relative; width: min(900px, 90%); min-height: 320px; display: grid; place-items: center; text-align: center; }
.vslide {
    grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 22px;
    opacity: 0; transform: translateY(40px); visibility: hidden;
    transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), visibility 0s linear .9s;
}
.vslide.show { opacity: 1; transform: none; visibility: visible; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.vslide.hide { opacity: 0; transform: translateY(-10px); }
.vslide h1, .vslide h2 {
    font-family: "Tajawal", "Cairo", sans-serif; font-weight: 800; color: #fff;
    font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.3; max-width: 14ch; margin: 0 auto;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.is-en .vslide h1, .is-en .vslide h2 { max-width: 18ch; }
.vslide p { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 2; color: rgba(255,255,255,.92); max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.vbtn {
    display: inline-block; margin-top: 6px; padding: 13px 38px; border: 2px solid #fff; border-radius: 0;
    background: transparent; color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .2px;
    transition: background .35s, color .35s;
}
.vbtn:hover { background: #fff; color: #1d1f22; }
.vhero-toggle {
    position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem;
    display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: .3s;
}
.vhero-toggle:hover { background: rgba(255,255,255,.3); transform: translateX(-50%) scale(1.06); }
.vhero-toggle.paused { background: rgba(255,255,255,.9); color: #1d1f22; }
.vhero-toggle[hidden] { display: none; }
.vhero-peek {
    position: absolute; left: 50%; bottom: 0; width: 120px; height: 120px; border-radius: 50%;
    transform: translate(-50%, 50%); background: var(--bg); border: 6px solid var(--bg);
    box-shadow: 0 -6px 24px rgba(0,0,0,.18); display: grid; place-items: center; overflow: hidden; z-index: 2;
}
.vhero-peek img { width: 70%; transform: translateY(-14px); }
[data-theme="dark"] .vhero-peek img { filter: invert(.88) sepia(.15); }
@media (min-width: 901px) {
    .nav:not(.scrolled) .brand, .nav:not(.scrolled) .menu a { color: #fff; }
    .nav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
}
.nav:not(.scrolled) .icon-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
@media (max-width: 900px) {
    .vhero-slides { min-height: 280px; }
    .vhero-toggle { bottom: 100px; }
}
@media (max-width: 560px) {
    .vslide { gap: 16px; }
    .vslide h1, .vslide h2 { font-size: 1.8rem; }
    .vslide p { font-size: .98rem; line-height: 1.9; }
    .vbtn { padding: 11px 28px; }
    .vhero-peek { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .vslide.show { opacity: 1; transform: none; visibility: visible; } }
