/* QAF group site — additions (sister companies, forms linked to the panel, social links). */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5,
html[lang="ar"] .navbar a, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] select {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

/* spam trap: invisible, without pushing the page sideways in RTL */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }

/* about: introduction only */
.about .about-intro .content { padding: 20px 0; }
.about .about-intro h3 { font-size: 32px; margin-bottom: 14px; }
.about .about-intro p { margin-bottom: 0; font-size: 18px; }

/* our companies — one design for every company: transparent, no borders */
.companies { padding: 70px 0 50px; }
.co-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; margin-top: 10px; }
.co { display: flex; gap: 18px; align-items: flex-start; background: transparent; border: 0; }
.co-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; flex: 0 0 64px; }
.co-act { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; color: #67b0d1; }
.co-name { margin: 2px 0 6px; font-size: 22px; font-weight: 700; color: #2f4d5a; }
.co-desc { margin: 0 0 8px; color: #5f6b75; font-size: 15.5px; line-height: 1.8; }
.co-link { font-size: 14.5px; font-weight: 700; color: #2f4d5a; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.co-link:hover { color: #67b0d1; }
.co-link.pending { color: #9aa5ae; font-weight: 500; }
html[dir="ltr"] .co-link i { transform: scaleX(-1); }
@media (max-width: 991px) { .co-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .co-grid { grid-template-columns: 1fr; gap: 32px; } }

/* footer social links (filled from the panel) */
.qaf-social { text-align: center; margin-bottom: 10px; }
.qaf-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; margin: 0 4px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; }
.qaf-social a:hover { background: #67b0d1; color: #fff; }
.contact .info-box a { color: inherit; }

/* simple inner pages (careers, thanks) */
.page-head { padding: 140px 0 40px; background: #1f2f3d; color: #fff; text-align: center; }
.page-head img { height: 90px; }
.page-head h1 { font-size: 30px; margin: 14px 0 6px; color: #fff; }
.page-head p { color: #c9d6e2; margin: 0; }
.page-body { padding: 40px 0 70px; background: #f4f6f8; }
.page-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(20, 40, 60, .08); padding: 28px; }
.page-card label { display: block; font-weight: 700; margin: 14px 0 6px; }
.page-card input, .page-card select, .page-card textarea { width: 100%; padding: 10px 12px; border: 1px solid #d5dde6; border-radius: 8px; font: inherit; }
.page-card button { margin-top: 20px; width: 100%; border: 0; border-radius: 8px; background: #67b0d1; color: #fff; padding: 12px; font-weight: 700; font: inherit; }
.page-card .hint { color: #7b8794; font-size: 14px; margin: 4px 0 0; }
.page-card .form-error { display: none; color: #c0392b; margin-top: 6px; }
.simple-header { background: rgba(20, 30, 40, .92); }

/* hero logo: the logo is always visible; a white copy of it shows only inside a moving diagonal band (light sweep) */
.home-main .logo .logo-shine { position: relative; display: inline-block; width: 30%; line-height: 0; }
.home-main .logo .logo-shine img { width: 100%; animation: none !important; opacity: 1 !important; }
.home-main .logo .logo-shine img.shine { display: none; }
@supports ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
  .home-main .logo .logo-shine img.shine { display: block; position: absolute; inset: 0; height: 100%; object-fit: contain; pointer-events: none;
    filter: brightness(0) invert(1); opacity: .85 !important;
    -webkit-mask-image: linear-gradient(115deg, transparent 40%, #000 50%, transparent 60%); mask-image: linear-gradient(115deg, transparent 40%, #000 50%, transparent 60%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: qafShine 5s cubic-bezier(.4, 0, .2, 1) infinite !important; }
}
@keyframes qafShine { 0% { -webkit-mask-position: 130% 0; mask-position: 130% 0; } 45%, 100% { -webkit-mask-position: -30% 0; mask-position: -30% 0; } }
@media (max-width: 767px) { .home-main .logo .logo-shine { width: 60%; } }
@media (prefers-reduced-motion: reduce) { .home-main .logo .logo-shine img.shine { display: none; } }

/* our companies — motion: staggered entrance, a spinning ring around each logo, gentle float,
   pointer spotlight + 3D tilt on hover. Cards stay fully visible when JS/motion is off (.co-anim is added by qaf.js). */
.co { position: relative; padding: 22px 20px; border-radius: 18px; isolation: isolate; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.co::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 176, 209, .18), transparent 70%), #fff;
  box-shadow: 0 18px 50px rgba(31, 47, 61, .12); }
.co::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; padding: 1px; opacity: 0; transition: opacity .4s;
  background: linear-gradient(var(--ga, 120deg), #67b0d1, transparent 40%, transparent 60%, #2f4d5a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.co:hover::before, .co:hover::after, .co:focus-within::before, .co:focus-within::after { opacity: 1; }
.co:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.co-mark { position: relative; flex: 0 0 64px; width: 64px; height: 64px; animation: coFloat 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); }
.co-mark::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px dashed rgba(103, 176, 209, .55);
  animation: coSpin 14s linear infinite; transition: border-color .3s, inset .4s; }
.co-mark .co-logo { position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.co:hover .co-mark::before { inset: -10px; border-color: #67b0d1; animation-duration: 3.5s; }
.co:hover .co-logo { transform: scale(1.08) rotate(-4deg); }
.co-name { position: relative; display: inline-block; }
.co-name::after { content: ""; position: absolute; right: 0; bottom: -3px; height: 2px; width: 100%; background: #67b0d1;
  transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
html[dir="ltr"] .co-name::after { right: auto; left: 0; transform-origin: left; }
.co:hover .co-name::after { transform: scaleX(1); }
.co-link i { transition: transform .3s; }
.co:hover .co-link i { transform: translateX(-5px); }
html[dir="ltr"] .co:hover .co-link i { transform: scaleX(-1) translateX(-5px); }
@keyframes coFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes coSpin { to { transform: rotate(360deg); } }

/* entrance: cards rise out of a blur one after another, the logo pops, the text follows */
.co-anim .co { opacity: 0; transform: translateY(46px) scale(.96); filter: blur(6px);
  transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s, box-shadow .5s; transition-delay: calc(var(--i, 0) * .12s); }
.co-anim .co .co-mark { opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .6s, transform .8s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * .12s + .25s); }
.co-anim .co .co-body > * { opacity: 0; transform: translateX(-18px); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
html[dir="ltr"] .co-anim .co .co-body > * { transform: translateX(18px); }
.co-anim .co .co-body > :nth-child(1) { transition-delay: calc(var(--i, 0) * .12s + .35s); }
.co-anim .co .co-body > :nth-child(2) { transition-delay: calc(var(--i, 0) * .12s + .45s); }
.co-anim .co .co-body > :nth-child(3) { transition-delay: calc(var(--i, 0) * .12s + .55s); }
.co-anim .co .co-body > :nth-child(4) { transition-delay: calc(var(--i, 0) * .12s + .65s); }
.co-anim.in .co { opacity: 1; transform: none; filter: none; }
.co-anim.in .co .co-mark { opacity: 1; transform: none; }
.co-anim.in .co .co-body > * { opacity: 1; transform: none; }
.co-anim.in .co.done { transition-delay: 0s; }
.co-anim.in .co:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .co-mark, .co-mark::before { animation: none; }
  .co, .co:hover, .co-anim.in .co:hover { transform: none; }
}
