/* ============================================================
   Zagali — Corporate theme (analog.com-inspired)
   White + blue, flat/squared, image-led, NO animation. RTL-first.
   ============================================================ */
:root {
    --bs-primary: #198754;
    --bs-primary-rgb: 25, 135, 84;
    --bs-body-color: #2c3b46;
    --bs-body-color-rgb: 44, 59, 70;
    --bs-body-bg: #ffffff;
    --bs-emphasis-color: #10222e;
    --bs-heading-color: #10222e;
    --bs-border-color: #dde3e9;
    --bs-link-color: #198754;
    --bs-link-color-rgb: 25, 135, 84;
    --bs-link-hover-color: #198754;
    --bs-font-sans-serif: 'Cairo', cursive;
    --bs-body-font-family: 'Cairo', cursive;
    --bs-body-font-size: 1.05rem;
    --bs-body-line-height: 1.7;
    --bs-border-radius: 3px;
    --bs-border-radius-lg: 4px;
}

/* ---------- Fonts ---------- */
html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.9; }
html[dir="ltr"] body { font-family: var(--font-sans); }
body { color: var(--ink-soft); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--bs-link-color); }
a:hover { color: var(--blue); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
* { transition: none !important; animation: none !important; } /* corporate: no motion */

/* ---------- Layout ---------- */
.container, .container-lg, .container-xl { max-width: var(--container); padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; background: var(--bg); }
.section--gray { background: var(--surface); }
.narrow { max-width: 46rem; }
.min-w-0 { min-width: 0; }

.eyebrow { display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 0.9rem; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.section-title { font-size: var(--fs-h2); color: var(--ink); font-weight: 700; }
.section-title::after { content: ""; display: block; width: 54px; height: 3px; background: var(--red); margin-top: 0.9rem; }
.text-center .section-title::after, .section-title.center-rule::after { margin-inline: auto; }
.section-lead { font-size: var(--fs-lead); color: var(--muted); }

/* ---------- Buttons (flat) ---------- */
.btn { font-weight: 600; border-radius: var(--r-sm); padding: 0.75rem 1.6rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue); --bs-btn-active-bg: var(--blue); }
.btn-primary:hover, .btn-accent:hover { filter: brightness(0.93); }
.btn-accent { --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red); --bs-btn-color: #fff; --bs-btn-hover-bg: #b81f1f; --bs-btn-hover-border-color: #b81f1f; }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue); --bs-btn-hover-color: #fff; }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,0.6); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--blue); }
.btn__arrow { width: 1em; height: 1em; }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.app-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 0 var(--blue); }
.navbar { padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__logo { height: 40px; width: auto; object-fit: contain; }
.nav-link { color: var(--ink-soft); font-weight: 600; padding-inline: 0.85rem; font-size: 0.98rem; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: 0.65rem; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; color: var(--blue); border-radius: var(--r-sm); }
.lang-toggle:hover { background: var(--surface); }

/* ---------- Hero (real image + blue overlay) ---------- */
.hero {
    position: relative;
    background-color: var(--blue);
    background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero__inner { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); max-width: 760px; }
.hero__logo { width: clamp(190px, 16vw, 240px); height: auto; margin-bottom: 1.4rem; }
.hero__eyebrow { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a7e8c8; border-inline-start: 3px solid var(--red); padding-inline-start: 0.8rem; margin-bottom: 1.3rem; }
html[dir="rtl"] .hero__eyebrow { letter-spacing: 0; }
.hero__title { font-size: var(--fs-hero); color: #fff; font-weight: 700; line-height: 1.15; margin: 0; }
html[dir="rtl"] .hero__title { line-height: 1.45; }
@media (min-width: 1200px) { html[dir="rtl"] .hero__title { white-space: nowrap; } }
.hero__lead { font-size: var(--fs-lead); color: rgba(255,255,255,0.9); margin-top: 1.3rem; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Compliance strip ---------- */
.compliance-strip { background: var(--blue-700); color: #fff; }
.compliance-strip__label { font-size: 0.9rem; color: var(--on-dark-soft); font-weight: 600; }
.compliance-strip__codes { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; }
.compliance-strip__code { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; color: #fff; }

/* ---------- Stats ---------- */
.stats-box { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 0.5rem 1rem; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__value { font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1; color: var(--blue); }
.stat__label { margin-top: 0.4rem; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 575.98px) { .stats-box { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; } .stat:nth-child(odd) { border-inline-start: 0; } }

/* ---------- Capabilities (flat, top-rule, no card box) ---------- */
.cap { padding-top: 1.4rem; border-top: 2px solid var(--blue); height: 100%; }
.cap__ico { color: var(--blue); margin-bottom: 0.7rem; }
.cap__ico svg { width: 30px; height: 30px; }
.cap h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.cap p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- About (image + text) ---------- */
.about-img { min-height: 340px; height: 100%; background-color: var(--surface-2);
    background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80");
    background-size: cover; background-position: center; }
.vm { padding-top: 1.2rem; border-top: 1px solid var(--line-strong); }
.vm__label { font-weight: 700; color: var(--blue-600); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
html[dir="rtl"] .vm__label { letter-spacing: 0; }
.vm p { color: var(--muted); margin: 0; }

/* ---------- Sectors ---------- */
.sector-list { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.sector-item { padding: 0.9rem 1.25rem 0.9rem 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); flex: 1 1 30%; }
.sector-item::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); margin-inline-end: 0.6rem; vertical-align: middle; }

/* ---------- Outsourcing (blue band + image) ---------- */
.outsource {
    background-color: var(--blue);
    background-image: linear-gradient(rgba(6,26,36,0.62), rgba(6,26,36,0.62)),
        url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
}
.outsource h2 { color: #fff; }
.outsource h2::after { background: var(--red); }
.outsource .eyebrow { color: #a7e8c8; }
.outsource__lead { color: rgba(255,255,255,0.9); font-size: var(--fs-lead); }
.outsource__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.outsource__list li { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 500; }
.outsource__list svg { width: 18px; height: 18px; color: #a7e8c8; flex: none; }

/* ---------- Compliance grid (flat) ---------- */
.reg { padding-top: 1.3rem; border-top: 2px solid var(--blue); height: 100%; }
.reg__code { font-weight: 700; color: var(--blue); font-size: 1.1rem; letter-spacing: 0.03em; }
.reg h3 { font-size: 1.02rem; margin: 0.5rem 0 0.3rem; }
.reg p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Portfolio (flat list) ---------- */
.work { padding-top: 1.3rem; border-top: 1px solid var(--line-strong); height: 100%; }
.work__tag { font-weight: 700; color: var(--blue-600); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
html[dir="rtl"] .work__tag { letter-spacing: 0; }
.work h3 { font-size: 1.15rem; margin: 0.35rem 0 0.3rem; }
.work__client { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; }
.work p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Values (flat) ---------- */
.value { display: flex; gap: 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.value__ico { width: 26px; height: 26px; color: var(--blue); flex: none; }
.value__ico svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.value p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Contact ---------- */
.channel { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.channel__ico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); color: var(--blue); flex: none; border-radius: var(--r-sm); }
.channel__ico svg { width: 21px; height: 21px; }
.channel__label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.channel__value { font-weight: 700; color: var(--ink); }
.contact-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.3rem); border-radius: var(--r-sm); }
.form-label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.form-control { border-color: var(--line-strong); border-radius: var(--r-sm); padding: 0.7rem 0.9rem; background: #fff; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,135,84,0.15); }

/* ---------- Footer ---------- */
.app-footer { background: var(--blue-700); color: #ffffff; padding-block: clamp(3rem, 2rem + 3vw, 4rem) 1.5rem; }
.app-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 0.04em; }
.footer-link { display: block; color: var(--on-dark-soft); padding: 0.28rem 0; }
.footer-link:hover { color: #fff; }
.footer-vision { display: inline-flex; background: #ffffff; padding: 0.55rem 1rem; border-radius: var(--r-sm); }
.footer-vision img { height: 46px; width: auto; display: block; }
.footer-contact-item { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: #ffffff; flex: none; }
.footer-contact-item a, .footer-contact-item span { direction: ltr; color: #ffffff; }
.footer-contact-item a:hover { color: #ffffff; text-decoration: underline; }
html[dir="rtl"] .footer-contact-item { text-align: start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.2rem; padding-top: 1.3rem; font-size: 0.86rem; }
.social-btn { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--on-dark-soft); border-radius: var(--r-sm); }
.social-btn:hover { background: #fff; color: var(--blue); }
.social-btn svg { width: 18px; height: 18px; }

.icon { display: inline-block; vertical-align: middle; }
.reveal, .stagger > * { opacity: 1 !important; transform: none !important; } /* no reveal animation */

.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 1rem; z-index: 300; background: var(--blue); color: #fff; padding: 0.6rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { inset-block-start: 0.6rem; }
