﻿/* ============================================================
   iFactor ICT — Modern Design System (2026 redesign)
   RTL, Hebrew-first. Font: Heebo. No Bootstrap dependency.
   ============================================================ */

:root {
    --bg-dark: #0a0f1e;
    --bg-dark-2: #0e1630;
    --surface-dark: rgba(255, 255, 255, .04);
    --bg-light: #f6f8fc;
    --card-bg: #ffffff;
    --card-border: #e5eaf3;
    --text-dark: #0f172a;
    --text-muted: #5b6779;
    --text-light: #eef2f9;
    --text-light-muted: #9aa7bd;
    --accent: #2f7df6;
    --accent-2: #17c3e8;
    --accent-grad: linear-gradient(120deg, #2f7df6, #17c3e8);
    --wa-green: #25d366;
    --radius: 18px;
    --shadow-card: 0 6px 24px rgba(15, 23, 42, .06);
    --shadow-card-hover: 0 18px 40px rgba(15, 23, 42, .14);
    --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', 'Segoe UI', Tahoma, Arial, sans-serif;
    /* direction comes from the <html dir="..."> attribute (rtl for he/ar, ltr for en) */
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: 'Cairo', 'Heebo', 'Segoe UI', Tahoma, Arial, sans-serif; }

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 17px;
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(47, 125, 246, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47, 125, 246, .45); color: #fff; }

.btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }

.btn-wa { background: var(--wa-green); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.btn-wa:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .25s ease, box-shadow .25s ease;
    background: rgba(10, 15, 30, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header.scrolled { background: rgba(10, 15, 30, .92); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand img { height: 40px; width: auto; display: block; }

/* nav links rendered by header.ascx (.navbar-collapse > ul, logical order) */
.site-header .navbar-collapse ul {
    display: flex;
    gap: 6px;
    align-items: center;
}
.site-header .navbar-collapse ul li a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--text-light);
    font-size: 16.5px;
    font-weight: 500;
    transition: background .18s ease, color .18s ease;
}
.site-header .navbar-collapse ul li a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* language switch links (rendered by header.ascx) */
.site-header .lang-switch a { font-size: 14px; opacity: .75; padding: 9px 10px; }
.site-header .lang-switch a:hover { opacity: 1; }
.site-header li.lang-switch:first-of-type { border-inline-start: 1px solid rgba(255, 255, 255, .18); margin-inline-start: 8px; padding-inline-start: 8px; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-header .navbar-collapse {
        position: absolute;
        top: var(--header-h);
        inset-inline: 0;
        background: rgba(10, 15, 30, .97);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: none;
        padding: 12px 22px 20px;
    }
    .site-header .navbar-collapse.open { display: block; }
    .site-header .navbar-collapse ul { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1100px 550px at 82% -10%, rgba(47, 125, 246, .35), transparent 60%),
                radial-gradient(900px 500px at 8% 110%, rgba(23, 195, 232, .22), transparent 60%),
                linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: var(--text-light);
    padding: calc(var(--header-h) + 90px) 0 90px;
}
.hero::before { /* subtle tech grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 780px; margin: 0 auto; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(23, 195, 232, .12);
    border: 1px solid rgba(23, 195, 232, .35);
    color: #7fe3f7;
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.hero h1 .grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lead {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-light-muted);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 70px;
}
.stat {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    backdrop-filter: blur(6px);
}
.stat b { display: block; font-size: 26px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 14.5px; color: var(--text-light-muted); }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Trust / certifications strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--card-border); padding: 30px 0; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item > i {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(47, 125, 246, .1), rgba(23, 195, 232, .1));
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}
.trust-item b { display: block; font-size: 15.5px; line-height: 1.35; }
.trust-item span { display: block; font-size: 13.5px; color: var(--text-muted); }
@media (max-width: 1000px) { .trust-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-items { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: #fff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(47, 125, 246, .09);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 17.5px; }

/* ---------- Service cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}
.service-card::after { /* top accent line on hover */
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: #d3ddef; }
.service-card:hover::after { opacity: 1; }

.icon-chip {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(47, 125, 246, .12), rgba(23, 195, 232, .12));
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 18px;
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15.5px; }

/* services section: the icon becomes a big faded background glyph,
   left side, rotated 15deg counter-clockwise */
#services .service-card { padding-inline-start: 26px; }
#services .icon-chip {
    position: absolute;
    inset-inline-end: -18px; /* left in RTL (he/ar), right in LTR (en) — away from the text start */
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    color: rgba(47, 125, 246, .09);
    font-size: 120px;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: color .22s ease, transform .22s ease;
}
#services .service-card:hover .icon-chip {
    color: rgba(47, 125, 246, .16);
    transform: translateY(-50%) rotate(-15deg) scale(1.06);
}
#services .service-card h3,
#services .service-card p { position: relative; z-index: 1; }

/* ---------- Why us (dark strip) ---------- */
.why {
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: var(--text-light);
}
.why .section-head h2 { color: #fff; }
.why .section-head p { color: var(--text-light-muted); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.why-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius);
    padding: 30px 26px;
    backdrop-filter: blur(6px);
}
.why-card .icon-chip { background: rgba(23, 195, 232, .12); color: var(--accent-2); }
.why-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.why-card p { color: var(--text-light-muted); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--accent-grad);
    padding: 54px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(47, 125, 246, .35);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { opacity: .92; margin-bottom: 28px; font-size: 17.5px; }
.cta-band .btn { background: #fff; color: var(--accent); font-weight: 700; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 70px 0 0;
    font-size: 15.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 46px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--text-light-muted); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-license {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(23, 195, 232, .35);
    background: rgba(23, 195, 232, .08);
    color: #7fe3f7;
    font-size: 14px;
}
.footer-certs { margin-top: 14px; font-size: 13.5px; color: var(--text-light-muted); line-height: 1.9; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa-green);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Inner page hero ---------- */
.page-hero {
    background: radial-gradient(900px 400px at 80% -20%, rgba(47, 125, 246, .3), transparent 60%),
                linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: #fff;
    padding: calc(var(--header-h) + 70px) 0 60px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--text-light-muted); font-size: 18px; }

/* ---------- Prose / About ---------- */
.prose { max-width: 820px; margin: 0 auto; font-size: 17.5px; color: #2b3648; }
.prose p { margin-bottom: 18px; }

.license-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(47, 125, 246, .07), rgba(23, 195, 232, .07));
    border: 1px solid rgba(47, 125, 246, .25);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 30px auto;
    max-width: 820px;
    font-weight: 600;
}
.license-callout .icon-chip { margin: 0; flex-shrink: 0; }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 15px 18px;
    font-weight: 500;
    box-shadow: var(--shadow-card);
}
.check-item i { color: var(--accent-2); font-size: 18px; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-card);
}
.panel h3 { font-size: 21px; font-weight: 700; margin-bottom: 20px; }

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-dark);
    background: #fbfcfe;
    margin-bottom: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 125, 246, .12); background: #fff; }
textarea.form-control { resize: vertical; min-height: 140px; }

/* honeypot field — hidden from humans */
.nameh { position: absolute !important; right: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.info-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.info-list .icon-chip { width: 46px; height: 46px; font-size: 18px; margin: 0; flex-shrink: 0; border-radius: 12px; }
.info-list b { display: block; font-size: 14.5px; color: var(--text-muted); font-weight: 500; }
.info-list span, .info-list a.big { font-size: 17.5px; font-weight: 700; color: var(--text-dark); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow-card); margin-top: 40px; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

.form-msg { border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-weight: 600; }
.form-msg.ok { background: rgba(37, 211, 102, .12); color: #128c4b; border: 1px solid rgba(37, 211, 102, .4); }
.form-msg.err { background: rgba(239, 68, 68, .09); color: #c02626; border: 1px solid rgba(239, 68, 68, .35); }

.ltr-input { direction: ltr; text-align: left; }

/* ---------- News / articles ---------- */
.news-chips { text-align: center; margin-bottom: 34px; }
.news-chip {
    display: inline-block;
    margin: 5px 4px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.news-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.article-head {
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 auto 22px;
    max-width: 820px;
    padding-bottom: 14px;
    border-bottom: 3px solid;
    border-image: var(--accent-grad) 1;
}
.article-cta { text-align: center; margin-top: 34px; }

/* ---------- Login ---------- */
.login-wrap { max-width: 430px; margin: 0 auto; }
.form-label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--text-dark); }
.login-err { display: block; color: #c02626; font-weight: 600; font-size: 15px; text-align: center; margin-bottom: 14px; }
.login-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 18px; }

/* ---------- Reveal on scroll (hidden state only when JS is active) ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .hero { padding: calc(var(--header-h) + 60px) 0 64px; }
    .cta-band { padding: 40px 22px; }
}
