/* ═════════════ إس إم لسلك البليسيه — الموقع العام ═════════════
 * الألوان كلها متغيرات: النهاري في :root، والليلي في [data-theme="dark"]
 * (سكريبت صغير في <head> بيحط data-theme من اختيار الزائر أو من إعداد جهازه)
 */

:root {
    color-scheme: light;

    /* ثابتة في الوضعين */
    --navy:    #0b1f4d;
    --navy-2:  #14306e;
    --blue:    #1d4ed8;
    --blue-2:  #2563eb;
    --ok:      #059669;
    --bad:     #dc2626;
    --wa:      #1faa59;

    /* بتتغير في الليلي */
    --bg:        #ffffff;
    --surface:   #ffffff;
    --tint:      #f5f8fd;
    --field:     #f9fbfe;
    --ink:       #0f172a;
    --text:      #334155;
    --muted:     #64748b;
    --line:      #e2e8f0;
    --line-2:    #c7d7f5;
    --dash:      #cdd9ee;
    --accent:    #1d4ed8;           /* أزرق للنصوص والأيقونات */
    --accent-bg: #eff5ff;           /* خلفية خفيفة زرقا */
    --brand-ink: #0b1f4d;           /* نص كحلي (اللوجو، الأرقام) */
    --chip-on:   #0b1f4d;
    --box-dark:  #0b1f4d;           /* صندوق المثال */
    --wa-bg:     #e8f8ee;
    --header-bg: rgba(255,255,255,.88);
    --hero-top:  #f7faff;
    --tile-a:    #e7eefb;
    --tile-b:    #f6f9ff;
    --footer:    #071538;
    --ok-bg: #ecfdf5;  --ok-fg: #065f46;  --ok-line: #a7f3d0;
    --bad-bg: #fef2f2; --bad-fg: #991b1b; --bad-line: #fecaca;

    /* منظر الشباك */
    --sky-a: #8ec5ff; --sky-b: #c7e3ff; --sky-c: #e9f4ff;
    --sun-a: #fff7d6; --sun-b: #ffd66b;
    --hill-a: #5fb08a; --hill-b: #3f8f6e;

    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
    --shadow:    0 10px 30px -12px rgba(11,31,77,.25);
    --shadow-lg: 0 30px 60px -20px rgba(11,31,77,.35);
    --ease: cubic-bezier(.22,.8,.3,1);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg:        #0a1222;
    --surface:   #111c31;
    --tint:      #0d1729;
    --field:     #0b1426;
    --ink:       #eef3ff;
    --text:      #c3cee3;
    --muted:     #8d9bb8;
    --line:      #22304d;
    --line-2:    #33508a;
    --dash:      #2a3a5c;
    --accent:    #7cb0ff;
    --accent-bg: rgba(59,130,246,.14);
    --brand-ink: #e6edfb;
    --chip-on:   #2563eb;
    --box-dark:  #0a1838;
    --wa-bg:     rgba(31,170,89,.16);
    --header-bg: rgba(10,18,34,.85);
    --hero-top:  #0d1830;
    --tile-a:    #14203a;
    --tile-b:    #0f1930;
    --footer:    #050c1a;
    --ok-bg: rgba(5,150,105,.15);  --ok-fg: #6ee7b7;  --ok-line: rgba(5,150,105,.4);
    --bad-bg: rgba(220,38,38,.14); --bad-fg: #fca5a5; --bad-line: rgba(220,38,38,.4);

    /* بالليل: سما غامقة وقمر */
    --sky-a: #12204a; --sky-b: #22366b; --sky-c: #3a5189;
    --sun-a: #fdfcf5; --sun-b: #d9dde8;
    --hill-a: #1f4a3d; --hill-b: #173a30;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 12px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; direction: ltr; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }

/* ── buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
    font: inherit; font-weight: 700; font-size: 15px; line-height: 1.4;
    cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .85em 1.7em; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(29,78,216,.6); }
.btn-primary:hover { background: var(--blue-2); box-shadow: 0 12px 26px -8px rgba(29,78,216,.7); }
.btn-ghost { background: var(--surface); color: var(--brand-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost .ic { color: var(--wa); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.btn .ic { width: 1.15em; height: 1.15em; }

.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--accent); }
.link .ic { transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(-4px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .4em;
    font-size: 13.5px; font-weight: 700; color: var(--accent);
    background: var(--accent-bg); padding: .3em .9em; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow--light { background: rgba(255,255,255,.12); color: #bfdbfe; }

/* ── topbar ── */
.topbar { background: var(--navy); color: #c7d4ee; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { gap: 22px !important; }
.topbar a:hover { color: #fff; }

/* ── header ── */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11,31,77,.35); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
[data-theme="dark"] .brand img { filter: invert(1) brightness(2); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.brand-txt strong { color: var(--brand-ink); font-size: 17px; }
.brand-txt small { color: var(--muted); font-size: 12px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .portal summary {
    padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text);
    transition: background .2s, color .2s; cursor: pointer;
}
.nav > a:hover, .portal summary:hover, .nav > a.is-active { color: var(--accent); background: var(--accent-bg); }

.portal { position: relative; }
.portal summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.portal summary::-webkit-details-marker { display: none; }
.portal-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    padding: 8px; display: flex; flex-direction: column; z-index: 10;
}
.portal-menu small { padding: 6px 10px; color: var(--muted); font-size: 12px; }
.portal-menu a { padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.portal-menu a:hover { background: var(--accent-bg); color: var(--accent); }

.icon-btn {
    display: grid; place-items: center; flex: none; width: 42px; height: 42px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--brand-ink); cursor: pointer;
    transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn .ic { width: 22px; height: 22px; display: block; }
/* زرار الثيم: قمر في النهاري، شمس في الليلي */
.theme-btn .ic-sun { display: none; }
[data-theme="dark"] .theme-btn .ic-sun { display: block; }
[data-theme="dark"] .theme-btn .ic-moon { display: none; }

.menu-btn { display: none; }

/* ── hero ── */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,.10), transparent 60%),
        radial-gradient(700px 500px at 90% 90%, rgba(11,31,77,.06), transparent 60%),
        linear-gradient(180deg, var(--hero-top), var(--bg));
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 72px 88px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--text); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; max-width: 520px; }
.hero-stats li { flex: 1; display: flex; flex-direction: column; padding-inline: 18px; border-inline-start: 1px solid var(--line); }
.hero-stats li:first-child { padding-inline-start: 0; border: 0; }
.hero-stats strong { font-size: 28px; color: var(--brand-ink); line-height: 1.2; }
.hero-stats span { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 20px 30px; }
.hero-visual::before {
    content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.18), transparent 65%); filter: blur(10px);
}
.hero-badge {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 10px 14px; font-size: 13px; color: var(--muted); line-height: 1.35;
    animation: float 6s ease-in-out infinite;
}
.hero-badge strong { display: block; color: var(--ink); font-size: 14.5px; }
.hero-badge .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); }
.hero-badge--a { top: 14%; inset-inline-start: -8px; }
.hero-badge--b { bottom: 12%; inset-inline-end: -4px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ═════════ مكوّن البليسيه (CSS فقط) ═════════ */
.pl {
    --frame: 9px;
    --open: .52;
    position: relative; width: 100%; aspect-ratio: 4 / 5;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8ecf2, #b9c2cf 45%, #eef1f5 55%, #a9b3c1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 1px 0 rgba(0,0,0,.05), var(--shadow);
}
.pl-view {
    position: absolute; inset: var(--frame); overflow: hidden; border-radius: 2px;
    background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-c) 100%);
}
.pl-sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; top: 14%; inset-inline-start: 18%; background: radial-gradient(circle, var(--sun-a) 30%, var(--sun-b) 70%, transparent 72%); }
.pl-hill { position: absolute; bottom: -30%; inset-inline-start: -20%; width: 90%; height: 60%; border-radius: 50%; background: var(--hill-a); }
.pl-hill2 { inset-inline-start: auto; inset-inline-end: -25%; width: 100%; height: 55%; bottom: -32%; background: var(--hill-b); }

.pl-panel {
    position: absolute; top: var(--frame); bottom: var(--frame); inset-inline-start: var(--frame);
    width: calc((100% - 2 * var(--frame)) * var(--open));
    /* الطيّات: الـ background-size نسبة من العرض، فلما العرض يقل الطيّات بتتضغط زي الحقيقة */
    background:
        linear-gradient(90deg, rgba(30,36,48,.82), rgba(78,88,104,.62) 45%, rgba(26,31,42,.88) 100%) 0 0 / calc(100% / 16) 100% repeat-x;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.pl-panel::before { /* شبكة السلك */
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
}
.pl-panel::after { /* المقبض */
    content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -5px; width: 10px; border-radius: 3px;
    background: linear-gradient(90deg, #aab3c0, #f3f5f8 50%, #aab3c0);
    box-shadow: 0 0 6px rgba(0,0,0,.25);
}

.pl--door   { aspect-ratio: 3 / 5; --open: .45; }
.pl--wide   { aspect-ratio: 3 / 2; --open: .4; }
.pl--double { aspect-ratio: 5 / 4.4; --open: .34; }
.pl--double .pl-b { inset-inline-start: auto; inset-inline-end: var(--frame); }
.pl--double .pl-b::after { inset-inline-end: auto; inset-inline-start: -5px; }

.pl--hero { --frame: 14px; max-width: 400px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow-lg); }
.pl--animate .pl-panel { animation: plOpen 9s var(--ease) infinite; }
@keyframes plOpen {
    0%, 12%   { --open: 1; }
    40%, 66%  { --open: .09; }
    92%, 100% { --open: 1; }
}
@property --open { syntax: '<number>'; inherits: true; initial-value: .52; }

/* ── trust strip ── */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 12px; font-weight: 700; color: var(--brand-ink); font-size: 15px; }
.strip-in > div + div { border-inline-start: 1px solid var(--line); }
.strip .ic { width: 26px; height: 26px; color: var(--accent); }

/* ── sections ── */
.section { padding-block: 96px; }
.section--tint { background: var(--tint); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head h2, .why h2, .contact h2, .business h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head--start { text-align: start; margin: 0; }
.sec-head--start .btn { margin-top: 22px; }

/* ── products ── */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 24px;
    display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-art {
    height: 210px; display: grid; place-items: center; margin-bottom: 20px; border-radius: var(--r);
    background: linear-gradient(180deg, var(--accent-bg), var(--surface)); padding: 18px;
}
.product-art .pl { height: 100%; width: auto; max-width: 100%; }
.product-art .pl--double, .product-art .pl--wide { width: 100%; height: auto; max-height: 100%; }
.product:hover .pl-panel { --open: .18; }
.product .pl-panel { transition: --open .8s var(--ease); }
.product h3 { font-size: 19px; margin-bottom: 8px; }
.product p { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 14px; }

/* ── why ── */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-copy > p { font-size: 17px; margin-bottom: 24px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks .ic { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 3px; }

.spec { background: var(--surface); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.spec h3 { font-size: 19px; margin-bottom: 20px; }
.spec-list { display: grid; gap: 14px; margin-bottom: 20px; }
.spec-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.5; }
.spec-list li > span {
    flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--accent-bg); color: var(--accent); font-weight: 800; font-size: 14px;
}
.spec-list strong { display: block; color: var(--ink); font-size: 15.5px; }
.spec-example { background: var(--box-dark); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); }
.spec-example small { display: block; color: #93c5fd; font-size: 12px; font-weight: 700; }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; inset-inline: 12%; border-top: 2px dashed var(--dash); }
.steps li { position: relative; text-align: center; padding: 0 10px; }
.steps li > .ic {
    position: relative; width: 92px; height: 92px; padding: 26px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--surface); color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-n {
    position: absolute; top: 0; left: 50%; transform: translateX(26px); z-index: 1;
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; border: 3px solid var(--bg);
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ── gallery ── */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.chip {
    font: inherit; font-weight: 700; font-size: 14.5px; padding: 7px 18px; border-radius: 999px; cursor: pointer;
    background: var(--surface); color: var(--text); border: 1px solid var(--line); transition: .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--chip-on); color: #fff; border-color: var(--chip-on); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { margin: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, opacity .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile.is-hidden { display: none; }
.tile-art {
    position: relative; height: 240px; display: grid; place-items: center; padding: 26px;
    background:
        repeating-linear-gradient(45deg, rgba(120,140,190,.06) 0 10px, transparent 10px 20px),
        linear-gradient(160deg, var(--tile-a), var(--tile-b));
}
.tile-art .pl { height: 100%; width: auto; max-width: 100%; }
.tile-art .pl--double, .tile-art .pl--wide { height: auto; width: 100%; max-height: 100%; }
.tile-ph {
    position: absolute; bottom: 12px; inset-inline-start: 12px; font-size: 12px; font-weight: 700;
    background: rgba(11,31,77,.75); color: #fff; padding: 3px 10px; border-radius: 999px;
}
.tile figcaption { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile figcaption strong { color: var(--ink); font-size: 15.5px; }

/* ── business ── */
.business {
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(96,165,250,.25), transparent 60%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #c7d4ee; padding-block: 80px; border-block: 1px solid var(--line);
}
.business-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.business h2 { color: #fff; }
.business p { font-size: 17px; margin-bottom: 22px; max-width: 620px; }
.biz-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.biz-points li { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.biz-points .ic { color: #60a5fa; }
.business-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.business-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; }

/* ── faq ── */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); font-size: 16.5px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 10px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0;
    transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ── contact ── */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { font-size: 17px; margin-bottom: 26px; }
.contact-cards { display: grid; gap: 12px; margin-bottom: 30px; }
.ccard {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); transition: border-color .2s, transform .2s var(--ease);
}
.ccard:hover { border-color: var(--accent); transform: translateX(-4px); }
.ccard > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); }
.ccard:nth-child(2) > .ic { background: var(--wa-bg); color: var(--wa); }
.ccard span { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); line-height: 1.5; }
.ccard small { color: var(--muted); font-weight: 600; font-size: 13px; }
.branches-title { font-size: 17px; margin-bottom: 12px; }
.branches { display: flex; flex-wrap: wrap; gap: 8px; }
.branches li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.branches .ic { color: var(--accent); width: 1.05em; height: 1.05em; }
.branches em { font-style: normal; font-size: 12px; background: var(--blue); color: #fff; padding: 0 8px; border-radius: 999px; }

.form { background: var(--surface); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field small { color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
    font: inherit; font-size: 15.5px; color: var(--ink); width: 100%;
    padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.field.is-bad input { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: 13px; font-weight: 600; }
[data-theme="dark"] .field-err { color: #fca5a5; }

/* سطور المقاسات */
.items { border: 0; margin: 0; padding: 0; min-width: 0; }
.items legend { font-weight: 800; color: var(--ink); font-size: 16px; padding: 0; margin-bottom: 10px; }
.items-list { display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; background: var(--tint); }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--accent); }
.item-del { font: inherit; font-size: 13px; font-weight: 700; color: var(--bad); background: none; border: 0; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
[data-theme="dark"] .item-del { color: #fca5a5; }
.item-del:hover { background: var(--bad-bg); }
.item-grid {
    display: grid; gap: 10px;
    grid-template-columns: 1fr auto 1fr 88px;
    grid-template-areas: "w x h q" "d d c c";
}
.item .field input { padding: 9px 12px; font-size: 15px; background: var(--surface); }
.item .field > span { font-size: 13.5px; }
.f-w { grid-area: w; } .f-h { grid-area: h; } .f-q { grid-area: q; } .f-d { grid-area: d; } .f-c { grid-area: c; }
.item-x { grid-area: x; align-self: end; padding-bottom: 10px; color: var(--muted); font-weight: 800; }
.items-add {
    width: 100%; margin-top: 12px; padding: 10px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
    color: var(--accent); background: transparent; border: 1.5px dashed var(--line-2); border-radius: 12px; transition: .2s;
}
.items-add:hover { background: var(--accent-bg); border-style: solid; }
.items-add[hidden], .item-del[hidden] { display: none; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-note { text-align: center; font-size: 13px; color: var(--muted); }
.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.alert--ok  { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.alert--bad { background: var(--bad-bg); color: var(--bad-fg); border: 1px solid var(--bad-line); }

/* ── footer ── */
.footer { background: var(--footer); color: #9fb0d0; padding-top: 64px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 38px; width: auto; filter: invert(1) brightness(2); margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-in > nav, .footer-in > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; font-size: 13.5px; text-align: center; }

.wa-float {
    position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(31,170,89,.7);
    transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 30px; height: 30px; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ═════════ responsive ═════════ */
@media (max-width: 1080px) {
    .nav > a, .portal summary { padding: 8px 9px; font-size: 14.5px; }
    .products { grid-template-columns: repeat(2, 1fr); }
    .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    .menu-btn { display: grid; }
    .header-in { gap: 10px; }
    .header-cta { margin-inline-start: auto; }
    .nav {
        position: absolute; top: 100%; inset-inline: 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav > a, .portal summary { padding: 12px 14px; font-size: 16px; }
    .portal-menu { position: static; box-shadow: none; margin-top: 4px; }

    .hero-in { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 64px; text-align: center; }
    .lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { margin-inline: auto; }
    .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
    .pl--hero { max-width: 300px; }

    .strip-in { grid-template-columns: 1fr 1fr; }
    .strip-in > div:nth-child(3) { border-inline-start: 0; }
    .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }

    .why, .faq-wrap, .contact, .business-in { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps::before { display: none; }
    .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .wrap { padding-inline: 16px; }
    .topbar-in > span:first-child { display: none; }
    .topbar-in { justify-content: center; }
    .topbar-links a:last-child { display: none; }
    .brand-txt { display: none; }
    .header-cta { padding: .6em 1em; font-size: 14px; }
    .header-in { gap: 8px; min-height: 64px; }
    .icon-btn { width: 40px; height: 40px; }

    .hero-actions .btn { width: 100%; }
    .hero-stats li { padding-inline: 10px; }
    .hero-stats strong { font-size: 24px; }
    .hero-badge { font-size: 12px; padding: 8px 10px; }
    .hero-badge .ic { width: 28px; height: 28px; padding: 5px; }
    .hero-badge--a { inset-inline-start: 0; top: 6%; }
    .hero-badge--b { inset-inline-end: 0; bottom: 4%; }

    .section { padding-block: 68px; }
    .sec-head { margin-bottom: 36px; }
    .strip-in > div { font-size: 13.5px; padding: 16px 8px; flex-direction: column; text-align: center; gap: 6px; }
    .products, .gallery, .steps { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .form, .spec { padding: 22px 16px; }
    .item { padding: 10px 12px 12px; }
    .item-grid { grid-template-columns: 1fr auto 1fr 70px; gap: 8px; }
    .footer-in { grid-template-columns: 1fr; gap: 28px; }
    .business-cta { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .pl--animate .pl-panel { --open: .4; }
}
