:root {
    --accent: #e4c878;
    --ink: #10151d;
    --muted: #5c6673;
    --paper: #f4f6f9;
    --surface: #ffffff;
    --line: #dfe4ea;
    --dark: #0e131b;
    --dark-2: #141b26;
    --shadow: 0 26px 60px -30px rgba(16, 24, 40, .55);
    --shadow-sm: 0 12px 30px -20px rgba(16, 24, 40, .5);
    --radius: 12px;
    --radius-sm: 6px;
    --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Archivo', 'IBM Plex Sans Arabic', sans-serif; line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

.section { max-width: var(--wrap); margin-inline: auto; padding: clamp(3.75rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2.25rem); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700;
    color: var(--accent); font-family: 'Inter', sans-serif; margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
[dir="rtl"] .eyebrow { letter-spacing: normal; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); text-transform: uppercase; }
[dir="rtl"] .section-head h2 { text-transform: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.6rem; border-radius: var(--radius-sm);
    font-weight: 700; font-family: 'Inter', sans-serif; font-size: .92rem;
    letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-solid:hover { box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header::before { content: ""; display: block; height: 3px; background: var(--accent); }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(16, 24, 40, .55); border-bottom-color: var(--line); }
.header-inner {
    display: flex; align-items: center; gap: 1.5rem;
    max-width: var(--wrap); margin-inline: auto;
    padding: .8rem clamp(1.25rem, 4vw, 2.25rem);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; }
.brand-logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; }
.brand-name { font-family: 'Archivo', sans-serif; font-size: 1.18rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
[dir="rtl"] .brand-name { font-family: 'IBM Plex Sans Arabic', sans-serif; text-transform: none; letter-spacing: 0; }
.nav { display: flex; gap: 1.5rem; margin-inline-start: auto; font-weight: 500; font-size: .93rem; }
.nav a { color: var(--muted); position: relative; padding-block: .25rem; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: inline-start; transition: transform .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { margin-inline-start: .5rem; padding: .6rem 1.1rem; font-size: .88rem; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; }
.lang-link {
    font-size: .8rem; font-weight: 700; line-height: 1;
    padding: .35rem .5rem; border-radius: var(--radius-sm);
    color: var(--muted); transition: color .2s, background .2s;
}
.lang-link:hover { color: var(--ink); }
.lang-link[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Hero */
.hero {
    position: relative;
    min-height: min(92vh, 780px);
    display: flex; align-items: center;
    color: #fff;
    padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 2.25rem);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--accent) 42%, var(--dark)) 0%, var(--dark) 62%),
        var(--dark);
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, .35) 0%, rgba(8, 12, 18, .82) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--wrap); margin-inline: auto;
    display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { max-width: 40ch; }
.hero-kicker { display: block; width: 64px; height: 4px; background: var(--accent); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 900; text-transform: uppercase; text-wrap: balance; }
[dir="rtl"] .hero h1 { text-transform: none; }
.hero-tagline { font-size: clamp(1.05rem, 2.3vw, 1.4rem); margin: 1.15rem 0 2rem; color: rgba(255, 255, 255, .88); max-width: 42ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-card {
    background: color-mix(in srgb, var(--surface) 96%, var(--accent));
    color: var(--ink);
    border-radius: var(--radius);
    border-top: 4px solid var(--accent);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .55rem;
}
.hero-card-logo { height: 42px; width: auto; object-fit: contain; margin-bottom: .6rem; }
.hero-card-label { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; color: var(--accent); }
[dir="rtl"] .hero-card-label { letter-spacing: normal; }
.hero-card-phone { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; color: var(--ink); word-break: break-word; }
[dir="rtl"] .hero-card-phone { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.hero-card-email { color: var(--muted); font-size: .95rem; word-break: break-word; transition: color .2s; }
.hero-card-email:hover { color: var(--accent); }
.hero-card-btn { margin-top: .85rem; width: 100%; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 6vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-frame { position: absolute; inset-block-start: -18px; inset-inline-start: -18px; width: 60%; height: 60%; border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius); z-index: 0; }
.about-photo { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); margin-bottom: 1.1rem; text-transform: uppercase; }
[dir="rtl"] .about-copy h2 { text-transform: none; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6rem; }

/* Services / products */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.pcard {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; position: relative;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: inline-start; transition: transform .3s; z-index: 2; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.pcard:hover::before { transform: scaleX(1); }
.pcard-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard-cover--blank { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--dark)), var(--dark)); position: relative; }
.pcard-cover--blank::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px); background-size: 26px 26px; }
.pcard-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard-body h3 { font-size: 1.22rem; text-transform: uppercase; letter-spacing: -.01em; }
[dir="rtl"] .pcard-body h3 { text-transform: none; }
.pcard-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.pcard-price { align-self: flex-start; font-family: 'Inter', sans-serif; font-weight: 700; color: #fff; background: var(--accent); padding: .35rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; }

/* Work / gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--accent) 55%, transparent)); opacity: 0; transition: opacity .35s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }

/* Gallery slider — elegant scroll-snap carousel with arrows + dots */
.gallery-slider { position: relative; }
.gallery-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: .35rem; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slider .gallery-item { flex: 0 0 clamp(240px, 42%, 380px); scroll-snap-align: center; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 999px; border: none; cursor: pointer; background: var(--surface, #fff); color: var(--accent); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: transform .2s, background .2s, color .2s; }
.gallery-nav:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav[hidden] { display: none; }
.gallery-prev { inset-inline-start: -12px; }
.gallery-next { inset-inline-end: -12px; }
.gallery-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.3rem; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, var(--accent) 28%, transparent); transition: width .25s, background .25s; }
.gallery-dots button.is-active { width: 24px; background: var(--accent); }
@media (max-width: 640px) { .gallery-slider .gallery-item { flex-basis: 82%; } }

/* Logo blends onto dark surfaces (footer) as a clean white negative, stays full-colour on the light header. */
.footer-logo { filter: brightness(0) invert(1); }

/* Team */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.4rem; }
.tcard {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.1rem 1.35rem; text-align: center; box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-bottom-color: var(--accent); }
.tcard-avatar {
    width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 50%;
    display: grid; place-items: center;
    font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.7rem; letter-spacing: .02em; color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
[dir="rtl"] .tcard-avatar { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.tcard h3 { font-size: 1.12rem; }
.tcard p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* Contact band (dark) */
.contact { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%); }
.contact-inner {
    position: relative; z-index: 1;
    max-width: var(--wrap); margin-inline: auto;
    padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.25rem);
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.contact-lead .eyebrow { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.contact-lead h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; margin-bottom: 1.6rem; }
[dir="rtl"] .contact-lead h2 { text-transform: none; }
.contact-list { display: flex; flex-direction: column; gap: .9rem; }
.contact-item {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius); padding: 1.05rem 1.25rem; transition: background .2s, border-color .2s, transform .2s;
}
a.contact-item:hover { background: rgba(255, 255, 255, .1); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.contact-ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent); color: #fff; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; color: rgba(255, 255, 255, .55); }
[dir="rtl"] .contact-label { letter-spacing: normal; }
.contact-val { color: #fff; font-weight: 500; word-break: break-word; }

/* Footer */
.site-footer { background: var(--dark-2); color: #e7ebf1; border-top: 3px solid var(--accent); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 4vw, 2.25rem) 2.25rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: .95rem; }
.footer-name { font-family: 'Archivo', sans-serif; font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; display: block; }
[dir="rtl"] .footer-name { font-family: 'IBM Plex Sans Arabic', sans-serif; text-transform: none; letter-spacing: 0; }
.footer-about { color: rgba(231, 235, 241, .6); margin: .85rem 0 1.25rem; max-width: 44ch; font-size: .95rem; }
.footer-col h4 { font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: rgba(231, 235, 241, .5); margin-bottom: 1.05rem; }
.footer-col a, .footer-col span { display: block; color: rgba(231, 235, 241, .82); margin-bottom: .55rem; transition: color .2s; word-break: break-word; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: .55rem; flex-wrap: wrap; }
.socials.is-empty { display: none; }
.social { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.social:hover { background: var(--accent); transform: translateY(-3px); }
.footer-credit { display: block; margin-top: .5rem; opacity: .85; }
.footer-credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem clamp(1.25rem, 4vw, 2.25rem); text-align: center; color: rgba(231, 235, 241, .5); font-size: .85rem; max-width: var(--wrap); margin-inline: auto; }

/* WhatsApp float */
.wa { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 32px -8px rgba(37, 211, 102, .6); transition: transform .2s, box-shadow .2s; }
.wa:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 38px -8px rgba(37, 211, 102, .7); }

/* Self-hiding empty sections */
.services.is-empty, .team.is-empty, .work.is-empty { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; }
    .about { grid-template-columns: 1fr; }
    .about-frame { display: none; }
    .contact-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav { display: none; }
    .nav-cta span { display: none; }
    .nav-cta { padding: .55rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .gallery-item img { transition: none; }
}
