/* ============================================================
   كلينكا — صفحة المنتج (ar + en)
   ============================================================ */
.cl {
    --cl-ink: #0f172a;
    --cl-text: #334155;
    --cl-muted: #64748b;
    --cl-line: #e2e8f0;
    --cl-soft: #f5f7fa;
    --cl-brand: #0e6f89;
    --cl-brand-soft: #e8f3f6;
    color: var(--cl-text);
}

/* ---------- الهيرو ---------- */
.cl-hero {
    position: relative;
    background: #0b1220;
    color: #fff;
    padding: 140px 0 0;
    overflow: hidden;
}
.cl-hero .container { position: relative; }
.cl-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    text-align: center;
}
.cl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #9fb7c9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 auto;
}
.cl-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4cae4c; }
.cl-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.25;
    font-weight: 800;
    margin: 0 auto;
    max-width: 900px;
    color: #fff;
}
.cl-hero h1 .accent { color: #7cc4d6; }
.cl-hero .lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #c3cfda;
    max-width: 760px;
    margin: 0 auto;
}
.cl-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.cl-btn-primary { background: #1e5e9e; color: #fff; }
.cl-btn-primary:hover { background: #164875; color: #fff; }
.cl-btn-wa { background: #fff; color: #0f172a; }
.cl-btn-wa i { color: #25d366; font-size: 1.2rem; }
.cl-btn-wa:hover { background: #f1f5f9; color: #0f172a; }
.cl-btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cl-btn-ghost:hover { border-color: #fff; color: #fff; }
.cl-btn:focus-visible { outline: 3px solid #7cc4d6; outline-offset: 2px; }

.cl-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    color: #9fb7c9;
    font-size: 0.92rem;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}
.cl-trust li { display: inline-flex; align-items: center; gap: 7px; }
.cl-trust i { color: #4cae4c; }

/* لقطات داخل إطارات أجهزة */
.cl-stage {
    position: relative;
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 0 0;
}
.cl-browser {
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.cl-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    background: #eef1f5;
    border-bottom: 1px solid #dde3ea;
    direction: ltr;
}
.cl-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.cl-browser-bar .url {
    flex: 1;
    max-width: 360px;
    height: 20px;
    margin: 0 auto;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #dde3ea;
    font: 500 11px/18px 'Inter', sans-serif;
    color: #64748b;
    text-align: center;
    width: auto;
}
.cl-browser img { display: block; width: 100%; height: auto; }

.cl-phone {
    position: absolute;
    bottom: -1px;
    width: 23%;
    min-width: 150px;
    border: 7px solid #111827;
    border-bottom-width: 0;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
[dir="rtl"] .cl-phone { left: -3%; }
[dir="ltr"] .cl-phone { right: -3%; }
.cl-phone img { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; }

/* ---------- الأقسام ---------- */
.cl-section { padding: 90px 0; background: #fff; }
.cl-section.alt { background: var(--cl-soft); }
.cl-head { text-align: center; max-width: 820px; margin: 0 auto 50px; }
.cl-head .kicker { color: var(--cl-brand); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; display: block; }
.cl-head h2 { color: var(--cl-ink); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.35; margin: 0 0 14px; font-weight: 800; }
.cl-head p { color: var(--cl-muted); font-size: 1.08rem; line-height: 1.9; margin: 0; }

/* تعريف مختصر (مفيد لمحركات البحث والإجابات الذكية) */
.cl-summary {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: 12px;
    padding: 26px 30px;
    font-size: 1.08rem;
    line-height: 2;
    color: var(--cl-text);
}
.cl-summary strong { color: var(--cl-ink); }

/* التخصصات */
.cl-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.cl-spec {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid var(--cl-line);
    border-radius: 12px;
    background: #fff;
}
.cl-spec i { color: var(--cl-brand); font-size: 1.25rem; margin-top: 3px; width: 24px; text-align: center; flex-shrink: 0; }
.cl-spec h3 { font-size: 1.05rem; color: var(--cl-ink); margin: 0 0 4px; font-weight: 700; }
.cl-spec p { font-size: 0.93rem; color: var(--cl-muted); margin: 0; line-height: 1.7; }

/* جولة الميزات */
.cl-feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
    padding: 46px 0;
    border-top: 1px solid var(--cl-line);
}
.cl-feature:first-of-type { border-top: 0; }
.cl-feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cl-feature.flip .cl-feature-text { order: 2; }
.cl-feature-text .num { display: block; font: 700 0.9rem 'Inter', sans-serif; color: var(--cl-brand); margin-bottom: 10px; }
.cl-feature-text h3 { font-size: 1.6rem; color: var(--cl-ink); margin: 0 0 12px; line-height: 1.4; font-weight: 800; }
.cl-feature-text > p { color: var(--cl-muted); line-height: 1.9; margin: 0 0 18px; font-size: 1.03rem; }
.cl-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cl-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--cl-text); line-height: 1.7; }
.cl-checks li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--cl-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6f89' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.cl-shot {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cl-line);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
    background: #fff;
    cursor: zoom-in;
    padding: 0;
    width: 100%;
}
.cl-shot img { display: block; width: 100%; height: auto; }
.cl-shot:focus-visible { outline: 3px solid var(--cl-brand); outline-offset: 3px; }
.cl-note { font-size: 0.88rem; color: var(--cl-muted); margin-top: 12px; }

/* كل الميزات */
.cl-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.cl-module {
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: 12px;
    padding: 22px 24px;
}
.cl-module h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--cl-ink); margin: 0 0 12px; font-weight: 700; }
.cl-module h3 i { color: var(--cl-brand); width: 20px; text-align: center; }
.cl-module ul { margin: 0; padding: 0 18px 0 0; color: var(--cl-text); line-height: 1.9; font-size: 0.95rem; }
[dir="ltr"] .cl-module ul { padding: 0 0 0 18px; }

/* المعرض */
.cl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.cl-gallery figure { margin: 0; }
.cl-gallery figcaption { font-size: 0.92rem; color: var(--cl-muted); margin-top: 10px; text-align: center; }

/* الجوال */
.cl-phones { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.cl-phones .cl-device {
    width: 230px;
    border: 8px solid #111827;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.cl-phones img { display: block; width: 100%; height: auto; border-radius: 26px; }

/* لماذا كلينكا */
.cl-why {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px 36px;
}
.cl-why div h3 { font-size: 1.1rem; color: var(--cl-ink); margin: 0 0 8px; font-weight: 700; }
.cl-why div p { color: var(--cl-muted); line-height: 1.85; margin: 0; }

/* خطوات التنفيذ */
.cl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.cl-step { border: 1px solid var(--cl-line); border-radius: 12px; padding: 22px; background: #fff; }
.cl-step::before {
    counter-increment: s;
    content: counter(s, decimal-leading-zero);
    display: block;
    font: 800 1.3rem 'Inter', sans-serif;
    color: var(--cl-brand);
    margin-bottom: 10px;
}
.cl-step h3 { font-size: 1.05rem; color: var(--cl-ink); margin: 0 0 6px; font-weight: 700; }
.cl-step p { color: var(--cl-muted); margin: 0; line-height: 1.8; font-size: 0.95rem; }

/* الأسئلة */
.cl-faq { max-width: 860px; margin: 0 auto; }
.cl-faq details { border: 1px solid var(--cl-line); border-radius: 10px; padding: 18px 22px; margin-bottom: 10px; background: #fff; }
.cl-faq summary { font-weight: 700; color: var(--cl-ink); cursor: pointer; line-height: 1.7; }
.cl-faq details p { margin: 12px 0 0; color: var(--cl-text); line-height: 1.9; }

/* التواصل */
.cl-contact { background: #0b1220; color: #fff; padding: 90px 0; }
.cl-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.cl-contact h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; font-weight: 800; line-height: 1.35; }
.cl-contact p { color: #c3cfda; line-height: 1.9; }
.cl-contact dl { margin: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cl-contact dl div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cl-contact dt { color: #9fb7c9; }
.cl-contact dd { margin: 0; font-weight: 700; }
.cl-contact a { color: #fff; }
.cl-contact a:hover { color: #7cc4d6; }
.cl-ltr { direction: ltr; unicode-bidi: embed; }
.cl-form { background: #fff; border-radius: 14px; padding: 28px; color: var(--cl-text); }
.cl-form h3 { color: var(--cl-ink); margin: 0 0 18px; font-size: 1.2rem; font-weight: 800; }
.cl-form label { display: block; font-size: 0.92rem; color: var(--cl-ink); font-weight: 600; margin-bottom: 6px; }
.cl-form input,
.cl-form select,
.cl-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    color: var(--cl-ink);
    background: #fff;
    margin-bottom: 14px;
}
.cl-form input:focus,
.cl-form select:focus,
.cl-form textarea:focus { outline: none; border-color: var(--cl-brand); box-shadow: 0 0 0 3px rgba(14, 111, 137, 0.15); }
.cl-form button { width: 100%; justify-content: center; }
.cl-form .form-message { margin-top: 12px; font-size: 0.95rem; }

/* روابط محلية */
.cl-local { max-width: 900px; margin: 0 auto; text-align: center; line-height: 2.1; color: var(--cl-text); }
.cl-local a { color: var(--cl-brand); font-weight: 600; }

/* نافذة التكبير */
.cl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(8, 12, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.cl-lightbox.open { display: flex; }
.cl-lightbox img { max-width: min(1500px, 96vw); max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.cl-lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cbd5e1; margin: 0; }

/* الوضع الداكن للموقع */
body.dark-mode .cl-section { background: #111827; }
body.dark-mode .cl-section.alt { background: #0d1320; }
body.dark-mode .cl-head h2,
body.dark-mode .cl-feature-text h3,
body.dark-mode .cl-spec h3,
body.dark-mode .cl-module h3,
body.dark-mode .cl-why div h3,
body.dark-mode .cl-step h3,
body.dark-mode .cl-faq summary,
body.dark-mode .cl-summary strong { color: #f1f5f9; }
body.dark-mode .cl-spec,
body.dark-mode .cl-module,
body.dark-mode .cl-step,
body.dark-mode .cl-faq details,
body.dark-mode .cl-summary { background: #1a2233; border-color: #2a3446; }
body.dark-mode .cl,
body.dark-mode .cl-checks li,
body.dark-mode .cl-module ul,
body.dark-mode .cl-faq details p,
body.dark-mode .cl-summary,
body.dark-mode .cl-local { color: #cbd5e1; }

/* ---------- الاستجابة ---------- */
@media (max-width: 960px) {
    .cl-feature,
    .cl-feature.flip { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 36px 0; }
    .cl-feature.flip .cl-feature-text { order: 0; }
    .cl-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .cl-phone { display: none; }
}
@media (max-width: 600px) {
    .cl-hero { padding-top: 110px; }
    .cl-section { padding: 64px 0; }
    .cl-gallery { grid-template-columns: minmax(0, 1fr); }
    .cl-summary { padding: 20px; }
    .cl-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-btn { transition: none; }
}
