:root {
    --gold: #F5A300;
    --gold-deep: #8F5E00;
    --navy: #2E4057;
    --ink: #1C2B3A;
    --green: #36816F;
    --cream: #F6F3EC;
    --paper: #FFFCF8;
    --line: #E6DFD2;
    --muted: #5E6B7A;
    --danger: #9C3B2E;
    --shadow: 0 24px 60px rgba(28, 43, 58, .12);
    --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(245, 163, 0, .16), transparent 55%),
        radial-gradient(700px 380px at -10% 20%, rgba(54, 129, 111, .08), transparent 50%),
        var(--cream);
    color: var(--ink);
    font-family: "IBM Plex Sans Arabic", sans-serif;
    line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -48px;
    background: var(--gold);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 20;
    font-weight: 700;
}
.skip:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header);
    background: rgba(255, 252, 248, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(28, 43, 58, .05); }
.header-bar {
    height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 8px 20px rgba(28, 43, 58, .16);
}
.brand strong { display: block; font-size: 18px; line-height: 1.2; color: var(--navy); }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.header-end { display: flex; align-items: center; gap: 10px; }
.nav-panel { display: flex; align-items: center; gap: 8px; }
.nav-panel a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
}
.nav-panel a:hover { background: rgba(245, 163, 0, .16); }
.lang {
    display: flex;
    padding: 4px;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.lang button {
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
}
.lang button.active { background: var(--navy); color: #fff; }
.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(245, 163, 0, .28);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(245, 163, 0, .34); }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
    transform: translateX(-120%);
}
.btn:hover::after { animation: sheen .8s ease; }
.btn.ghost {
    background: transparent;
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.4);
}
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.full { width: 100%; }
.nav-cta { padding: 8px 16px; box-shadow: none; }

.hero-wrap { padding: 22px 0 10px; }
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: center;
    overflow: hidden;
    min-height: 560px;
    padding: 64px 56px;
    border-radius: 36px;
    background:
        radial-gradient(520px 280px at 90% 0%, rgba(245, 163, 0, .32), transparent 60%),
        radial-gradient(420px 260px at 0% 100%, rgba(54, 129, 111, .28), transparent 62%),
        var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.orb.one {
    width: 180px; height: 180px;
    background: rgba(245, 163, 0, .18);
    top: -50px;
    inset-inline-end: 18%;
    animation: drift 14s ease-in-out infinite alternate;
}
.orb.two {
    width: 120px; height: 120px;
    background: rgba(54, 129, 111, .28);
    bottom: 30px;
    inset-inline-start: 38%;
    animation: drift 11s ease-in-out infinite alternate-reverse;
}
.hero-copy, .hero-stage { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 163, 0, .16);
    color: #FFD56A;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .2px;
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(245, 163, 0, .7);
    animation: pulse 2.2s ease-out infinite;
}
.hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.25;
    font-weight: 700;
}
.accent-line {
    width: 78px;
    height: 4px;
    margin: 18px 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    transform-origin: var(--line-origin);
    animation: grow .8s .25s ease both;
}
.hero-copy p { margin: 0; max-width: 540px; color: #E4EAF1; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rise > * { animation: rise .8s ease both; }
.rise > *:nth-child(2) { animation-delay: .08s; }
.rise > *:nth-child(3) { animation-delay: .16s; }
.rise > *:nth-child(4) { animation-delay: .24s; }
.rise > *:nth-child(5) { animation-delay: .32s; }

.hero-stage { min-height: 420px; }
.house-line {
    position: absolute;
    inset: 20px 0 0;
    width: 100%;
    height: 86%;
}
.house-line path, .house-line rect {
    fill: none;
    stroke: rgba(245, 163, 0, .7);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 2.6s ease forwards;
}
.job-card {
    position: absolute;
    width: min(280px, 78%);
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 252, 248, .96);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    animation: floaty 6.5s ease-in-out infinite;
}
.job-card.a { top: 36px; inset-inline-start: 8px; }
.job-card.b { bottom: 28px; inset-inline-end: 0; animation-delay: .8s; }
.job-card .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-deep);
    background: rgba(245, 163, 0, .16);
    border-radius: 999px;
    padding: 3px 10px;
}
.job-card .tag.ok { color: var(--green); background: rgba(54, 129, 111, .14); }
.job-card strong { display: block; margin-top: 8px; font-size: 18px; color: var(--navy); }
.job-card em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 13px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

#idea, #how, #services, #contact { scroll-margin-top: 96px; }
.section { padding: 84px 0; }
.section h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.35;
    color: var(--navy);
}
.lead { margin: 0; max-width: 680px; color: var(--muted); font-size: 17px; }
.kicker {
    margin: 0 0 8px;
    color: var(--gold-deep);
    font-weight: 700;
    font-size: 13px;
}

.idea-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: stretch;
}
.idea-copy p { color: #3E4C5C; font-size: 17px; }
.idea-points { display: grid; gap: 14px; }
.point {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px 18px 18px 18px;
    box-shadow: 0 10px 30px rgba(28, 43, 58, .04);
    transition: transform .3s ease, border-color .3s ease;
}
.point:hover { transform: translateY(-4px); border-color: rgba(245, 163, 0, .7); }
.point b { display: block; color: var(--navy); margin-bottom: 4px; }
.point span { color: var(--muted); font-size: 14px; }
.num {
    width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(245, 163, 0, .18);
    color: var(--gold-deep);
    font-weight: 700;
    margin-bottom: 10px;
}

.steps {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    min-height: 220px;
}
.step .index {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.service {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    min-height: 180px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 163, 0, .85);
    box-shadow: 0 18px 40px rgba(46, 64, 87, .08);
}
.icon {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(245, 163, 0, .16);
    color: var(--gold-deep);
    margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.service p { margin: 0; color: var(--muted); font-size: 14px; }

.band {
    background: var(--navy);
    color: #fff;
    border-radius: 32px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    position: relative;
}
.band::before {
    content: "";
    position: absolute;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(245, 163, 0, .18);
    inset-inline-end: -60px;
    top: -80px;
    animation: drift 12s ease-in-out infinite alternate;
}
.band h2 { color: #fff; position: relative; }
.band p { margin: 0; color: #D5DEE8; position: relative; max-width: 640px; }

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    align-items: start;
}
.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 163, 0, .22);
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.field-validation-valid, .validation-summary-valid { display: none; }
.field-validation-error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; }
.validation-summary-errors {
    background: #FDEEEC;
    color: var(--danger);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.validation-summary-errors ul { margin: 0; padding-inline-start: 18px; }
.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: rgba(54, 129, 111, .12);
    color: #1E5C4E;
    font-weight: 600;
    animation: pop .45s ease both;
}

.site-footer {
    background: var(--navy);
    color: #D5DEE8;
    padding: 28px 0;
}
.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}
.site-footer a { color: #FFD56A; font-weight: 700; }
.site-footer strong { color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: rise .7s ease forwards; animation-delay: var(--d, 0ms); }

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(18px, 16px, 0); }
}
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(245, 163, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 163, 0, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
main.lang-anim { animation: fade .35s ease; }

html { --line-origin: right; }
html.en { --line-origin: left; }
html:not(.en) .t-en { display: none; }
html.en .t-ar { display: none; }

@media (max-width: 900px) {
    .menu-btn { display: inline-flex; }
    .header-end { position: static; }
    .nav-panel {
        display: none;
        position: absolute;
        inset-inline: 16px;
        top: calc(var(--header) - 6px);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .site-header { position: sticky; }
    .site-header.open .nav-panel { display: flex; }
    .nav-cta { text-align: center; }
    .hero, .idea-grid, .contact-grid, .steps, .services { grid-template-columns: 1fr; }
    .hero { padding: 36px 22px 28px; min-height: 0; border-radius: 26px; }
    .hero-stage { min-height: 0; display: grid; gap: 12px; margin-top: 8px; }
    .house-line { display: none; }
    .job-card { position: static; width: 100%; animation: none; }
    .band { padding: 28px 22px; border-radius: 24px; flex-direction: column; align-items: flex-start; }
    .section { padding: 64px 0; }
    .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
