/* ============================================================
   KMT Services Privé — V3 « dark premium bento » (RTL)
   ============================================================ */
:root {
    --bg: #0a1526;
    --navy-900: #0b1730;
    --tile: rgba(255, 255, 255, 0.045);
    --tile-border: rgba(255, 255, 255, 0.09);
    --gold: #f7c051;
    --gold-700: #a17120;
    --ink: #eaf0fb;
    --muted: rgba(233, 240, 251, 0.62);
    --wa: #25d366;
    --container: 1200px;
    --font-body: 'Tajawal', system-ui, sans-serif;
    --font-head: 'Cairo', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; font-weight: 800; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.text-gold { color: var(--gold); }

/* Ambient mesh + cursor glow */
.mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.mesh span:nth-child(1) { width: 520px; height: 520px; background: rgba(247, 192, 81, 0.22); inset-block-start: -120px; inset-inline-end: -100px; animation: drift1 20s ease-in-out infinite alternate; }
.mesh span:nth-child(2) { width: 460px; height: 460px; background: rgba(45, 56, 93, 0.9); inset-block-end: -140px; inset-inline-start: -120px; animation: drift2 24s ease-in-out infinite alternate; }
.mesh span:nth-child(3) { width: 360px; height: 360px; background: rgba(247, 192, 81, 0.12); inset-block-start: 40%; inset-inline-start: 50%; animation: drift1 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-40px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(50px, -40px) scale(1.05); } }
.cursor-glow { position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 192, 81, 0.13), transparent 60%); pointer-events: none; z-index: -1; mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s; }

.scroll-progress { position: fixed; inset-block-start: 0; inset-inline-start: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-700)); z-index: 200; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 0.72em 1.4em; border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; white-space: nowrap; }
.btn--gold { background: linear-gradient(180deg, var(--gold), #e6a833); color: var(--navy-900); box-shadow: 0 16px 36px -14px rgba(247, 192, 81, 0.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(247, 192, 81, 0.75); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.btn--dark { background: var(--navy-900); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn--dark:hover { color: var(--gold); transform: translateY(-2px); }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn--lg { padding: 0.9em 1.8em; font-size: 1.08rem; }

/* Eyebrow + heads */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold-700), var(--gold)); }
.display { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08; color: #fff; letter-spacing: -0.02em; }
.display--sm { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section__head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head .eyebrow { justify-content: center; }
.section__head .display, .section__head .display--sm { margin-top: 14px; }

/* Nav */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; padding-block: 18px; transition: all 0.35s; }
.nav.scrolled { padding-block: 10px; background: rgba(10, 21, 38, 0.82); backdrop-filter: blur(14px); border-block-end: 1px solid var(--tile-border); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(247, 192, 81, 0.3); }
.brand__text { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; line-height: 1; color: #fff; }
.brand__text small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav__links { margin-inline-start: auto; display: flex; align-items: center; gap: 24px; }
.nav__links > a:not(.btn) { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: rgba(255, 255, 255, 0.82); position: relative; padding-block: 6px; transition: color 0.2s; }
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-700)); transition: width 0.28s; }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; }
.lang-switch { display: inline-flex; border: 1px solid var(--tile-border); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: rgba(255, 255, 255, 0.7); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; padding: 0.4em 0.8em; cursor: pointer; transition: 0.2s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active { background: var(--gold); color: var(--navy-900); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: minmax(158px, auto); }
.c2 { grid-column: span 2; }
.r2 { grid-row: span 2; }
.tile { background: var(--tile); border: 1px solid var(--tile-border); border-radius: 24px; padding: 26px; backdrop-filter: blur(14px); position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tile:hover { border-color: rgba(247, 192, 81, 0.35); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7); }

/* Hero */
.hero { padding-block: 120px 40px; }
.tile--hero { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.tile--hero p { color: var(--muted); margin-top: 16px; max-width: 46ch; font-size: 1.08rem; }
.tile__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tile--stat, .tile--big-num { align-items: center; justify-content: center; text-align: center; background: linear-gradient(160deg, rgba(247, 192, 81, 0.14), rgba(255, 255, 255, 0.03)); }
.tile--big-num { align-items: flex-start; text-align: start; }
.tile__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--gold); line-height: 1; }
.tile__cap { color: var(--muted); margin-top: 8px; }
.tile--brand { background: linear-gradient(155deg, var(--gold), #dc9f30); color: var(--navy-900); align-items: center; justify-content: center; text-align: center; gap: 12px; border-color: transparent; }
.tile--brand img { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(11, 23, 48, 0.15); }
.tile--brand span { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.tile--wa { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(120deg, rgba(247, 192, 81, 0.14), rgba(255, 255, 255, 0.03)); }
.tile--wa strong { color: #fff; font-family: var(--font-head); font-size: 1.2rem; }
.tile--wa p { color: var(--muted); margin-top: 4px; }

/* Marquee */
.marquee { overflow: hidden; padding-block: 26px; border-block: 1px solid var(--tile-border); background: rgba(255, 255, 255, 0.02); }
.marquee__track { display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); color: rgba(255, 255, 255, 0.16); animation: scroll-x 30s linear infinite; }
.marquee__track i { color: var(--gold); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Services */
.tile--serv h3 { color: #fff; font-size: 1.28rem; margin-top: 16px; }
.tile--serv p { color: var(--muted); margin-top: 8px; }
.serv__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(247, 192, 81, 0.12); color: var(--gold); border: 1px solid rgba(247, 192, 81, 0.25); }
.serv__ic svg { width: 26px; height: 26px; }
.tile__link { margin-top: auto; padding-top: 16px; color: var(--gold); font-family: var(--font-head); font-weight: 700; }

/* Why */
.mini__ic { font-size: 1.9rem; }
.why-bento .tile h3 { color: #fff; font-size: 1.14rem; margin-top: 12px; }
.why-bento .tile p { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

/* Work */
.tile--work { padding: 0; min-height: 210px; justify-content: flex-end; }
.tile--work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tile--work .work__ov { position: relative; z-index: 1; width: 100%; padding: 22px; background: linear-gradient(to top, rgba(8, 16, 32, 0.92), rgba(8, 16, 32, 0.1) 70%, transparent); }
.tile--work:hover img { transform: scale(1.08); }
.tile--work h3 { color: #fff; margin-top: 6px; font-size: 1.3rem; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold); background: rgba(247, 192, 81, 0.16); padding: 4px 12px; border-radius: 999px; }
.tile--workcta { align-items: flex-start; justify-content: center; gap: 16px; background: linear-gradient(155deg, rgba(247, 192, 81, 0.16), rgba(255, 255, 255, 0.03)); }
.tile--workcta h3 { color: #fff; font-size: 1.5rem; }

/* CTA */
.cta-tile { text-align: center; align-items: center; padding: clamp(40px, 7vw, 80px); background: linear-gradient(130deg, var(--navy-900), #16305a); border-color: rgba(247, 192, 81, 0.22); }
.cta-tile p { color: var(--muted); margin: 14px auto 26px; max-width: 46ch; }
.cta-tile__glow { position: absolute; top: -45%; left: 50%; transform: translateX(-50%); width: 620px; height: 420px; background: radial-gradient(circle, rgba(247, 192, 81, 0.28), transparent 60%); pointer-events: none; }

/* Contact */
.tile--contact { gap: 4px; transition: 0.3s; }
.tile--contact .c-ic { font-size: 1.6rem; }
.tile--contact small { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }
.tile--contact span { font-family: var(--font-head); font-weight: 700; color: #fff; }
.tile--contact:hover { border-color: rgba(247, 192, 81, 0.4); }
.tile--map { padding: 0; }
.tile--map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Footer */
.footer { background: #081020; border-block-start: 1px solid var(--tile-border); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-block: 54px; }
.footer__slogan { margin-top: 16px; font-family: var(--font-head); color: var(--gold); font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.footer__bottom { border-block-start: 1px solid var(--tile-border); padding-block: 20px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.4); }

/* FAB + toTop */
.fab-wa { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6); z-index: 120; transition: transform 0.25s; }
.fab-wa svg { width: 32px; height: 32px; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: 0.3s; z-index: 120; backdrop-filter: blur(8px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mesh span, .marquee__track, .fab-wa::after { animation: none; }
    .cursor-glow { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .r2 { grid-row: span 1; }
    .tile--map { min-height: 300px; }
    .tile--map.r2 { grid-row: span 1; }
}
@media (max-width: 820px) {
    .nav__links { position: fixed; inset-block: 0; inset-inline-start: 0; height: 100dvh; width: min(82%, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; background: #0b1730; padding: 40px; transform: translateX(-100%); transition: transform 0.35s; }
    .nav__links.open { transform: translateX(0); }
    .nav__links > a:not(.btn) { color: #fff; font-size: 1.15rem; }
    .nav__toggle { display: flex; margin-inline-start: auto; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .bento { grid-template-columns: 1fr; }
    .c2 { grid-column: span 1; }
    .tile--wa { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hero { padding-block: 100px 30px; }
}
